seesaw.cpp: In function 'void solve()':
seesaw.cpp:4:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<double, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define forn(i,n) for(int i=0; i<n; ++i)
......
33 | forn(i,v.size()) {
| ~~~~~~~~~~
seesaw.cpp:33:2: note: in expansion of macro 'forn'
33 | forn(i,v.size()) {
| ^~~~
seesaw.cpp:34:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<double, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while (r<v.size() && tot<n) {
| ~^~~~~~~~~