| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158369 | 余建成 | 桃子问题 | C++ | Compile Error | 0 MS | 0 KB | 173 | 2026-08-21 13:14:14 |
#include<iostream> using namespace std; int tz(int n){ if(n==10) return 1; else { (tz(n+1)+1)*2; } return n } int main(){ cout<<tz(1); return 0; }
Main.cc: In function 'int tz(int)':
Main.cc:6:14: warning: value computed is not used [-Wunused-value]
(tz(n+1)+1)*2;
^
Main.cc:9:1: error: expected ';' before '}' token
}
^