island.cpp: In function 'void solve(int, int)':
island.cpp:6:5: error: 'vector' was not declared in this scope
6 | vector<int>z;
| ^~~~~~
island.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include "iostream"
+++ |+#include <vector>
3 | using namespace std;
island.cpp:6:12: error: expected primary-expression before 'int'
6 | vector<int>z;
| ^~~
island.cpp:7:24: error: expected primary-expression before '>' token
7 | vector<pair<int,int>>ed;
| ^~
island.cpp:7:26: error: 'ed' was not declared in this scope
7 | vector<pair<int,int>>ed;
| ^~
island.cpp:21:9: error: 'z' was not declared in this scope
21 | z.push_back(y);
| ^
island.cpp:40:9: error: 'z' was not declared in this scope
40 | z={};
| ^