Problem combo
User shenshiqi
Submission Time 2026-07-24 16:33:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:7:3: error: ‘vector’ was not declared in this scope
7 | vector <string> chr = {"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:7:17: error: expected primary-expression before ‘>’ token
7 | vector <string> chr = {"A", "B", "X", "Y"};
| ^
combo.cpp:7:19: error: ‘chr’ was not declared in this scope; did you mean ‘char’?
7 | vector <string> chr = {"A", "B", "X", "Y"};
| ^~~
| char