| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152756 | 张皓凯 | A+B 输入输出练习III | C++ | Compile Error | 0 MS | 0 KB | 268 | 2026-05-02 10:21:38 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b; while(cin>>a>>b) { if(a=0;b=0) { break; } else { cout<<a+b<<endl; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:8:15: error: expected ')' before ';' token
if(a=0;b=0)
^
Main.cc:8:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
Main.cc:8:19: error: expected ';' before ')' token
if(a=0;b=0)
^
Main.cc:12:9: error: 'else' without a previous 'if'
else
^