obstacles.cpp: In function 'void initialize(std::vector<int>, std::vector<int>)':
obstacles.cpp:23:9: error: 'i' was not declared in this scope
23 | for(i=0; i<M; i++) {
| ^
obstacles.cpp: In function 'bool can_reach(int, int, int, int)':
obstacles.cpp:29:8: error: 'd' was not declared in this scope
29 | if(d>mx) {
| ^
obstacles.cpp:29:10: error: 'mx' was not declared in this scope
29 | if(d>mx) {
| ^~
obstacles.cpp:35:1: warning: control reaches end of non-void function [-Wreturn-type]
35 | }
| ^