Runtime Error

/in/foo.cc: In function 'int ack(int, int)':
/in/foo.cc:6:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(a=0) return b+1;
        ^
/in/foo.cc:7:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(b=0) return ack(a-1,1);
        ^
# 状态 耗时 内存占用
#1 Runtime Error 7ms 8.414 MiB
#2 Runtime Error 7ms 8.418 MiB
#3 Runtime Error 7ms 8.441 MiB
#4 Runtime Error 7ms 8.398 MiB
#5 Runtime Error 7ms 8.414 MiB

信息

递交者
类型
递交
题目
P1008 ackman函数
语言
C++
递交时间
2024-02-22 15:05:30
评测时间
2024-02-22 15:05:30
评测机
分数
0
总耗时
36ms
峰值内存
8.441 MiB