parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:19:2: error: 'vector' was not declared in this scope
19 | vector<int>u, v, a, b;
| ^~~~~~
parks.cpp:19:2: note: suggested alternatives:
In file included from /usr/include/c++/10/vector:67,
from parks.h:1,
from parks.cpp:1:
/usr/include/c++/10/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from parks.h:1,
from parks.cpp:1:
/usr/include/c++/10/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
parks.cpp:19:9: error: expected primary-expression before 'int'
19 | vector<int>u, v, a, b;
| ^~~
parks.cpp:22:3: error: 'u' was not declared in this scope
22 | u.push_back(ord[i-1]);
| ^
parks.cpp:23:3: error: 'v' was not declared in this scope
23 | v.push_back(ord[i]);
| ^
parks.cpp:24:3: error: 'a' was not declared in this scope
24 | a.push_back(1);
| ^
parks.cpp:25:3: error: 'b' was not declared in this scope
25 | b.push_back(y[ord[i]]-1);
| ^
parks.cpp:27:15: error: 'u' was not declared in this scope
27 | if(ok) build(u, v, a, b);
| ^
parks.cpp:27:18: error: 'v' was not declared in this scope
27 | if(ok) build(u, v, a, b);
| ^
parks.cpp:27:21: error: 'a' was not declared in this scope
27 | if(ok) build(u, v, a, b);
| ^
parks.cpp:27:24: error: 'b' was not declared in this scope
27 | if(ok) build(u, v, a, b);
| ^