combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:15:3: error: 'vector' was not declared in this scope
15 | vector<char>d={"A","B","X","Y"};
| ^~~~~~
combo.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include "combo.h"
+++ |+#include <vector>
2 |
combo.cpp:15:10: error: expected primary-expression before 'char'
15 | vector<char>d={"A","B","X","Y"};
| ^~~~
combo.cpp:17:8: error: 'd' was not declared in this scope
17 | if(d[i]==p[0]){
| ^
combo.cpp:21:17: error: 'n' was not declared in this scope
21 | for(int i=2;i<n;i++){
| ^
combo.cpp:22:17: error: 'd' was not declared in this scope
22 | string f1=p+d[0]+d[0];
| ^
combo.cpp:38:16: error: 'd' was not declared in this scope
38 | string f=p+d[i];
| ^
combo.cpp:39:18: error: 'n' was not declared in this scope
39 | if(press(f)==n){
| ^