Borderou de evaluare (job #1193494)
Utilizator | Data | 31 mai 2014 21:38:22 | |
---|---|---|---|
Problema | Litere2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void insereaza(int, std::string)’:
user.cpp:21:19: error: reference to ‘hash’ is ambiguous
for (lista p=hash[cod%mod]; p; p=p->next)
^
user.cpp:13:7: note: candidates are: celula* hash [9001]
lista hash[9001];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:31:25: error: reference to ‘hash’ is ambiguous
v->next=hash[cod%mod];
^
user.cpp:13:7: note: candidates are: celula* hash [9001]
lista hash[9001];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:32:17: error: reference to ‘hash’ is ambiguous
hash[cod%mod]=v;
^
user.cpp:13:7: note: candidates are: celula* hash [9001]
lista hash[9001];
^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
from /usr/include/c++/4.8/string:52,
from user.cpp:3:
/usr/include/c++/4.8/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘int main()’:
user.cpp:47:31: error: ‘memset’ was not declared in this scope
memset(v, 0, sizeof(v));
^
user.cpp:48:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j = 0; j<aux.length(); ++j)
^
user.cpp:61:19: error: reference to ‘hash’ is ambiguous
for (lista p=hash[i]; p; p=p->next) {
^
user.cpp:13:7: note: candidates are: celula* hash [9001]
lista hash[9001];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !