combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:30:18: error: call of overloaded 'press(const char [3])' is ambiguous
30 | int x = press("AB");
| ~~~~~^~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:33:18: error: call of overloaded 'press(const char [2])' is ambiguous
33 | x = press("X");
| ~~~~~^~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:37:18: error: call of overloaded 'press(const char [2])' is ambiguous
37 | x = press("A");
| ~~~~~^~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:46:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
46 | x = press(ans + "BB" + ans + "BX" + ans + "BY" + ans + "X");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:52:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
52 | x = press(ans + "AA" + ans + "AX" + ans + "AY" + ans + "X");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:58:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
58 | x = press(ans + "AA" + ans + "AB" + ans + "AY" + ans + "B");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:64:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
64 | x = press(ans + "BB" + ans + "BX" + ans + "BA" + ans + "X");
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:74:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
74 | x = press(ans + "B");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:77:26: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
77 | x = press(ans + "X");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:82:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
82 | x = press(ans + "A");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:85:26: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
85 | x = press(ans + "X");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:90:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
90 | x = press(ans + "A");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:93:26: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
93 | x = press(ans + "B");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:98:22: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
98 | x = press(ans + "B");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~
combo.cpp:101:26: error: call of overloaded 'press(std::__cxx11::basic_string<char>)' is ambiguous
101 | x = press(ans + "X");
| ~~~~~^~~~~~~~~~~
In file included from combo.cpp:4:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:18:5: note: candidate: 'int press(const string&)'
18 | int press(const string &s) {
| ^~~~~