Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117143 | 罗子童 | 阿克曼函数 | C++ | Compile Error | 0 MS | 0 KB | 522 | 2025-04-13 19:15:05 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; long long a(int x,int y){ if(m==0){ return x+1; } else if(n==0){ return a(y-1,1); } else{ return a(y-1,a(y,x-1)); } } int main(){ long long x,y; cin>>x>>y; cout<<a(x,y); return 0; }
Main.cc: In function 'long long int a(int, int)': Main.cc:8:8: error: 'm' was not declared in this scope if(m==0){ ^ Main.cc:11:13: error: 'n' was not declared in this scope else if(n==0){ ^ Main.cc:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^