Problem cave
User Henries
Submission Time 2025-02-06 16:52:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:86:11: error: ‘whichSwitch’ was not declared in this scope; did you mean ‘whichswitch’?
86 | int s = whichSwitch[i]; // the switch controlling door i
| ^~~~~~~~~~~
| whichswitch
cave.cpp:87:3: error: ‘finalSwitch’ was not declared in this scope; did you mean ‘finalswitch’?
87 | finalSwitch[s] = orientation[i];
| ^~~~~~~~~~~
| finalswitch
cave.cpp:88:3: error: ‘doorOfSwitch’ was not declared in this scope; did you mean ‘doorofswitch’?
88 | doorOfSwitch[s] = i;
| ^~~~~~~~~~~~
| doorofswitch