Borderou de evaluare (job #2184226)

Utilizator ipus1Stefan Enescu ipus1 Data 23 martie 2018 20:57:27
Problema Oite 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:22:28: error: reference to ‘hash’ is ambiguous for(l = 0; l < hash[q].size(); l++) ^~~~ user.cpp:6:24: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector<pair<int,int> > hash[666013]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from user.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ user.cpp:23:20: error: reference to ‘hash’ is ambiguous if(hash[q][l].first == x) ^~~~ user.cpp:6:24: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector<pair<int,int> > hash[666013]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from user.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ user.cpp:24:27: error: reference to ‘hash’ is ambiguous nr += hash[q][l].second; ^~~~ user.cpp:6:24: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector<pair<int,int> > hash[666013]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from user.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ user.cpp:31:28: error: reference to ‘hash’ is ambiguous for(l = 0; l < hash[q].size(); l++) ^~~~ user.cpp:6:24: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector<pair<int,int> > hash[666013]; ^~~~ In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0, from /usr/include/c++/6/vector:65, from user.cpp:2: /usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^~~~ user.cpp:32:20: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?