printer.cpp: In function 'bool cmp(std::string, std::string)':
printer.cpp:11:18: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
11 | for(int i=0;i<min(a.length(),b.length());i++){
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:30:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int i=0;i<arr[0].length();i++)ans.pb(arr[0][i]);
| ~^~~~~~~~~~~~~~~~
printer.cpp:34:16: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
34 | while(p<min(arr[i].length(),arr[i-1].length())&&arr[i][p]==arr[i-1][p])p++;
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int j=0;j<arr[i-1].length()-p;j++)ans.pb('-');
| ~^~~~~~~~~~~~~~~~~~~~
printer.cpp:36:15: 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(;p<arr[i].length();p++)ans.pb(arr[i][p]);
| ~^~~~~~~~~~~~~~~~