books.cpp: In function 'void ans(int, int, int)':
books.cpp:16:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=vis.size(); i>vis.size()-right; i--) a.push_back(i);
| ~^~~~~~~~~~~~~~~~~
books.cpp: In function 'void get(int, int, long long int)':
books.cpp:26:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int i=vis.size()-1; i>vis.size()-r; i--) sum+=s(i);
| ~^~~~~~~~~~~~~
books.cpp:30:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | if(tmp>=vis.size()||tmp>=vis.size()-r) continue;
| ~~~^~~~~~~~~~~~
books.cpp:30:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | if(tmp>=vis.size()||tmp>=vis.size()-r) continue;
| ~~~^~~~~~~~~~~~~~
books.cpp:34:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | if(k<vis.size()-r&&sum+s(k) <=2*a && sum+s(k) >=a) ans(l, r, k);
| ~^~~~~~~~~~~~~