robots.cpp: In function 'bool solve(int, std::vector<int>&, std::vector<int>&, std::vector<std::pair<int, int> >)':
robots.cpp:17:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | while(r < T.size() && T[r].f < x) {q.push({T[r+1].s, T[r+1].f}); r++;}
| ~~^~~~~~~~~~
robots.cpp:24:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=r; i<T.size(); i++) q.push({T[i].s, T[i].f});
| ~^~~~~~~~~
robots.cpp:30:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | while(r < T.size() && T[r].f < x) {q.push({T[r+1].s, T[r+1].f}); r++;}
| ~~^~~~~~~~~~
robots.cpp:37:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | return r == T.size() && q.size() == 0;
| ~~^~~~~~~~~~~