0_0_22207831_12335.cpp:36:3: error: 'P' does not name a type
} P[105], ch[105];
^
0_0_22207831_12335.cpp:117:1: error: expected '}' at end of input
}
^
0_0_22207831_12335.cpp: In member function 'double Point::operator*(const Point&) const':
0_0_22207831_12335.cpp:31:5: error: a function-definition is not allowed here before '{' token
{
^
0_0_22207831_12335.cpp: In member function 'bool Point::cmp(Point, Point)':
0_0_22207831_12335.cpp:48:25: error: 'P' was not declared in this scope
if(dcmp(xmult(a, b, P[0])) == 0){
^
0_0_22207831_12335.cpp: In member function 'int Point::Graham(int)':
0_0_22207831_12335.cpp:58:12: error: 'P' was not declared in this scope
if(P[i].y < P[s].y || (P[i].y == P[s].y && P[i].x < P[s].x)){
^
0_0_22207831_12335.cpp:63:21: error: 'P' was not declared in this scope
Point tmp = P[0];
^
0_0_22207831_12335.cpp:67:10: error: 'P' was not declared in this scope
sort(P+1, P+n, cmp);
^
0_0_22207831_12335.cpp:68:5: error: 'ch' was not declared in this scope
ch[0] = P[0], ch[1] = P[1];
^
0_0_22207831_12335.cpp: In member function 'int Point::main()':
0_0_22207831_12335.cpp:91:30: error: 'P' was not declared in this scope
scanf("%lf%lf", &P[i].x, &P[i].y);
^
0_0_22207831_12335.cpp:97:35: error: 'ch' was not declared in this scope
double sum = Distance(ch[0], ch[t-1]);
^
0_0_22207831_12335.cpp:107:35: error: 'P' was not declared in this scope
double dis = Distance(P[0], P[1]);
^
0_0_22207831_12335.cpp: At global scope:
0_0_22207831_12335.cpp:117:1: error: expected unqualified-id at end of input
}
^
|