combo.cpp: In function 'std::string guess_brute(int, std::string)':
combo.cpp:5:19: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
5 | if(start.size() < press(start + "A" + start + "B")){
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
combo.cpp:6:21: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
6 | if(start.size() < press(start + "A"))
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
combo.cpp:11:21: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
11 | if(start.size() < press(start + "X"))
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
combo.cpp: In function 'std::string guess_smart(int, std::string)':
combo.cpp:39:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | if(result == start.size())
| ~~~~~~~^~~~~~~~~~~~~~~
combo.cpp:41:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | else if(result == start.size() + 1)
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
combo.cpp:37:141: warning: 'allowed[2]' may be used uninitialized in this function [-Wmaybe-uninitialized]
37 | std::string test = start + allowed[1] + start + allowed[2] + allowed[0] + start + allowed[2] + allowed[1] + start + allowed[2] + allowed[2];
| ^
combo.cpp:37:107: warning: 'allowed[1]' may be used uninitialized in this function [-Wmaybe-uninitialized]
37 | std::string test = start + allowed[1] + start + allowed[2] + allowed[0] + start + allowed[2] + allowed[1] + start + allowed[2] + allowed[2];
| ^
combo.cpp:37:73: warning: 'allowed[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
37 | std::string test = start + allowed[1] + start + allowed[2] + allowed[0] + start + allowed[2] + allowed[1] + start + allowed[2] + allowed[2];
| ^