/in/foo.cc: In function 'int maxP(const string&, int)':
/in/foo.cc:6:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
6 | while (left >= 0 && right < str.length() && str[left] == str[right]) {
| ~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int maxPa(const string&, int)':
/in/foo.cc:15:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (left >= 0 && right < str.length() && str[left] == str[right]) {
| ~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int lon(const string&)':
/in/foo.cc:27:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < str.length(); ++i) {
| ~~^~~~~~~~~~~~~~