Borderou de evaluare (job #1040916)
Utilizator | Data | 25 noiembrie 2013 09:34:42 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<long int>::iterator find_value(long int)’:
user.cpp:14:11: error: reference to ‘hash’ is ambiguous
for(it = hash[hValue].begin(); it != hash[hValue].end(); ++it)
^
user.cpp:7:14: note: candidates are: std::vector<long int> hash [666013]
vector<long> hash[PRIM];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
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:14:39: error: reference to ‘hash’ is ambiguous
for(it = hash[hValue].begin(); it != hash[hValue].end(); ++it)
^
user.cpp:7:14: note: candidates are: std::vector<long int> hash [666013]
vector<long> hash[PRIM];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
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:18:9: error: reference to ‘hash’ is ambiguous
return hash[hValue].end();
^
user.cpp:7:14: note: candidates are: std::vector<long int> hash [666013]
vector<long> hash[PRIM];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
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: In function ‘void insert_value(long int)’:
user.cpp:24:22: error: reference to ‘hash’ is ambiguous
if(find_value(x) == hash[hValue].end())
^
user.cpp:7:14: note: candidates are: std::vector<long int> hash [666013]
vector<long> hash[PRIM];
^
In file included from /usr/local/include/c++/4.8.0/bits/stl_bvector.h:1134:0,
from /usr/local/include/c++/4.8.0/vector:65,
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;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !