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_13265463_30910.cpp: In function 'void rotate(int, int)':
0_0_13265463_30910.cpp:15:6: error: reference to 'next' is ambiguous
  pre[next[w][k]]=f;
      ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:16:2: error: reference to 'next' is ambiguous
  next[f][!k]=next[w][k];
  ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:16:14: error: reference to 'next' is ambiguous
  next[f][!k]=next[w][k];
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:17:14: error: reference to 'next' is ambiguous
  if (pre[f]) next[pre[f]][next[pre[f]][1]==f]=w;
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:17:27: error: reference to 'next' is ambiguous
  if (pre[f]) next[pre[f]][next[pre[f]][1]==f]=w;
                           ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:19:2: error: reference to 'next' is ambiguous
  next[w][k]=f;
  ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp: In function 'void splay(int, int)':
0_0_13265463_30910.cpp:26:30: error: reference to 'next' is ambiguous
   if (pre[f]==goal) rotate(w,next[pre[w]][0]==w);
                              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:28:7: error: reference to 'next' is ambiguous
    x=(next[pre[w]][0]==w)^(next[pre[f]][0]==f);
       ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:28:28: error: reference to 'next' is ambiguous
    x=(next[pre[w]][0]==w)^(next[pre[f]][0]==f);
                            ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:30:14: error: reference to 'next' is ambiguous
     rotate(f,next[pre[f]][0]==f);
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:31:14: error: reference to 'next' is ambiguous
     rotate(w,next[pre[w]][0]==w);
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:33:14: error: reference to 'next' is ambiguous
     rotate(w,next[pre[w]][0]==w);
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
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_13265463_30910.cpp:3:
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_13265463_30910.cpp:34:14: error: reference to 'next' is ambiguous
     rotate(w,next[pre[w]][0]==w);
              ^
0_0_13265463_30910.cpp:12:5: note: candidates are: int next [100010][2]
 int next[N][2],pre[N],key[N];
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algob


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-02 00:39:03, Gzip enabled