Problem milkweed
User nivay210
Submission Time 2023-11-16 11:49:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘void bfs(int, int)’:
milkweed.cpp:21:12: error: expected ‘;’ before ‘-’ token
21 | for(int i-0; i<8; i++){
| ^
| ;
milkweed.cpp:21:19: error: expected ‘)’ before ‘;’ token
21 | for(int i-0; i<8; i++){
| ~ ^
| )
milkweed.cpp:21:21: error: ‘i’ was not declared in this scope
21 | for(int i-0; i<8; i++){
| ^
milkweed.cpp: In function ‘int main()’:
milkweed.cpp:39:6: error: ‘nx’ was not declared in this scope; did you mean ‘dx’?
39 | bfs(nx, ny);
| ^~
| dx
milkweed.cpp:39:10: error: ‘ny’ was not declared in this scope; did you mean ‘dy’?
39 | bfs(nx, ny);
| ^~
| dy