sortbooks.cpp: In function 'void solve()':
sortbooks.cpp:42:12: warning: unused variable 'q' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:20: warning: unused variable 'j' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:23: warning: unused variable 'l' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:30: warning: unused variable 'x' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:34: warning: unused variable 'y' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:38: warning: unused variable 's' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:46: warning: unused variable 'f' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:50: warning: unused variable 'k' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^
sortbooks.cpp:42:58: warning: unused variable 'mn' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^~
sortbooks.cpp:42:69: warning: unused variable 'mx' [-Wunused-variable]
42 | ll n , q , i , j ,l ,r , x , y , s = 0 , f , k , m , mn = 1e18, mx = 0 ;
| ^~
sortbooks.cpp: In function 'int main()':
sortbooks.cpp:76:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:77:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
77 | freopen("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~