combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:29:17: error: call of overloaded 'press(std::string&)' is ambiguous
29 | if(press(q) == 1){
| ~~~~~^~~
In file included from combo.cpp:5:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:17:5: note: candidate: 'int press(const string&)'
17 | int press(const string &x){
| ^~~~~
combo.cpp:38:25: error: call of overloaded 'press(std::string&)' is ambiguous
38 | if(press(q) == i + 1){
| ~~~~~^~~
In file included from combo.cpp:5:
combo.h:7:5: note: candidate: 'int press(std::string)'
7 | int press(std::string p);
| ^~~~~
combo.cpp:17:5: note: candidate: 'int press(const string&)'
17 | int press(const string &x){
| ^~~~~