Borderou de evaluare (job #1243850)

Utilizator thewildnathNathan Wildenberg thewildnath Data 16 octombrie 2014 15:13:28
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void insert(unsigned int)’: user.cpp:20:12: error: reference to ‘hash’ is ambiguous for(it=hash[lin].begin(); it!=hash[lin].end(); ++it) ^ user.cpp:13:34: note: candidates are: std::vector<std::pair<unsigned int, int> > hash [666013] vector<pair<unsigned int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:20:35: error: reference to ‘hash’ is ambiguous for(it=hash[lin].begin(); it!=hash[lin].end(); ++it) ^ user.cpp:13:34: note: candidates are: std::vector<std::pair<unsigned int, int> > hash [666013] vector<pair<unsigned int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:33:12: error: reference to ‘hash’ is ambiguous if(it==hash[lin].end()) ^ user.cpp:13:34: note: candidates are: std::vector<std::pair<unsigned int, int> > hash [666013] vector<pair<unsigned int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:35:9: error: reference to ‘hash’ is ambiguous hash[lin].push_back(make_pair(x, 1)); ^ user.cpp:13:34: note: candidates are: std::vector<std::pair<unsigned int, int> > hash [666013] vector<pair<unsigned int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/stl_bvector.h:1134:0, from /usr/include/c++/4.8/vector:65, from user.cpp:2: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘void erase(unsigned int)’:

Ceva nu functioneaza?