0_0_35986979_21742.cpp:31:1: error: stray '\243' in program
bool OnLeft(Line L, Point p){return sgn(Cross(L.v,p-L.p))>0;}
^
0_0_35986979_21742.cpp:31:1: error: stray '\250' in program
0_0_35986979_21742.cpp:47:7: error: stray '\243' in program
while(first<last&&!OnLeft(L[i],p[last-1]))last--;
^
0_0_35986979_21742.cpp:47:7: error: stray '\250' in program
0_0_35986979_21742.cpp:31:14: error: expected initializer before 'Line'
bool OnLeft(Line L, Point p){return sgn(Cross(L.v,p-L.p))>0;}
^
0_0_35986979_21742.cpp: In function 'std::vector<Point> HPI(std::vector<Line>)':
0_0_35986979_21742.cpp:47:14: error: expected '(' before 'first'
while(first<last&&!OnLeft(L[i],p[last-1]))last--;
^
0_0_35986979_21742.cpp:47:48: error: 'OnLeft' was not declared in this scope
while(first<last&&!OnLeft(L[i],p[last-1]))last--;
^
0_0_35986979_21742.cpp:49:52: error: 'OnLeft' was not declared in this scope
while (first < last && !OnLeft(L[i], p[first])) first++;
^
0_0_35986979_21742.cpp:54:35: error: 'OnLeft' was not declared in this scope
if (OnLeft(q[last], L[i].p)) q[last] = L[i];
^
0_0_35986979_21742.cpp:60:55: error: 'OnLeft' was not declared in this scope
while (first < last && !OnLeft(q[first], p[last - 1])) last--;
^
0_0_35986979_21742.cpp: In function 'int main()':
0_0_35986979_21742.cpp:81:12: error: 'POint' was not declared in this scope
vector<POint> ans = HPI(L); //得到凸多边形
^
0_0_35986979_21742.cpp:81:17: error: template argument 1 is invalid
vector<POint> ans = HPI(L); //得到凸多边形
^
0_0_35986979_21742.cpp:81:17: error: template argument 2 is invalid
0_0_35986979_21742.cpp:81:23: error: invalid type in declaration before '=' token
vector<POint> ans = HPI(L); //得到凸多边形
^
0_0_35986979_21742.cpp:81:30: error: cannot convert 'std::vector<Point>' to 'int' in initialization
vector<POint> ans = HPI(L); //得到凸多边形
^
0_0_35986979_21742.cpp:82:24: error: request for member 'size' in 'ans', which is of non-class type 'int'
printf("%d\n", ans.size() - 2); //去掉人为加的两个点
^
|