combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:3: error: 'vector' was not declared in this scope
8 | vector<char> add = {'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 | using namespace std;
combo.cpp:8:10: error: expected primary-expression before 'char'
8 | vector<char> add = {'A', 'B', 'X', 'Y'};
| ^~~~
combo.cpp:9:16: error: 'add' was not declared in this scope
9 | for (char c :add) {
| ^~~
combo.cpp:10:15: error: could not convert 'c' from 'char' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
10 | if (press(c)) {
| ^
| |
| char
combo.cpp:15:14: error: 'n' was not declared in this scope
15 | while (r < n) {
| ^
combo.cpp:16:18: error: 'add' was not declared in this scope
16 | for (char c :add) {
| ^~~
combo.cpp:20:14: error: expected ';' before '}' token
20 | break
| ^
| ;
21 | }
| ~