| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122992 | 张修睿 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 246 | 2025-06-22 12:56:51 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n,a,b; cin>>m>>n; for(int i=m;i<=n;i++){ if(n%2==1){ a=0+n; cout<<a<<endl; } else(n%2==0) b=0+n; cout<<b<<endl; }
Main.cc: In function 'int main()':
Main.cc:11:9: error: expected ';' before 'b'
b=0+n;
^
Main.cc:13:1: error: expected '}' at end of input
}
^