/in/foo.cc: In function 'int main()':
/in/foo.cc:6:8: warning: unused variable 'x' [-Wunused-variable]
int n,x,y;
^
/in/foo.cc:6:10: warning: unused variable 'y' [-Wunused-variable]
int n,x,y;
^
/in/foo.cc:19:12: warning: array subscript is above array bounds [-Warray-bounds]
b[q][2]=a[k];
~~~~~~^
/in/foo.cc:24:58: warning: array subscript is above array bounds [-Warray-bounds]
if(b[l][1]==b[m][1]&&b[l][1]==b[m][2])sum--;
~~~~~~^
/in/foo.cc:25:36: warning: array subscript is above array bounds [-Warray-bounds]
else if(b[l][2]==b[m][1]&&b[l][2]==b[m][2])sum--;
~~~~~~^
/in/foo.cc:25:63: warning: array subscript is above array bounds [-Warray-bounds]
else if(b[l][2]==b[m][1]&&b[l][2]==b[m][2])sum--;
~~~~~~^