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_17093495_12154.cpp:27:26: error: expected ';' at end of member declaration
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                          ^
0_0_17093495_12154.cpp:27:29: error: 'P' is not a type
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                             ^
0_0_17093495_12154.cpp:27:31: error: 'int Line::P(int)' conflicts with a previous declaration
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                               ^
0_0_17093495_12154.cpp:23:11: note: previous declaration 'Point Line::P'
     Point P;
           ^
0_0_17093495_12154.cpp:27:34: error: 'v' is not a type
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                                  ^
0_0_17093495_12154.cpp:27:58: error: 'int Line::v(int)' conflicts with a previous declaration
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                                                          ^
0_0_17093495_12154.cpp:24:12: note: previous declaration 'Vector Line::v'
     Vector v;
            ^
0_0_17093495_12154.cpp: In member function 'int Line::v(int)':
0_0_17093495_12154.cpp:27:49: error: '((Line*)this)->Line::v' does not have class type
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                                                 ^
0_0_17093495_12154.cpp:27:53: error: '((Line*)this)->Line::v' does not have class type
     Line(Point P,Vector v)P(P),v(v){ang = atan2(v.y,v.x);}
                                                     ^
0_0_17093495_12154.cpp: In function 'bool OnLeft(Line, Point)':
0_0_17093495_12154.cpp:34:23: error: no match for 'operator-' (operand types are 'Point' and '<unresolved overloaded function type>')
     return Cross(L.v,p-L.P) > 0;
                       ^
0_0_17093495_12154.cpp:34:23: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17093495_12154.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator-(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::reverse_iterator<_Iterator>'
     return Cross(L.v,p-L.P) > 0;
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17093495_12154.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: template<class _IteratorL, class _IteratorR> decltype ((__y.base() - __x.base())) std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator-(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::reverse_iterator<_Iterator>'
     return Cross(L.v,p-L.P) > 0;
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17093495_12154.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note: template<class _IteratorL, class _IteratorR> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator-(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::move_iterator<_Iterator>'
     return Cross(L.v,p-L.P) > 0;
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17093495_12154.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note: template<class _Iterator> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator-(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::move_iterator<_Iterator>'
     return Cross(L.v,p-L.P) > 0;
                          ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_17093495_12154.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:208:3: note: std::ptrdiff_t std::operator-(const std::_Bit_iterator_base&, const std::_Bit_iterator_base&)
   operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:208:3: note:   no known conversion for argument 1 from 'Point' to 'const std::_Bit_iterator_base&'
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++/queue:60,
                 from 0_0_17093495_12154.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:335:5: note: template<class _Tp, class _Ref, class _Ptr> typename std::_Deque_iterator<_Tp, _Ref, _Ptr>::difference_type 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:335:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
     return Cross(L.v,p-L.P) > 0;
                          ^
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++/queue:60,
                 from 0_0_17093495_12154.cpp:10:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:347:5: note: template<class _Tp, class _RefL, class _PtrL, class _RefR, class _PtrR> typename std::_Deque_iterator<_Tp, _Ref, _Ptr>::difference_type 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:347:5: note:   template argument deduction/substitution failed:
0_0_17093495_12154.cpp:34:26: note:   'Point' is not derived from 'const std::_Deque_iterator<_Tp, _Ref, _Ptr>'
     return Cross(L.v,p-L.P) > 0;
                          ^
0_0_17093495_12154.cpp:34:27: error: 'Cross' was not declared in this scope
     return Cross(L.v,p-L.P) > 0;
                           ^
0_0_17093495_12154.cpp: In function 'Point GetIntersection(Line, Line)':
0_0_17093495_12154.cpp:38:23: error: invalid use of member (did you forget the '&' ?)
     Vector u = a.P -b.P;
                       ^
0_0_17093495_12154.cpp:38:23: error: invalid use of member (did you forget the '&' ?)
0_0_17093495_12154.cpp:39:27: error: 'Cross' was not declared in this scope
     double t = Cross(b.v,u)/Cross(a.v,b.v);
                           ^


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-16 17:44:46, Gzip enabled