Borderou de evaluare (job #1234263)

Utilizator smaraldaSmaranda Dinu smaralda Data 26 septembrie 2014 23:04:53
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 del(int)’: user.cpp:14:14: error: reference to ‘hash’ is ambiguous for(it = hash[ln].begin(); it != hash[ln].end(); ++ it) ^ user.cpp:8:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <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:14:38: error: reference to ‘hash’ is ambiguous for(it = hash[ln].begin(); it != hash[ln].end(); ++ it) ^ user.cpp:8:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <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 ins(int)’: user.cpp:24:14: error: reference to ‘hash’ is ambiguous for(it = hash[ln].begin(); it != hash[ln].end(); ++ it) ^ user.cpp:8:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <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:24:38: error: reference to ‘hash’ is ambiguous for(it = hash[ln].begin(); it != hash[ln].end(); ++ it) ^ user.cpp:8:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <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; ^

Ceva nu functioneaza?