/in/foo.cc: In function 'int main()':
/in/foo.cc:22:17: warning: array subscript is above array bounds [-Warray-bounds]
a[k][2]=1;
~~~~~~^
/in/foo.cc:31:20: warning: array subscript is above array bounds [-Warray-bounds]
a[i][2]++;
~~~~~~^
/in/foo.cc:31:20: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:39:12: warning: array subscript is above array bounds [-Warray-bounds]
a[k][2]++;
~~~~~~^
/in/foo.cc:39:12: warning: array subscript is above array bounds [-Warray-bounds]
/in/foo.cc:51:22: warning: array subscript is above array bounds [-Warray-bounds]
temp2=a[i][2];
~~~~~~^
/in/foo.cc:52:24: warning: array subscript is above array bounds [-Warray-bounds]
a[i][2]=a[j][2];
~~~~~~^
/in/foo.cc:52:16: warning: array subscript is above array bounds [-Warray-bounds]
a[i][2]=a[j][2];
~~~~~~^
/in/foo.cc:53:16: warning: array subscript is above array bounds [-Warray-bounds]
a[j][2]=temp2;
~~~~~~^
/in/foo.cc:57:30: warning: array subscript is above array bounds [-Warray-bounds]
cout<<a[i][1]<<" "<<a[i][2]<<endl;
^