| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143136 | 冰块ee | A+B 输入输出练习V | C++ | Compile Error | 0 MS | 0 KB | 335 | 2026-01-11 19:04:02 |
#include<bits/stdc++.h> using namespace std; int a,b,n,ans; int main(){ cin>>b; for(int i=1;i<=b;i++){ cin>>n; for(int i=1;i<=n;i++){ cin>>a; ans+=a; } cout<<ans<<endl; ans=0; } } return 0; }
Main.cc:18:5: error: expected unqualified-id before 'return'
return 0;
^
Main.cc:19:1: error: expected declaration before '}' token
}
^