| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66956 | 18624431159 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 142 | 2024-03-12 17:20:09 |
include <iostream> using namespace std; int main() { int n,sum=0; for(int i=1;i<=n;i++) sum+=i; cout<<sum; return 0; }
Main.cc:1:1: error: 'include' does not name a type
include
^
Main.cc: In function 'int main()':
Main.cc:7:5: error: 'cout' was not declared in this scope
cout<