printer.cpp: In function 'int main()':
printer.cpp:25:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while (j < str[i].size() && j < longest.size() && str[i][j] == longest[j]) j++;
| ~~^~~~~~~~~~~~~~~
printer.cpp:25:39: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | while (j < str[i].size() && j < longest.size() && str[i][j] == longest[j]) j++;
| ~~^~~~~~~~~~~~~~~~
printer.cpp:34:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | while (j < str[it].size() && str[it][j] == '{') j++; else
| ~~^~~~~~~~~~~~~~~~
printer.cpp:34:62: error: 'else' without a previous 'if'
34 | while (j < str[it].size() && str[it][j] == '{') j++; else
| ^~~~
printer.cpp:46:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | for (int i = 0; i < t.size(); i++){
| ~~^~~~~~~~~~
printer.cpp:47:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | if (i < s.size() && t[i] == s[i]) cnt++; else
| ~~^~~~~~~~~~
printer.cpp:51:25: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
51 | while (t.size() > cnt){
| ~~~~~~~~~^~~~~
printer.cpp:56:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for (int i = cnt; i < s.size(); i++){
| ~~^~~~~~~~~~