Borderou de evaluare (job #1016773)

Utilizator assa98Andrei Stanciu assa98 Data 26 octombrie 2013 18:52:44
Problema Unicat Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void extinde2(int)’: user.cpp:77:9: error: reference to ‘hash’ is ambiguous hash(sir2,i+d[i],d[i]); ^ user.cpp:68:6: note: candidates are: void hash(char*, int, int) void hash(char sir[MAX_N],int poz,int l) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /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 ‘void extinde(int)’: user.cpp:86:9: error: reference to ‘hash’ is ambiguous hash(sir,i+d[i],d[i]); ^ user.cpp:68:6: note: candidates are: void hash(char*, int, int) void hash(char sir[MAX_N],int poz,int l) { ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /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 ‘void get_sir(char*, char*)’: user.cpp:93:24: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] memset(sir,0,sizeof(sir)); ^

Ceva nu functioneaza?