palindrome.cpp: In function 'int longest_palindrome_occurrence(const string&)':
palindrome.cpp:8:23: 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 < s.length(); ++i) {
| ~~^~~~~~~~~~~~
palindrome.cpp:11:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | while (left >= 0 && right < s.length() && s[left] == s[right]) {
| ~~~~~~^~~~~~~~~~~~
palindrome.cpp:19:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | while (left >= 0 && right < s.length() && s[left] == s[right]) {
| ~~~~~~^~~~~~~~~~~~