Borderou de evaluare (job #1502969)

Utilizator radu_uniculeu sunt radu radu_unicul Data 15 octombrie 2015 12:44:12
Problema Loto Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:32:17: error: reference to ‘hash’ is ambiguous hash[key].push_back(val); ^ user.cpp:16:17: note: candidates are: std::vector<chestie> hash [100003] vector<chestie> 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:45:26: error: reference to ‘hash’ is ambiguous int size=hash[key].size(); ^ user.cpp:16:17: note: candidates are: std::vector<chestie> hash [100003] vector<chestie> 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:46:45: error: reference to ‘hash’ is ambiguous for(it=0; it<size; it++) if(hash[key][it].sum+val.sum==s) ^ user.cpp:16:17: note: candidates are: std::vector<chestie> hash [100003] vector<chestie> 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:48:52: error: reference to ‘hash’ is ambiguous printf("%d %d %d %d %d %d",hash[key][it].a,hash[key][it].b,hash[key][it].c,val.a,val.b,val.c); ^ user.cpp:16:17: note: candidates are: std::vector<chestie> hash [100003] vector<chestie> 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:48:68: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?