foo.cc: In function 'bool Judge(int, int, std::string, int)':
foo.cc:8:31: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
8 | if(animal.find('D', 0)==-1)
| ~~~~~~~~~~~~~~~~~~~^~~~
foo.cc:13:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0; i<animal.length(); i++)
| ~^~~~~~~~~~~~~~~~
foo.cc:17:49: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
17 | if(cat==0 && animal.find('D', i)!=-1)
| ~~~~~~~~~~~~~~~~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务