foo.cc: In function 'int main()':
foo.cc:26:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a>x[i][2]);
^~
foo.cc:27:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
s+=a;
^
foo.cc:12:8: warning: array subscript is above array bounds [-Warray-bounds]
x[1][2]=0;
~~~~~~^
foo.cc:20:13: warning: array subscript is above array bounds [-Warray-bounds]
s+=x[i][2];
~~~~~~^
foo.cc:26:15: warning: array subscript is above array bounds [-Warray-bounds]
if(a>x[i][2]);
~~~~~~^
[Hydro](https://hydro.ac)提供评测服务