input/code.cpp: In function 'int main()':
input/code.cpp:28:10: error: reference to 'hash' is ambiguous
v[i] = hash(v[i]);
^
input/code.cpp:18:5: note: candidates are: int hash(int)
int hash (int n) {
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/4.8/bits/stdc++.h:52,
from input/code.cpp:1:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;...