Village.cpp:3:12: error: 'vector' does not name a type
3 | using vi = vector<int>;
| ^~~~~~
Village.cpp:11:1: error: 'vi' does not name a type; did you mean 'void'?
11 | vi graf[MAXN];
| ^~
| void
Village.cpp: In function 'void dfs1(int, int)':
Village.cpp:18:18: error: 'graf' was not declared in this scope
18 | for (int s : graf[v]) {
| ^~~~
Village.cpp: In function 'pii dfs(int, int)':
Village.cpp:26:18: error: 'graf' was not declared in this scope
26 | for (int s : graf[v]) {
| ^~~~
Village.cpp: In function 'int main()':
Village.cpp:58:9: error: 'graf' was not declared in this scope
58 | graf[a].push_back(b);
| ^~~~
Village.cpp:63:13: error: 'graf' was not declared in this scope
63 | if (graf[i].size() == 1) v = 1;
| ^~~~
Village.cpp:69:9: error: 'vector' was not declared in this scope
69 | vector<int> trojka = {v, graf[v][0]};
| ^~~~~~
Village.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
Village.cpp:69:16: error: expected primary-expression before 'int'
69 | vector<int> trojka = {v, graf[v][0]};
| ^~~
Village.cpp:70:22: error: 'graf' was not declared in this scope
70 | for (int s : graf[graf[v][0]]) {
| ^~~~
Village.cpp:72:17: error: 'trojka' was not declared in this scope
72 | trojka.push_back(s);
| ^~~~~~
Village.cpp:77:17: error: 'trojka' was not declared in this scope
77 | choice1[trojka[0]] = trojka[1];
| ^~~~~~