tabletennis.cpp: In function 'int32_t main()':
tabletennis.cpp:39:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int j=0;j<sums.size();j++){
| ~^~~~~~~~~~~~
tabletennis.cpp:46:33: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
46 | if(pos[j].size()>=n/2){
| ~~~~~~~~~~~~~^~~~~
tabletennis.cpp:62:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::vector<std::pair<long long int, long long int> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | for(int i=0;i<pos.size();i++)
| ~^~~~~~~~~~~
tabletennis.cpp:67:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | for(int i=0;i<pos[mxi].size()&&i<n/2;i++){
| ~^~~~~~~~~~~~~~~~
tabletennis.cpp:72:18: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for(int i=0;i<ans.size();i++)
| ~^~~~~~~~~~~
tabletennis.cpp:32:9: warning: unused variable 'cr' [-Wunused-variable]
32 | int cr=0;
| ^~
tabletennis.cpp:38:9: warning: variable 'f' set but not used [-Wunused-but-set-variable]
38 | int f=0;
| ^