Problem | milkweed |
---|---|
User | Jiayue |
Submission Time | 2023-11-16 11:52:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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 | mx = z.first.first = dx[i];
| ^~
| x
milkweed.cpp:24:83: error: lvalue required as left operand of assignment
24 | if (mx = 0 && mx<=w && my = 0 && my<=h && grid[mx][my]=='.' && (visited[mx][my]){
| ^
milkweed.cpp:24:84: error: expected ‘)’ before ‘{’ token
24 | if (mx = 0 && mx<=w && my = 0 && my<=h && grid[mx][my]=='.' && (visited[mx][my]){
| ~ ^
|