Borderou de evaluare (job #2670714)
Utilizator | Data | 10 noiembrie 2020 16:19:17 | |
---|---|---|---|
Problema | Hashuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool find(int)':
main.cpp:27:17: error: reference to 'hash' is ambiguous
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^~~~
main.cpp:12:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[MOD];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:27:37: error: reference to 'hash' is ambiguous
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^~~~
main.cpp:12:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[MOD];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp:30:16: error: reference to 'hash' is ambiguous
return i < hash[cod].size();
^~~~
main.cpp:12:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[MOD];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
main.cpp: In function 'void push(int)':
main.cpp:36:17: error: reference to 'hash' is ambiguous
while ( i < hash[cod].size() && hash[cod][i] != x ) {
^~~~
main.cpp:12:13: note: candidates are: std::vector<int> hash [666013]
vector<int> hash[MOD];
^~~~
In file included from /usr/include/c++/6/bits/stl_bvector.h:1262:0,
from /usr/include/c++/6/vector:65,
from main.cpp:2:
/usr/include/c++/6/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !