Pagini recente » Borderou de evaluare (job #1794201) | Borderou de evaluare (job #868696) | Borderou de evaluare (job #1039943) | Borderou de evaluare (job #891419) | 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 |