combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:9: error: 'chat' was not declared in this scope; did you mean 'char'?
8 | chat c = ' ';
| ^~~~
| char
combo.cpp:9:16: error: 'c' was not declared in this scope
9 | if (n) c = (press("A") ? 'A' : 'B');
| ^
combo.cpp:10:14: error: 'c' was not declared in this scope
10 | else c = (press("X") ? 'X' : 'Y');
| ^
combo.cpp:11:36: error: 'c' was not declared in this scope
11 | P.erase(P.begin() + P.find(c));
| ^
combo.cpp:30:31: error: 'guess' was not declared in this scope
30 | if (i == 2 || guess(S) == N) return S;
| ^~~~~