Borderou de evaluare (job #719679)

Utilizator Marius_mFMI-M2 Marius Melemciuc Marius_m Data 21 martie 2012 22:50:46
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘int Hash<T>::h(std::string)’: user.cpp:69: error: there are no arguments to ‘srand’ that depend on a template parameter, so a declaration of ‘srand’ must be available user.cpp:69: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) user.cpp:70: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:70: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:70: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp: In member function ‘int Hash<T>::h(std::string) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’: user.cpp:92: instantiated from ‘bool Hash<T>::insert(const T&) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]’ user.cpp:167: instantiated from here user.cpp:69: error: ‘srand’ was not declared in this scope user.cpp:70: error: ‘rand’ was not declared in this scope

Ceva nu functioneaza?