foo.cc: In function 'int work(char*, int)':
foo.cc:75:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'int main()':
foo.cc:82:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.in", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:83:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("output.out", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:85:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
~~~~~^~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-16T11:50:35.271Z","handle":"2020-07-16T11:50:35.272Z","cache_start":"2020-07-16T11:50:35.278Z","read_cases":"2020-07-16T11:50:35.401Z","judge":"2020-07-16T11:50:35.412Z","done":"2020-07-16T11:50:37.258Z"}