Main.cpp: In function 'int find(int)':
Main.cpp:7:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
7 | if(u = parent[u]) return u;
| ~~^~~~~~~~~~~
Main.cpp: In function 'void join(int, int)':
Main.cpp:12:25: error: 'b' was not declared in this scope
12 | u = find(u); v = find(b);
| ^
Main.cpp:13:6: error: 'a' was not declared in this scope
13 | if(a == b) return;
| ^
Main.cpp:14:15: error: 'a' was not declared in this scope
14 | parent[b] = a;
| ^
Main.cpp: In function 'int main()':
Main.cpp:19:34: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
19 | for(int i = 1; i < n + 1; i++) par[i] = i;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/10/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/10/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from Main.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~