combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:6:8: error: 'set' is not a member of 'std'
6 | std::set<char> combo = {'A', 'B', 'X', 'Y'};
| ^~~
combo.cpp:2:1: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'?
1 | #include "combo.h"
+++ |+#include <set>
2 |
combo.cpp:6:12: error: expected primary-expression before 'char'
6 | std::set<char> combo = {'A', 'B', 'X', 'Y'};
| ^~~~
combo.cpp:13:9: error: 'combo' was not declared in this scope
13 | combo.erase('A');
| ^~~~~
combo.cpp:21:11: error: 'combo' was not declared in this scope
21 | combo.erase('A');
| ^~~~~
combo.cpp:24:11: error: 'combo' was not declared in this scope
24 | combo.erase('B');
| ^~~~~
combo.cpp:32:11: error: 'combo' was not declared in this scope
32 | combo.erase('X');
| ^~~~~
combo.cpp:35:11: error: 'combo' was not declared in this scope
35 | combo.erase('Y');
| ^~~~~
combo.cpp:40:23: error: 'combo' was not declared in this scope
40 | char d1 = *next(combo.begin(), 0);
| ^~~~~
combo.cpp:40:18: error: 'next' was not declared in this scope; did you mean 'std::next'?
40 | char d1 = *next(combo.begin(), 0);
| ^~~~
| std::next
In file included from /usr/include/c++/13/string:47,
from combo.h:3,
from combo.cpp:1:
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:232:5: note: 'std::next' declared here
232 | next(_InputIterator __x, typename
| ^~~~
combo.cpp:52:23: error: 'combo' was not declared in this scope
52 | char d1 = *next(combo.begin(), 0);
| ^~~~~
combo.cpp:52:18: error: 'next' was not declared in this scope; did you mean 'std::next'?
52 | char d1 = *next(combo.begin(), 0);
| ^~~~
| std::next
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:232:5: note: 'std::next' declared here
232 | next(_InputIterator __x, typename
| ^~~~