Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154486 蔡皓霆 12奇数和与偶数和 C++ Compile Error 0 MS 0 KB 310 2026-05-30 14:24:11

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; for(int i=m;i<=;i++) { if (i%2==0) { es+= i; } else { os += i; } } cout <<es<< " " <<os<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:20: error: expected primary-expression before ';' token
     for(int i=m;i<=;i++)
                    ^
Main.cc:12:14: error: 'es' was not declared in this scope
              es+= i;
              ^
Main.cc:16:14: error: 'os' was not declared in this scope
              os += i;
              ^
Main.cc:20:12: error: 'es' was not declared in this scope
     cout <