foo.cc: In function 'int main()':
foo.cc:24:17: warning: iteration 14 invokes undefined behavior [-Waggressive-loop-optimizations]
24 | minn[i][y]=mini;
| ~~~~~~~~~~^~~~~
foo.cc:15:22: note: within this loop
15 | for(int i=1;i<=15;i++)
| ~^~~~
foo.cc:35:17: warning: iteration 14 invokes undefined behavior [-Waggressive-loop-optimizations]
35 | maxn[x][i]=maxi;
| ~~~~~~~~~~^~~~~
foo.cc:26:22: note: within this loop
26 | for(int i=1;i<=15;i++)
| ~^~~~
foo.cc:30:17: warning: iteration 14 invokes undefined behavior [-Waggressive-loop-optimizations]
30 | if(a[j][i]>maxi)
| ~~~~~~^
foo.cc:29:20: note: within this loop
29 | for(int j=1;j<=15;j++)
| ~^~~~
foo.cc:40:20: warning: iteration 14 invokes undefined behavior [-Waggressive-loop-optimizations]
40 | if(maxn[i][j]!=0&&minn[i][j]!=0)
| ~~~~~~~~~^
foo.cc:39:20: note: within this loop
39 | for(int j=1;j<=15;j++)
| ~^~~~
foo.cc:35:17: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
35 | maxn[x][i]=maxi;
| ~~~~~~~~~~^~~~~
foo.cc:24:17: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
24 | minn[i][y]=mini;
| ~~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务