Borderou de evaluare (job #1327678)

Utilizator thewildnathNathan Wildenberg thewildnath Data 26 ianuarie 2015 23:24:53
Problema Banana Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool find(punct)’: user.cpp:40:23: error: reference to ‘hash’ is ambiguous for (int i = 0; i < hash[list].size (); ++i) ^ user.cpp:29:16: note: candidates are: std::vector<punct> hash [666013] vector <punct> 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:41:9: error: reference to ‘hash’ is ambiguous if (hash[list][i].x == a.x && hash[list][i].y == a.y) ^ user.cpp:29:16: note: candidates are: std::vector<punct> hash [666013] vector <punct> 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:41:35: error: reference to ‘hash’ is ambiguous if (hash[list][i].x == a.x && hash[list][i].y == a.y) ^ user.cpp:29:16: note: candidates are: std::vector<punct> hash [666013] vector <punct> 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash

Ceva nu functioneaza?