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_15841701_18175.cpp: In function 'int cmp(const void*, const void*)':
0_0_15841701_18175.cpp:13:15: error: reference to 'hash' is ambiguous
     return !((hash[*(int*)a]<hash[*(int*)b])||(hash[*(int*)a]==hash[*(int*)b]&&*(int*)a<*(int*)b));
               ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp:13:30: error: reference to 'hash' is ambiguous
     return !((hash[*(int*)a]<hash[*(int*)b])||(hash[*(int*)a]==hash[*(int*)b]&&*(int*)a<*(int*)b));
                              ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp:13:48: error: reference to 'hash' is ambiguous
     return !((hash[*(int*)a]<hash[*(int*)b])||(hash[*(int*)a]==hash[*(int*)b]&&*(int*)a<*(int*)b));
                                                ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp:13:64: error: reference to 'hash' is ambiguous
     return !((hash[*(int*)a]<hash[*(int*)b])||(hash[*(int*)a]==hash[*(int*)b]&&*(int*)a<*(int*)b));
                                                                ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp: In function 'bool judge(int)':
0_0_15841701_18175.cpp:19:9: error: reference to 'rank' is ambiguous
         rank[i]=i;
         ^
0_0_15841701_18175.cpp:9:5: note: candidates are: int rank [40005]
 int rank[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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_15841701_18175.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_15841701_18175.cpp:20:9: error: reference to 'hash' is ambiguous
         hash[i]=H[i]-H[i+l]*power[l];
         ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp:22:11: error: reference to 'rank' is ambiguous
     qsort(rank,n-l+1,sizeof(rank[0]),cmp);
           ^
0_0_15841701_18175.cpp:9:5: note: candidates are: int rank [40005]
 int rank[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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_15841701_18175.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_15841701_18175.cpp:22:29: error: reference to 'rank' is ambiguous
     qsort(rank,n-l+1,sizeof(rank[0]),cmp);
                             ^
0_0_15841701_18175.cpp:9:5: note: candidates are: int rank [40005]
 int rank[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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_15841701_18175.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_15841701_18175.cpp:25:12: error: reference to 'hash' is ambiguous
         if(hash[rank[i]]!=hash[rank[i-1]])
            ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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_15841701_18175.cpp:3:
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_15841701_18175.cpp:25:17: error: reference to 'rank' is ambiguous
         if(hash[rank[i]]!=hash[rank[i-1]])
                 ^
0_0_15841701_18175.cpp:9:5: note: candidates are: int rank [40005]
 int rank[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++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_15841701_18175.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/type_traits:1340:12: note:                 template<class> struct std::rank
     struct rank
            ^
0_0_15841701_18175.cpp:25:27: error: reference to 'hash' is ambiguous
         if(hash[rank[i]]!=hash[rank[i-1]])
                           ^
0_0_15841701_18175.cpp:10:4: note: candidates are: ll hash [40005]
 ll hash[N],H[N],power[N];
    ^
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,
  


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-05 19:10:07, Gzip enabled