/ new_bzoj /

记录详情

Compile Error

/in/foo.cc: In function 'bool spfa()':
/in/foo.cc:38:13: error: reference to 'prev' is ambiguous
             prev[e[i].to] = u;
             ^~~~
/in/foo.cc:9:23: note: candidates are: int prev [405]
 int head[N], pree[N], prev[N], t[N], vis[N], l[N], p[N];
                       ^~~~
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:217:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^~~~
/in/foo.cc: In function 'long long int Edmonds_Karp()':
/in/foo.cc:59:19: error: reference to 'prev' is ambiguous
             now = prev[now];
                   ^~~~
/in/foo.cc:9:23: note: candidates are: int prev [405]
 int head[N], pree[N], prev[N], t[N], vis[N], l[N], p[N];
                       ^~~~
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:217:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^~~~
/in/foo.cc:66:19: error: reference to 'prev' is ambiguous
             now = prev[now];
                   ^~~~
/in/foo.cc:9:23: note: candidates are: int prev [405]
 int head[N], pree[N], prev[N], t[N], vis[N], l[N], p[N];
                       ^~~~
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:217:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^~~~

信息

递交者
类型
递交
题目
数字配对
语言
C++
递交时间
2017-11-15 18:34:31
评测时间
2017-11-15 18:34:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes