Borderou de evaluare (job #982569)

Utilizator smaraldaSmaranda Dinu smaralda Data 9 august 2013 14:37:36
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:17:13: error: reference to ‘hash’ is ambiguous hash[rest].push_back(x); ^ user.cpp:6:14: note: candidates are: std::vector<int> hash [666013] vector <int> hash[MOD]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:19:20: error: reference to ‘hash’ is ambiguous for(it=hash[rest].begin(); it!=hash[rest].end(); it++) ^ user.cpp:6:14: note: candidates are: std::vector<int> hash [666013] vector <int> hash[MOD]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:19:44: error: reference to ‘hash’ is ambiguous for(it=hash[rest].begin(); it!=hash[rest].end(); it++) ^ user.cpp:6:14: note: candidates are: std::vector<int> hash [666013] vector <int> hash[MOD]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:21:21: error: reference to ‘hash’ is ambiguous hash[rest].erase(it); ^ user.cpp:6:14: note: candidates are: std::vector<int> hash [666013] vector <int> hash[MOD]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0, from /usr/local/include/c++/4.8.0/vector:65, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:28:20: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?