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_20014625_14310.cpp: In function 'int dinic(int, int, int)':
0_0_20014625_14310.cpp:26:17: error: reference to 'prev' is ambiguous
         memset( prev, -1, sizeof( prev ) );
                 ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:26:35: error: reference to 'prev' is ambiguous
         memset( prev, -1, sizeof( prev ) );
                                   ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:28:9: error: reference to 'prev' is ambiguous
         prev[q[qb++] = s] = -2;
         ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:29:27: error: reference to 'prev' is ambiguous
         while( qb > qf && prev[t] == -1 )
                           ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:31:21: error: reference to 'prev' is ambiguous
                 if( prev[v = adj[u][i]] == -1 && cap[u][v] )
                     ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:32:21: error: reference to 'prev' is ambiguous
                     prev[q[qb++] = v] = u;
                     ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:35:13: error: reference to 'prev' is ambiguous
         if( prev[t] == -1 ) break;
             ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:38:55: error: reference to 'prev' is ambiguous
         for( int z = 0; z < n; z++ ) if( cap[z][t] && prev[z] != -1 )
                                                       ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:41:33: error: reference to 'prev' is ambiguous
             for( int v = z, u = prev[v]; u >= 0; v = u, u = prev[v] )
                                 ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:41:61: error: reference to 'prev' is ambiguous
             for( int v = z, u = prev[v]; u >= 0; v = u, u = prev[v] )
                                                             ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:47:33: error: reference to 'prev' is ambiguous
             for( int v = z, u = prev[v]; u >= 0; v = u, u = prev[v] )
                                 ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
     prev(_BidirectionalIterator __x, typename
     ^
0_0_20014625_14310.cpp:47:61: error: reference to 'prev' is ambiguous
             for( int v = z, u = prev[v]; u >= 0; v = u, u = prev[v] )
                                                             ^
0_0_20014625_14310.cpp:17:12: note: candidates are: int prev [802]
 int q[NN], prev[NN];
            ^
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++/algorithm:61,
                 from 0_0_20014625_14310.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: n


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-17 05:49:07, Gzip enabled