Problem splithunny
User chatdanai
Submission Time 2026-05-05 13:16:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘void dfs(long long int, long long int)’:
splithunny.cpp:15:3: error: ‘nx’ was not declared in this scope; did you mean ‘x’?
15 | nx=x+dr[i];
| ^~
| x
splithunny.cpp:16:3: error: ‘ny’ was not declared in this scope; did you mean ‘y’?
16 | ny=x+dc[i];
| ^~
| y
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:27:39: error: expected ‘;’ before ‘cin’
27 | memset(visited,false,sizeof(visited))
| ^
| ;
28 | cin >> r >> c;
| ~~~