| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132261 | 张咏灏 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 181 | 2025-10-07 16:41:15 |
#include<iostream> using namespace std; int main(){ int a,b; cin>>a; for(int i=1;i<=a;i++){ b=i; i=i+b; } cout<<i; return 0; }
Main.cc: In function 'int main()':
Main.cc:10:11: error: 'i' was not declared in this scope
cout<