Problem milkweed
User Jiayue
Submission Time 2023-11-16 11:50:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp:11:1: error: expected ‘,’ or ‘;’ before ‘int’
11 | int dx[8] = {-1, 1, 0, 0, -1, 1, -1, 1};
| ^~~
milkweed.cpp: In function ‘void bfs(int, int)’:
milkweed.cpp:22:25: error: ‘dx’ was not declared in this scope; did you mean ‘x’?
22 | nx = z.first.first = dx[i];
| ^~
| x
milkweed.cpp:24:83: error: lvalue required as left operand of assignment
24 | if (nx = 0 && nx<=w && ny = 0 && ny<=h && grid[nx][ny]=='.' && (visited[nx][ny]){
| ^
milkweed.cpp:24:84: error: expected ‘)’ before ‘{’ token
24 | if (nx = 0 && nx<=w && ny = 0 && ny<=h && grid[nx][ny]=='.' && (visited[nx][ny]){
| ~ ^
|