记录详情

Compile Error

/in/foo.cc: In function 'void MakeMinLen(int*)':
/in/foo.cc:48:9: error: reference to 'next' is ambiguous
    then=next[then];
         ^~~~
/in/foo.cc:13:20: note: candidates are: int next [500050]
 int point[N],to[M],next[M],val[M];
                    ^~~~
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 InitGraph()':
/in/foo.cc:61:3: error: reference to 'next' is ambiguous
   next[i]=point[xu[i].v];
   ^~~~
/in/foo.cc:13:20: note: candidates are: int next [500050]
 int point[N],to[M],next[M],val[M];
                    ^~~~
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:70:3: error: reference to 'next' is ambiguous
   next[i]=point[xu[i].u];
   ^~~~
/in/foo.cc:13:20: note: candidates are: int next [500050]
 int point[N],to[M],next[M],val[M];
                    ^~~~
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
     ^~~~

信息

递交者
类型
递交
题目
生产 production
语言
C++
递交时间
2017-10-19 10:42:51
评测时间
2017-10-19 10:42:52
评测机
分数
0
总耗时
180ms
峰值内存
15.25 MiB