tickets.cpp: In function 'long long int find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:21:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = g.size() - 1; i >= g.size() - k * n / 2; --i) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~
tickets.cpp:25:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i = k * n / 2; i < g.size() - k * n / 2; ++i) {
| ~~^~~~~~~~~~~~~~~~~~~~~~
tickets.cpp:26:58: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | if(L[g[i].second].size() + R[g[i].second].size() < k) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
tickets.cpp:34:41: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | while(L[i].size() + R[i].size() > k) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
tickets.cpp:35:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | while(Lptr < g.size() && canTake[Lptr] == 0 && L[g[Lptr].second].size() + R[g[Lptr].second].size() >= k) ++Lptr;
| ~~~~~^~~~~~~~~~
tickets.cpp:35:112: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
35 | while(Lptr < g.size() && canTake[Lptr] == 0 && L[g[Lptr].second].size() + R[g[Lptr].second].size() >= k) ++Lptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
tickets.cpp:36:106: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | while(Rptr >= 0 && canTake[Rptr] == 0 && L[g[Rptr].second].size() + R[g[Rptr].second].size() >= k) --Rptr;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
tickets.cpp:39:83: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
39 | if(canTake[Lptr] == 1 && L[i].size() && L[whL].size() + R[whL].size() < k) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
tickets.cpp:43:83: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if(canTake[Rptr] == 1 && R[i].size() && L[whR].size() + R[whR].size() < k) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
tickets.cpp:59:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | for(int j = 0; j < L[i].size(); ++j) mark[i][j] = SMALL, pL[i].push_back(j);
| ~~^~~~~~~~~~~~~
tickets.cpp:60:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for(int j = 0; j < R[i].size(); ++j) mark[i][m - j - 1] = BIG, pR[i].push_back(m - j - 1);
| ~~^~~~~~~~~~~~~
tickets.cpp:79:31: warning: unused variable 'x' [-Wunused-variable]
79 | while(true) { int x; }
| ^