/ AOCode /

记录详情

Compile Error

/in/foo.cc: In function 'int dfs(int, int, int, int)':
/in/foo.cc:6:48: error: return-statement with no value, in function returning 'int' [-fpermissive]
  if(x > n || y > n || t > k || m[x][y] == 'H'){return;}
                                                ^~~~~~
/in/foo.cc:7:39: error: return-statement with no value, in function returning 'int' [-fpermissive]
  if(x == n && y == n && t <= k){tot++;return;}
                                       ^~~~~~
/in/foo.cc:8:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  dfs(x + 1, y, 0, t == 2 ? t : t + dir ^ 0);
                                ~~^~~~~
/in/foo.cc:9:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  dfs(x, y + 1, 1, t == 2 ? t : t + dir ^ 1);
                                ~~^~~~~

信息

递交者
类型
自测
题目
P1031 Mission 2 - E : To the Kingdom of pmurT
语言
C++
递交时间
2022-02-06 18:55:53
评测时间
2022-02-06 18:55:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes