jobs.cpp: In function 'bool check(int)':
jobs.cpp:27: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]
27 | while (i < g.size())
| ~~^~~~~~~~~~
jobs.cpp:31: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]
31 | while(j < g.size() && j - i + 1 <= x && g[j].first <= moment)
| ~~^~~~~~~~~~
jobs.cpp: In function 'int main()':
jobs.cpp:57: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]
57 | while (i < g.size())
| ~~^~~~~~~~~~
jobs.cpp:61: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]
61 | while(j < g.size() && j - i + 1 <= ans && g[j].first <= moment)
| ~~^~~~~~~~~~