Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137823 张咏灏 【基础题】求和(1) C++ Compile Error 0 MS 0 KB 149 2025-11-22 17:31:43

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a0; for(int i=12;i<=1002;i+=10){ a+=i; } cout<<a; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:3: error: 'a' was not declared in this scope
   a+=i;
   ^
Main.cc:8:11: error: 'a' was not declared in this scope
     cout<