sortbooks.cpp: In function 'void mer(std::vector<long long int>&, std::vector<long long int>&, std::vector<long long int>&, long long int&)':
sortbooks.cpp:22:14: 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]
22 | while (l < a.size() && r < b.size()){
| ~~^~~~~~~~~~
sortbooks.cpp:22:30: 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]
22 | while (l < a.size() && r < b.size()){
| ~~^~~~~~~~~~
sortbooks.cpp:33:14: 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]
33 | while (l < a.size()){
| ~~^~~~~~~~~~
sortbooks.cpp:38:14: 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]
38 | while (r < b.size()){
| ~~^~~~~~~~~~
sortbooks.cpp: In function 'void build(long long int, long long int, long long int)':
sortbooks.cpp:51:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
51 | int m=l+r>>1;
| ~^~
sortbooks.cpp: In function 'long long int get_ans(long long int, long long int, long long int, long long int, long long int)':
sortbooks.cpp:64:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
64 | int m = l+r>>1;
| ~^~
sortbooks.cpp: At global scope:
sortbooks.cpp:68:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
68 | main(){
| ^
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:69:15: warning: unused variable 'j' [-Wunused-variable]
69 | int n,t,i,j,k;
| ^
sortbooks.cpp:69:17: warning: unused variable 'k' [-Wunused-variable]
69 | int n,t,i,j,k;
| ^
sortbooks.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:70:5: note: in expansion of macro 'scan2'
70 | scan2(n,t)
| ^~~~~
sortbooks.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
sortbooks.cpp:72:9: note: in expansion of macro 'scan1'
72 | scan1(a[i])
| ^~~~~
sortbooks.cpp:11:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | #define scan3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:77:9: note: in expansion of macro 'scan3'
77 | scan3(l,r,k)
| ^~~~~