| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153364 | 姚旭鸿 | A+B 输入输出练习IV | C++ | Compile Error | 0 MS | 0 KB | 291 | 2026-05-16 13:30:04 |
#inculde<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; while(n) { int sum = 0, x; for(int i = 1; i <= n; i++) { cin >> x; sum += x; } cout << sum << endl; } return 0; }
Main.cc:1:2: error: invalid preprocessing directive #inculde
#inculde
^
Main.cc: In function 'int main()':
Main.cc:6:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:15:9: error: 'cout' was not declared in this scope
cout << sum << endl;
^
Main.cc:15:24: error: 'endl' was not declared in this scope
cout << sum << endl;
^