sortbooks.cpp: In function 'int main()':
sortbooks.cpp:10:23: warning: unused variable 'j' [-Wunused-variable]
10 | int N,M,x,y,z,t,i,j,big;
| ^
sortbooks.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
11 | scanf("%d %d",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~
sortbooks.cpp:12:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | for(i=1;i<=N;i++) scanf("%d",&all[i]);
| ~~~~~^~~~~~~~~~~~~~
sortbooks.cpp:17:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d %d %d",&x,&y,&z);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
sortbooks.cpp:39:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
39 | scanf("%d %d %d",&x,&y,&z);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~