sortbooks.cpp:17:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
17 | main(){
| ^
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:18:17: warning: unused variable 'k' [-Wunused-variable]
18 | 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:19:5: note: in expansion of macro 'scan2'
19 | 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:21:9: note: in expansion of macro 'scan1'
21 | scan1(q[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:33:9: note: in expansion of macro 'scan3'
33 | scan3(l,r,k)
| ^~~~~