Borderou de evaluare (job #734028)

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

Ceva nu functioneaza?