foo.cc: In function 'int main()':
foo.cc:20:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < f.length(); i++)
| ~~^~~~~~~~~~~~
foo.cc:22:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int j = 0; j < g.length(); j++)
| ~~^~~~~~~~~~~~
foo.cc:28:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if (cnt < g.length())
| ~~~~^~~~~~~~~~~~
foo.cc:34:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (j = 0; j < g.length(); j++)
| ~~^~~~~~~~~~~~
foo.cc:36:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (; i < f.length(); i++)
| ~~^~~~~~~~~~~~
foo.cc:45:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | if (count == g.length())
| ~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务