| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 144077 | 杨润东 | 04打印三角形 | C++ | Compile Error | 0 MS | 0 KB | 237 | 2026-01-18 19:40:54 |
#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 && n != 0} 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 && n != 0}
^
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
}
^