| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148661 | 王峻熙 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 248 | 2026-02-28 14:39:17 |
#include<iostream> using namespace std; int main(){ int n,i,m,sj=0,so=0; cin>>n>>m; for(i=n;i<=m;i++) { if(i%2==0) so+=i; else sj+=i; } cout<<so<<" "<<sj; return 0;
Main.cc: In function 'int main()':
Main.cc:14:13: error: expected '}' at end of input
return 0;
^