Borderou de evaluare (job #982570)

Utilizator smaraldaSmaranda Dinu smaralda Data 9 august 2013 14:39:25
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:18:20: error: reference to ‘hash’ is ambiguous for(it=hash[rest].begin(); it!=hash[rest].end() && !flag; 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:18:44: error: reference to ‘hash’ is ambiguous for(it=hash[rest].begin(); it!=hash[rest].end() && !flag; 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:22:17: 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:25: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:25:44: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?