Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102126 | 刘济玮 | 年龄问题 | C++ | Compile Error | 0 MS | 0 KB | 164 | 2024-12-21 12:08:01 |
#include <bits/stdc++.h> using namespace std; int age(int n){ if(n==1){ return 10; } return 2+age(n-1); } int main() { cout<<n(5); return 0; }
Main.cc: In function 'int main()': Main.cc:11:11: error: 'n' was not declared in this scope cout<