Borderou de evaluare (job #1047899)
Utilizator | Data | 4 decembrie 2013 23:22:50 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int find(int)’:
user.cpp:11:22: error: reference to ‘hash’ is ambiguous
for(int it=0;it<hash[zona].size();it++)
^
user.cpp:6:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[max];
^
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:1:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:12:8: error: reference to ‘hash’ is ambiguous
if(hash[zona][it]==val)
^
user.cpp:6:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[max];
^
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:1:
/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 delet(int)’:
user.cpp:22:9: error: reference to ‘hash’ is ambiguous
hash[zona][poz]=hash[zona].back();
^
user.cpp:6:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[max];
^
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:1:
/usr/local/include/c++/4.8.0/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:22:25: error: reference to ‘hash’ is ambiguous
hash[zona][poz]=hash[zona].back();
^
user.cpp:6:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[max];
^
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:1:
/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 !