0_0_39539273_13336.cpp: In function 'void dfs_1(int)':
0_0_39539273_13336.cpp:82:30: error: reference to 'size' is ambiguous
82 | dep[u]=dep[fa[u]]+1; size[u]=1; son[u]=0;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:65,
from 0_0_39539273_13336.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:88:21: error: reference to 'size' is ambiguous
88 | if (size[v]>size[son[u]]) son[u]=v;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:88:29: error: reference to 'size' is ambiguous
88 | if (size[v]>size[son[u]]) son[u]=v;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:89:17: error: reference to 'size' is ambiguous
89 | size[u]+=size[v];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:89:26: error: reference to 'size' is ambiguous
89 | size[u]+=size[v];
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp: In function 'void update(int, int)':
0_0_39539273_13336.cpp:107:43: error: reference to 'size' is ambiguous
107 | LL sum=Ts.query(w[u],w[u]+size[u]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp: In function 'long long int query(int, int)':
0_0_39539273_13336.cpp:122:61: error: reference to 'size' is ambiguous
122 | LL sum=Ts.query(w[son[x]],w[son[x]]+size[son[x]]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:126:53: error: reference to 'size' is ambiguous
126 | LL sum=Ts.query(w[top[x]],w[top[x]]+size[top[x]]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:137:53: error: reference to 'size' is ambiguous
137 | LL sum=Ts.query(w[son[y]],w[son[y]]+size[son[y]]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp:142:63: error: reference to 'size' is ambiguous
142 | LL sum=Ts.query(1,n,1,n,1)-Ts.query(w[x],w[x]+size[x]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
274 | size(const _Tp (&)[_Nm]) noexcept
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
264 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
0_0_39539273_13336.cpp:32:5: note: 'int size [100008]'
32 | int size[V],fa[V],w[V],top[V],rk[V],dep[V],son[V];
| ^~~~
0_0_39539273_13336.cpp: In function 'int main()':
0_0_39539273_13336.cpp:170:59: error: reference to 'size' is ambiguous
170 | LL sum=Ts.query(w[1],w[1]+size[1]-1,1,n,1);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++
|