/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:87:20: error: reference to 'hash' is ambiguous
         int code = hash(o);
                    ^
/in/foo.cc:29:5: note: candidates are: int hash(int)
 int hash(int x)
     ^
In file included from /usr/include/c++/4.8.2/bits/basic_string.h:3033:0,
                 from /usr/include/c++/4.8.2/string:52,
                 from /usr/include/c++/4.8.2/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8.2/bits/ios_base.h:41,
                 from /usr/include/c++/4.8.2/ios:42,
                 from /usr/include/c++/4.8.2/ostream:38,
                 from /usr/include/c++/4.8.2/iostream:39,
                 from /in/foo.cc:3:
/usr/include/c++/4.8.2/bits/functional_hash.h:58:12: note:                 template<class _Tp> struct std::hash
     struct hash;
            ^

信息

递交者
类型
递交
题目
P1859 电源插排
语言
C++
递交时间
2017-03-29 19:49:48
评测时间
2017-03-29 19:49:48
评测机
分数
0
总耗时
680ms
峰值内存
57.395 MiB