Borderou de evaluare (job #730095)

Utilizator yamahaFMI Maria Stoica yamaha Data 3 aprilie 2012 23:33:29
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘bool Hash<T>::random()’: user.cpp:45: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:45: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) user.cpp:46: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:47: warning: no return statement in function returning non-void user.cpp: In member function ‘int Hash<T>::h(char*)’: user.cpp:68: error: there are no arguments to ‘strlen’ that depend on a template parameter, so a declaration of ‘strlen’ must be available user.cpp: In function ‘int main()’: user.cpp:161: warning: unused variable ‘index’ user.cpp:161: warning: unused variable ‘w’ user.cpp: In member function ‘bool Hash<T>::random() [with T = int]’: user.cpp:159: instantiated from here user.cpp:45: error: ‘rand’ was not declared in this scope

Ceva nu functioneaza?