0_0_16024085_21535.cpp: In function 'void solve()':
0_0_16024085_21535.cpp:197:46: error: reference to 'hash' is ambiguous
if ( !opp[i].idx ) opp[i].x1 = opp[i].x2 = hash ( opp[i].x1 ) ;
^
0_0_16024085_21535.cpp:100:5: note: candidates are: int hash(int, int, int)
int hash ( int x , int l = 1 , int r = cnt ) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16024085_21535.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_16024085_21535.cpp:199:16: error: reference to 'hash' is ambiguous
opp[i].x1 = hash ( opp[i].x1 - 1 ) + 1 ;
^
0_0_16024085_21535.cpp:100:5: note: candidates are: int hash(int, int, int)
int hash ( int x , int l = 1 , int r = cnt ) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16024085_21535.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
0_0_16024085_21535.cpp:200:16: error: reference to 'hash' is ambiguous
opp[i].x2 = hash ( opp[i].x2 ) ;
^
0_0_16024085_21535.cpp:100:5: note: candidates are: int hash(int, int, int)
int hash ( int x , int l = 1 , int r = cnt ) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:3068:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16024085_21535.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
|