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_13161116_22376.cpp: In function 'void dfs(int, int, int)':
0_0_13161116_22376.cpp:34:9: error: reference to 'prev' is ambiguous
     if (prev[x][y].px+prev[x][y].py != 0)
         ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:34:23: error: reference to 'prev' is ambiguous
     if (prev[x][y].px+prev[x][y].py != 0)
                       ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:35:13: error: reference to 'prev' is ambiguous
         dfs(prev[x][y].px, prev[x][y].py, prev[x][y].pp);
             ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:35:28: error: reference to 'prev' is ambiguous
         dfs(prev[x][y].px, prev[x][y].py, prev[x][y].pp);
                            ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:35:43: error: reference to 'prev' is ambiguous
         dfs(prev[x][y].px, prev[x][y].py, prev[x][y].pp);
                                           ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:37:14: error: reference to 'prev' is ambiguous
     int px = prev[x][y].px;
              ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:38:14: error: reference to 'prev' is ambiguous
     int py = prev[x][y].py;
              ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp: In function 'void bfs()':
0_0_13161116_22376.cpp:97:21: error: reference to 'prev' is ambiguous
                     prev[next.x][next.y].px = cur.x;
                     ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:98:21: error: reference to 'prev' is ambiguous
                     prev[next.x][next.y].py = cur.y;
                     ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp:99:21: error: reference to 'prev' is ambiguous
                     prev[next.x][next.y].pp = cur.hp;
                     ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
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_13161116_22376.cpp: In function 'int main()':
0_0_13161116_22376.cpp:123:16: error: reference to 'prev' is ambiguous
         memset(prev, 0, sizeof(prev));
                ^
0_0_13161116_22376.cpp:20:2: note: candidates are: parent prev [110][110]
 }prev[maxn][maxn];
  ^
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++/deque:60,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_13161116_22376.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note:                 template<class _BidirectionalIterator> _Bidirection


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 07:39:48, Gzip enabled