foo.cc: In function 'void dfs(std::string)':
foo.cc:8:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | for (int i=0;i<now.length();i++)
| ~^~~~~~~~~~~~~
foo.cc:11:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for (int j=0;j<now.length();j++)
| ~^~~~~~~~~~~~~
foo.cc:19:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (int j=0;j<now.length();j++)
| ~^~~~~~~~~~~~~
foo.cc:37:18: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if(now.length()>maxs)
| ~~~~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务