Main.cpp: In function 'void calcTree2Info(int)':
Main.cpp:110:5: error: reference to 'size' is ambiguous
110 | size[u]=1 ;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from Main.cpp:8:
/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()))
| ^~~~
Main.cpp:93:5: note: 'int size [200100]'
93 | int size[MAXN], ans[MAXN] ;
| ^~~~
Main.cpp:114:9: error: reference to 'size' is ambiguous
114 | size[u] += size[*it] ;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from Main.cpp:8:
/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()))
| ^~~~
Main.cpp:93:5: note: 'int size [200100]'
93 | int size[MAXN], ans[MAXN] ;
| ^~~~
Main.cpp:114:20: error: reference to 'size' is ambiguous
114 | size[u] += size[*it] ;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from Main.cpp:8:
/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()))
| ^~~~
Main.cpp:93:5: note: 'int size [200100]'
93 | int size[MAXN], ans[MAXN] ;
| ^~~~
Main.cpp:119:14: error: reference to 'size' is ambiguous
119 | ans[u] = size[u]-1 ;
| ^~~~
In file included from /usr/include/c++/10/vector:69,
from Main.cpp:8:
/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()))
| ^~~~
Main.cpp:93:5: note: 'int size [200100]'
93 | int size[MAXN], ans[MAXN] ;
| ^~~~