F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33864531_32398.cpp:27:24: error: 'Line' is not a type
 int disOfLine(Point k, Line a) {
                        ^
0_0_33864531_32398.cpp: In function 'long long int disOfLine(Point, int)':
0_0_33864531_32398.cpp:28:16: error: request for member 'a' in 'a', which is of non-class type 'int'
     int x1 = a.a.x, x2 = a.b.x;
                ^
0_0_33864531_32398.cpp:29:16: error: request for member 'a' in 'a', which is of non-class type 'int'
     int y1 = a.a.y, y2 = a.b.y;
                ^
0_0_33864531_32398.cpp:31:40: error: 'x2' was not declared in this scope
     Point m = {x1 - x0, y1 - y0}, n = {x2 - x0, y2 - y0}, perp = {y1 - y2, x2 - x1};
                                        ^
0_0_33864531_32398.cpp:31:49: error: 'y2' was not declared in this scope
     Point m = {x1 - x0, y1 - y0}, n = {x2 - x0, y2 - y0}, perp = {y1 - y2, x2 - x1};
                                                 ^
0_0_33864531_32398.cpp:33:66: error: 'B' was not declared in this scope
     if(mul(perp, m) * mul(perp, n) < -1e-6) return fabs(A * x0 + B * y0 + C) / sqrt(A * A + B * B);
                                                                  ^
0_0_33864531_32398.cpp:33:75: error: 'C' was not declared in this scope
     if(mul(perp, m) * mul(perp, n) < -1e-6) return fabs(A * x0 + B * y0 + C) / sqrt(A * A + B * B);
                                                                           ^
0_0_33864531_32398.cpp:34:25: error: request for member 'a' in 'a', which is of non-class type 'int'
     return min(dis(k, a.a, dis(k, a.b)));
                         ^
0_0_33864531_32398.cpp:34:37: error: request for member 'b' in 'a', which is of non-class type 'int'
     return min(dis(k, a.a, dis(k, a.b)));
                                     ^
0_0_33864531_32398.cpp: At global scope:
0_0_33864531_32398.cpp:36:16: error: 'a' was not declared in this scope
 bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
                ^
0_0_33864531_32398.cpp:36:25: error: 'b' was not declared in this scope
 bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
                         ^
0_0_33864531_32398.cpp:36:26: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
                          ^
0_0_33864531_32398.cpp:36:28: error: expected ',' or ';' before '{' token
 bool cmp(Line &a, Line &b) { return disOfLine({-INF, -INF}, a) < disOfLine({-INF, -INF}, b); }
                            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-01 07:27:26, Gzip enabled