cave.cpp: In function 'void exploreCave(int)':
cave.cpp:27:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int j=0;j<unlocked.size();j++)
| ~^~~~~~~~~~~~~~~~
cave.cpp:23:37: warning: unused variable 'mid' [-Wunused-variable]
23 | int low=0,high=unlocked.size()-1,mid,ans;
| ^~~
cave.cpp:51:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int j=0;j<unlocked.size();j++)
| ~^~~~~~~~~~~~~~~~
cave.cpp:47:37: warning: unused variable 'mid' [-Wunused-variable]
47 | int low=0,high=unlocked.size()-1,mid,ans;
| ^~~
cave.cpp:40:18: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
40 | b[unlocked[ans]]=1;
| ^
cave.cpp:64:18: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
64 | b[unlocked[ans]]=0;
| ^