foo.cc: In function 'int total(int*, int)':
foo.cc:34:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++)
^~~
foo.cc:37:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return cnt;
^~~~~~
foo.cc: In function 'int main()':
foo.cc:9:13: warning: 'x' is used uninitialized in this function [-Wuninitialized]
int x,y,a[x],b[y];
^
foo.cc:9:18: warning: 'y' is used uninitialized in this function [-Wuninitialized]
int x,y,a[x],b[y];
^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。