Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137901 张宇泽 12序列找规律 C++ Compile Error 0 MS 0 KB 278 2025-11-23 11:14:46

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int a,b; cin >>a>>b; int sum = 0; for (int i = m; i <= n; ++i) { if (i%2==1) { sum += i; }else{ s+=i; cout <<a; } } cout <<b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:18: error: 'm' was not declared in this scope
     for (int i = m; i <= n; ++i) {
                  ^
Main.cc:7:26: error: 'n' was not declared in this scope
     for (int i = m; i <= n; ++i) {
                          ^
Main.cc:11:10: error: 's' was not declared in this scope
          s+=i;
          ^