| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158040 | 袁昊贝 | A+B 输入输出练习II | C++ | Compile Error | 0 MS | 0 KB | 234 | 2026-08-20 15:31:21 |
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; int a,b; while (N=0){ for (int i=0;i<N:i++){ cin>>a>>b; } cout<<a+b<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (N=0){
^
Main.cc:8:25: error: expected ';' before ':' token
for (int i=0;i