foo.cc: In function 'int main()':
foo.cc:35:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
printf("%d\n", strlen(s) - ans);
~~~~~~~~~~~~~~~^
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:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s);
~~~~~^~~~~~~~~
foo.cc:20:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
~~~~~^~~~~~~~~~
foo.cc:23:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", ch);
~~~~~^~~~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-09T23:44:45.636Z","handle":"2020-08-09T23:44:45.636Z","cache_start":"2020-08-09T23:44:45.645Z","read_cases":"2020-08-09T23:44:45.755Z","judge":"2020-08-09T23:44:45.756Z","done":"2020-08-09T23:44:46.044Z"}