0_0_36233283_806.cpp:11:20: error: 'Point' does not name a type
double Dist2(const Point& A, const Point& B)
^
0_0_36233283_806.cpp:11:36: error: 'Point' does not name a type
double Dist2(const Point& A, const Point& B)
^
0_0_36233283_806.cpp: In function 'double Dist2(const int&, const int&)':
0_0_36233283_806.cpp:12:13: error: request for member 'x' in 'A', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:19: error: request for member 'x' in 'B', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:27: error: request for member 'x' in 'A', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:33: error: request for member 'x' in 'B', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:41: error: request for member 'y' in 'A', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:47: error: request for member 'y' in 'B', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:55: error: request for member 'y' in 'A', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp:12:61: error: request for member 'y' in 'B', which is of non-class type 'const int'
{ return (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y); }
^
0_0_36233283_806.cpp: At global scope:
0_0_36233283_806.cpp:19:3: error: 'Point' does not name a type
Point c;
^
0_0_36233283_806.cpp:21:16: error: expected ')' before 'c'
Circle(Point c, double r) :c(c), r(r) {}
^
0_0_36233283_806.cpp:22:3: error: 'Point' does not name a type
Point point(double a) {
^
0_0_36233283_806.cpp:30:55: error: 'Point' has not been declared
int getCircleCircleIntersection(Circle C1, Circle C2, Point &a,Point &b) {
^
0_0_36233283_806.cpp:30:64: error: 'Point' has not been declared
int getCircleCircleIntersection(Circle C1, Circle C2, Point &a,Point &b) {
^
0_0_36233283_806.cpp: In function 'int getCircleCircleIntersection(Circle, Circle, int&, int&)':
0_0_36233283_806.cpp:31:28: error: 'struct Circle' has no member named 'c'
double d = sqrt(Dist2(C1.c,C2.c));
^
0_0_36233283_806.cpp:31:33: error: 'struct Circle' has no member named 'c'
double d = sqrt(Dist2(C1.c,C2.c));
^
0_0_36233283_806.cpp:38:23: error: 'struct Circle' has no member named 'c'
double k = atan2(C2.c.y - C1.c.y,C2.c.x-C1.c.x); //向量C1C2的极角
^
0_0_36233283_806.cpp:38:32: error: 'struct Circle' has no member named 'c'
double k = atan2(C2.c.y - C1.c.y,C2.c.x-C1.c.x); //向量C1C2的极角
^
0_0_36233283_806.cpp:38:39: error: 'struct Circle' has no member named 'c'
double k = atan2(C2.c.y - C1.c.y,C2.c.x-C1.c.x); //向量C1C2的极角
^
0_0_36233283_806.cpp:38:46: error: 'struct Circle' has no member named 'c'
double k = atan2(C2.c.y - C1.c.y,C2.c.x-C1.c.x); //向量C1C2的极角
^
0_0_36233283_806.cpp:40:10: error: 'struct Circle' has no member named 'point'
a = C1.point(k - da), b = C1.point(k + da);
^
0_0_36233283_806.cpp:40:32: error: 'struct Circle' has no member named 'point'
a = C1.point(k - da), b = C1.point(k + da);
^
0_0_36233283_806.cpp:41:14: error: request for member 'x' in 'a', which is of non-class type 'int'
if (dcmp(a.x-b.x)==0&&dcmp(a.y-b.y)==0) return 1; //相切
^
0_0_36233283_806.cpp:41:18: error: request for member 'x' in 'b', which is of non-class type 'int'
if (dcmp(a.x-b.x)==0&&dcmp(a.y-b.y)==0) return 1; //相切
^
0_0_36233283_806.cpp:41:32: error: request for member 'y' in 'a', which is of non-class type 'int'
if (dcmp(a.x-b.x)==0&&dcmp(a.y-b.y)==0) return 1; //相切
^
0_0_36233283_806.cpp:41:36: error: request for member 'y' in 'b', which is of non-class type 'int'
if (dcmp(a.x-b.x)==0&&dcmp(a.y-b.y)==0) return 1; //相切
^
0_0_36233283_806.cpp: At global scope:
0_0_36233283_806.cpp:44:17: error: 'Point' was not declared in this scope
bool isInCircle(Point p, Circle cir) {
^
0_0_36233283_806.cpp:44:33: error: expected primary-expression before 'cir'
bool isInCircle(Point p, Circle cir) {
^
0_0_36233283_806.cpp:44:36: error: expression list treated as compound expression in initializer [-fpermissive]
bool isInCircle(Point p, Circle cir) {
^
0_0_36233283_806.cpp:44:38: error: expected ',' or ';' before '{' token
bool isInCircle(Point p, Circle cir) {
^
0_0_36233283_806.cpp:47:12: error: 'vector' was not declared in this scope
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:12: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64: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_36233283_806.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_36233283_806.cpp:47:19: error: 'Point' was not declared in this scope
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:25: error: 'p' was not declared in this scope
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:28: error: 'vector' was not declared in this scope
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:28: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64: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_36233283_806.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_36233283_806.cpp:47:41: error: expected primary-expression before '>' token
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:42: error: 'cir' was not declared in this scope
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:45: error: expression list treated as compound expression in initializer [-fpermissive]
bool check(vector<Point>p, vector<Circle>cir) {
^
0_0_36233283_806.cpp:47:47: error: expected ',' or ';' before '{' token
bool check(vector<Point>p, vector<Circle>cir) {
^
|