Problem WA1
User bribritt
Submission Time 2025-03-21 13:36:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

WA1.cpp: In function ‘int main()’:
WA1.cpp:18:10: error: reference to ‘hash’ is ambiguous
18 | hsh ^= hash(x, y);
| ^~~~
In file included from /usr/include/c++/9/string_view:43,
from /usr/include/c++/9/bits/basic_string.h:48,
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/ostream:38,
from /usr/include/c++/9/iostream:39,
from WA1.cpp:1:
/usr/include/c++/9/bits/functional_hash.h:58:12: note: candidates are: ‘template<class _Tp> struct std::hash’
58 | struct hash;
| ^~~~
WA1.cpp:6:11: note: ‘long long int hash(long long int, long long int)’
6 | long long hash(int x, int y) {
| ^~~~<