| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137179 | 傅小轩 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 204 | 2025-11-16 12:40:24 |
#include<bits/stdc++.h> using namespace std; int main(){ int i,n,m; cin>>i>>n>>m; for(int i=0;i<m;i++){ if(i%2==0){ a+=i; }else{ b+=i; } cout<<b; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:9: error: 'a' was not declared in this scope
a+=i;
^
Main.cc:10:5: error: 'b' was not declared in this scope
b+=i;
^
Main.cc:12:7: error: 'b' was not declared in this scope
cout<