combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:17:23: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
17 | while (cur.size() < n) {
| ~~~~~~~~~~~^~~
combo.cpp:18:39: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
18 | if (cur.empty() || cur.size() == n-1) {
| ~~~~~~~~~~~^~~~~~
combo.cpp:19:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if (press(cur+'A'+cur+'B') >= cur.size()+1) {
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
combo.cpp:20:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if (press(cur+'A') == cur.size()+1) cur += 'A';
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
combo.cpp:24:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if (press(cur+'X') == cur.size()+1) cur += 'X';
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
combo.cpp:16:9: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
16 | int s;
| ^