books.cpp: In function 'void solve(int, int, ll, int)':
books.cpp:5:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define forn(i,n) for(int i=0;i<n;++i)
......
32 | forn(i,paia.size()) cnt+=(m>>i)&1;
| ~~~~~~~~~~~~~
books.cpp:32:3: note: in expansion of macro 'forn'
32 | forn(i,paia.size()) cnt+=(m>>i)&1;
| ^~~~
books.cpp:5:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define forn(i,n) for(int i=0;i<n;++i)
......
35 | forn(i,paia.size()) if ((m>>i)&1) s+=paia[i].first;
| ~~~~~~~~~~~~~
books.cpp:35:3: note: in expansion of macro 'forn'
35 | forn(i,paia.size()) if ((m>>i)&1) s+=paia[i].first;
| ^~~~
books.cpp:5:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define forn(i,n) for(int i=0;i<n;++i)
......
38 | forn(i,paia.size()) if ((m>>i)&1) ans.push_back(paia[i].second);
| ~~~~~~~~~~~~~
books.cpp:38:4: note: in expansion of macro 'forn'
38 | forn(i,paia.size()) if ((m>>i)&1) ans.push_back(paia[i].second);
| ^~~~