combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:59:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | if (res==ans.size())
| ~~~^~~~~~~~~~~~
combo.cpp:64:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
64 | else if(res==ans.size()+1)
| ~~~^~~~~~~~~~~~~~
combo.cpp:76:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
76 | if (res==ans.size())
| ~~~^~~~~~~~~~~~
combo.cpp:80:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | else if(res==ans.size()+1)
| ~~~^~~~~~~~~~~~~~
combo.cpp:92:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
92 | if (res==ans.size())
| ~~~^~~~~~~~~~~~
combo.cpp:96:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | else if(res==ans.size()+1)
| ~~~^~~~~~~~~~~~~~
combo.cpp:108:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
108 | if (res==ans.size())
| ~~~^~~~~~~~~~~~
combo.cpp:112:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
112 | else if(res==ans.size()+1)
| ~~~^~~~~~~~~~~~~~
combo.cpp:124:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
124 | if (press(ans+'B')==ans.size()+1) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:127:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
127 | else if (press(ans+'X')==ans.size()+1)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:135:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
135 | if (press(ans+'A')==ans.size()+1) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:138:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
138 | else if (press(ans+'X')==ans.size()+1)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:146:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
146 | if (press(ans+'B')==ans.size()+1) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:149:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
149 | else if (press(ans+'A')==ans.size()+1)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:157:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
157 | if (press(ans+'B')==ans.size()+1) {
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
combo.cpp:160:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
160 | else if (press(ans+'X')==ans.size()+1)
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~