parks.cpp: In function 'int get(int)':
parks.cpp:8:13: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
8 | return (par[x]==x)?x:par[x]=get(par[x]);
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/13/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/13/algorithm:73,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51,
from parks.cpp:2:
/usr/include/c++/13/pstl/execution_defs.h:111:45: note: '__pstl::execution::v1::par' declared here
111 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
parks.cpp: In function 'bool merge(int, int)':
parks.cpp:15:5: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
15 | par[x]=y;
| ^~~
| __pstl::execution::v1::par
/usr/include/c++/13/pstl/execution_defs.h:111:45: note: '__pstl::execution::v1::par' declared here
111 | _GLIBCXX17_INLINE constexpr parallel_policy par{};
| ^~~
parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:52:13: error: 'cn' was not declared in this scope; did you mean 'n'?
52 | cn++;
| ^~
| n
parks.cpp:55:8: error: 'cn' was not declared in this scope; did you mean 'n'?
55 | if(cn>1)
| ^~
| n