printer.cpp: In function 'bool compare(std::string, std::string)':
printer.cpp:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
11 | for(int i = 0; i < x.size(); i++){
| ~~^~~~~~~~~~
printer.cpp:16:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | if(i==x.size()-1)a=x.size();
| ~^~~~~~~~~~~~
printer.cpp:19:22: 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 < y.size(); i++){
| ~~^~~~~~~~~~
printer.cpp:24:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(i==y.size()-1)b=y.size();
| ~^~~~~~~~~~~~
printer.cpp: In function 'int main()':
printer.cpp:42:26: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
42 | for(int j = 0; j < min(a.size(), b.size()); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:47:18: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
47 | if(j == min(a.size(), b.size())-1) hold = min(a.size(), b.size());
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
printer.cpp:50:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
50 | for(int j = hold; j < b.size(); j++) ans.push_back(b[j]);
| ~~^~~~~~~~~~
printer.cpp:49:35: warning: 'hold' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | for(int j = a.size()-1; j >= hold; j--) ans.push_back('-');
| ~~^~~~~~~