Borderou de evaluare (job #1176346)

Utilizator IonMosnoiIon Mosnoi IonMosnoi Data 25 aprilie 2014 23:03:15
Problema K Aparitii Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main(){ ^ user.cpp: In function ‘int main()’: user.cpp:26:8: error: reference to ‘hash’ is ambiguous if(hash[x%m].size()>0){ ^ user.cpp:14:14: note: candidates are: std::vector<dat> hash [100002] vector <dat> hash[100002]; ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, 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:28:21: error: reference to ‘hash’ is ambiguous for(int j=0;j<=hash[x%m].size();j++){ ^ user.cpp:14:14: note: candidates are: std::vector<dat> hash [100002] vector <dat> hash[100002]; ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, 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:29:10: error: reference to ‘hash’ is ambiguous if(hash[x%m][j].div==x/m){ ^ user.cpp:14:14: note: candidates are: std::vector<dat> hash [100002] vector <dat> hash[100002]; ^ In file included from /usr/local/include/c++/4.8.0/bits/basic_string.h:3035:0, from /usr/local/include/c++/4.8.0/string:52, from /usr/local/include/c++/4.8.0/random:41, from /usr/local/include/c++/4.8.0/bits/stl_algo.h:65, from /usr/local/include/c++/4.8.0/algorithm:62, 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:31:8: error: reference to ‘hash’ is ambiguous

Ceva nu functioneaza?