Problem boundlessboxes
User chatdanai
Submission Time 2026-05-02 23:02:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boundlessboxes.cpp: In function ‘int main()’:
boundlessboxes.cpp:26:30: error: ‘H’ was not declared in this scope
26 | if (nx>=0 and nx<H and ny>=0 and ny<W and !vis[nx][ny]){
| ^
boundlessboxes.cpp:26:49: error: ‘W’ was not declared in this scope
26 | if (nx>=0 and nx<H and ny>=0 and ny<W and !vis[nx][ny]){
| ^
boundlessboxes.cpp:32:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
32 | ans = 0;
| ^~~
| abs