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_39413366_12436.cpp: In function 'void get_nextval(char*)':
0_0_39413366_12436.cpp:13:5: error: reference to 'next' is ambiguous
   13 |     next[0] = -1;
      |     ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:62,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39413366_12436.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
0_0_39413366_12436.cpp:7:5: note:                 'int next [100010]'
    7 | int next[MAXN];
      |     ^~~~
0_0_39413366_12436.cpp:20:13: error: reference to 'next' is ambiguous
   20 |             next[j] = i;
      |             ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
0_0_39413366_12436.cpp:7:5: note:                 'int next [100010]'
    7 | int next[MAXN];
      |     ^~~~
0_0_39413366_12436.cpp:23:17: error: reference to 'next' is ambiguous
   23 |             i = next[i];
      |                 ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
0_0_39413366_12436.cpp:7:5: note:                 'int next [100010]'
    7 | int next[MAXN];
      |     ^~~~
0_0_39413366_12436.cpp: In function 'int main()':
0_0_39413366_12436.cpp:33:14: error: reference to 'next' is ambiguous
   33 |     temp=len-next[len];//字符串中一个循环的长度
      |              ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
0_0_39413366_12436.cpp:7:5: note:                 'int next [100010]'
    7 | int next[MAXN];
      |     ^~~~
0_0_39413366_12436.cpp:34:12: error: reference to 'next' is ambiguous
   34 |         if(next[len]==0)
      |            ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
  232 |     next(_InputIterator __x, typename
      |     ^~~~
0_0_39413366_12436.cpp:7:5: note:                 'int next [100010]'
    7 | int next[MAXN];
      |     ^~~~


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-09-21 13:34:35, Gzip enabled