| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 153573 | 张皓凯 | 12for循环练习I | C++ | Compile Error | 0 MS | 0 KB | 199 | 2026-05-23 10:01:41 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1;i<=n;++i) { int a=0; a+=i; } cout<<a<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:12:11: error: 'a' was not declared in this scope
cout<