Borderou de evaluare (job #739599)

Utilizator SimeneSimene Robert Simene Data 23 aprilie 2012 15:56:17
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:36: error: declaration of ‘class H’ user.cpp:7: error: shadows template parm ‘class H’ user.cpp:37: error: invalid use of incomplete type ‘class hash<H>’ user.cpp:9: error: declaration of ‘class hash<H>’ user.cpp:42: error: declaration of ‘class H’ user.cpp:7: error: shadows template parm ‘class H’ user.cpp:43: error: invalid use of incomplete type ‘class hash<H>’ user.cpp:9: error: declaration of ‘class hash<H>’ user.cpp:50: error: explicit specialization in non-namespace scope ‘class hash<H>’ user.cpp:51: error: invalid use of incomplete type ‘class hash<char*>’ user.cpp:9: error: declaration of ‘class hash<char*>’ user.cpp: In constructor ‘hash<H>::hash(int)’: user.cpp:25: error: there are no arguments to ‘srand’ that depend on a template parameter, so a declaration of ‘srand’ must be available user.cpp:25: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) user.cpp:26: error: there are no arguments to ‘rand’ that depend on a template parameter, so a declaration of ‘rand’ must be available user.cpp:27: error: there are no arguments to ‘srand’ that depend on a template parameter, so a declaration of ‘srand’ must be available user.cpp:28: 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 ‘void hash<H>::inserare(H)’: user.cpp:68: error: ‘v’ was not declared in this scope user.cpp:75: error: ‘v’ was not declared in this scope user.cpp: In member function ‘void hash<H>::stergere(H)’: user.cpp:82: error: ‘v’ was not declared in this scope user.cpp:84: error: ‘v’ was not declared in this scope user.cpp: In member function ‘bool hash<H>::cautare(H)’: user.cpp:95: error: ‘v’ was not declared in this scope user.cpp:97: error: ‘v’ was not declared in this scope user.cpp: In function ‘int main()’: user.cpp:124: error: ‘x’ was not declared in this scope user.cpp:126: error: ‘x’ was not declared in this scope user.cpp:127: error: ‘x’ was not declared in this scope user.cpp:114: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:116: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:117: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:121: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp: In constructor ‘hash<H>::hash(int) [with H = unsigned int]’: user.cpp:115: instantiated from here user.cpp:25: error: ‘srand’ was not declared in this scope user.cpp:115: instantiated from here user.cpp:26: error: ‘rand’ was not declared in this scope

Ceva nu functioneaza?