Borderou de evaluare (job #556137)

Utilizator pauldbPaul-Dan Baltescu pauldb Data 15 martie 2011 23:03:28
Problema Cerc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
14ms8kbOK5
24ms8kbOK5
34ms12kbOK5
40ms12kbOK5
50ms8kbOK5
60ms8kbOK5
70ms12kbOK5
84ms8kbOK5
90ms12kbOK5
104ms8kbOK5
118ms364kbOK5
124ms12kbOK5
138ms380kbOK5
140ms8kbOK5
150ms8kbOK5
160ms12kbOK5
170ms12kbOK5
188ms380kbOK5
198ms372kbOK5
204ms12kbOK5
Punctaj total0

Ceva nu functioneaza?