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)提供评测服务