| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160676 | 周谨严 | 12序列的第n项 | C++ | Compile Error | 0 MS | 0 KB | 146 | 2026-09-26 10:20:12 |
#include(iostream) using namespace std; int main(){ int a=1; int n; cin>>n; for(int i=0;i<n-1;i++){ a = a+i; } cout<<a<<endl; }
Main.cc:1:9: error: #include expects "FILENAME" or
#include(iostream)
^
Main.cc: In function 'int main()':
Main.cc:6:2: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:10:2: error: 'cout' was not declared in this scope
cout<