为什么做错了
2025-05-03 20:13:42
发布于:浙江
51阅读
0回复
0点赞
为什么们最对了,却做错了
全部评论 3
#include <bits/stdc++.h>
using namespace std;
int main(){
int x,y;
cin>>x>>y;
if(x>y){
cout<<">";
}
else if(y<x){
cout<<"<";
}
else{
cout<<"=";
}
return 0;
}
我这也不知为什么错了2025-06-06 来自 四川
0你的符号不是字符类型
2025-08-24 来自 江苏
0谢谢,可我早已不是当初的自己
2025-08-24 来自 俄罗斯
2
做对了却做错了
2025-05-04 来自 上海
0AC代码
#include<iostream> using namespace std; int main() { int x, y; cin >> x >> y; if (x > y) { cout << '>'; } else if (x < y) { cout << '<'; } else { cout << '='; } return 0; }
2025-05-04 来自 浙江
0
有帮助,赞一个