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_17410239_20170.cpp: In function 'void Solve()':
0_0_17410239_20170.cpp:111:16: error: reference to 'hash' is ambiguous
         memset(hash, false, sizeof(hash));
                ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:111:36: error: reference to 'hash' is ambiguous
         memset(hash, false, sizeof(hash));
                                    ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:115:17: error: reference to 'hash' is ambiguous
                 hash[j] = true, f[j][0] = Find(data[i][j].a), f[j][1] = Find(data[i][j].b);
                 ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:120:16: error: reference to 'hash' is ambiguous
             if(hash[j]){
                ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:125:16: error: reference to 'hash' is ambiguous
         memset(hash, false, sizeof(hash));
                ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:125:36: error: reference to 'hash' is ambiguous
         memset(hash, false, sizeof(hash));
                                    ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:131:21: error: reference to 'hash' is ambiguous
                 if(!hash[f[t][0]])
                     ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:132:45: error: reference to 'hash' is ambiguous
                     belong[f[t][0]] = ++ n, hash[f[t][0]] = true;
                                             ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:133:21: error: reference to 'hash' is ambiguous
                 if(!hash[f[t][1]])
                     ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
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_17410239_20170.cpp:134:45: error: reference to 'hash' is ambiguous
                     belong[f[t][1]] = ++ n, hash[f[t][1]] = true;
                                             ^
0_0_17410239_20170.cpp:96:6: note: candidates are: bool hash [1004]
 bool hash[MAXM];
      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:1181:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65,
                 from 0_0_17410239_20170.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^


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-10-03 01:22:59, Gzip enabled