foo.cc: In function 'std::string StopFight(std::string)':
foo.cc:10:10: warning: comparison of integer expressions of different signedness: 'int' and 'const size_type' {aka 'const long unsigned int'} [-Wsign-compare]
10 | if(index!=string::npos)
| ~~~~~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:38:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
38 | printf("%d",queue.length());
| ~^ ~~~~~~~~~~~~~~
| | |
| int std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
| %ld
foo.cc:35:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%*d\n");
| ~~~~~^~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务