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_39064116_27025.cpp: In function 'int main()':
0_0_39064116_27025.cpp:80:15: error: reference to 'hash' is ambiguous
   80 |         eid=0;hash.clear();
      |               ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_bvector.h:61,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/vector:67,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:63,
                 from 0_0_39064116_27025.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
0_0_39064116_27025.cpp:31:12: note:                 'std::map<long long int, int> hash'
   31 | map<LL,int>hash;
      |            ^~~~
0_0_39064116_27025.cpp:106:17: error: reference to 'hash' is ambiguous
  106 |             if(!hash.count(pval[h]))hash[pval[h]]=u;
      |                 ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
0_0_39064116_27025.cpp:31:12: note:                 'std::map<long long int, int> hash'
   31 | map<LL,int>hash;
      |            ^~~~
0_0_39064116_27025.cpp:106:37: error: reference to 'hash' is ambiguous
  106 |             if(!hash.count(pval[h]))hash[pval[h]]=u;
      |                                     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
0_0_39064116_27025.cpp:31:12: note:                 'std::map<long long int, int> hash'
   31 | map<LL,int>hash;
      |            ^~~~
0_0_39064116_27025.cpp:154:19: error: reference to 'hash' is ambiguous
  154 |             int k=hash[max(pval[a],pval[b])];
      |                   ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
   59 |     struct hash;
      |            ^~~~
0_0_39064116_27025.cpp:31:12: note:                 'std::map<long long int, int> hash'
   31 | map<LL,int>hash;
      |            ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 17:10:50, Gzip enabled