| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137273 | gqj | 07判断正负数 | C++ | Compile Error | 0 MS | 0 KB | 147 | 2025-11-17 16:03:14 |
using namespace std; int main() { int a; cin>>a>>b; if(a>0){ cout<<"YES"; }else{ cout<<"NO"; } }
Main.cc: In function 'int main()':
Main.cc:5:4: error: 'cin' was not declared in this scope
cin>>a>>b;
^
Main.cc:5:12: error: 'b' was not declared in this scope
cin>>a>>b;
^
Main.cc:7:5: error: 'cout' was not declared in this scope
cout<<"YES";
^
Main.cc:9:5: error: 'cout' was not declared in this scope
cout<<"NO";
^