/ WHOJ /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1068 [NOIP2009 提高组] 最优贸易
题目数据
下载
语言
C++
递交时间
2022-02-19 19:37:52
评测时间
2022-02-19 19:37:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes