0_0_32629576_14632.cpp:124:8: error: redefinition of 'struct Point'
struct Point
^
0_0_32629576_14632.cpp:7:8: error: previous definition of 'struct Point'
struct Point
^
0_0_32629576_14632.cpp:137:7: error: invalid type in declaration before ';' token
} p[M];
^
0_0_32629576_14632.cpp:137:7: error: conflicting declaration 'int p [100009]'
0_0_32629576_14632.cpp:20:3: note: previous declaration as 'Point p [100009]'
} p[M];
^
0_0_32629576_14632.cpp: In function 'double max(double, double)':
0_0_32629576_14632.cpp:138:8: error: redefinition of 'double max(double, double)'
double max(double a, double b) { return a > b ? a : b; }
^
0_0_32629576_14632.cpp:21:8: note: 'double max(double, double)' previously defined here
double max(double a, double b) { return a > b ? a : b; }
^
0_0_32629576_14632.cpp: In function 'double min(double, double)':
0_0_32629576_14632.cpp:139:8: error: redefinition of 'double min(double, double)'
double min(double a, double b) { return a < b ? a : b; }
^
0_0_32629576_14632.cpp:22:8: note: 'double min(double, double)' previously defined here
double min(double a, double b) { return a < b ? a : b; }
^
0_0_32629576_14632.cpp: In function 'double len(Point)':
0_0_32629576_14632.cpp:140:8: error: redefinition of 'double len(Point)'
double len(Point a) { return sqrt(a * a); } // 向量 a 的长度
^
0_0_32629576_14632.cpp:23:8: note: 'double len(Point)' previously defined here
double len(Point a) { return sqrt(a * a); } // 向量 a 的长度
^
0_0_32629576_14632.cpp: In function 'double dis(Point, Point)':
0_0_32629576_14632.cpp:141:8: error: redefinition of 'double dis(Point, Point)'
double dis(Point a, Point b) { return len(b - a); } // a 与 b 之间的距离
^
0_0_32629576_14632.cpp:24:8: note: 'double dis(Point, Point)' previously defined here
double dis(Point a, Point b) { return len(b - a); } // a 与 b 之间的距离
^
0_0_32629576_14632.cpp: In function 'double cross(Point, Point, Point)':
0_0_32629576_14632.cpp:142:8: error: redefinition of 'double cross(Point, Point, Point)'
double cross(Point a, Point b, Point c) // (a , b) ×(a , c)
^
0_0_32629576_14632.cpp:25:8: note: 'double cross(Point, Point, Point)' previously defined here
double cross(Point a, Point b, Point c) // (a , b) ×(a , c)
^
0_0_32629576_14632.cpp: In function 'double dot(Point, Point, Point)':
0_0_32629576_14632.cpp:146:8: error: redefinition of 'double dot(Point, Point, Point)'
double dot(Point a, Point b, Point c) // (a , b) * (a , c)
^
0_0_32629576_14632.cpp:29:8: note: 'double dot(Point, Point, Point)' previously defined here
double dot(Point a, Point b, Point c) // (a , b) * (a , c)
^
0_0_32629576_14632.cpp: In function 'int judge(Point, Point, Point)':
0_0_32629576_14632.cpp:150:5: error: redefinition of 'int judge(Point, Point, Point)'
int judge(Point a, Point b, Point c) // 判断 点c 是否在 线段 ab 上
^
0_0_32629576_14632.cpp:33:5: note: 'int judge(Point, Point, Point)' previously defined here
int judge(Point a, Point b, Point c) // 判断 点c 是否在 线段 ab 上
^
0_0_32629576_14632.cpp: In function 'double area(Point, Point, double)':
0_0_32629576_14632.cpp:156:8: error: redefinition of 'double area(Point, Point, double)'
double area(Point b, Point c, double r) // 圆心 a , 半径 r , 与三角形 a , b , c 相交的面积
^
0_0_32629576_14632.cpp:39:8: note: 'double area(Point, Point, double)' previously defined here
double area(Point b, Point c, double r) // 圆心 a , 半径 r , 与三角形 a , b , c 相交的面积
^
0_0_32629576_14632.cpp: In function 'int main()':
0_0_32629576_14632.cpp:199:5: error: redefinition of 'int main()'
int main()
^
0_0_32629576_14632.cpp:82:5: note: 'int main()' previously defined here
int main()
^
|