combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:25: error: invalid types 'int(std::string) {aka int(std::__cxx11::basic_string<char>)}[const char [2]]' for array subscript
7 | if(press["A"] > 0) s = "A";
| ^
combo.cpp:10:25: error: invalid types 'int(std::string) {aka int(std::__cxx11::basic_string<char>)}[const char [2]]' for array subscript
10 | if(press["X"] > 0)) s = "X";
| ^
combo.cpp:10:35: error: expected primary-expression before ')' token
10 | if(press["X"] > 0)) s = "X";
| ^