island.cpp: In function 'void solve(int, int)':
island.cpp:5:10: error: 'vector' is not a member of 'std'
5 | std::vector <int> order(n);
| ^~~~~~
island.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include "island.h"
+++ |+#include <vector>
2 |
island.cpp:5:18: error: expected primary-expression before 'int'
5 | std::vector <int> order(n);
| ^~~
island.cpp:6:10: error: 'vector' is not a member of 'std'
6 | std::vector <bool> foundParent(n + 1, false);
| ^~~~~~
island.cpp:6:10: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
island.cpp:6:18: error: expected primary-expression before 'bool'
6 | std::vector <bool> foundParent(n + 1, false);
| ^~~~
island.cpp:9:9: error: 'order' was not declared in this scope
9 | order[i] = ask(1, i);
| ^~~~~
island.cpp:9:20: error: 'ask' was not declared in this scope
9 | order[i] = ask(1, i);
| ^~~
island.cpp:12:5: error: 'foundParent' was not declared in this scope
12 | foundParent[1] = true;
| ^~~~~~~~~~~
island.cpp:15:26: error: 'order' was not declared in this scope
15 | if (!foundParent[order[i]])
| ^~~~~
island.cpp:19:28: error: 'ask' was not declared in this scope
19 | int curr = ask(order[i], idx);
| ^~~