| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149095 | 张锦程 | 12序列的第n项 | C++ | Compile Error | 0 MS | 0 KB | 169 | 2026-03-07 14:27:26 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=0;i<=n-2;i++) a+=i; cout<<a<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:9: error: 'a' was not declared in this scope
a+=i;
^
Main.cc:8:11: error: 'a' was not declared in this scope
cout<