combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:4:3: error: 'string' was not declared in this scope
4 | string S = "";
| ^~~~~~
combo.cpp:4:3: note: suggested alternatives:
In file included from /usr/include/c++/11/string:39,
from combo.h:3,
from combo.cpp:1:
/usr/include/c++/11/bits/stringfwd.h:79:33: note: 'std::string'
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from combo.h:3,
from combo.cpp:1:
/usr/include/c++/11/string:67:11: note: 'std::pmr::string'
67 | using string = basic_string<char>;
| ^~~~~~
combo.cpp:5:3: error: 'vector' was not declared in this scope
5 | vector<char> btns = {'A','B','X','Y'};
| ^~~~~~
combo.cpp:5:10: error: expected primary-expression before 'char'
5 | vector<char> btns = {'A','B','X','Y'};
| ^~~~
combo.cpp:6:10: error: 'S' was not declared in this scope
6 | while (S.length() != N) {
| ^
combo.cpp:13:17: error: 'btns' was not declared in this scope
13 | btns.erase(btns.begin());
| ^~~~
combo.cpp:16:17: error: 'btns' was not declared in this scope
16 | btns.erase(btns.begin()+1);
| ^~~~
combo.cpp:22:17: error: 'btns' was not declared in this scope
22 | btns.erase(btns.begin()+2);
| ^~~~
combo.cpp:25:17: error: 'btns' was not declared in this scope
25 | btns.erase(btns.begin()+3);
| ^~~~
combo.cpp:29:15: error: expected ';' before 'message'
29 | string message = "";
| ^~~~~~~~
| ;
combo.cpp:30:9: error: 'message' was not declared in this scope
30 | message += S;
| ^~~~~~~
combo.cpp:31:20: error: 'btns' was not declared in this scope
31 | message += btns[0];
| ^~~~
combo.cpp:45:28: error: 'btns' was not declared in this scope
45 | int coin = press(S+btns[0]+btns[1]);
| ^~~~
combo.cpp:58:10: error: 'S' was not declared in this scope
58 | return S;
| ^