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_16204090_26309.cpp:12:16: error: 'D' was not declared in this scope
 int minimum[N][D];
                ^
0_0_16204090_26309.cpp: In function 'void build_sa(int)':
0_0_16204090_26309.cpp:23:2: error: 'sort' is not a member of 'std'
  std::sort(order + 1, order + n + 1, cmp);
  ^
0_0_16204090_26309.cpp:24:2: error: reference to 'rank' is ambiguous
  rank[order[1]] = 1;
  ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:27:3: error: reference to 'rank' is ambiguous
   rank[order[i]] = rank[order[i - 1]] + (element[order[i - 1]] != element[order[i]]);
   ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:27:20: error: reference to 'rank' is ambiguous
   rank[order[i]] = rank[order[i - 1]] + (element[order[i - 1]] != element[order[i]]);
                    ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:28:6: error: reference to 'rank' is ambiguous
   sa[rank[order[i]]] = order[i];
      ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:32:15: error: reference to 'rank' is ambiguous
    rank1[i] = rank[i];
               ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:33:33: error: reference to 'rank' is ambiguous
    rank2[i] = i + length <= n ? rank[i + length] : 0;
                                 ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:55:3: error: reference to 'rank' is ambiguous
   rank[sa[1]] = 1;
   ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_16204090_26309.cpp:57:4: error: reference to 'rank' is ambiguous
    rank[sa[i]] = rank[sa[i - 1]] + (rank1[sa[i - 1]] != rank1[sa[i]] || rank2[sa[i - 1]] != rank2[sa[i]]);
    ^
0_0_16204090_26309.cpp:11:15: note: candidates are: int rank [100010]
 int order[N], rank[N], rank1[N], rank2[N], sa[N], temp_sa[N], height[N], bucket[N], temp_height[N];
               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:57:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64,
                 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_16204090_26309.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 te


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-06 03:14:40, Gzip enabled