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