printer.cpp: In function 'int main()':
printer.cpp:15:23: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | if(a[i].size()>mx) p=a[i][0],mx=(int)a[i].size();
| ~~~~~~~~~~~^~~
printer.cpp:23:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | while(j<b.size() && j<a[i].size() && a[i][j]==b[j]) j++;
| ~^~~~~~~~~
printer.cpp:23:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | while(j<b.size() && j<a[i].size() && a[i][j]==b[j]) j++;
| ~^~~~~~~~~~~~
printer.cpp:24:23: warning: comparison of integer expressions of different signedness: 'std::vector<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
24 | while(b.size()>j) ans.push_back('-'),b.pop_back();
| ~~~~~~~~^~
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 | for(;j<a[i].size();j++) ans.push_back(a[i][j]),b.push_back(a[i][j]);
| ~^~~~~~~~~~~~
printer.cpp:31:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(j<b.size() && j<a[i].size() && a[i][j]==b[j]) j++;
| ~^~~~~~~~~
printer.cpp:31:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(j<b.size() && j<a[i].size() && a[i][j]==b[j]) j++;
| ~^~~~~~~~~~~~
printer.cpp:32:23: warning: comparison of integer expressions of different signedness: 'std::vector<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
32 | while(b.size()>j) ans.push_back('-'),b.pop_back();
| ~~~~~~~~^~
printer.cpp:33:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(;j<a[i].size();j++) ans.push_back(a[i][j]),b.push_back(a[i][j]);
| ~^~~~~~~~~~~~
printer.cpp:29:9: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
29 | if(a[i][0]!=p) continue;
| ^~