0_0_14699140_15367.cpp: In function 'bool solve1(double)':
0_0_14699140_15367.cpp:2:5: error: 'vector' was not declared in this scope
vector<Point> ch;
^
0_0_14699140_15367.cpp:2:12: error: 'Point' was not declared in this scope
vector<Point> ch;
^
0_0_14699140_15367.cpp:2:19: error: 'ch' was not declared in this scope
vector<Point> ch;
^
0_0_14699140_15367.cpp:3:19: error: 'n' was not declared in this scope
for(int i=0;i<n;i++){
^
0_0_14699140_15367.cpp:4:24: error: 'p' was not declared in this scope
if(dcmp(height-p[i].y)>=0)ch.push_back(p[i]);
^
0_0_14699140_15367.cpp:4:30: error: 'dcmp' was not declared in this scope
if(dcmp(height-p[i].y)>=0)ch.push_back(p[i]);
^
0_0_14699140_15367.cpp:6:13: error: 'Line' was not declared in this scope
Line L1=Line(Point(0,height),Point(1,0));
^
0_0_14699140_15367.cpp:7:18: error: expected ';' before 'L2'
Line L2=Line(p[i-1],p[i]-p[i-1]);
^
0_0_14699140_15367.cpp:8:46: error: 'L1' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:8:49: error: 'L2' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:8:51: error: 'GetLineINtersection' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:11:15: error: 'm' was not declared in this scope
for(int i=m-1;i>=0;i--){
^
0_0_14699140_15367.cpp:12:17: error: 'q' was not declared in this scope
if(dcmp(q[i].y-height)>0)continue;
^
0_0_14699140_15367.cpp:12:30: error: 'dcmp' was not declared in this scope
if(dcmp(q[i].y-height)>0)continue;
^
0_0_14699140_15367.cpp:13:17: error: 'q' was not declared in this scope
if(dcmp(q[i].y-height)==0)ch.push_back(q[i]);
^
0_0_14699140_15367.cpp:13:30: error: 'dcmp' was not declared in this scope
if(dcmp(q[i].y-height)==0)ch.push_back(q[i]);
^
0_0_14699140_15367.cpp:16:17: error: 'Line' was not declared in this scope
Line L1=Line(Point(0,height),Point(1,0));
^
0_0_14699140_15367.cpp:17:22: error: expected ';' before 'L2'
Line L2=Line(q[i+1],q[i]-q[i+1]);
^
0_0_14699140_15367.cpp:18:50: error: 'L1' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:18:53: error: 'L2' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:18:55: error: 'GetLineINtersection' was not declared in this scope
ch.push_back(GetLineINtersection(L1,L2));
^
0_0_14699140_15367.cpp:24:11: error: expected ';' before 'tt'
Point tt=PolyGravity(ch);
^
0_0_14699140_15367.cpp:25:14: error: 'tt' was not declared in this scope
if(dcmp((tt.x-p[0].x)*(tt.x-q[0].x))<=0)return 1;
^
0_0_14699140_15367.cpp:25:19: error: 'p' was not declared in this scope
if(dcmp((tt.x-p[0].x)*(tt.x-q[0].x))<=0)return 1;
^
0_0_14699140_15367.cpp:25:33: error: 'q' was not declared in this scope
if(dcmp((tt.x-p[0].x)*(tt.x-q[0].x))<=0)return 1;
^
0_0_14699140_15367.cpp:25:40: error: 'dcmp' was not declared in this scope
if(dcmp((tt.x-p[0].x)*(tt.x-q[0].x))<=0)return 1;
^
|