split.cpp:30:21: error: reference to 'size' is ambiguous
30 | vector <int> vertex[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:32:9: error: reference to 'size' is ambiguous
32 | int col[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:33:22: error: reference to 'size' is ambiguous
33 | bool used[magic_max][size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:34:12: error: reference to 'size' is ambiguous
34 | int intime[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:39:26: error: reference to 'size' is ambiguous
39 | vector <int> vertex_tree[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:40:9: error: reference to 'size' is ambiguous
40 | int par[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:41:11: error: reference to 'size' is ambiguous
41 | int depth[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp:42:13: error: reference to 'size' is ambiguous
42 | int subsize[size];
| ^~~~
In file included from /usr/include/c++/10/string:54,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from split.cpp:3:
/usr/include/c++/10/bits/range_access.h:254:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
254 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
/usr/include/c++/10/bits/range_access.h:245:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
245 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
split.cpp:24:11: note: 'const int size'
24 | const int size = 100 * 1000;
| ^~~~
split.cpp: In function 'void tree_dfs(int, int)':
split.cpp:45:5: error: 'subsize' was not declared in this scope; did you mean 'size'?
45 | subsize[v] = 1;
| ^~~~~~~
| size
split.cpp:46:18: error: 'vertex_tree' was not declared in this scope
46 | for (int e : vertex_tree[v]) {
| ^~~~~~~~~~~
split.cpp:48:6: error: 'depth' was not declared in this scope
48 | depth[e] = depth[v] + 1;
| ^~~~~
split.cpp: In function 'int getpar(int)':
split.cpp:56:9: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
56 | if (par[v] != v) {
| ^~~
| __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 split.cpp:4:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
split.cpp:60:12: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
60 | return par[v];
| ^~~
| __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 split.cpp:4:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
split.cpp: In function 'void build_random_span(int)':
split.cpp:65:6: error: 'vertex_tree' was not declared in this scope
65 | vertex_tree[i].clear();
| ^~~~~~~~~~~
split.cpp:66:2: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
66 | 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 split.cpp:4:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
split.cpp:79:6: error: 'vertex_tree' was not declared in this scope
79 | vertex_tree[edges[i].fs].pb(edges[i].sc);
| ^~~~~~~~~~~
split.cpp:83:2: error: 'par' was not declared in this scope; did you mean '__pstl::execution::v1::par'?
83 | par[u] = v;
| ^~~
| __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 split.cpp:4:
/usr/include/c++/10/pstl/execution_defs.h:111:27: note: '__pstl::execution::v1::par' declared here
111 | constexpr parallel_policy par{};
| ^~~
split.cpp: In function 'int find_centroid(int)':
split.cpp:88:5: error: 'depth' was not declared in this scope
88 | depth[0] = 0;
| ^~~~~
split.cpp:93:13: error: 'subsize' was not declared in this scope; did you mean 'size'?
93 | if (subsize[i] >= (n + 1) / 2 && depth[i] > depth[cen]) {
| ^~~~~~~
| size
split.cpp: In function 'void recolor(int, int, int, int, unsigned int, std::vector<int>&)':
split.cpp:119:9: error: 'used' was not declared in this scope
119 | used[0][i] = false;
| ^~~~
split.cpp:120:19: error: 'col' was not declared in this scope; did you mean 'cosl'?
120 | if ((mask >> col[i]) & 1) {
| ^~~
| cosl
split.cpp:126:5: error: 'used' was not declared in this scope
126 | used[0][stp] = true;
| ^~~~
split.cpp:138:22: error: 'vertex' was not declared in this scope
138 | for (int e : vertex[v]) {
| ^~~~~~
split.cpp:139:42: error: 'col' was not declared in this scope; did you mean 'cosl'?
139 | if (!used[0][e] && ((mask >> col[e]) & 1)) {
| ^~~
| cosl
split.cpp: In function 'void run_parallel_bfs(int, const std::vector<int>&)':
split.cpp:149:9: error: 'col' was not declared in this scope; did you mean 'cosl'?
149 | col[i] = -1;
| ^~~
| cosl
split.cpp:156:13: error: 'used' was not declared in this scope
156 | used[i][j] = false;
| ^~~~
split.cpp:162:9: error: 'used' was not declared in this scope
162 | used[i][nodes[i]] = true;
| ^~~~
split.cpp:174:21: error: 'col' was not declared in this scope; did you mean 'cosl'?
174 | if (col[cur] != -1) {
| ^~~
| cosl
split.cpp:184:13: error: 'col' was not declared in this scope; did you mean 'cosl'?
184 | col[cur] = i;
| ^~~
| cosl
split.cpp:188:26: error: 'vertex' was not declared in this scope
188 | for (int e : vertex[cur]) {
| ^~~~~~
split.cpp:189:22: error: 'used' was not declared in this scope
189 | if (!used[i][e] && col[e] == -1) {
| ^~~~
split.cpp:203:6: error: 'col' was not declared in this scope; did you mean 'cosl'?
203 | col[cur] = magic - 1;
| ^~~
| cosl
split.cpp:204:19: error: 'vertex' was not declared in this scope
204 | for (int e : vertex[cur]) {
| ^~~~~~
split.cpp: In function 'void build_colors_graph(int, int)':
split.cpp:225:22: error: 'vertex' was not declared in this scope
225 | for (int e : vertex[i]) {
| ^~~~~~
split.cpp:226:17: error: 'col' was not declared in this scope; did you mean 'cosl'?
226 | way[col[i]] |= (1u << col[e]);
| ^~~
| cosl
split.cpp: In function 'std::vector<int> try_random_bfs(int, int, int, int, int)':
split.cpp:291:24: error: 'vertex' was not declared in this scope
291 | random_shuffle(vertex[i].begin(), vertex[i].end());
| ^~~~~~
split.cpp:316:16: error: 'col' was not declared in this scope; did you mean 'cosl'?
316 | colcnt[col[i]]++;
| ^~~
| cosl
split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:366:9: error: 'vertex' was not declared in this scope
366 | vertex[i].clear();
| ^~~~~~
split.cpp:370:9: error: 'vertex' was not declared in this scope
370 | vertex[p[i]].pb(q[i]);
| ^~~~~~