F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_16532495_14935.cpp: In member function 'void costflow::clear()':
0_0_16532495_14935.cpp:22:6: error: reference to 'next' is ambiguous
   cc(next);
      ^
0_0_16532495_14935.cpp:6:22: note: in definition of macro 'cc'
 #define cc(x) memset(x,0,sizeof(x))
                      ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp:22:6: error: reference to 'next' is ambiguous
   cc(next);
      ^
0_0_16532495_14935.cpp:6:33: note: in definition of macro 'cc'
 #define cc(x) memset(x,0,sizeof(x))
                                 ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp: In member function 'int costflow::getin(int, int, int, int)':
0_0_16532495_14935.cpp:34:27: error: reference to 'next' is ambiguous
   if (first[c]>0) last[c]=next[last[c]]=tt;else first[c]=last[c]=tt;
                           ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp:36:27: error: reference to 'next' is ambiguous
   if (first[d]>0) last[d]=next[last[d]]=tt;else first[d]=last[d]=tt;
                           ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp: In member function 'std::pair<int, int> costflow::spfa(int, int)':
0_0_16532495_14935.cpp:49:31: error: reference to 'next' is ambiguous
    while ((k)&&(vol[k]==0)) k=next[k];
                               ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp:63:7: error: reference to 'next' is ambiguous
     k=next[k];
       ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^
0_0_16532495_14935.cpp:64:32: error: reference to 'next' is ambiguous
     while ((k)&&(vol[k]==0)) k=next[k];
                                ^
0_0_16532495_14935.cpp:9:58: note: candidates are: int next [200000]
 int first[maxn],last[maxn],dis[maxn],des[maxm],len[maxm],next[maxm],vol[maxm],cop[maxm],back[maxn],backlen[maxn],opp[maxm];
                                                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16532495_14935.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 08:57:32, Gzip enabled