split.cpp: In function 'void dfs(int, int)':
split.cpp:44:5: error: reference to 'size' is ambiguous
44 | size[v]=1;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:53:13: error: reference to 'size' is ambiguous
53 | size[v]+=size[a[v][i]];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:53:22: error: reference to 'size' is ambiguous
53 | size[v]+=size[a[v][i]];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:56:34: error: reference to 'size' is ambiguous
56 | removablesSum += size[a[v][i]];
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:60:9: error: reference to 'size' is ambiguous
60 | if (size[v] >= b[0].first) {
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:62:14: error: reference to 'size' is ambiguous
62 | if (n - size[v] + removablesSum < b[0].first)
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~
split.cpp:65:14: error: reference to 'size' is ambiguous
65 | if (n - size[v] + removablesSum < b[1].first)
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from split.h:5,
from split.cpp:9:
/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:25:17: note: 'int size [1000110]'
25 | int mark[maxn], size[maxn];
| ^~~~