Problem splithunny
User user123
Submission Time 2026-11-12 11:56:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘void dfs(int, int)’:
splithunny.cpp:15:10: error: ‘x’ was not declared in this scope; did you mean ‘vx’?
15 | int vx=x+dir[i][0], vy=y+dir[i][1];
| ^
| vx
splithunny.cpp:16:23: error: ‘vy’ was not declared in this scope; did you mean ‘vx’?
16 | if (vx<1 || R<vx || vy<1 || C<vy) continue;
| ^~
| vx
splithunny.cpp:17:13: error: ‘vy’ was not declared in this scope; did you mean ‘vx’?
17 | if (A[vx][vy]!='H') continue;
| ^~
| vx
splithunny.cpp:18:15: error: ‘vy’ was not declared in this scope; did you mean ‘vx’?
18 | if (vis[vx][vy]) continue;
| ^~
| vx
splithunny.cpp:19:11: error: ‘vy’ was not declared in this scope; did you mean ‘vx’?
19 | dfs(vx, vy);
| ^~
| vx
splithun