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_9344912_28094.cpp:146: error: expected constructor, destructor, or type conversion before "using"
0_0_9344912_28094.cpp:146: error: expected `,' or `;' before "using"
0_0_9344912_28094.cpp:148: error: redefinition of `struct Point'
0_0_9344912_28094.cpp:16: error: previous definition of `struct Point'
0_0_9344912_28094.cpp: In function `Vector operator-(const Point&, const Point&)':
0_0_9344912_28094.cpp:156: error: redefinition of `Vector operator-(const Point&, const Point&)'
0_0_9344912_28094.cpp:24: error: `Vector operator-(const Point&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `int Cross(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:161: error: new declaration `int Cross(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:29: error: ambiguates old declaration `double Cross(const Vector&, const Vector&)'
0_0_9344912_28094.cpp: In function `int Dot(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:166: error: new declaration `int Dot(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:34: error: ambiguates old declaration `double Dot(const Vector&, const Vector&)'
0_0_9344912_28094.cpp: In function `bool operator<(const Point&, const Point&)':
0_0_9344912_28094.cpp:176: error: redefinition of `bool operator<(const Point&, const Point&)'
0_0_9344912_28094.cpp:39: error: `bool operator<(const Point&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `bool operator==(const Point&, const Point&)':
0_0_9344912_28094.cpp:181: error: redefinition of `bool operator==(const Point&, const Point&)'
0_0_9344912_28094.cpp:44: error: `bool operator==(const Point&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `int diameter2(std::vector<Point, std::allocator<Point> >&)':
0_0_9344912_28094.cpp:214: error: call of overloaded `ConvexHull(std::vector<Point, std::allocator<Point> >&)' is ambiguous
0_0_9344912_28094.cpp:64: note: candidates are: std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >)
0_0_9344912_28094.cpp:189: note:                 std::vector<Point, std::allocator<Point> > ConvexHull(std::vector<Point, std::allocator<Point> >&)
0_0_9344912_28094.cpp: In function `int main()':
0_0_9344912_28094.cpp:240: error: redefinition of `int main()'
0_0_9344912_28094.cpp:119: error: `int main()' previously defined here
0_0_9344912_28094.cpp: At global scope:
0_0_9344912_28094.cpp:266: error: expected constructor, destructor, or type conversion before "using"
0_0_9344912_28094.cpp:266: error: expected `,' or `;' before "using"
0_0_9344912_28094.cpp:268: error: redefinition of `struct Point'
0_0_9344912_28094.cpp:16: error: previous definition of `struct Point'
0_0_9344912_28094.cpp: In function `Vector operator-(const Point&, const Point&)':
0_0_9344912_28094.cpp:280: error: redefinition of `Vector operator-(const Point&, const Point&)'
0_0_9344912_28094.cpp:24: error: `Vector operator-(const Point&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `double Dot(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:288: error: new declaration `double Dot(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:166: error: ambiguates old declaration `int Dot(const Vector&, const Vector&)'
0_0_9344912_28094.cpp: In function `double Cross(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:292: error: new declaration `double Cross(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:161: error: ambiguates old declaration `int Cross(const Vector&, const Vector&)'
0_0_9344912_28094.cpp: At global scope:
0_0_9344912_28094.cpp:343: error: redefinition of `const double eps'
0_0_9344912_28094.cpp:9: error: `const double eps' previously defined here
0_0_9344912_28094.cpp: In function `int main()':
0_0_9344912_28094.cpp:377: error: redefinition of `int main()'
0_0_9344912_28094.cpp:240: error: `int main()' previously defined here
0_0_9344912_28094.cpp:377: error: redefinition of `int main()'
0_0_9344912_28094.cpp:119: error: `int main()' previously defined here
0_0_9344912_28094.cpp: At global scope:
0_0_9344912_28094.cpp:414: error: expected constructor, destructor, or type conversion before "using"
0_0_9344912_28094.cpp:414: error: expected `,' or `;' before "using"
0_0_9344912_28094.cpp:416: error: redefinition of `struct Point'
0_0_9344912_28094.cpp:16: error: previous definition of `struct Point'
0_0_9344912_28094.cpp: In function `Vector operator+(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:424: error: redefinition of `Vector operator+(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:276: error: `Vector operator+(const Vector&, const Vector&)' previously defined here
0_0_9344912_28094.cpp: In function `Vector operator-(const Point&, const Point&)':
0_0_9344912_28094.cpp:428: error: redefinition of `Vector operator-(const Point&, const Point&)'
0_0_9344912_28094.cpp:24: error: `Vector operator-(const Point&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `Vector operator*(const Vector&, double)':
0_0_9344912_28094.cpp:432: error: redefinition of `Vector operator*(const Vector&, double)'
0_0_9344912_28094.cpp:284: error: `Vector operator*(const Vector&, double)' previously defined here
0_0_9344912_28094.cpp: In function `double Dot(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:436: error: redefinition of `double Dot(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:288: error: `double Dot(const Vector&, const Vector&)' previously defined here
0_0_9344912_28094.cpp: In function `double Cross(const Vector&, const Vector&)':
0_0_9344912_28094.cpp:440: error: redefinition of `double Cross(const Vector&, const Vector&)'
0_0_9344912_28094.cpp:292: error: `double Cross(const Vector&, const Vector&)' previously defined here
0_0_9344912_28094.cpp: In function `double Length(const Vector&)':
0_0_9344912_28094.cpp:444: error: redefinition of `double Length(const Vector&)'
0_0_9344912_28094.cpp:296: error: `double Length(const Vector&)' previously defined here
0_0_9344912_28094.cpp: In function `Vector Normal(const Vector&)':
0_0_9344912_28094.cpp:448: error: redefinition of `Vector Normal(const Vector&)'
0_0_9344912_28094.cpp:300: error: `Vector Normal(const Vector&)' previously defined here
0_0_9344912_28094.cpp: In function `double PolygonArea(std::vector<Point, std::allocator<Point> >)':
0_0_9344912_28094.cpp:454: error: redefinition of `double PolygonArea(std::vector<Point, std::allocator<Point> >)'
0_0_9344912_28094.cpp:306: error: `double PolygonArea(std::vector<Point, std::allocator<Point> >)' previously defined here
0_0_9344912_28094.cpp: At global scope:
0_0_9344912_28094.cpp:463: error: redefinition of `struct Line'
0_0_9344912_28094.cpp:315: error: previous definition of `struct Line'
0_0_9344912_28094.cpp: In function `bool OnLeft(const Line&, const Point&)':
0_0_9344912_28094.cpp:478: error: redefinition of `bool OnLeft(const Line&, const Point&)'
0_0_9344912_28094.cpp:330: error: `bool OnLeft(const Line&, const Point&)' previously defined here
0_0_9344912_28094.cpp: In function `Point GetLineIntersection(const Line&, const Line&)':
0_0_9344912_28094.cpp:484: error: redefinition of `Point GetLineIntersection(const Line&, const Line&)'
0_0_9344912_28094.cpp:336: error: `Point GetLineIntersection(const Line&, const Line&)' previously defined here
0_0_9344912_28094.cpp: At global scope:
0_0_9344912_28094.cpp:490: error: redefinition of `const double INF'
0_0_9344912_28094.cpp:342: error: `const double INF' previously defined here
0_0_9344912_28094.cpp:491: error: redefinition of `const double eps'
0_0_9344912_28094.cpp:9: error: `const double eps' previously defined here
0_0_9344912_28094.cpp: In function `std::vector<Point, std::allocator<Point> > HalfplaneIntersection(std::vector<Line, std::allocator<Line> >)':
0_0_9344912_28094.cpp:495: error: redefinition of `std::vector<Point, std::allocator<Point> > HalfplaneIntersection(std::vector<Line, std::allocator<Line> >)'
0_0_9344912_28094.cpp:347: error: `std::vector<Point, std::allocator<Point> > HalfplaneIntersection(std::vector<Line, std::allocator<Line> >)' previously defined here
0_0_9344912_28094.cpp: In function `int main()':
0_0_9344912_28094.cpp:527: error: redefinition of `int main()'
0_0_9344912_28094.cpp:377: error: `int main()' previously defined here
0_0_9344912_28094.cpp:527: error: redefinition of `int main()'
0_0_9344912_28094.cpp:240: error: `int main()' previously defined here
0_0_9344912_28094.cpp:527: error: redefinition of `int main()'
0_0_9344912_28094.cpp:119: 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-09-29 08:38:03, Gzip enabled