Problem combo
User chenweilian
Submission Time 2023-03-18 09:19:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp: In function ‘int guess_one(const string&)’:
combo.cpp:7:13: error: ‘press’ was not declared in this scope
7 | int len = press(s + LET[0] + s + LET[1]);
| ^~~~~
combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:15:2: error: ‘M’ was not declared in this scope
15 | M = 4;
| ^
combo.cpp:17:6: error: ‘i’ was not declared in this scope
17 | REP(i, M) { idx[i] = i; }
| ^
combo.cpp:17:2: error: ‘REP’ was not declared in this scope
17 | REP(i, M) { idx[i] = i; }
| ^~~
combo.cpp:23:10: error: ‘idx’ was not declared in this scope; did you mean ‘id’?
23 | swap(idx[id], idx[M-1]);
| ^~~
| id