Borderou de evaluare (job #1391582)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 18 martie 2015 02:04:15
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:20:12: error: reference to ‘hash’ is ambiguous sizen = hash[pos].size(); ^ user.cpp:7:14: note: candidates are: std::vector<int> hash [1000023] vector <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:8: error: reference to ‘hash’ is ambiguous if(hash[pos][i] == x) f = 1; ^ user.cpp:7:14: note: candidates are: std::vector<int> hash [1000023] vector <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:26:15: error: reference to ‘hash’ is ambiguous if(f == 0) hash[pos].push_back(x); ^ user.cpp:7:14: note: candidates are: std::vector<int> hash [1000023] vector <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:31:12: error: reference to ‘hash’ is ambiguous sizen = hash[pos].size(); ^ user.cpp:7:14: note: candidates are: std::vector<int> hash [1000023] vector <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:34:8: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?