0_0_20989817_3158.cpp:12:16: error: '#' is not followed by a macro parameter
#define MID(x,y) ( ( x + y ) >> 1 )
^
0_0_20989817_3158.cpp:15:18: error: '#' is not followed by a macro parameter
#define FOR(i,s,t) for(int i=(s); i<(t); i++)
^
0_0_20989817_3158.cpp:35:44: error: stray '#' in program
bool dy(double x,double y) { return x > y + eps;} // x > y
^
0_0_20989817_3158.cpp:38:45: error: stray '#' in program
bool xyd(double x,double y) { return x < y + eps;} // x <= y
^
0_0_20989817_3158.cpp:42:46: error: stray '#' in program
return sqrt( ( a.x - b.x ) * ( a.x - b.x ) + ( a.y - b.y ) * ( a.y - b.y ) );
^
0_0_20989817_3158.cpp:55:9: error: stray '#' in program
ans.x += (u2.x - u1.x)*t;
^
0_0_20989817_3158.cpp:56:9: error: stray '#' in program
ans.y += (u2.y - u1.y)*t;
^
0_0_20989817_3158.cpp:63:7: error: stray '#' in program
p.x += l1.y - l2.y;
^
0_0_20989817_3158.cpp:64:7: error: stray '#' in program
p.y += l2.x - l1.x;
^
0_0_20989817_3158.cpp:67:14: error: stray '#' in program
p1.x = p.x + (l2.x - l1.x)*t;
^
0_0_20989817_3158.cpp:68:14: error: stray '#' in program
p1.y = p.y + (l2.y - l1.y)*t;
^
0_0_20989817_3158.cpp:76:10: error: stray '#' in program
t = (1 + (r1*r1 - r2*r2)/disp2p(c1,c2)/disp2p(c1,c2))/2;
^
0_0_20989817_3158.cpp:77:14: error: stray '#' in program
u.x = c1.x + (c2.x - c1.x)*t;
^
0_0_20989817_3158.cpp:78:14: error: stray '#' in program
u.y = c1.y + (c2.y - c1.y)*t;
^
0_0_20989817_3158.cpp:79:13: error: stray '#' in program
v.x = u.x + c1.y - c2.y;
^
0_0_20989817_3158.cpp:80:20: error: stray '#' in program
v.y = u.y - c1.x + c2.x;
^
0_0_20989817_3158.cpp:85:24: error: stray '#' in program
if( dd(disp2p(a,b),r1+r2) || dd(disp2p(a,b),fabs(r1-r2)) )
^
0_0_20989817_3158.cpp:92:25: error: stray '#' in program
if( dd(disp2p(a,b),r1 + r2) )
^
0_0_20989817_3158.cpp:94:18: error: stray '#' in program
t.x = (r1*b.x + r2*a.x)/(r1 + r2);
^
0_0_20989817_3158.cpp:94:36: error: stray '#' in program
t.x = (r1*b.x + r2*a.x)/(r1 + r2);
^
0_0_20989817_3158.cpp:95:18: error: stray '#' in program
t.y = (r1*b.y + r2*a.y)/(r1 + r2);
^
0_0_20989817_3158.cpp:95:36: error: stray '#' in program
t.y = (r1*b.y + r2*a.y)/(r1 + r2);
^
0_0_20989817_3158.cpp:145:29: error: stray '#' in program
if( dd(len, disp2p(a, M) + d) && Minall(a, n) && xy(len-d, mmin) )
^
0_0_20989817_3158.cpp:147:29: error: stray '#' in program
if( dd(len, disp2p(b, M) + d) && Minall(b, n) && xy(len-d, mmin) )
^
0_0_20989817_3158.cpp:153:12: error: stray '#' in program
FOR(k, i+1, n) {
^
0_0_20989817_3158.cpp:158:20: error: stray '#' in program
p.x = (c[i].x + c[k].x)/2;
^
0_0_20989817_3158.cpp:159:20: error: stray '#' in program
p.y = (c[i].y + c[k].y)/2;
^
0_0_20989817_3158.cpp: In function 'double disp2p(point, point)':
0_0_20989817_3158.cpp:42:47: error: invalid operands of types 'double' and 'int' to binary 'operator&'
return sqrt( ( a.x - b.x ) * ( a.x - b.x ) + ( a.y - b.y ) * ( a.y - b.y ) );
^
0_0_20989817_3158.cpp:42:81: error: expected ';' before ')' token
return sqrt( ( a.x - b.x ) * ( a.x - b.x ) + ( a.y - b.y ) * ( a.y - b.y ) );
^
0_0_20989817_3158.cpp: In function 'point l2l_inst_p(point, point, point, point)':
0_0_20989817_3158.cpp:55:10: error: invalid operands of types 'double' and 'int' to binary 'operator&'
ans.x += (u2.x - u1.x)*t;
^
0_0_20989817_3158.cpp:55:13: error: expected primary-expression before '=' token
ans.x += (u2.x - u1.x)*t;
^
0_0_20989817_3158.cpp:56:10: error: invalid operands of types 'double' and 'int' to binary 'operator&'
ans.y += (u2.y - u1.y)*t;
^
0_0_20989817_3158.cpp:56:13: error: expected primary-expression before '=' token
ans.y += (u2.y - u1.y)*t;
^
0_0_20989817_3158.cpp: In function 'void l2c_inst_p(point, double, point, point, point&, point&)':
0_0_20989817_3158.cpp:63:8: error: invalid operands of types 'double' and 'int' to binary 'operator&'
p.x += l1.y - l2.y;
^
0_0_20989817_3158.cpp:63:11: error: expected primary-expression before '=' token
p.x += l1.y - l2.y;
^
0_0_20989817_3158.cpp:64:8: error: invalid operands of types 'double' and 'int' to binary 'operator&'
p.y += l2.x - l1.x;
^
0_0_20989817_3158.cpp:64:11: error: expected primary-expression before '=' token
p.y += l2.x - l1.x;
^
0_0_20989817_3158.cpp:67:15: error: invalid operands of types 'double' and 'int' to binary 'operator&'
p1.x = p.x + (l2.x - l1.x)*t;
^
0_0_20989817_3158.cpp:68:15: error: invalid operands of types 'double' and 'int' to binary 'operator&'
p1.y = p.y + (l2.y - l1.y)*t;
^
0_0_20989817_3158.cpp: In function 'void c2c_inst_p(point, double, point, double, point&, point&)':
0_0_20989817_3158.cpp:76:13: error: expected ')' before ';' token
t = (1 + (r1*r1 - r2*r2)/disp2p(c1,c2)/disp2p(c1,c2))/2;
^
0_0_20989817_3158.cpp:76:58: error: expected ';' before ')' token
t = (1 + (r1*r1 - r2*r2)/disp2p(c1,c2)/disp2p(c1,c2))/2;
^
0_0_20989817_3158.cpp:77:15: error: invalid operands of types 'double' and 'int' to binary 'operator&'
u.x = c1.x + (c2.x - c1.x)*t;
^
0_0_20989817_3158.cpp:78:15: error: invalid operands of types 'double' and 'int' to binary 'operator&'
u.y = c1.y + (c2.y - c1.y)*t;
^
0_0_20989817_3158.cpp:79:14: error: invalid operands of types 'double' and 'int' to binary 'operator&'
v.x = u.x + c1.y - c2.y;
^
0_0_20989817_3158.cpp:80:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
v.y = u.y - c1.x + c2.x;
^
0_0_20989817_3158.cpp: In function 'bool c2c_tangent(point, double, point, double)':
0_0_20989817_3158.cpp:85:25: error: invalid operands of types 'double' and 'int' to binary 'operator&'
if( dd(disp2p(a,b),r1+r2) || dd(disp2p(a,b),fabs(r1-r2)) )
^
0_0_20989817_3158.cpp:85:27: error: expected ')' before ';' token
if( dd(disp2p(a,b),r1+r2) || dd(disp2p(a,b),fabs(r1-r2)) )
^
0_0_20989817_3158.cpp:85:30: error: expected ';' before ')' token
if( dd(disp2p(a,b),r1+r2) || dd(disp2p(a,b),fabs(r1-r2)) )
^
0_0_20989817_3158.cpp: In function 'point c2c_tangent_p(point, double, point, double)':
0_0_20989817_3158.cpp:92:26: error: invalid operands of types 'double' and 'int' to binary 'operator&'
if( dd(disp2p(a,b),r1 + r2) )
^
0_0_20989817_3158.cpp:92:28: error: expected ')' before ';' token
if( dd(disp2p(a,b),r1 + r2) )
^
0_0_20989817_3158.cpp:92:32: error: expected ';' before ')' token
if( dd(disp2p(a,b),r1 + r2) )
^
0_0_20989817_3158.cpp: In function 'bool xiangqie(point, int)':
0_0_20989817_3158.cpp:120:6: error: 'i' was not declared in this scope
FOR(i, 0, n)
^
0_0_20989817_3158.cpp:120:13: error: 'FOR' was not declared in this scope
FOR(i, 0, n)
^
0_0_20989817_3158.cpp: In function 'bool Minall(point, int)':
0_0_20989817_3158.cpp:127:6: error: 'i' was not declared in this scope
FOR(i, 0, n)
^
0_0_20989817_3158.cpp:127:13: error: 'FOR' was not declared in this scope
FOR(i, 0, n)
^
0_0_20989817_3158.cpp: In function 'double solve(int)':
0_0_20989817_3158.cpp:139:6: error: 'i' was not declared in this scope
FOR(i, 0, n) {
^
0_0_20989817_3158.cpp:139:13: error: 'FOR' was not declared in this scope
FOR(i, 0, n) {
^
0_0_20989817_3158.cpp:153:20: error: expected ';' before ')' token
FOR(k, i+1, n) {
^
0_0_20989817_3158.cpp:198:1: error: expected '}' at end of input
}
^
|