foo.cc: In function 'int main()':
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",a+1);
~~~~~^~~~~~~~~~
foo.cc:22:16: warning: 'id' may be used uninitialized in this function [-Wmaybe-uninitialized]
p[i]=min(p[2*id-i],mx-i);
~^~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-09T12:56:52.349Z","handle":"2020-08-09T12:56:52.349Z","cache_start":"2020-08-09T12:56:52.357Z","read_cases":"2020-08-09T12:56:52.470Z","judge":"2020-08-09T12:56:52.470Z","done":"2020-08-09T12:56:52.897Z"}