| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133289 | 李朋秦 | 桃子问题 | C++ | Compile Error | 0 MS | 0 KB | 198 | 2025-10-18 14:05:28 |
#include<bits/stdc++.h> using namespace std; int sum(int x){ if(x==10){ return 1; }else{ return sum(x+1)*2+1; } } int main() { int z cin>>z; cout<<sum(z); return 0; }
Main.cc: In function 'int main()':
Main.cc:13:2: error: expected initializer before 'cin'
cin>>z;
^
Main.cc:14:15: error: 'z' was not declared in this scope
cout<