| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144076 | 杨润东 | A+B 输入输出练习IV | C++ | Compile Error | 0 MS | 0 KB | 228 | 2026-01-18 18:43:35 |
#include using namespace std; int main() { int n; while (cin >> n && n != 0) { int sum = 0, num; for (int i = 0; i > num; sum += num; } cout >> n;} return 0; }
Main.cc:1:10: error: #include expects "FILENAME" or
#include
^
Main.cc: In function 'int main()':
Main.cc:5:12: error: 'cin' was not declared in this scope
while (cin >> n && n != 0) {
^
Main.cc:8:23: error: expected ')' before ';' token
sum += num;
^
Main.cc:10:9: error: 'cout' was not declared in this scope
cout >> n;}
^
Main.cc: At global scope:
Main.cc:11:1: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:12:5: error: expected declaration before '}' token
}
^