Problem | combo |
---|---|
User | chenweilian |
Submission Time | 2023-03-18 09:16:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:12: error: ‘M’ was not declared in this scope
15 | int idx[M];
| ^
combo.cpp:16:6: error: ‘i’ was not declared in this scope
16 | REP(i, M) { idx[i] = i; }
| ^
combo.cpp:16:2: error: ‘REP’ was not declared in this scope
16 | REP(i, M) { idx[i] = i; }
| ^~~
combo.cpp:22:10: error: ‘idx’ was not declared in this scope; did you mean ‘id’?
22 | swap(idx[id], idx[M-1]);
| ^~~
| id