/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'void Init()':
/in/foo.cc:16:9: error: reference to 'next' is ambiguous
  memset(next, -1, sizeof(next));
         ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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:16:26: error: reference to 'next' is ambiguous
  memset(next, -1, sizeof(next));
                          ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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 Addedge(int, int, int, int)':
/in/foo.cc:21:17: error: reference to 'next' is ambiguous
  adj[++tot]=v;  next[tot]=head[u];  dis[tot]=dist;  head[u]=tot;  num[tot]=order;
                 ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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:22:17: error: reference to 'next' is ambiguous
  adj[++tot]=u;  next[tot]=head[v];  dis[tot]=0;     head[v]=tot;
                 ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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 'bool BFS()':
/in/foo.cc:40:37: error: reference to 'next' is ambiguous
   for(int tmp=head[u]; tmp!=-1; tmp=next[tmp])
                                     ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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 'int DFS(int, int)':
/in/foo.cc:52:36: error: reference to 'next' is ambiguous
  for(int tmp=head[u]; tmp!=-1; tmp=next[tmp])
                                    ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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()':
/in/foo.cc:71:37: error: reference to 'next' is ambiguous
   for(int tmp=head[i]; tmp!=-1; tmp=next[tmp])
                                     ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/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:78:37: error: reference to 'next' is ambiguous
   for(int tmp=head[i]; tmp!=-1; tmp=next[tmp])
                                     ^~~~
/in/foo.cc:8:17: note: candidates are: int next [1200010]
 int head[MAXN], next[MAXN], adj[MAXN], dis[MAXN], tot=-1;
                 ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/bits/char_traits.h:39,
                 from /usr/include/c++/6/ios:40,
                 from /usr/include/c++/6/istream:38,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
 

信息

递交者
类型
递交
题目
Mincut 最小割
语言
C++
递交时间
2018-04-26 17:17:05
评测时间
2018-04-26 17:17:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes