Borderou de evaluare (job #1422039)

Utilizator DEFINEtelyEngineersUPB Pirtoaca Vasilescu Zamfiratos DEFINEtelyEngineers Data 19 aprilie 2015 13:27:50
Problema Ecotraseu Status done
Runda ONIS 2015, Runda 3 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void adauga(int, int)’: user.cpp:25:2: error: reference to ‘hash’ is ambiguous hash[k].push_back(make_pair(nod,val)); ^ user.cpp:17:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp: In function ‘int cauta(int, int)’: user.cpp:34:48: error: reference to ‘hash’ is ambiguous for(vector < pair <int, int> > :: iterator it=hash[k].begin();it!=hash[k].end();it++) ^ user.cpp:17:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash struct hash; ^ user.cpp:34:68: error: reference to ‘hash’ is ambiguous for(vector < pair <int, int> > :: iterator it=hash[k].begin();it!=hash[k].end();it++) ^ user.cpp:17:28: note: candidates are: std::vector<std::pair<int, int> > hash [666013] vector < pair <int, int> > hash[MOD]; ^ In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1:

Ceva nu functioneaza?