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

In file included from GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ios:46,
                 from GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:45,
                 from GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iostream:45,
                 from 0_0_9344930_16280.cpp:156:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:49: error: expected constructor, destructor, or type conversion before "namespace"
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:49: error: expected `,' or `;' before "namespace"
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:226: error: expected template-name before '<' token
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:226: error: expected `{' before '<' token
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:226: error: expected unqualified-id before '<' token
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/char_traits.h:226: error: expected `;' before '<' token
0_0_9344930_16280.cpp:163: error: redefinition of `const double eps'
0_0_9344930_16280.cpp:83: error: `const double eps' previously defined here
0_0_9344930_16280.cpp:170: error: redefinition of `struct Point'
0_0_9344930_16280.cpp:9: error: previous definition of `struct Point'
0_0_9344930_16280.cpp: In function `Vector operator+(const Point&, const Point&)':
0_0_9344930_16280.cpp:178: error: redefinition of `Vector operator+(const Point&, const Point&)'
0_0_9344930_16280.cpp:17: error: `Vector operator+(const Vector&, const Vector&)' previously defined here
0_0_9344930_16280.cpp: In function `Vector operator-(const Point&, const Point&)':
0_0_9344930_16280.cpp:183: error: redefinition of `Vector operator-(const Point&, const Point&)'
0_0_9344930_16280.cpp:21: error: `Vector operator-(const Point&, const Point&)' previously defined here
0_0_9344930_16280.cpp: In function `Vector operator*(const Point&, double)':
0_0_9344930_16280.cpp:188: error: redefinition of `Vector operator*(const Point&, double)'
0_0_9344930_16280.cpp:25: error: `Vector operator*(const Vector&, double)' previously defined here
0_0_9344930_16280.cpp: In function `double Cross(const Vector&, const Vector&)':
0_0_9344930_16280.cpp:198: error: redefinition of `double Cross(const Vector&, const Vector&)'
0_0_9344930_16280.cpp:33: error: `double Cross(const Vector&, const Vector&)' previously defined here
0_0_9344930_16280.cpp: In function `double Dot(const Vector&, const Vector&)':
0_0_9344930_16280.cpp:203: error: redefinition of `double Dot(const Vector&, const Vector&)'
0_0_9344930_16280.cpp:29: error: `double Dot(const Vector&, const Vector&)' previously defined here
0_0_9344930_16280.cpp: In function `double Length(const Vector&)':
0_0_9344930_16280.cpp:208: error: redefinition of `double Length(const Vector&)'
0_0_9344930_16280.cpp:37: error: `double Length(const Vector&)' previously defined here
0_0_9344930_16280.cpp: At global scope:
0_0_9344930_16280.cpp:247: error: redefinition of `const int maxn'
0_0_9344930_16280.cpp:116: error: `const int maxn' previously defined here
0_0_9344930_16280.cpp:248: error: redefinition of `int n'
0_0_9344930_16280.cpp:117: error: `int n' previously declared here
0_0_9344930_16280.cpp: In function `int main()':
0_0_9344930_16280.cpp:288: error: redefinition of `int main()'
0_0_9344930_16280.cpp:142: error: `int main()' previously defined here
In file included from GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/cassert:48,
                 from 0_0_9344930_16280.cpp:314:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/assert.h: At global scope:
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/assert.h:23: error: expected constructor, destructor, or type conversion before "extern"
GCC/bin/../lib/gcc/mingw32/3.4.2/../../../../include/assert.h:23: error: expected `,' or `;' before "extern"
0_0_9344930_16280.cpp:317: error: redefinition of `const double eps'
0_0_9344930_16280.cpp:83: error: `const double eps' previously defined here
0_0_9344930_16280.cpp: In function `double dcmp(double)':
0_0_9344930_16280.cpp:319: error: redefinition of `double dcmp(double)'
0_0_9344930_16280.cpp:165: error: `double dcmp(double)' previously defined here
0_0_9344930_16280.cpp: At global scope:
0_0_9344930_16280.cpp:324: error: redefinition of `struct Point'
0_0_9344930_16280.cpp:9: error: previous definition of `struct Point'
0_0_9344930_16280.cpp: In function `bool operator<(const Point&, const Point&)':
0_0_9344930_16280.cpp:349: error: redefinition of `bool operator<(const Point&, const Point&)'
0_0_9344930_16280.cpp:213: error: `bool operator<(const Point&, const Point&)' previously defined here
0_0_9344930_16280.cpp: In function `bool operator==(const Point&, const Point&)':
0_0_9344930_16280.cpp:354: error: redefinition of `bool operator==(const Point&, const Point&)'
0_0_9344930_16280.cpp:218: error: `bool operator==(const Point&, const Point&)' previously defined here
0_0_9344930_16280.cpp: In function `double Length(Vector)':
0_0_9344930_16280.cpp:368: error: call of overloaded `Dot(Vector&, Vector&)' is ambiguous
0_0_9344930_16280.cpp:29: note: candidates are: double Dot(const Vector&, const Vector&)
0_0_9344930_16280.cpp:359: note:                 double Dot(Vector, Vector)
0_0_9344930_16280.cpp: In function `Point GetLineIntersection(const Point&, const Vector&, const Point&, const Vector&)':
0_0_9344930_16280.cpp:375: error: ambiguous overload for 'operator-' in 'P - Q'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:376: error: call of overloaded `Cross(const Point&, Vector&)' is ambiguous
0_0_9344930_16280.cpp:33: note: candidates are: double Cross(const Vector&, const Vector&)
0_0_9344930_16280.cpp:363: note:                 double Cross(Vector, Vector)
0_0_9344930_16280.cpp:376: error: call of overloaded `Cross(const Point&, const Point&)' is ambiguous
0_0_9344930_16280.cpp:33: note: candidates are: double Cross(const Vector&, const Vector&)
0_0_9344930_16280.cpp:363: note:                 double Cross(Vector, Vector)
0_0_9344930_16280.cpp:377: error: ambiguous overload for 'operator*' in 'v * t'
0_0_9344930_16280.cpp:25: note: candidates are: Vector operator*(const Vector&, double)
0_0_9344930_16280.cpp:342: note:                 Vector operator*(Vector, double)
0_0_9344930_16280.cpp: In function `bool SegmentProperIntersection(const Point&, const Point&, const Point&, const Point&)':
0_0_9344930_16280.cpp:381: error: redefinition of `bool SegmentProperIntersection(const Point&, const Point&, const Point&, const Point&)'
0_0_9344930_16280.cpp:223: error: `bool SegmentProperIntersection(const Point&, const Point&, const Point&, const Point&)' previously defined here
0_0_9344930_16280.cpp:382: error: ambiguous overload for 'operator-' in 'a2 - a1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:382: error: ambiguous overload for 'operator-' in 'b1 - a1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:382: error: ambiguous overload for 'operator-' in 'a2 - a1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:382: error: ambiguous overload for 'operator-' in 'b2 - a1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:383: error: ambiguous overload for 'operator-' in 'b2 - b1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:383: error: ambiguous overload for 'operator-' in 'a1 - b1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:383: error: ambiguous overload for 'operator-' in 'b2 - b1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp:383: error: ambiguous overload for 'operator-' in 'a2 - b1'
0_0_9344930_16280.cpp:21: note: candidates are: Vector operator-(const Point&, const Point&)
0_0_9344930_16280.cpp:337: note:                 Vector operator-(Point, Point)
0_0_9344930_16280.cpp: In function `bool OnSegment(Point, Point, Point)':
0_0_9344930_16280.cpp:389: error: ambiguous overload for 'operato


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-06-29 20:41:59, Gzip enabled