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

Compile Error

combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:16:2: error: ‘M’ was not declared in this scope
16 | M = 4;
| ^
combo.cpp:18:6: error: ‘i’ was not declared in this scope
18 | REP(i, M) { idx[i] = i; }
| ^
combo.cpp:18:2: error: ‘REP’ was not declared in this scope
18 | REP(i, M) { idx[i] = i; }
| ^~~
combo.cpp:24:10: error: ‘idx’ was not declared in this scope; did you mean ‘id’?
24 | swap(idx[id], idx[M-1]);
| ^~~
| id