| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152918 | 邵栋-栋栋老师 | A+B 输入输出练习IV | C++ | Compile Error | 0 MS | 0 KB | 302 | 2026-05-05 20:07:06 |
#include<bits/stdc++.h> using namespace std; int main() { int N; while(cin>>N) { if(N=0) { break; } for(int i=0;i<N;++i) { int sum=0; sum+=0; } cout<<sum<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(N=0)
^
Main.cc:17:15: error: 'sum' was not declared in this scope
cout<