| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158106 | 林睿 | A+B 输入输出练习IV | C++ | Compile Error | 0 MS | 0 KB | 214 | 2026-08-20 16:21:34 |
#include<bits/stdc++.h> using namespace std; int main(){ while(m!=0) { int sum=0,m=0; cin>>m; for(int j=0;j<m;j++) { int a; cin>>a; sum+=a; } cout<<sum<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:4:8: error: 'm' was not declared in this scope
while(m!=0)
^