| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137182 | 万麟峰 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 232 | 2025-11-16 14:17:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int m,n,j=0,o=0; cin>>m>>n; for(int a=m;a<=n;a++){ if(a%2==0) o=o+a; } for(int a=m;a<=n;a++){ if(a%2!==0) j=j+a; } cout<<o<<" "<<j; return 0; }
Main.cc: In function 'int main()':
Main.cc:11:11: error: expected primary-expression before '=' token
if(a%2!==0)
^