popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:5:2: error: 'vector' was not declared in this scope; did you mean 'std::vector'?
5 | vector<int> parent (N, -1);
| ^~~~~~
| std::vector
In file included from /usr/include/c++/10/vector:67,
from /usr/include/c++/10/queue:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from popa.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector' declared here
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
popa.cpp:5:9: error: expected primary-expression before 'int'
5 | vector<int> parent (N, -1);
| ^~~
popa.cpp:15:9: error: 'parent' was not declared in this scope
15 | while(parent[v] != -1 && query(i, i, i, v)) {
| ^~~~~~
popa.cpp:19:7: error: 'parent' was not declared in this scope
19 | if (parent[v] == -1) {
| ^~~~~~
popa.cpp:39:9: error: 'parent' was not declared in this scope
39 | while (parent[root] != -1) root = parent[root];
| ^~~~~~