Problem splithunny
User nivay210
Submission Time 2023-11-16 10:04:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘void dfs(int, int)’:
splithunny.cpp:16:10: error: expected initializer before ‘-’ token
16 | int ny - y+dy[k];
| ^
splithunny.cpp:17:27: error: ‘ny’ was not declared in this scope; did you mean ‘nx’?
17 | if(nx < 0 or nx >= h or ny < 0 or ny >= w)continue;
| ^~
| nx
splithunny.cpp:18:19: error: ‘ny’ was not declared in this scope; did you mean ‘nx’?
18 | if(!visited[nx][ny] && arrayi[nx][ny] == 'H'){
| ^~
| nx
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:28:12: error: expected ‘;’ before ‘-’ token
28 | for(int j - 0; j < w; j++){
| ^~
| ;
splithunny.cpp:28:23: error: expected ‘)’ before ‘;’ token
28 | for(int j - 0; j < w; j++){
| ~ ^
|