foo.cc: In function 'll cal(int)':
foo.cc:30:3: error: reference to 'size' is ambiguous
30 | size[x]=1;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:32:17: error: reference to 'size' is ambiguous
32 | now=mul(now,C(size[son[x][0]]+size[son[x][1]],size[son[x][0]]));
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:32:33: error: reference to 'size' is ambiguous
32 | now=mul(now,C(size[son[x][0]]+size[son[x][1]],size[son[x][0]]));
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:32:49: error: reference to 'size' is ambiguous
32 | now=mul(now,C(size[son[x][0]]+size[son[x][1]],size[son[x][0]]));
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:33:3: error: reference to 'size' is ambiguous
33 | size[x]+=size[son[x][0]]+size[son[x][1]];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:33:12: error: reference to 'size' is ambiguous
33 | size[x]+=size[son[x][0]]+size[son[x][1]];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc:33:28: error: reference to 'size' is ambiguous
33 | size[x]+=size[son[x][0]]+size[son[x][1]];
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from foo.cc:4:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
foo.cc:12:45: note: 'int size [4100]'
12 | int ans,m,i,j,x,a[N],used[N],son[N][2],root,size[N];
| ^~~~
foo.cc: In function 'bool s(int, int)':
foo.cc:28:8: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | if(ind==fac.size())return false;
| ~~~^~~~~~~~~~~~