Borderou de evaluare (job #937699)

Utilizator vladm97Matei Vlad vladm97 Data 10 aprilie 2013 21:19:40
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In constructor ‘hash_int::hash_int(char*, char*)’: user.cpp:42: error: class ‘hash_int’ does not have any field named ‘hash’ user.cpp:42: error: no matching function for call to ‘hash<int>::hash()’ user.cpp:24: note: candidates are: hash<T>::hash(char*, char*) [with T = int] user.cpp:12: note: hash<int>::hash(const hash<int>&) user.cpp: In constructor ‘hash_float::hash_float(char*, char*)’: user.cpp:54: error: class ‘hash_float’ does not have any field named ‘hash’ user.cpp:54: error: no matching function for call to ‘hash<float>::hash()’ user.cpp:24: note: candidates are: hash<T>::hash(char*, char*) [with T = float] user.cpp:12: note: hash<float>::hash(const hash<float>&) user.cpp: In constructor ‘hash_char::hash_char(char*, char*)’: user.cpp:65: error: class ‘hash_char’ does not have any field named ‘hash’ user.cpp:65: error: no matching function for call to ‘hash<char>::hash()’ user.cpp:24: note: candidates are: hash<T>::hash(char*, char*) [with T = char] user.cpp:12: note: hash<char>::hash(const hash<char>&) user.cpp: In constructor ‘hash_string::hash_string(char*, char*)’: user.cpp:76: error: class ‘hash_string’ does not have any field named ‘hash’ user.cpp:76: error: no matching function for call to ‘hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::hash()’ user.cpp:24: note: candidates are: hash<T>::hash(char*, char*) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >] user.cpp:12: note: hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >::hash(const hash<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&) user.cpp: In function ‘int main()’: user.cpp:87: warning: deprecated conversion from string constant to ‘char*’ user.cpp:87: warning: deprecated conversion from string constant to ‘char*’ user.cpp: In member function ‘virtual int hash_float::h1(float)’: user.cpp:104: warning: unused variable ‘result’ user.cpp: In member function ‘virtual int hash_float::h2(float)’: user.cpp:111: warning: unused variable ‘result’

Ceva nu functioneaza?