Borderou de evaluare (job #1106213)
Utilizator | Data | 12 februarie 2014 17:25:02 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void inserare(int)’:
user.cpp:45:33: error: reference to ‘hash’ is ambiguous
vector<int> :: iterator it,end=hash[pos].end();
^
user.cpp:21:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[modulo];
^
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:46:9: error: reference to ‘hash’ is ambiguous
for(it=hash[pos].begin() ; it!=end ; ++it)
^
user.cpp:21:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[modulo];
^
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:49:2: error: reference to ‘hash’ is ambiguous
hash[pos].pb(val);
^
user.cpp:21:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[modulo];
^
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 stergere(int)’:
user.cpp:55:33: error: reference to ‘hash’ is ambiguous
vector<int> :: iterator it,end=hash[pos].end();
^
user.cpp:21:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[modulo];
^
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 !