Problem splithunny
User sharelletqx
Submission Time 2026-07-25 10:48:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:21:4: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
21 | cnt++;
| ^~~
| int
splithunny.cpp:31:13: error: ‘x_dx’ was not declared in this scope; did you mean ‘dx’?
31 | int nx=x_dx[dir];
| ^~~~
| dx
splithunny.cpp:33:9: error: ‘frid’ was not declared in this scope; did you mean ‘grid’?
33 | if(frid[nx][ny]=='.') continue;
| ^~~~
| grid
splithunny.cpp:35:19: error: expected ‘}’ before ‘)’ token
35 | Q.push({nx,ny)};
| ~ ^
splithunny.cpp:35:20: error: expected ‘;’ before ‘}’ token
35 | Q.push({nx,ny)};
| ^
| ;
splithunny.cpp:36:10: error: ‘nx’ was not declared in this scope; did you mean ‘x’?
36 | vis[nx][ny]=1;
| ^~
| x