| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147168 | 王晏林 | 一起找规律 | C++ | Compile Error | 0 MS | 0 KB | 191 | 2026-02-03 11:55:21 |
#include<iostream> using namespace std; int main(){ int n=1,k+1; cout<<k<<" "; for(int i=2;i<=30;i++){ n*=2; k+=n; cout<<" "<<k; } cout<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:4:14: error: expected initializer before '+' token
int n=1,k+1;
^
Main.cc:5:11: error: 'k' was not declared in this scope
cout<