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_22627297_23955.cpp: In function 'int Directed_MST(int)':
0_0_22627297_23955.cpp:64:16: error: reference to 'hash' is ambiguous
         memset(hash,-1,sizeof(hash));
                ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:64:31: error: reference to 'hash' is ambiguous
         memset(hash,-1,sizeof(hash));
                               ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:71:30: error: reference to 'hash' is ambiguous
             while(vis[v]!=i&&hash[v]==-1&&v!=root)
                              ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:76:25: error: reference to 'hash' is ambiguous
             if(v!=root&&hash[v]==-1)      //若存在环,将环缩点
                         ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:79:21: error: reference to 'hash' is ambiguous
                     hash[u]=cntnode;
                     ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:80:17: error: reference to 'hash' is ambiguous
                 hash[v]=cntnode++;
                 ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:85:16: error: reference to 'hash' is ambiguous
             if(hash[i]==-1)
                ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:86:17: error: reference to 'hash' is ambiguous
                 hash[i]=cntnode++;
                 ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:90:23: error: reference to 'hash' is ambiguous
             edge[i].u=hash[edge[i].u];
                       ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:91:23: error: reference to 'hash' is ambiguous
             edge[i].v=hash[edge[i].v];
                       ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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_22627297_23955.cpp:96:14: error: reference to 'hash' is ambiguous
         root=hash[root];
              ^
0_0_22627297_23955.cpp:26:12: note: candidates are: int hash [1005]
 int pre[N],hash[N],vis[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 0_0_22627297_23955.cpp:2:
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-12-28 10:57:36, Gzip enabled