Problem | combo |
---|---|
User | chenweilian |
Submission Time | 2023-03-18 09:22:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
combo.cpp:63:1: error: ‘M’ does not name a type
63 | M = 4;
| ^
combo.cpp:64:10: error: ‘M’ was not declared in this scope
64 | char LET[M];
| ^
combo.cpp: In function ‘int guess_one(const string&)’:
combo.cpp:67:23: error: ‘LET’ was not declared in this scope
67 | int len = press(s + LET[0] + s + LET[1]);
| ^~~
combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:75:11: error: ‘M’ was not declared in this scope
75 | int idx[M];
| ^
combo.cpp:76:15: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
76 | REP(i, M) { idx[i] = i; }
| ^~~
| index
combo.cpp:82:10: error: ‘LET’ was not declared in this scope
82 | s += LET[id];
| ^~~
combo.cpp:83:10: error: ‘idx’ was not declared in this scope; did you mean ‘id’?
83 | swap(idx[id], idx[M-1]);