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_30205736_15812.cpp: In function 'void init()':
0_0_30205736_15812.cpp:41:13: error: reference to 'next' is ambiguous
             next[i][j] = now[j];
             ^
0_0_30205736_15812.cpp:35:5: note: candidates are: int next [100010][30]
 int next[maxn][30], suf[maxn][30], now[30], num[30],use[30], l[30], r[30];
     ^
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++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30205736_15812.cpp:1:
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_30205736_15812.cpp: In function 'int check(int, int, int)':
0_0_30205736_15812.cpp:52:14: error: reference to 'next' is ambiguous
     int id = next[cnt][c];
              ^
0_0_30205736_15812.cpp:35:5: note: candidates are: int next [100010][30]
 int next[maxn][30], suf[maxn][30], now[30], num[30],use[30], l[30], r[30];
     ^
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++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30205736_15812.cpp:1:
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_30205736_15812.cpp: In function 'int main()':
0_0_30205736_15812.cpp:75:27: error: reference to 'next' is ambiguous
         clr_0(suf); clr_0(next);clr_0(use);
                           ^
0_0_30205736_15812.cpp:20:25: note: in definition of macro 'clr_0'
 #define clr_0(a) memset(a, 0, sizeof(a))
                         ^
0_0_30205736_15812.cpp:35:5: note: candidates are: int next [100010][30]
 int next[maxn][30], suf[maxn][30], now[30], num[30],use[30], l[30], r[30];
     ^
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++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30205736_15812.cpp:1:
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_30205736_15812.cpp:75:27: error: reference to 'next' is ambiguous
         clr_0(suf); clr_0(next);clr_0(use);
                           ^
0_0_30205736_15812.cpp:20:38: note: in definition of macro 'clr_0'
 #define clr_0(a) memset(a, 0, sizeof(a))
                                      ^
0_0_30205736_15812.cpp:35:5: note: candidates are: int next [100010][30]
 int next[maxn][30], suf[maxn][30], now[30], num[30],use[30], l[30], r[30];
     ^
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++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30205736_15812.cpp:1:
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_30205736_15812.cpp:83:27: error: reference to 'next' is ambiguous
                     cnt = next[cnt][j];
                           ^
0_0_30205736_15812.cpp:35:5: note: candidates are: int next [100010][30]
 int next[maxn][30], suf[maxn][30], now[30], num[30],use[30], l[30], r[30];
     ^
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++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_30205736_15812.cpp:1:
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
     ^


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-07-01 18:00:53, Gzip enabled