printer.cpp: In function 'int main()':
printer.cpp:17:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | if (maxi<a[i].length())
| ~~~~^~~~~~~~~~~~~~
printer.cpp:29:19: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
29 | for (int i=0; i<min(a[l-1].length(), a[cur].length()); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:38:19: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
38 | for (int i=0; i<min(a[cur].length(), a[r+1].length()); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:56:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i=0; i<b[1].length(); i++)
| ~^~~~~~~~~~~~~~
printer.cpp:62:18: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
62 | for (int j=0; j<min(b[i-1].length(), b[i].length()); j++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:68:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for (int j=1; j<=b[i-1].length()-index; j++)
| ~^~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:70:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | for (int j=index; j<b[i].length(); j++)
| ~^~~~~~~~~~~~~~
printer.cpp:75:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | for (int i=0; i<ans.size(); i++)
| ~^~~~~~~~~~~
printer.cpp:38:44: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
38 | for (int i=0; i<min(a[cur].length(), a[r+1].length()); i++)
| ~^~
printer.cpp:29:27: warning: 'l' may be used uninitialized in this function [-Wmaybe-uninitialized]
29 | for (int i=0; i<min(a[l-1].length(), a[cur].length()); i++)
| ~^~