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;
^
|