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_39697667_25389.cpp: In function 'void next_find(int)':
0_0_39697667_25389.cpp:7:9: error: reference to 'next' is ambiguous
    7 |         next[0]=next[1]=0;
      |         ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:66,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
                 from .\stdc++.h:51:
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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | int next[Maxn];
      |     ^~~~
0_0_39697667_25389.cpp:7:17: error: reference to 'next' is ambiguous
    7 |         next[0]=next[1]=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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | int next[Maxn];
      |     ^~~~
0_0_39697667_25389.cpp:9:23: error: reference to 'next' is ambiguous
    9 |                 int j=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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | int next[Maxn];
      |     ^~~~
0_0_39697667_25389.cpp:10:50: error: reference to 'next' is ambiguous
   10 |                 while(j!=0&&modle[j]!=modle[i])j=next[j];//当j!=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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | int next[Maxn];
      |     ^~~~
0_0_39697667_25389.cpp:11:17: error: reference to 'next' is ambiguous
   11 |                 next[i+1]=(modle[j]==modle[i])?j+1: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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | int next[Maxn];
      |     ^~~~
0_0_39697667_25389.cpp: In function 'void solve(int, int)':
0_0_39697667_25389.cpp:19:43: error: reference to 'next' is ambiguous
   19 |                 while(s[i]!=modle[j]&&j)j=next[j];//寻找相等,以及移动位置
      |                                           ^~~~
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_39697667_25389.cpp:4:5: note:                 'int next [1007]'
    4 | 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-11-26 07:29:01, Gzip enabled