Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137150 张宇泽 12序列的第n项 C++ Compile Error 0 MS 0 KB 148 2025-11-16 12:16:48

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<n-1;i++){ return 0; a=a+i; } cout<<a; }


Run Info:

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