Borderou de evaluare (job #1079331)

Utilizator unibuc_cccUNIBUC mariac costel93 krissu93 unibuc_ccc Data 12 ianuarie 2014 12:43:25
Problema Progr2 Status done
Runda ONIS 2014, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:44:28: error: reference to ‘hash’ is ambiguous for (int l = 0; l< hash[h].size();l++) ^ user.cpp:12:25: note: candidates are: std::vector<std::pair<int, int> > hash [10000001] vector<pair<int, 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:46:15: error: reference to ‘hash’ is ambiguous if (hash[h][l].first==dif){ ^ user.cpp:12:25: note: candidates are: std::vector<std::pair<int, int> > hash [10000001] vector<pair<int, 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:48:13: error: reference to ‘hash’ is ambiguous hash[h].push_back(make_pair(dif,v[j])); ^ user.cpp:12:25: note: candidates are: std::vector<std::pair<int, int> > hash [10000001] vector<pair<int, 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:55:11: error: reference to ‘hash’ is ambiguous hash[h].push_back(make_pair(dif,v[j])); ^ user.cpp:12:25: note: candidates are: std::vector<std::pair<int, int> > hash [10000001] vector<pair<int, 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:64:5: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?