Borderou de evaluare (job #1209000)

Utilizator test9cosmin Macovei test9 Data 16 iulie 2014 21:40:04
Problema Jap Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void inithash()’: user.cpp:35:9: error: reference to ‘hash’ is ambiguous hash[i] -> next = NULL; ^ user.cpp:19:6: note: candidates are: inf* hash [672331] inf *hash[Mod]; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘int insert(int)’: user.cpp:42:10: error: reference to ‘hash’ is ambiguous it = hash[p % Mod]; ^ user.cpp:19:6: note: candidates are: inf* hash [672331] inf *hash[Mod]; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:44:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ( (it -> next != NULL) && (it -> val !=p || it -> id != k1)) ^

Ceva nu functioneaza?