combo.cpp: In function 'std::string brute(std::string)':
combo.cpp:7:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | if (press(s + "A" + s + "B") > s.size()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
combo.cpp:8:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | if (press(s + "A") > s.size()) {
| ~~~~~~~~~~~~~~~^~~~~~~~~~
combo.cpp:14:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if (press(s + "X") > s.size()) {
| ~~~~~~~~~~~~~~~^~~~~~~~~~
combo.cpp: In function 'std::string smart(std::string)':
combo.cpp:44:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if (p == s.size()) {
| ~~^~~~~~~~~~~
combo.cpp:46:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | } else if (p == s.size() + 1) {
| ~~^~~~~~~~~~~~~~~