printer.cpp: In function 'int main()':
printer.cpp:23:18: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
23 | char start = NULL; int mx = 0;
| ^~~~
printer.cpp:28:25: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
28 | if (s[i].size() > mx)
| ~~~~~~~~~~~~^~~~
printer.cpp:72:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int k = st.size(); k < s[i].size(); k++)
| ~~^~~~~~~~~~~~~
printer.cpp:97:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
97 | for (int k = st.size(); k < s[i].size(); k++)
| ~~^~~~~~~~~~~~~
printer.cpp:105:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
105 | for (int i = 0; i < last.size(); i++)
| ~~^~~~~~~~~~~~~
printer.cpp:116:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
116 | for (int k = st.size(); k < last[i].size(); k++)
| ~~^~~~~~~~~~~~~~~~
printer.cpp:124:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wformat=]
124 | printf("%d\n", print.size());
| ~^ ~~~~~~~~~~~~
| | |
| int std::vector<char>::size_type {aka long unsigned int}
| %ld