Borderou de evaluare (job #1572457)

Utilizator cernat.catallinFMI Cernat Catalin Stefan cernat.catallin Data 18 ianuarie 2016 22:16:24
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void add(int)’: user.cpp:18:5: error: reference to ‘hash’ is ambiguous hash[ hashing(x) ].push_back(x); ^ user.cpp:7:22: note: candidates are: std::vector<std::list<int> > hash vector < list<int> > hash; ^ 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:3: /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 del(int)’: user.cpp:22:14: error: reference to ‘hash’ is ambiguous for(it = hash[ hashing(x) ].begin(); it != hash[ hashing(x) ].end(); ++it) ^ user.cpp:7:22: note: candidates are: std::vector<std::list<int> > hash vector < list<int> > hash; ^ 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:22:48: error: reference to ‘hash’ is ambiguous for(it = hash[ hashing(x) ].begin(); it != hash[ hashing(x) ].end(); ++it) ^ user.cpp:7:22: note: candidates are: std::vector<std::list<int> > hash vector < list<int> > hash; ^ 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:24:13: error: reference to ‘hash’ is ambiguous hash[ hashing(x) ].erase(it); ^ user.cpp:7:22: note: candidates are: std::vector<std::list<int> > hash vector < list<int> > hash; ^ 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:3: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^

Ceva nu functioneaza?