Problem combo
User shenshiqi
Submission Time 2026-07-24 16:57:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

combo.cpp: In function ‘std::string guess_sequence(int)’:
combo.cpp:32:4: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
32 | idx++;
| ^~~
| index
combo.cpp:36:13: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
36 | if (idx == 2){
| ^~~
| index
combo.cpp:46:4: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
46 | idx++;
| ^~~
| index
combo.cpp:49:3: error: ‘idx’ was not declared in this scope; did you mean ‘index’?
49 | idx++;
| ^~~
| index