Problem combo
User RandomPerson
Submission Time 2023-11-16 14:12:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp:1:21: error: ‘string’ does not name a type
1 | int guess_one(const string& s) {
| ^~~~~~
combo.cpp: In function ‘int guess_one(const int&)’:
combo.cpp:2:21: error: ‘LET’ was not declared in this scope
2 | int len = press(s + LET[0] + s + LET[1]);
| ^~~
combo.cpp:2:11: error: ‘press’ was not declared in this scope
2 | int len = press(s + LET[0] + s + LET[1]);
| ^~~~~
combo.cpp:3:22: error: request for member ‘length’ in ‘s’, which is of non-class type ‘const int’
3 | int idx = 2*(len < s.length()+1);
| ^~~~~~
combo.cpp:5:17: error: request for member ‘length’ in ‘s’, which is of non-class type ‘const int’
5 | idx += (len < s.length()+1);
| ^~~~~~
combo.cpp: At global scope:
combo.cpp:8:1: error: ‘string’ does not name a type
8 | string guess_sequence(int N) {
| ^~~~~~