printer.cpp: In function 'int32_t main()':
printer.cpp:18:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | if (mx < words[i].size()) {
| ~~~^~~~~~~~~~~~~~~~~
printer.cpp:36:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < big.size(); ++i) {
| ~~^~~~~~~~~~~~
printer.cpp:37:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if (big[i].second.size() == mx) {
| ~~~~~~~~~~~~~~~~~~~~~^~~~~
printer.cpp:43:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (int i = 0; i < big.size(); ++i) {
| ~~^~~~~~~~~~~~
printer.cpp:45:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int j = 0; j < big[i].second.size(); ++j) {
| ~~^~~~~~~~~~~~~~~~~~~~~~
printer.cpp:65:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (int i = 1; i < smol.size(); ++i) {
| ~~^~~~~~~~~~~~~
printer.cpp:67:15: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
67 | while (ind < min(cur.size(), smol[i].size()) &&
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:80:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for (int j = ind + 1; j < smol[i].size(); ++j) {
| ~~^~~~~~~~~~~~~~~~
printer.cpp:99:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, std::__cxx11::basic_string<char> > >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
99 | for (int i = start; i < big.size(); ++i) {
| ~~^~~~~~~~~~~~
printer.cpp:101:14: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
101 | while (ind < min(cur.size(), big[i].second.size()) &&
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:114:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for (int j = ind + 1; j < big[i].second.size(); ++j) {
| ~~^~~~~~~~~~~~~~~~~~~~~~
printer.cpp:27:3: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
27 | if (words[i][0] == c) {
| ^~