Borderou de evaluare (job #734025)

Utilizator yamahaFMI Maria Stoica yamaha Data 13 aprilie 2012 13:46:28
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:47: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:47: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) user.cpp:48: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:49: warning: no return statement in function returning non-void user.cpp: In function ‘int main()’: user.cpp:160: error: ‘srand’ was not declared in this scope user.cpp:165: warning: unused variable ‘index’ user.cpp:165: warning: unused variable ‘w’ user.cpp: In member function ‘bool Hash<T>::random() [with T = int]’: user.cpp:163: instantiated from here user.cpp:47: error: ‘rand’ was not declared in this scope

Ceva nu functioneaza?