naan.cpp: In function 'int main()':
naan.cpp:68:103: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
68 | if(have[j.second]||x1/y1>j.first.first/j.first.second||x1/y1==j.first.first/j.first.second&&(x1%y1*j.first.second)>(j.first.first%j.first.second*y1)) continue;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
naan.cpp:30:19: warning: unused variable 'a' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:30:21: warning: unused variable 'b' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:30:35: warning: unused variable 'c' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:30:52: warning: unused variable 'z' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:30:54: warning: unused variable 'x3' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^~
naan.cpp:30:57: warning: unused variable 'y3' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^~
naan.cpp:30:60: warning: unused variable 't' [-Wunused-variable]
30 | long long N,M,a,b,x1,y1,x2,y2,c,i,j,ok=1,now=0,z,x3,y3,t;
| ^
naan.cpp:31:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | scanf("%lld %lld",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~~~~~
naan.cpp:37:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
37 | scanf("%lld",&all[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~