Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
129531 林汐 判断两数大小 C++ 编译错误 0 0 MS 0 KB 1544 2024-01-27 08:49:52

Tests(0/0):


Main.cc:1:1: error: ‘include’ does not name a type; did you mean ‘__has_include’? include ^~~~~~~ __has_include Main.cc: In function ‘int main()’: Main.cc:2:44: error: ‘cin’ was not declared in this scope using namespace std; int main() { int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"a=b"; } if(a==1&&b==2){ cout<<"ab"; } } ^~~ Main.cc:2:44: note: suggested alternative: ‘main’ using namespace std; int main() { int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"a=b"; } if(a==1&&b==2){ cout<<"ab"; } } ^~~ main Main.cc:2:71: error: ‘cout’ was not declared in this scope using namespace std; int main() { int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"a=b"; } if(a==1&&b==2){ cout<<"ab"; } } ^~~~ Main.cc:2:102: error: ‘cout’ was not declared in this scope using namespace std; int main() { int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"a=b"; } if(a==1&&b==2){ cout<<"ab"; } } ^~~~ Main.cc:2:133: error: ‘cout’ was not declared in this scope using namespace std; int main() { int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"a=b"; } if(a==1&&b==2){ cout<<"ab"; } } ^~~~


测评信息: