foo.cc: In function 'void dfs(int, int, int)':
foo.cc:24:12: error: reference to 'hash' is ambiguous
24 | int ha=hash(now,money,sta);
| ^~~~
In file included from /usr/include/c++/9/bits/basic_string.h:6719,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from foo.cc:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
foo.cc:17:5: note: 'int hash(int, int, int)'
17 | int hash(int a,int b,int c)
| ^~~~
foo.cc:23:11: warning: unused variable 'k' [-Wunused-variable]
23 | int j,k;
| ^
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务