Borderou de evaluare (job #1520596)

Utilizator jimcarterJim Carter jimcarter Data 9 noiembrie 2015 04:17:42
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void add(int)’: user.cpp:19:2: error: reference to ‘hash’ is ambiguous hash [ value ] . push_back ( number ); ^ user.cpp:9:16: note: candidates are: std::vector<int> hash [666015] vector < int > hash [ MAX ]; ^ 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: In function ‘void remove(int)’: user.cpp:25:20: error: reference to ‘hash’ is ambiguous for ( i = 0 ; i < hash [ value ] . size () ; i ++ ) ^ user.cpp:9:16: note: candidates are: std::vector<int> hash [666015] vector < int > hash [ MAX ]; ^ 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:26:8: error: reference to ‘hash’ is ambiguous if ( hash [ value ] [ i ] == number ) ^ user.cpp:9:16: note: candidates are: std::vector<int> hash [666015] vector < int > hash [ MAX ]; ^ 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:27:4: error: reference to ‘hash’ is ambiguous hash [ value ] [ i -- ] = hash [ value ] [ hash [ value ] . size () - 1 ] , hash [ value ] . pop_back () ; ^ user.cpp:9:16: note: candidates are: std::vector<int> hash [666015] vector < int > hash [ MAX ]; ^ 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; ^

Ceva nu functioneaza?