combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:11:16: error: assigning to an array from an initializer list
11 | ch = {"B","X","Y"};
| ~~~^~~~~~~~~~~~~~~
combo.cpp:15:16: error: assigning to an array from an initializer list
15 | ch = {"A","X","Y"};
| ~~~^~~~~~~~~~~~~~~
combo.cpp:20:12: error: assigning to an array from an initializer list
20 | ch = {"A","B","Y"};
| ~~~^~~~~~~~~~~~~~~
combo.cpp:24:12: error: assigning to an array from an initializer list
24 | ch = {"A","B","X"};
| ~~~^~~~~~~~~~~~~~~
combo.cpp:34:14: error: 'c' was not declared in this scope
34 | res+=c[response-last];
| ^
combo.cpp:39:32: error: 'c' was not declared in this scope; did you mean 'ch'?
39 | if(press(query)==last)res+=c[2];
| ^
| ch
combo.cpp:40:41: error: 'c' was not declared in this scope; did you mean 'ch'?
40 | else if(press(res+ch[0])==last)res+=c[1];
| ^
| ch
combo.cpp:41:15: error: 'c' was not declared in this scope; did you mean 'ch'?
41 | else res+=c[0];
| ^
| ch