/ AOCode /

记录详情

Compile Error

foo.cc: In function 'int dfs(int, int, int, int)':
foo.cc:6:48: error: continue statement not within a loop
    6 |  if(x > n || y > n || t > k || m[x][y] == 'H'){continue;}
      |                                                ^~~~~~~~
foo.cc:7:39: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |  if(x == n && y == n && t <= k){tot++;return;}
      |                                       ^~~~~~
foo.cc:8:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
    8 |  dfs(x + 1, y, 0, t == 2 ? t : t + dir ^ 0);
      |                                ~~^~~~~
foo.cc:9:34: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
    9 |  dfs(x, y + 1, 1, t == 2 ? t : t + dir ^ 1);
      |                                ~~^~~~~
foo.cc:9:5: warning: control reaches end of non-void function [-Wreturn-type]
    9 |  dfs(x, y + 1, 1, t == 2 ? t : t + dir ^ 1);
      |  ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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