Borderou de evaluare (job #963727)
Utilizator | Data | 18 iunie 2013 19:54:20 | |
---|---|---|---|
Problema | Ausoara | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add(int, int)’:
user.cpp:23:9: error: reference to ‘hash’ is ambiguous
poz=hash(k);
^
user.cpp:15:5: note: candidates are: int hash(int)
int hash(int k)
^
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 ‘int search(int, int)’:
user.cpp:54:13: error: reference to ‘hash’ is ambiguous
int poz=hash(k);
^
user.cpp:15:5: note: candidates are: int hash(int)
int hash(int k)
^
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 !