printer.cpp: In lambda function:
printer.cpp:25:27: 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 (int p = 0; p < a[i].size(); p++) if (a[i][p] != a[mx][p]) {x = p; break;}
| ~~^~~~~~~~~~~~~
printer.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int p = 0; p < a[j].size(); p++) if (a[j][p] != a[mx][p]) {y = p; break;}
| ~~^~~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:34:31: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
34 | for (int j = 0; j < min(a[id[i - 1]].size(), a[id[i]].size()); j++) if (a[id[i - 1]][j] != a[id[i]][j]) {w = j; break;}
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:35:31: 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 < a[id[i - 1]].size() - w; j++) ans.push_back('-');
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:36:31: 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 (int j = w; j < a[id[i]].size(); j++) ans.push_back(a[id[i]][j]);
| ~~^~~~~~~~~~~~~~~~~
printer.cpp:38:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | else for (int j = 0; j < a[id[i]].size(); j++) ans.push_back(a[id[i]][j]);
| ~~^~~~~~~~~~~~~~~~~
printer.cpp:20:9: warning: unused variable 'sz' [-Wunused-variable]
20 | int sz = a[mx].size();
| ^~