foo.cc: In function 'int main()':
foo.cc:16:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &a[1], &k);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:17:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 2; i <= n; i++) scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-05-29T11:22:48.796Z","handle":"2020-05-29T11:22:48.796Z","cache_start":"2020-05-29T11:22:48.807Z","read_cases":"2020-05-29T11:22:49.417Z","judge":"2020-05-29T11:22:49.418Z","done":"2020-05-29T11:22:49.747Z"}