combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:38:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
38 | while(res.size() < N)
| ~~~~~~~~~~~^~~
combo.cpp:43:31: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
43 | if(res.size() + 1 == N && last != 0)
| ~~~~~~~~~~~~~~~^~~~
combo.cpp:47:27: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | if(res.size() + 1 < N || (res.size() + 1 == N && last != 0))
| ~~~~~~~~~~~~~~~^~~
combo.cpp:47:50: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
47 | if(res.size() + 1 < N || (res.size() + 1 == N && last != 0))
| ~~~~~~~~~~~~~~~^~~~
combo.cpp:53:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | if(num == res.size()) {
| ~~~~^~~~~~~~~~~~~
combo.cpp:57:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | else if(num - 1 == res.size()) {
| ~~~~~~~~^~~~~~~~~~~~~
combo.cpp:43:36: warning: 'last' may be used uninitialized in this function [-Wmaybe-uninitialized]
43 | if(res.size() + 1 == N && last != 0)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~