| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140996 | 杨炬铃 | [在线测评解答教程] 求和 | C++ | Compile Error | 0 MS | 0 KB | 251 | 2025-12-20 16:00:32 |
# include<iostream> # include<cstring> # include<cmath> using namespace std; int main()} int a,b,maxa=0,maxb=0; cin>>a>>b; for(int i=1;i<=a;i++) maxa+=i; for(int i=1;i<=b;i++) maxb+=i; cout<<maxa<<endl<<maxb; }
Main.cc:5:11: error: expected initializer before '}' token
int main()}
^
Main.cc:5:11: error: expected declaration before '}' token