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_9344880_18011.cpp:109: error: expected constructor, destructor, or type conversion before "using"
0_0_9344880_18011.cpp:109: error: expected `,' or `;' before "using"
0_0_9344880_18011.cpp:111: error: redefinition of `const double PI'
0_0_9344880_18011.cpp:16: error: `const double PI' previously declared here
0_0_9344880_18011.cpp:117: error: redefinition of `struct Point'
0_0_9344880_18011.cpp:23: error: previous definition of `struct Point'
0_0_9344880_18011.cpp: In function `std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >)':
0_0_9344880_18011.cpp:165: error: ambiguous overload for 'operator-' in '(&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 1))) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:165: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)i)) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:170: error: ambiguous overload for 'operator-' in '(&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 1))) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:170: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)i)) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp: In function `double PolygonArea(std::vector<Point, std::allocator<Point> >)':
0_0_9344880_18011.cpp:184: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)i)) - (&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](0u)'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:184: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(i + 1))) - (&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](0u)'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp: In function `int main()':
0_0_9344880_18011.cpp:189: error: redefinition of `int main()'
0_0_9344880_18011.cpp:68: error: `int main()' previously defined here
0_0_9344880_18011.cpp:202: error: ambiguous overload for 'operator+' in 'o + Rotate(((const Vector&)((const Vector*)(&Vector((w * -5.0e-1), (h * -5.0e-1))))), ang)'
0_0_9344880_18011.cpp:30: note: candidates are: Vector operator+(Vector, Vector)
0_0_9344880_18011.cpp:125: note:                 Vector operator+(const Vector&, const Vector&)
0_0_9344880_18011.cpp:203: error: ambiguous overload for 'operator+' in 'o + Rotate(((const Vector&)((const Vector*)(&Vector((w * 5.0e-1), (h * -5.0e-1))))), ang)'
0_0_9344880_18011.cpp:30: note: candidates are: Vector operator+(Vector, Vector)
0_0_9344880_18011.cpp:125: note:                 Vector operator+(const Vector&, const Vector&)
0_0_9344880_18011.cpp:204: error: ambiguous overload for 'operator+' in 'o + Rotate(((const Vector&)((const Vector*)(&Vector((w * -5.0e-1), (h * 5.0e-1))))), ang)'
0_0_9344880_18011.cpp:30: note: candidates are: Vector operator+(Vector, Vector)
0_0_9344880_18011.cpp:125: note:                 Vector operator+(const Vector&, const Vector&)
0_0_9344880_18011.cpp:205: error: ambiguous overload for 'operator+' in 'o + Rotate(((const Vector&)((const Vector*)(&Vector((w * 5.0e-1), (h * 5.0e-1))))), ang)'
0_0_9344880_18011.cpp:30: note: candidates are: Vector operator+(Vector, Vector)
0_0_9344880_18011.cpp:125: note:                 Vector operator+(const Vector&, const Vector&)
0_0_9344880_18011.cpp: At global scope:
0_0_9344880_18011.cpp:220: error: expected constructor, destructor, or type conversion before "using"
0_0_9344880_18011.cpp:220: error: expected `,' or `;' before "using"
0_0_9344880_18011.cpp:222: error: redefinition of `struct Point'
0_0_9344880_18011.cpp:23: error: previous definition of `struct Point'
0_0_9344880_18011.cpp: In function `Vector operator-(const Point&, const Point&)':
0_0_9344880_18011.cpp:230: error: redefinition of `Vector operator-(const Point&, const Point&)'
0_0_9344880_18011.cpp:129: error: `Vector operator-(const Point&, const Point&)' previously defined here
0_0_9344880_18011.cpp: In function `double Cross(const Vector&, const Vector&)':
0_0_9344880_18011.cpp:235: error: redefinition of `double Cross(const Vector&, const Vector&)'
0_0_9344880_18011.cpp:133: error: `double Cross(const Vector&, const Vector&)' previously defined here
0_0_9344880_18011.cpp: In function `bool operator<(const Point&, const Point&)':
0_0_9344880_18011.cpp:240: error: redefinition of `bool operator<(const Point&, const Point&)'
0_0_9344880_18011.cpp:143: error: `bool operator<(const Point&, const Point&)' previously defined here
0_0_9344880_18011.cpp: In function `bool operator==(const Point&, const Point&)':
0_0_9344880_18011.cpp:245: error: redefinition of `bool operator==(const Point&, const Point&)'
0_0_9344880_18011.cpp:148: error: `bool operator==(const Point&, const Point&)' previously defined here
0_0_9344880_18011.cpp: In function `std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >)':
0_0_9344880_18011.cpp:253: error: redefinition of `std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >)'
0_0_9344880_18011.cpp:156: error: `std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >)' previously defined here
0_0_9344880_18011.cpp:262: error: ambiguous overload for 'operator-' in '(&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 1))) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:262: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)i)) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:267: error: ambiguous overload for 'operator-' in '(&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 1))) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp:267: error: ambiguous overload for 'operator-' in '(&p)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)i)) - (&ch)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = Point, _Alloc = std::allocator<Point>](((unsigned int)(m - 2)))'
0_0_9344880_18011.cpp:31: note: candidates are: Vector operator-(Point, Point)
0_0_9344880_18011.cpp:129: note:                 Vector operator-(const Point&, const Point&)
0_0_9344880_18011.cpp: In function `int main()':
0_0_9344880_18011.cpp:285: error: redefinition of `int main()'
0_0_9344880_18011.cpp:189: error: `int main()' previously defined here
0_0_9344880_18011.cpp:285: error: redefinition of `int main()'
0_0_9344880_18011.cpp:68: error: `int main()' previously defined here


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-29 21:14:51, Gzip enabled