combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:10: error: redeclaration of 'char char2'
8 | char char2;
| ^~~~~
combo.cpp:7:10: note: 'char char2' previously declared here
7 | char char2;
| ^~~~~
combo.cpp:11:15: error: expected initializer before '==' token
11 | if (int N == 3){
| ^~
combo.cpp:11:14: error: expected ')' before '==' token
11 | if (int N == 3){
| ~ ^~~
| )
combo.cpp:13:28: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
13 | char1 = chars[i];
| ~~~~~~~^
| |
| std::string {aka std::__cxx11::basic_string<char>}
combo.cpp:15:32: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
15 | char2 = chars[j];
| ~~~~~~~^
| |
| std::string {aka std::__cxx11::basic_string<char>}
combo.cpp:16:40: error: 'l' was not declared in this scope
16 | for (int k = 0; k < 4; l ++){
| ^
combo.cpp:17:36: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
17 | char1 = chars[k];
| ~~~~~~~^
| |
| std::string {aka std::__cxx11::basic_string<char>}
combo.cpp:18:41: error: 'char3' was not declared in this scope; did you mean 'char2'?
18 | p = char1 + char2 + char3;
| ^~~~~
| char2
combo.cpp:19:25: error: 'press' was not declared in this scope
19 | if (press(p) == 3){
| ^~~~~