Borderou de evaluare (job #1309226)
Utilizator | Data | 5 ianuarie 2015 16:16:28 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int>::iterator find_value(int)’:
user.cpp:16:12: error: reference to ‘hash’ is ambiguous
for(it=hash[list].begin(); it!=hash[list].end(); ++it)
^
user.cpp:9:12: note: candidates are: std::vector<int> hash [666013]
vector<int>hash[mod];
^
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:16:36: error: reference to ‘hash’ is ambiguous
for(it=hash[list].begin(); it!=hash[list].end(); ++it)
^
user.cpp:9:12: note: candidates are: std::vector<int> hash [666013]
vector<int>hash[mod];
^
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:19:12: error: reference to ‘hash’ is ambiguous
return hash[list].end();
^
user.cpp:9:12: note: candidates are: std::vector<int> hash [666013]
vector<int>hash[mod];
^
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 insert_value(int)’:
user.cpp:26:23: error: reference to ‘hash’ is ambiguous
if(find_value(x)==hash[list].end())
^
user.cpp:9:12: note: candidates are: std::vector<int> hash [666013]
vector<int>hash[mod];
^
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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !