| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152736 | 张皓凯 | A+B 输入输出练习II | C++ | Compile Error | 0 MS | 0 KB | 165 | 2026-05-02 09:25:52 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a,b; cin>>n; for(n) cin>>a>>b; cout<<a+b<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:10: error: expected ';' before ')' token
for(n)
^
Main.cc:8:18: warning: statement has no effect [-Wunused-value]
cin>>a>>b;
^
Main.cc:10:5: error: expected primary-expression before 'return'
return 0;
^
Main.cc:10:5: error: expected ')' before 'return'