foo.cc: In function 'int main()':
foo.cc:24:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(maxx<num[i])
^~
foo.cc:26:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
printf("%d\n",maxx);
^~~~~~
foo.cc:7:8: warning: variable 'data' set but not used [-Wunused-but-set-variable]
int n,data[10],m;
^~~~
foo.cc:7:17: warning: unused variable 'm' [-Wunused-variable]
int n,data[10],m;
^
foo.cc:11:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。