parks.cpp:6:21: error: 'int construct_roads' redeclared as different kind of entity
6 | int construct_roads(vector<int>x, vector<int>y) {
| ^~~~~~
In file included from parks.cpp:1:
parks.h:3:5: note: previous declaration 'int construct_roads(std::vector<int>, std::vector<int>)'
3 | int construct_roads(std::vector<int> x, std::vector<int> y);
| ^~~~~~~~~~~~~~~
parks.cpp:6:21: error: 'vector' was not declared in this scope
6 | int construct_roads(vector<int>x, vector<int>y) {
| ^~~~~~
parks.cpp:6:21: 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:6:28: error: expected primary-expression before 'int'
6 | int construct_roads(vector<int>x, vector<int>y) {
| ^~~
parks.cpp:6:35: error: 'vector' was not declared in this scope
6 | int construct_roads(vector<int>x, vector<int>y) {
| ^~~~~~
parks.cpp:6:35: 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:6:42: error: expected primary-expression before 'int'
6 | int construct_roads(vector<int>x, vector<int>y) {
| ^~~