factories.cpp:16:1: error: expected initializer before 'll'
16 | ll depth_dist[MAXN], ans[MAXN];
| ^~
factories.cpp: In function 'void decompose(int, bool)':
factories.cpp:42:3: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
42 | par[centro] = -1;
| ^~~
| __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 factories.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
factories.cpp:44:3: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
44 | par[centro] = node;
| ^~~
| __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 factories.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
factories.cpp:47:14: error: 'parent' was not declared in this scope
47 | if (u.f != parent && !marked[u.f])
| ^~~~~~
factories.cpp: In function 'void dfs(int, int)':
factories.cpp:57:3: error: 'depth_dist' was not declared in this scope
57 | depth_dist[u.f] = depth_dist[node] + u.s;
| ^~~~~~~~~~
factories.cpp: In function 'int dist(int, int)':
factories.cpp:90:9: error: 'depth_dist' was not declared in this scope
90 | return depth_dist[a] + depth_dist[b] - 2 * depth_dist[lca(a, b)];
| ^~~~~~~~~~
factories.cpp: In function 'void Init(int, std::vector<int>, std::vector<int>, std::vector<int>)':
factories.cpp:103:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
103 | ans[i] = 1e15;
| ^~~
| abs
factories.cpp: In function 'void add(int)':
factories.cpp:109:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
109 | ans[now] = min(ans[now], dist(now, node));
| ^~~
| abs
factories.cpp:110:9: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
110 | now = par[now];
| ^~~
| __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 factories.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
factories.cpp: In function 'void remove(int)':
factories.cpp:116:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
116 | ans[node] = 1e15;
| ^~~
| abs
factories.cpp:117:10: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
117 | node = par[node];
| ^~~
| __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 factories.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
factories.cpp: In function 'll qry(int)':
factories.cpp:125:36: error: 'ans' was not declared in this scope; did you mean 'abs'?
125 | res = min(res, dist(now, node) + ans[now]);
| ^~~
| abs
factories.cpp:126:9: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
126 | now = par[now];
| ^~~
| __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 factories.cpp:1:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~