0_0_38754025_13752.cpp: In function 'int main()':
0_0_38754025_13752.cpp:38:24: error: reference to 'next' is ambiguous
38 | memset(next,0,sizeof(next));
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:62,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_38754025_13752.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:38:38: error: reference to 'next' is ambiguous
38 | memset(next,0,sizeof(next));
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:45:25: error: reference to 'next' is ambiguous
45 | next[x]++;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:46:25: error: reference to 'next' is ambiguous
46 | next[y]++;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:50:40: error: reference to 'next' is ambiguous
50 | for(int j=2;j<=next[i];j++)
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:52:56: error: reference to 'next' is ambiguous
52 | cnt[j]=(cnt[j]+1LL*fac[next[i]]*inv[next[i]-j]%mod*inv[j]%mod)%mod;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
0_0_38754025_13752.cpp:52:69: error: reference to 'next' is ambiguous
52 | cnt[j]=(cnt[j]+1LL*fac[next[i]]*inv[next[i]-j]%mod*inv[j]%mod)%mod;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_38754025_13752.cpp:8:19: note: 'int next [1000010]'
8 | int inv[N],fac[N],next[N];
| ^~~~
|