naan.cpp: In function 'int main()':
naan.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
13 | scanf("%lld %lld",&N,&M);
| ~~~~~^~~~~~~~~~~~~~~~~~~
naan.cpp:18:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%lld",&all[i][j]);
| ~~~~~^~~~~~~~~~~~~~~~~~~
naan.cpp:49:14: warning: 'y2' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | if(x1*y2<=x2*y1)
| ~~^~~
naan.cpp:49:21: warning: 'x2' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | if(x1*y2<=x2*y1)
| ~~^~~
naan.cpp:51:19: warning: 'x1' may be used uninitialized in this function [-Wmaybe-uninitialized]
51 | printf("%lld %lld\n",(i-1)*y1+x1,y1);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~