/in/foo.cc: In function 'void insect(int, int)':
/in/foo.cc:11:26: error: reference to 'next' is ambiguous
void insect(int x,int y){next[cnt]=point[x];point[x]=cnt;v[cnt]=y;cnt++;}
^~~~
/in/foo.cc:5:19: note: candidates are: int next [200003]
int point[100003],next[200003],v[200003],cnt=0,N,l[100003],r[100003],pre[100003],con[100003];
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc: In function 'void dfs(int)':
/in/foo.cc:16:29: error: reference to 'next' is ambiguous
for (i=point[x];i!=-1;i=next[i])
^~~~
/in/foo.cc:5:19: note: candidates are: int next [200003]
int point[100003],next[200003],v[200003],cnt=0,N,l[100003],r[100003],pre[100003],con[100003];
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc: In function 'void work(int)':
/in/foo.cc:30:15: warning: unused variable 's' [-Wunused-variable]
long long s=0; int num=1000000008;
^
/in/foo.cc:30:24: warning: unused variable 'num' [-Wunused-variable]
long long s=0; int num=1000000008;
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:97:12: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^~~~
/in/foo.cc:5:19: note: candidates are: int next [200003]
int point[100003],next[200003],v[200003],cnt=0,N,l[100003],r[100003],pre[100003],con[100003];
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc:97:27: error: reference to 'next' is ambiguous
memset(next,-1,sizeof(next));
^~~~
/in/foo.cc:5:19: note: candidates are: int next [200003]
int point[100003],next[200003],v[200003],cnt=0,N,l[100003],r[100003],pre[100003],con[100003];
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/algorithm:61,
from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
/in/foo.cc:114:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
printf("%d\n%I64d\n",dp[l[1]][0][1],f[l[1]][0][1]);
^
/in/foo.cc:117:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
printf("%d\n%I64d\n",1+dp[l[1]][1][0],f[l[1]][1][0]);
^
/in/foo.cc:119:77: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
printf("%d\n%I64d\n",1+dp[l[1]][1][0],(f[l[1]][0][1]+f[l[1]][1][0])%mo);
^