Problem combo
User sin1145141919810tdt
Submission Time 2026-01-28 17:48:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:22:5: error: ‘press’ was not declared in this scope
22 | if(press("AB"))
| ^~~~~
combo.cpp:32:18: error: ‘r’ was not declared in this scope
32 | switch(press(S+r(a)+r(a)+S+r(a)+r(r(a))+S+r(a)+r(r(r(a)))+S+r(r(a))))
| ^
combo.cpp:32:10: error: ‘press’ was not declared in this scope
32 | switch(press(S+r(a)+r(a)+S+r(a)+r(r(a))+S+r(a)+r(r(r(a)))+S+r(r(a))))
| ^~~~~
combo.cpp:34:15: error: call to non-‘constexpr’ function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
34 | case S.size(): S.push_back(r(r(r(a)))); break;
| ~~~~~~^