| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134521 | 李昊宇 | 年龄问题 | C++ | Compile Error | 0 MS | 0 KB | 173 | 2025-10-27 19:47:28 |
#include<bits/stdc++.h> using namespace std; int sum; int mian(int x){ if(sum!=18)mian(x+2); cout<<sum; } int main(){ mian(x); return 0; }
Main.cc: In function 'int mian(int)':
Main.cc:7:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Main.cc: In function 'int main()':
Main.cc:10:9: error: 'x' was not declared in this scope
mian(x);
^