0_0_13692595_10778.cpp: In function 'int main()':
0_0_13692595_10778.cpp:30:3: error: reference to 'hash' is ambiguous
hash.clear();
^
0_0_13692595_10778.cpp:7:17: note: candidates are: std::map<std::basic_string<char>, int> hash
map<string,int> hash;
^
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_13692595_10778.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_13692595_10778.cpp:39:4: error: reference to 'hash' is ambiguous
hash[table[i].name] = i;
^
0_0_13692595_10778.cpp:7:17: note: candidates are: std::map<std::basic_string<char>, int> hash
map<string,int> hash;
^
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_13692595_10778.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_13692595_10778.cpp:66:13: error: reference to 'hash' is ambiguous
int id = hash[string(name)];
^
0_0_13692595_10778.cpp:7:17: note: candidates are: std::map<std::basic_string<char>, int> hash
map<string,int> hash;
^
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_13692595_10778.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;
^
|