Borderou de evaluare (job #1010326)

Utilizator Teodor94Teodor Plop Teodor94 Data 14 octombrie 2013 18:38:36
Problema Pagina Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void add(long long int)’: user.cpp:27:5: error: reference to ‘hash’ is ambiguous hash[x % MOD].push_back(x); ^ user.cpp:13:19: note: candidates are: std::vector<long long int> hash [40009] vector<long long> 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:3: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘bool found(long long int)’: user.cpp:35:15: error: reference to ‘hash’ is ambiguous for (it = hash[h1].begin(); it != hash[h1].end() && *it != x; ++it); ^ user.cpp:13:19: note: candidates are: std::vector<long long int> hash [40009] vector<long long> 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:3: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:35:39: error: reference to ‘hash’ is ambiguous for (it = hash[h1].begin(); it != hash[h1].end() && *it != x; ++it); ^ user.cpp:13:19: note: candidates are: std::vector<long long int> hash [40009] vector<long long> 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:3: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:37:19: error: reference to ‘hash’ is ambiguous return (it != hash[h1].end()); ^ user.cpp:13:19: note: candidates are: std::vector<long long int> hash [40009] vector<long long> 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:3: /usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^

Ceva nu functioneaza?