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_18729879_26115.cpp: In function 'int cmp(const int&, const int&)':
0_0_18729879_26115.cpp:17:10: error: reference to 'hash' is ambiguous
   return hash[a] < hash[b] || (hash[a] == hash[b] && a < b);
          ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp:17:20: error: reference to 'hash' is ambiguous
   return hash[a] < hash[b] || (hash[a] == hash[b] && a < b);
                    ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp:17:32: error: reference to 'hash' is ambiguous
   return hash[a] < hash[b] || (hash[a] == hash[b] && a < b);
                                ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp:17:43: error: reference to 'hash' is ambiguous
   return hash[a] < hash[b] || (hash[a] == hash[b] && a < b);
                                           ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp: In function 'int possible(int)':
0_0_18729879_26115.cpp:24:5: error: reference to 'rank' is ambiguous
     rank[i] = i;
     ^
0_0_18729879_26115.cpp:14:5: note: candidates are: int rank [40010]
 int rank[maxn];
     ^
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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_18729879_26115.cpp:25:5: error: reference to 'hash' is ambiguous
     hash[i] = H[i] - H[i+L]*xp[L];
     ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp:27:8: error: reference to 'rank' is ambiguous
   sort(rank, rank+n-L+1, cmp);
        ^
0_0_18729879_26115.cpp:14:5: note: candidates are: int rank [40010]
 int rank[maxn];
     ^
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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_18729879_26115.cpp:27:14: error: reference to 'rank' is ambiguous
   sort(rank, rank+n-L+1, cmp);
              ^
0_0_18729879_26115.cpp:14:5: note: candidates are: int rank [40010]
 int rank[maxn];
     ^
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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_18729879_26115.cpp:29:18: error: reference to 'hash' is ambiguous
     if(i == 0 || hash[rank[i]] != hash[rank[i-1]]) c = 0;
                  ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^
0_0_18729879_26115.cpp:29:23: error: reference to 'rank' is ambiguous
     if(i == 0 || hash[rank[i]] != hash[rank[i-1]]) c = 0;
                       ^
0_0_18729879_26115.cpp:14:5: note: candidates are: int rank [40010]
 int rank[maxn];
     ^
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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_18729879_26115.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_18729879_26115.cpp:29:35: error: reference to 'hash' is ambiguous
     if(i == 0 || hash[rank[i]] != hash[rank[i-1]]) c = 0;
                                   ^
0_0_18729879_26115.cpp:13:20: note: candidates are: long long unsigned int hash [40010]
 unsigned long long hash[maxn];
                    ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
                 from GCC4.9.2/x86_64-w64-mingw32/includ


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-08 18:07:49, Gzip enabled