combo.cpp: In function 'std::string guess_sentence(int)':
combo.cpp:12:35: error: 'other3' was not declared in this scope; did you mean 'toher3'?
12 | other1 = 'B'; other2 = 'X'; other3 = 'Y';
| ^~~~~~
| toher3
combo.cpp:16:35: error: 'other3' was not declared in this scope; did you mean 'toher3'?
16 | other1 = 'A'; other2 = 'X'; other3 = 'Y';
| ^~~~~~
| toher3
combo.cpp:22:35: error: 'other3' was not declared in this scope; did you mean 'toher3'?
22 | other1 = 'B'; other2 = 'A'; other3 = 'Y';
| ^~~~~~
| toher3
combo.cpp:26:35: error: 'other3' was not declared in this scope; did you mean 'toher3'?
26 | other1 = 'B'; other2 = 'X'; other3 = 'A';
| ^~~~~~
| toher3
combo.cpp:30:90: error: 'other3' was not declared in this scope; did you mean 'toher3'?
30 | string query = p + other1 + p + other2 + other1 + p + other2 + other2 + p + other2 + other3;
| ^~~~~~
| toher3
combo.cpp:31:19: error: could not convert 'x' from 'int' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
31 | int x = press(x);
| ^
| |
| int
combo.cpp:40:14: error: 'other3' was not declared in this scope; did you mean 'toher3'?
40 | return p + other3;
| ^~~~~~
| toher3
combo.cpp:8:24: warning: unused variable 'toher3' [-Wunused-variable]
8 | char other1, other2, toher3;
| ^~~~~~