obstacles.cpp:6:13: error: conflicting declaration 'std::vector<int> t'
6 | vector<int> t;
| ^
obstacles.cpp:4:6: note: previous declaration as 'bool t'
4 | bool t;
| ^
obstacles.cpp: In function 'void initialize(std::vector<int>, std::vector<int>)':
obstacles.cpp:15:26: error: 'f' was not declared in this scope
15 | if(T[n-1]<=H[i]) f[i+1]++;
| ^
obstacles.cpp:18:9: error: 'f' was not declared in this scope
18 | f[i+1]+=f[i];
| ^
obstacles.cpp: In function 'bool can_reach(int, int, int, int)':
obstacles.cpp:24:8: error: 'f' was not declared in this scope
24 | if(f[d]-f[s]==0) return true;
| ^