| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155056 | 李一凡 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 318 | 2026-05-31 12:54:21 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n; cin>>m>>n; int a=0; int b=0; for(int i=m;i<=n;i++){ if(i%2==0){ a+= i; } else { b += i; } } cout<<a<<" "<<b<<endl; return 0;
Main.cc: In function 'int main()':
Main.cc:19:13: error: expected '}' at end of input
return 0;
^