Problem cave
User TheAccomplice
Submission Time 2024-04-06 10:00:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cave.cpp: In function ‘void exploreCave(int)’:
cave.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> switches(N);
| ^~~~~~
cave.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> switches(N);
| ^~~
cave.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> doors(N);
| ^~~
cave.cpp:12:9: error: ‘switches’ was not declared in this scope
12 | switches[i] = 0; // Assume switch is up initially
| ^~~~~~~~
cave.cpp:21:9: error: ‘switches’ was not declared in this scope
21 | switches[i] = 1; // Try each switch in down position
| ^~~~~~~~
cave.cpp:24:13: error: ‘doors’ was not declared in this scope
24 | doors[i] = closedDoor; // If a door closes, the switch is connected to it
| ^~~~~
cave.cpp:30:12: error: