potion.cpp: In function 'void curseChanges(int, int*, int*)':
potion.cpp:43:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int l=0; l<adj[i].size(); l++){
| ~^~~~~~~~~~~~~~
potion.cpp: In function 'int question(int, int, int)':
potion.cpp:80:9: error: redeclaration of 'int posx'
80 | int posx=0, posy=0;
| ^~~~
potion.cpp:76:9: note: 'int posx' previously declared here
76 | int posx = lower_bound(st[x].begin(), st[x].end(), v)-st[x].begin()-1;
| ^~~~
potion.cpp:80:17: error: redeclaration of 'int posy'
80 | int posx=0, posy=0;
| ^~~~
potion.cpp:77:9: note: 'int posy' previously declared here
77 | int posy = lower_bound(st[y].begin(), st[y].end(), v)-st[y].begin()-1;
| ^~~~
potion.cpp:82:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | if(posx >= st[x].size() || posy <= 0 || st[x][posx] > v) return 1e9;
| ~~~~~^~~~~~~~~~~~~~~
potion.cpp:83:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
83 | if(posy >= st[y].size() || posy <= 0 || st[y][posy] > v) return 1e9;
| ~~~~~^~~~~~~~~~~~~~~
potion.cpp:88:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
88 | while(lx<sx.size() &&
| ~~^~~~~~~~~~
potion.cpp:90:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
90 | while(ly<sy.size() && sy[ly]=='0') ly++;
| ~~^~~~~~~~~~
potion.cpp:94:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while(lx<sx.size() && ly < sy.size()){
| ~~^~~~~~~~~~
potion.cpp:94:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
94 | while(lx<sx.size() && ly < sy.size()){
| ~~~^~~~~~~~~~~
potion.cpp:102:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
102 | while(lx<sx.size() && sx[lx]=='0') lx++;
| ~~^~~~~~~~~~
potion.cpp:106:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
106 | while(ly<sy.size() && sy[ly]=='0') ly++;
| ~~^~~~~~~~~~