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

Compile Error

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