foo.cc: In function 'int main()':
foo.cc:27:30: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1000]' [-Wformat=]
scanf("%s", &s[id[i]]);
~~~~~~~~~^
foo.cc:15:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &ch);
~~~~~^~~~~~~~~~~
foo.cc:27:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &s[id[i]]);
~~~~~^~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。