printer.cpp: In function 'bool cmp(const string&, const string&)':
printer.cpp:25:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while ( i < a.size() && i < b.size() && a[i] == b[i] )
| ~~^~~~~~~~~~
printer.cpp:25:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while ( i < a.size() && i < b.size() && a[i] == b[i] )
| ~~^~~~~~~~~~
printer.cpp:28:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | return (i == a.size() || (i < b.size() && comp( i, a[i], b[i] )));
| ~~^~~~~~~~~~~
printer.cpp:28:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | return (i == a.size() || (i < b.size() && comp( i, a[i], b[i] )));
| ~~^~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:47:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for ( i = 0; i < s[p].size(); i++ )
| ~~^~~~~~~~~~~~~
printer.cpp:53:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | while ( lcp[i] < s[i - 1].size() && lcp[i] < s[i].size() && s[i - 1][lcp[i]] == s[i][lcp[i]] )
| ~~~~~~~^~~~~~~~~~~~~~~~~
printer.cpp:53:52: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | while ( lcp[i] < s[i - 1].size() && lcp[i] < s[i].size() && s[i - 1][lcp[i]] == s[i][lcp[i]] )
| ~~~~~~~^~~~~~~~~~~~~
printer.cpp:63:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | while ( l < s[i].size() ) {
| ~~^~~~~~~~~~~~~