/in/foo.cc: In function 'int shan(int)':
/in/foo.cc:16:17: warning: statement has no effect [-Wunused-value]
b[a[x][i]][5]==1;
~~~~~~~~~~~~~^~~
/in/foo.cc:8:11: warning: array subscript is above array bounds [-Warray-bounds]
a[x][1502]=0;
~~~~~~~~~^
/in/foo.cc:14:36: warning: array subscript is above array bounds [-Warray-bounds]
if(b[a[x][i]][1]==2&&b[a[x][i]][5]==0)
~~~~~~~~~~~~^
/in/foo.cc:18:57: warning: array subscript is above array bounds [-Warray-bounds]
for(int j=b[a[x][i]][2];j<=b[a[x][i]][3];j++)a[j][1002]--;
~~~~~~~~~^
/in/foo.cc:18:57: warning: array subscript is above array bounds [-Warray-bounds]