0_0_24055820_25167.cpp: In function 'void get_center_point(int, int)':
0_0_24055820_25167.cpp:3:16: error: 'p' was not declared in this scope
double x0=(p[a][0]+p[b][0])/2;
^
0_0_24055820_25167.cpp:5:96: error: 'sqrt' was not declared in this scope
double d=sqrt(1-((p[a][0]-p[b][0])*(p[a][0]-p[b][0])+(p[a][1]-p[b][1])*(p[a][1]-p[b][1]))/4);
^
0_0_24055820_25167.cpp:6:28: error: 'fabs' was not declared in this scope
if(fabs(p[a][1]-p[b][1])<1e-6)
^
0_0_24055820_25167.cpp:8:9: error: 'xx1' was not declared in this scope
xx1=x0;
^
0_0_24055820_25167.cpp:9:9: error: 'yy1' was not declared in this scope
yy1=y0+d;
^
0_0_24055820_25167.cpp:10:9: error: 'xx2' was not declared in this scope
xx2=x0;
^
0_0_24055820_25167.cpp:11:9: error: 'yy2' was not declared in this scope
yy2=y0-d;
^
0_0_24055820_25167.cpp:15:61: error: 'atan' was not declared in this scope
double tmp=atan(-(p[a][0]-p[b][0])/(p[a][1]-p[b][1]));
^
0_0_24055820_25167.cpp:16:28: error: 'cos' was not declared in this scope
double dx=d*cos(tmp);
^
0_0_24055820_25167.cpp:17:28: error: 'sin' was not declared in this scope
double dy=d*sin(tmp);
^
0_0_24055820_25167.cpp:18:9: error: 'xx1' was not declared in this scope
xx1=x0+dx;
^
0_0_24055820_25167.cpp:19:9: error: 'yy1' was not declared in this scope
yy1=y0+dy;
^
0_0_24055820_25167.cpp:20:9: error: 'xx2' was not declared in this scope
xx2=x0-dx;
^
0_0_24055820_25167.cpp:21:9: error: 'yy2' was not declared in this scope
yy2=y0-dy;
^
|