combo.cpp: In function 'char bin_search(std::string, int)':
combo.cpp:8:7: error: 'press' was not declared in this scope
8 | if (press(curr + "A" + curr + "B") > len) {
| ^~~~~
combo.cpp:12:7: error: 'press' was not declared in this scope
12 | if (press(curr + "X") > len) return 'X';
| ^~~~~
combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:18:26: error: too few arguments to function 'char bin_search(std::string, int)'
18 | char start = bin_search(curr);
| ~~~~~~~~~~^~~~~~
combo.cpp:7:6: note: declared here
7 | char bin_search(string curr, int len){
| ^~~~~~~~~~
combo.cpp:22:19: error: 'n' was not declared in this scope
22 | for (int i=0; i<n-2; i++) {
| ^
combo.cpp:24:17: error: 'press' was not declared in this scope; did you mean 'res'?
24 | int res = press(curr + 'X' + curr + "BX" + curr + "BY" + curr + "BB");
| ^~~~~
| res
combo.cpp:30:17: error: 'press' was not declared in this scope; did you mean 'res'?
30 | int res = press(curr + 'X' + curr + "AX" + curr + "AY" + curr + "AA");
| ^~~~~
| res
combo.cpp:36:17: error: 'press' was not declared in this scope; did you mean 'res'?
36 | int res = press(curr + 'Y' + curr + "BA" + curr + "BY" + curr + "BB");
| ^~~~~
| res
combo.cpp:42:17: error: 'press' was not declared in this scope; did you mean 'res'?
42 | int res = press(curr + 'X' + curr + "BX" + curr + "BA" + curr + "BB");
| ^~~~~
| res
combo.cpp:49:21: error: too few arguments to function 'char bin_search(std::string, int)'
49 | curr += bin_search(curr);
| ~~~~~~~~~~^~~~~~
combo.cpp:7:6: note: declared here
7 | char bin_search(string curr, int len){
| ^~~~~~~~~~