joitter2.cpp:9:1: error: expected initializer before 'll'
9 | ll sz[100002];
| ^~
joitter2.cpp: In function 'int find(int)':
joitter2.cpp:16:11: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
16 | if(x==par[x]) return x;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from joitter2.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: '__pstl::execution::v1::par' declared here
114 | constexpr parallel_policy par{};
| ^~~
joitter2.cpp:17:12: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
17 | return par[x] = find(par[x]);
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from joitter2.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: '__pstl::execution::v1::par' declared here
114 | constexpr parallel_policy par{};
| ^~~
joitter2.cpp: In function 'void init()':
joitter2.cpp:22:9: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
22 | par[i] = i;
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from joitter2.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: '__pstl::execution::v1::par' declared here
114 | constexpr parallel_policy par{};
| ^~~
joitter2.cpp:23:9: error: 'sz' was not declared in this scope
23 | sz[i] = 1;
| ^~
joitter2.cpp: In function 'int main()':
joitter2.cpp:43:20: error: 'sz' was not declared in this scope
43 | ans += sz[x] * sz[y]; /// x->y Ѵ.
| ^~
joitter2.cpp:50:20: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
50 | if(par[nxt] != y) st.insert(nxt);
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from joitter2.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: '__pstl::execution::v1::par' declared here
114 | constexpr parallel_policy par{};
| ^~~
joitter2.cpp:60:13: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
60 | par[y] = x; /// union-find ۾(̻ ִ ...)
| ^~~
| __pstl::execution::v1::par
In file included from /usr/include/c++/9/pstl/glue_algorithm_defs.h:15,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from joitter2.cpp:1:
/usr/include/c++/9/pstl/execution_defs.h:114:27: note: '__pstl::execution::v1::par' declared here
114 | constexpr parallel_policy par{};
| ^~~
joitter2.cpp:87:20: error: 'sz' was not declared in this scope
87 | ans += sz[y];
| ^~
joitter2.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
joitter2.cpp:33:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~