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_16003712_12106.cpp:64:9: error: stray '\' in program
         GetNext(n);/\next[i]表示前缀等于后缀的最大长度
         ^
0_0_16003712_12106.cpp:64:9: error: stray '\350' in program
0_0_16003712_12106.cpp:64:9: error: stray '\241' in program
0_0_16003712_12106.cpp:64:9: error: stray '\250' in program
0_0_16003712_12106.cpp:64:9: error: stray '\347' in program
0_0_16003712_12106.cpp:64:9: error: stray '\244' in program
0_0_16003712_12106.cpp:64:9: error: stray '\272' in program
0_0_16003712_12106.cpp:64:9: error: stray '\345' in program
0_0_16003712_12106.cpp:64:9: error: stray '\211' in program
0_0_16003712_12106.cpp:64:9: error: stray '\215' in program
0_0_16003712_12106.cpp:64:9: error: stray '\347' in program
0_0_16003712_12106.cpp:64:9: error: stray '\274' in program
0_0_16003712_12106.cpp:64:9: error: stray '\200' in program
0_0_16003712_12106.cpp:64:9: error: stray '\347' in program
0_0_16003712_12106.cpp:64:9: error: stray '\255' in program
0_0_16003712_12106.cpp:64:9: error: stray '\211' in program
0_0_16003712_12106.cpp:64:9: error: stray '\344' in program
0_0_16003712_12106.cpp:64:9: error: stray '\272' in program
0_0_16003712_12106.cpp:64:9: error: stray '\216' in program
0_0_16003712_12106.cpp:64:9: error: stray '\345' in program
0_0_16003712_12106.cpp:64:9: error: stray '\220' in program
0_0_16003712_12106.cpp:64:9: error: stray '\216' in program
0_0_16003712_12106.cpp:64:9: error: stray '\347' in program
0_0_16003712_12106.cpp:64:9: error: stray '\274' in program
0_0_16003712_12106.cpp:64:9: error: stray '\200' in program
0_0_16003712_12106.cpp:64:9: error: stray '\347' in program
0_0_16003712_12106.cpp:64:9: error: stray '\232' in program
0_0_16003712_12106.cpp:64:9: error: stray '\204' in program
0_0_16003712_12106.cpp:64:9: error: stray '\346' in program
0_0_16003712_12106.cpp:64:9: error: stray '\234' in program
0_0_16003712_12106.cpp:64:9: error: stray '\200' in program
0_0_16003712_12106.cpp:64:9: error: stray '\345' in program
0_0_16003712_12106.cpp:64:9: error: stray '\244' in program
0_0_16003712_12106.cpp:64:9: error: stray '\247' in program
0_0_16003712_12106.cpp:64:9: error: stray '\351' in program
0_0_16003712_12106.cpp:64:9: error: stray '\225' in program
0_0_16003712_12106.cpp:64:9: error: stray '\277' in program
0_0_16003712_12106.cpp:64:9: error: stray '\345' in program
0_0_16003712_12106.cpp:64:9: error: stray '\272' in program
0_0_16003712_12106.cpp:64:9: error: stray '\246' in program
0_0_16003712_12106.cpp: In function 'void GetNext(int)':
0_0_16003712_12106.cpp:36:5: error: reference to 'next' is ambiguous
     next[0] = -1;
     ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp:43:18: error: reference to 'next' is ambiguous
             i++; next[i] = j;
                  ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp:47:17: error: reference to 'next' is ambiguous
             j = next[j];
                 ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp: In function 'int main()':
0_0_16003712_12106.cpp:61:16: error: reference to 'next' is ambiguous
         memset(next, 0, sizeof(next));
                ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp:61:32: error: reference to 'next' is ambiguous
         memset(next, 0, sizeof(next));
                                ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp:64:20: error: expected primary-expression before '/' token
         GetNext(n);/\next[i]表示前缀等于后缀的最大长度
                    ^
0_0_16003712_12106.cpp:64:22: error: reference to 'next' is ambiguous
         GetNext(n);/\next[i]表示前缀等于后缀的最大长度
                      ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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++/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_16003712_12106.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_16003712_12106.cpp:64:27: error: 'i' was not declared in this scope
         GetNext(n);/\next[i]表示前缀等于后缀的最大长度
                           ^
0_0_16003712_12106.cpp:74:27: error: reference to 'next' is ambiguous
             ans[i] = (ans[next[i]] + 1) % mod;
                           ^
0_0_16003712_12106.cpp:29:5: note: candidates are: int next [1000002]
 int next[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-mi


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-23 08:43:39, Gzip enabled