naan.cpp: In function 'int main()':
naan.cpp:28:19: warning: unused variable 'a' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:28:21: warning: unused variable 'b' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:28:35: warning: unused variable 'c' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:28:41: warning: variable 'ok' set but not used [-Wunused-but-set-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^~
naan.cpp:28:52: warning: unused variable 'z' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:28:54: warning: unused variable 'x3' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^~
naan.cpp:28:57: warning: unused variable 'y3' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^~
naan.cpp:28:60: warning: unused variable 't' [-Wunused-variable]
28 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:27:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
27 | freopen("03-02.txt","rt",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
naan.cpp:29:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%lld %lld",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~~~~~
naan.cpp:35:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%lld",&all[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~