F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_18193126_14654.cpp:44:48: error: 'cons0t' has not been declared
     friend bool  operator == (const point  &a, cons0t point  &b) { return !sgn(a.x - b.x) && !sgn(a.y - b.y); }
                                                ^
0_0_18193126_14654.cpp:44:62: error: expected ',' or '...' before '&' token
     friend bool  operator == (const point  &a, cons0t point  &b) { return !sgn(a.x - b.x) && !sgn(a.y - b.y); }
                                                              ^
0_0_18193126_14654.cpp: In function 'bool operator==(const point&, int)':
0_0_18193126_14654.cpp:44:86: error: 'b' was not declared in this scope
     friend bool  operator == (const point  &a, cons0t point  &b) { return !sgn(a.x - b.x) && !sgn(a.y - b.y); }
                                                                                      ^
0_0_18193126_14654.cpp: In function 'bool operator!=(const point&, const point&)':
0_0_18193126_14654.cpp:45:77: error: no match for 'operator==' (operand types are 'const point' and 'const point')
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                             ^
0_0_18193126_14654.cpp:45:77: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from 0_0_18193126_14654.cpp:12:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:271:5: note: template<class _Tp, class _Seq> bool std::operator==(const std::queue<_Tp, _Seq>&, const std::queue<_Tp, _Seq>&)
     operator==(const queue<_Tp, _Seq>& __x, const queue<_Tp, _Seq>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:271:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::queue<_Tp, _Seq>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
                 from 0_0_18193126_14654.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:246:5: note: template<class _Tp, class _Seq> bool std::operator==(const std::stack<_Tp, _Seq>&, const std::stack<_Tp, _Seq>&)
     operator==(const stack<_Tp, _Seq>& __x, const stack<_Tp, _Seq>& __y)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:246:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::stack<_Tp, _Seq>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:60,
                 from 0_0_18193126_14654.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:2029:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::deque<_Tp, _Alloc>&, const std::deque<_Tp, _Alloc>&)
     operator==(const deque<_Tp, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:2029:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::deque<_Tp, _Alloc>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:60,
                 from 0_0_18193126_14654.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:258:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _RefR, _PtrR>&)
     operator==(const _Deque_iterator<_Tp, _RefL, _PtrL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:258:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:60,
                 from 0_0_18193126_14654.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:251:5: note: template<class _Tp, class _Ref, class _Ptr> bool std::operator==(const std::_Deque_iterator<_Tp, _Ref, _Ptr>&, const std::_Deque_iterator<_Tp, _Ref, _Ptr>&)
     operator==(const _Deque_iterator<_Tp, _Ref, _Ptr>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:251:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:62:0,
                 from 0_0_18193126_14654.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multimap.h:903:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::multimap<_Key, _Tp, _Compare, _Alloc>&, const std::multimap<_Key, _Tp, _Compare, _Alloc>&)
     operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multimap.h:903:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::multimap<_Key, _Tp, _Compare, _Alloc>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61:0,
                 from 0_0_18193126_14654.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:1000:5: note: template<class _Key, class _Tp, class _Compare, class _Alloc> bool std::operator==(const std::map<_Key, _Tp, _Compare, _Alloc>&, const std::map<_Key, _Tp, _Compare, _Alloc>&)
     operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:1000:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::map<_Key, _Tp, _Compare, _Alloc>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_18193126_14654.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:846:5: note: template<class ... _TElements, class ... _UElements> constexpr bool std::operator==(const std::tuple<_Args1 ...>&, const std::tuple<_Args2 ...>&)
     operator==(const tuple<_TElements...>& __t,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:846:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::tuple<_Args1 ...>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_map.h:63,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:61,
                 from 0_0_18193126_14654.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:232:5: note: template<class _Tp, long long unsigned int _Nm> bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&)
     operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:232:5: note:   template argument deduction/substitution failed:
0_0_18193126_14654.cpp:45:79: note:   'const point' is not derived from 'const std::array<_Tp, _Nm>'
     friend bool  operator != (const point  &a, const point  &b) { return !(a==b); }
                                                                               ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:62:0,
                 from 0_0_18193126_14654.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_multiset.h:777:5: note: template<class _Key, class _Compare, class _Alloc> bool std::operator==(const std::multiset<_Key, _Compare, _Alloc>&, const std::multiset<_Key, _Compare, _Alloc>&)
     operator==(const multiset<_Key, _Compare, _Alloc>& __x,


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 08:53:05, Gzip enabled