/in/foo.cc: In function 'int main()':
/in/foo.cc:142:51: warning: operation on 'xs[5][i]' may be undefined [-Wsequence-point]
for (int i=5;i<=5;i++) xs[i][5]=xs[i][5]=xs[5][i]=xs[5][i]=10;
~~~~~~~~^~~~~~~~~~~~
/in/foo.cc:142:33: warning: operation on 'xs[i][5]' may be undefined [-Wsequence-point]
for (int i=5;i<=5;i++) xs[i][5]=xs[i][5]=xs[5][i]=xs[5][i]=10;
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'void sol(int)':
/in/foo.cc:14:8: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
int x,y;
^
/in/foo.cc:74:43: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (int k=a[x][y].gs[0];k<=a[x][y].gs[1];k++) for (int l=a[x][y].gs[2];l<=a[x][y].gs[3];l++) if (a[k][l].kn[ans[x][y]])
~~~~~~~~~~~~^