记录详情

Compile Error

/in/foo.cc: In function 'void link(int, int)':
/in/foo.cc:13:17: error: reference to 'next' is ambiguous
     to[++tot]=v,next[tot]=last[u],last[u]=tot;
                 ^~~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
 int n,tot,to[M],next[M],last[N],f[N][2];
                 ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/7/algorithm:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208: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, int)':
/in/foo.cc:5:40: error: reference to 'next' is ambiguous
 #define efo(i,v) for(int i=last[v];i;i=next[i])
                                        ^
/in/foo.cc:33:5: note: in expansion of macro 'efo'
     efo(i,v)
     ^~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
 int n,tot,to[M],next[M],last[N],f[N][2];
                 ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/7/algorithm:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:5:40: error: reference to 'next' is ambiguous
 #define efo(i,v) for(int i=last[v];i;i=next[i])
                                        ^
/in/foo.cc:42:5: note: in expansion of macro 'efo'
     efo(i,v)
     ^~~
/in/foo.cc:9:17: note: candidates are: int next [200020]
 int n,tot,to[M],next[M],last[N],f[N][2];
                 ^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/7/algorithm:61,
                 from /in/foo.cc:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~

信息

递交者
类型
递交
题目
最大匹配
题目数据
下载
语言
C++
递交时间
2017-09-20 17:59:27
评测时间
2017-09-20 17:59:27
评测机
分数
0
总耗时
166ms
峰值内存
15.445 MiB