| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136516 | 王显端 | 07判断正负数 | C++ | Compile Error | 0 MS | 0 KB | 161 | 2025-11-15 12:26:17 |
int main() { int a; cin>>a>> ; if (a>0) { cout <<"YES"<< endl; } else { cout <<"NO"<< endl; } return 0;
Main.cc: In function 'int main()':
Main.cc:3:4: error: 'cin' was not declared in this scope
cin>>a>> ;
^
Main.cc:3:13: error: expected primary-expression before ';' token
cin>>a>> ;
^
Main.cc:6:8: error: 'cout' was not declared in this scope
cout <<"YES"<< endl;
^
Main.cc:6:23: error: 'endl' was not declared in this scope
cout <<"YES"<< endl;
^
Main.cc:10:8: error: 'cout' was not declared in this scope
cout <<"NO"<< endl;
^
Main.cc:10:22: error: 'endl' was not declared in this scope
cout <<"NO"<< endl;
^
Main.cc:13:12: error: expected '}' at end of input
return 0;
^