cave.cpp: In function 'void exploreCave(int)':
cave.cpp:9:5: error: 'vector' was not declared in this scope
9 | vector<int>x(N,1),s(N,0),c(N,0);
| ^~~~~~
cave.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
5 | #include "cave.h"
+++ |+#include <vector>
6 |
cave.cpp:9:12: error: expected primary-expression before 'int'
9 | vector<int>x(N,1),s(N,0),c(N,0);
| ^~~
cave.cpp:21:23: error: 's' was not declared in this scope
21 | if(s[i]==0){
| ^
cave.cpp:22:24: error: 'x' was not declared in this scope
22 | x[i]=1-x[i];
| ^
cave.cpp:25:38: error: 'x' was not declared in this scope
25 | int k=tryCombination(x);
| ^
cave.cpp:27:24: error: 's' was not declared in this scope
27 | if(s[i]==0){
| ^
cave.cpp:41:13: error: 'x' was not declared in this scope
41 | x[ans]=0;
| ^
cave.cpp:43:13: error: 's' was not declared in this scope
43 | s[ans]=1;
| ^
cave.cpp:44:13: error: 'c' was not declared in this scope
44 | c[ans]=h;
| ^
cave.cpp:73:19: error: 'x' was not declared in this scope
73 | return answer(x, c);
| ^
cave.cpp:73:22: error: 'c' was not declared in this scope
73 | return answer(x, c);
| ^