foo.cc: In function 'int main()':
foo.cc:7:4: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n;i++)
^~~
foo.cc:9:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
scanf("%d",&s);
^~~~~
foo.cc:6:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:8:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~
foo.cc:9:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&s);
~~~~~^~~~~~~~~
foo.cc:15:12: warning: 'h' may be used uninitialized in this function [-Wmaybe-uninitialized]
h+=a[i];
~^~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-10T07:27:39.771Z","handle":"2020-07-10T07:27:39.771Z","cache_start":"2020-07-10T07:27:39.777Z","read_cases":"2020-07-10T07:27:39.889Z","judge":"2020-07-10T07:27:39.889Z","done":"2020-07-10T07:27:41.289Z"}