Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130208 郝王骏程 阿克曼函数 C++ Compile Error 0 MS 0 KB 485 2025-09-08 20:26:32

Tests(0/0):


Code:

#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 akm(long long m,long long n){ if(m==0) return n+1; if(m>0,n==0) return akm(m-1,1); if(m>0,n>0) return akm(m-1,akm(m, n-1)); } int main(){ int d,f; cin>>d>>f; cout<<w(d,f); return 0; }


Run Info:

Main.cc: In function 'long long int akm(long long int, long long int)':
Main.cc:10:8: warning: left operand of comma operator has no effect [-Wunused-value]
    if(m>0,n==0)
        ^
Main.cc:12:8: warning: left operand of comma operator has no effect [-Wunused-value]
    if(m>0,n>0)
        ^
Main.cc: In function 'int main()':
Main.cc:18:16: error: 'w' was not declared in this scope
     cout<