Pagini recente » Borderou de evaluare (job #3200381) | Borderou de evaluare (job #32385) | Borderou de evaluare (job #540702) | Borderou de evaluare (job #718307) | Borderou de evaluare (job #556137)
Borderou de evaluare (job #556137)
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int getPointIndex(double, double)’:
user.cpp:51:6: error: reference to ‘hash’ is ambiguous
if (hash.find(make_pair(x, y)) == hash.end()) {
^
user.cpp:30:35: note: candidates are: std::map<std::pair<double, double>, int> hash
map < pair <double, double>, int> hash;
^
In file included from /usr/include/c++/5/bits/stl_bvector.h:1265:0,
from /usr/include/c++/5/vector:65,
from user.cpp:2:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:51:36: error: reference to ‘hash’ is ambiguous
if (hash.find(make_pair(x, y)) == hash.end()) {
^
user.cpp:30:35: note: candidates are: std::map<std::pair<double, double>, int> hash
map < pair <double, double>, int> hash;
^
In file included from /usr/include/c++/5/bits/stl_bvector.h:1265:0,
from /usr/include/c++/5/vector:65,
from user.cpp:2:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:52:3: error: reference to ‘hash’ is ambiguous
hash[make_pair(x, y)] = noPoints++;
^
user.cpp:30:35: note: candidates are: std::map<std::pair<double, double>, int> hash
map < pair <double, double>, int> hash;
^
In file included from /usr/include/c++/5/bits/stl_bvector.h:1265:0,
from /usr/include/c++/5/vector:65,
from user.cpp:2:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp:56:9: error: reference to ‘hash’ is ambiguous
return hash[make_pair(x, y)];
^
user.cpp:30:35: note: candidates are: std::map<std::pair<double, double>, int> hash
map < pair <double, double>, int> hash;
^
In file included from /usr/include/c++/5/bits/stl_bvector.h:1265:0,
from /usr/include/c++/5/vector:65,
from user.cpp:2:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
user.cpp: In function ‘int main()’:
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 8kb | OK | 5 |
2 | 4ms | 8kb | OK | 5 |
3 | 4ms | 12kb | OK | 5 |
4 | 0ms | 12kb | OK | 5 |
5 | 0ms | 8kb | OK | 5 |
6 | 0ms | 8kb | OK | 5 |
7 | 0ms | 12kb | OK | 5 |
8 | 4ms | 8kb | OK | 5 |
9 | 0ms | 12kb | OK | 5 |
10 | 4ms | 8kb | OK | 5 |
11 | 8ms | 364kb | OK | 5 |
12 | 4ms | 12kb | OK | 5 |
13 | 8ms | 380kb | OK | 5 |
14 | 0ms | 8kb | OK | 5 |
15 | 0ms | 8kb | OK | 5 |
16 | 0ms | 12kb | OK | 5 |
17 | 0ms | 12kb | OK | 5 |
18 | 8ms | 380kb | OK | 5 |
19 | 8ms | 372kb | OK | 5 |
20 | 4ms | 12kb | OK | 5 |
Punctaj total | 0 |