| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134337 | 陈华仁星 | 年龄问题 | C++ | Compile Error | 0 MS | 0 KB | 215 | 2025-10-26 21:30:29 |
#include <iostream> #include <cmath> using namespace std; void di_gui(int x) { if(x<20) { x+=2; di_gui(x); } if(x==20) cout<< x<< endl; int main() { int x=8; di_gui(x); return 0; }
Main.cc: In function 'void di_gui(int)':
Main.cc:15:1: error: a function-definition is not allowed here before '{' token
{
^
Main.cc:19:1: error: expected '}' at end of input
}
^