Borderou de evaluare (job #3155003)
Utilizator | Data | 7 octombrie 2023 01:08:51 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void insert(int)':
main.cpp:24:12: error: reference to 'hash' is ambiguous
24 | if(hash[index] == NULL)
| ^~~~
In file included from /usr/include/c++/12.2.1/string_view:43,
from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:17:7: note: 'Node* hash [1000]'
17 | Node* hash[M];
| ^~~~
main.cpp:25:17: error: reference to 'hash' is ambiguous
25 | hash[index] = node;
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:17:7: note: 'Node* hash [1000]'
17 | Node* hash[M];
| ^~~~
main.cpp:27:17: error: reference to 'hash' is ambiguous
27 | hash[index]->next = node;
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:17:7: note: 'Node* hash [1000]'
17 | Node* hash[M];
| ^~~~
main.cpp: In function 'void sterge(int)':
main.cpp:32:19: error: reference to 'hash' is ambiguous
32 | Node *p = hash[index];
| ^~~~
/usr/include/c++/12.2.1/bits/functional_hash.h:59:12: note: candidates are: 'template<class _Tp> struct std::hash'
59 | struct hash;
| ^~~~
main.cpp:17:7: note: 'Node* hash [1000]'
17 | Node* hash[M];
| ^~~~
main.cpp: In function 'void prezent(int)':
main.cpp:54:19: error: reference to 'hash' is ambiguous
54 | Node *p = hash[index];
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !