Borderou de evaluare (job #1090871)
Utilizator | Data | 23 ianuarie 2014 10:43:50 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void insertHash(int)’:
user.cpp:48:37: 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[mod];
^
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:3:
/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:14: 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[mod];
^
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:3:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:52:5: error: reference to ‘hash’ is ambiguous
hash[pos].pb(x);
^
user.cpp:21:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[mod];
^
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:3:
/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 deleteHash(int)’:
user.cpp:59:37: 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[mod];
^
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:3:
/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 !