Pagini recente » Borderou de evaluare (job #7750) | Borderou de evaluare (job #199657) | Cod sursa (job #765318) | Borderou de evaluare (job #256271) | Borderou de evaluare (job #37282)
Borderou de evaluare (job #37282)
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void init()’:
user.cpp:71:7: error: reference to ‘hash’ is ambiguous
hash[i]=NULL;
^
user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002]
NOD_HASH *hash[M+2];
^
In file included from /usr/include/c++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from user.cpp:8:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘int cauta_hash(double, double)’:
user.cpp:133:16: error: reference to ‘hash’ is ambiguous
NOD_HASH *b=hash[key];
^
user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002]
NOD_HASH *hash[M+2];
^
In file included from /usr/include/c++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from user.cpp:8:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘void adauga_hash(double&, double&, int&)’:
user.cpp:148:11: error: reference to ‘hash’ is ambiguous
a->adr=hash[key];
^
user.cpp:36:11: note: candidates are: NOD_HASH* hash [10002]
NOD_HASH *hash[M+2];
^
In file included from /usr/include/c++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from user.cpp:8:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:149:4: error: reference to ‘hash’ is ambiguous
hash[key]=a;
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 12kb | OK | 5 |
| 2 | 0ms | 12kb | Incorect | 0 |
| 3 | 0ms | 8kb | OK | 5 |
| 4 | 4ms | 8kb | OK | 5 |
| 5 | 0ms | 12kb | OK | 5 |
| 6 | 0ms | 12kb | OK | 5 |
| 7 | 0ms | 12kb | OK | 5 |
| 8 | 0ms | 8kb | OK | 5 |
| 9 | 4ms | 12kb | OK | 5 |
| 10 | 4ms | 12kb | OK | 5 |
| 11 | 4ms | 12kb | OK | 5 |
| 12 | 4ms | 12kb | OK | 5 |
| 13 | 4ms | 12kb | OK | 5 |
| 14 | 4ms | 12kb | OK | 5 |
| 15 | 4ms | 12kb | OK | 5 |
| 16 | 4ms | 12kb | OK | 5 |
| 17 | 4ms | 8kb | OK | 5 |
| 18 | 4ms | 8kb | OK | 5 |
| 19 | 4ms | 12kb | OK | 5 |
| 20 | 0ms | 12kb | OK | 5 |
| Punctaj total | 0 |