Problem | closedrooms |
---|---|
User | hwy |
Submission Time | 2023-06-21 16:09:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
closedrooms.cpp:8:1: error: expected ‘,’ or ‘;’ before ‘int’
8 | int dy[4] = {0, -1, 0, 1};
| ^~~
closedrooms.cpp: In function ‘int main()’:
closedrooms.cpp:42:42: error: ‘dy’ was not declared in this scope; did you mean ‘ny’?
42 | int ny = curr.first.second + dy[i];
| ^~
| ny
closedrooms.cpp:44:61: error: ‘kx’ was not declared in this scope; did you mean ‘nx’?
44 | if (nx > 0 && nx <= H && ny < 0 && ny <= W && a[kx][ky] == '.' && !vis[nx][ny]) {
| ^~
| nx
closedrooms.cpp:44:65: error: ‘ky’ was not declared in this scope; did you mean ‘ny’?
44 | if (nx > 0 && nx <= H && ny < 0 && ny <= W && a[kx][ky] == '.' && !vis[nx][ny]) {
|