Borderou de evaluare (job #1072102)

Utilizator blasterzMircea Dima blasterz Data 3 ianuarie 2014 22:58:39
Problema PScPld Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int Found(int)’: user.cpp:47:9: error: reference to ‘hash’ is ambiguous if (hash(j - L - 1, j + L, j - L - 1, h) == hash(j + L + 1, j - L, n - (j + L), rh)) ^ user.cpp:33:12: note: candidates are: int hash(int, int, int, int*) inline int hash(int j, int i, int dv, int h[]) { ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:47:49: error: reference to ‘hash’ is ambiguous if (hash(j - L - 1, j + L, j - L - 1, h) == hash(j + L + 1, j - L, n - (j + L), rh)) ^ user.cpp:33:12: note: candidates are: int hash(int, int, int, int*) inline int hash(int j, int i, int dv, int h[]) { ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘int Found2(int)’: user.cpp:56:9: error: reference to ‘hash’ is ambiguous if (hash(j - L, j + L, j - L, h) == hash(j + L + 1, j - L + 1, n - (j + L), rh)) ^ user.cpp:33:12: note: candidates are: int hash(int, int, int, int*) inline int hash(int j, int i, int dv, int h[]) { ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:56:41: error: reference to ‘hash’ is ambiguous if (hash(j - L, j + L, j - L, h) == hash(j + L + 1, j - L + 1, n - (j + L), rh)) ^

Ceva nu functioneaza?