printer.cpp: In function 'bool cmp1(std::string&, std::string&)':
printer.cpp:5:20: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
5 | for (int i = 0; i < min(a.length(), b.length()); i++) {
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp: In function 'bool cmp2(std::string&, std::string&)':
printer.cpp:13:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for (int i = 0; i < a.length(); i++) {
| ~~^~~~~~~~~~~~
printer.cpp:19:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for (int i = 0; i < b.length(); i++) {
| ~~^~~~~~~~~~~~
printer.cpp: In function 'void solve()':
printer.cpp:50:23: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
50 | while (str.length() > ptr) {
| ~~~~~~~~~~~~~^~~~~
printer.cpp:62:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
62 | printf("%d\n", ans.size());
| ~^ ~~~~~~~~~~
| | |
| int std::vector<char>::size_type {aka long unsigned int}
| %ld