naan.cpp: In function 'int main()':
naan.cpp:15:19: warning: unused variable 'a' [-Wunused-variable]
15 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3;
| ^
naan.cpp:15:21: warning: unused variable 'b' [-Wunused-variable]
15 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3;
| ^
naan.cpp:15:35: warning: unused variable 'c' [-Wunused-variable]
15 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3;
| ^
naan.cpp:15:41: warning: unused variable 'ok' [-Wunused-variable]
15 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3;
| ^~
naan.cpp:15:52: warning: unused variable 'z' [-Wunused-variable]
15 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3;
| ^
naan.cpp:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%lld %lld",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~~~~~
naan.cpp:22:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
22 | scanf("%lld",&all[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~