books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:50:22: warning: narrowing conversion of 'r' from 'long long int' to 'int' [-Wnarrowing]
50 | vector<int> ans = {r};
| ^
books.cpp:50:22: warning: narrowing conversion of 'r' from 'long long int' to 'int' [-Wnarrowing]
books.cpp:52:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
52 | if(ans.size()>=K)break;
| ~~~~~~~~~~^~~
books.cpp:49:7: warning: unused variable 'cnt' [-Wunused-variable]
49 | int cnt = 1;
| ^~~
books.cpp:70:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for(int j = 0;j<v.size();j++){
| ~^~~~~~~~~
books.cpp:75:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for(int j = 0;j<v.size();j++){
| ~^~~~~~~~~
books.cpp:37:5: warning: unused variable 'sum' [-Wunused-variable]
37 | ll sum = 0;
| ^~~