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_33525930_26115.cpp: In function 'int main()':
0_0_33525930_26115.cpp:18:9: error: 'Point' was not declared in this scope
         Point p[n];
         ^
0_0_33525930_26115.cpp:19:54: error: 'p' was not declared in this scope
         for (int i = 0; i < n; i++) scanf("%lf%lf", &p[i].x, &p[i].y);
                                                      ^
0_0_33525930_26115.cpp:20:24: error: 'p' was not declared in this scope
         double ar = PA(p, n);
                        ^
0_0_33525930_26115.cpp:20:28: error: 'PA' was not declared in this scope
         double ar = PA(p, n);
                            ^
0_0_33525930_26115.cpp:24:13: error: 'Vector' was not declared in this scope
             Vector v1 = p[0]-p[1], v2 = p[2]-p[1];
             ^
0_0_33525930_26115.cpp:25:31: error: 'v1' was not declared in this scope
             double an = Angle(v1, v2)/2;
                               ^
0_0_33525930_26115.cpp:25:35: error: 'v2' was not declared in this scope
             double an = Angle(v1, v2)/2;
                                   ^
0_0_33525930_26115.cpp:25:37: error: 'Angle' was not declared in this scope
             double an = Angle(v1, v2)/2;
                                     ^
0_0_33525930_26115.cpp:26:40: error: 'ang' was not declared in this scope
             double len = (double)r/sin(ang);
                                        ^
0_0_33525930_26115.cpp:27:20: error: expected ';' before 'v3'
             Vector v3 = Rotate(v1, ang);
                    ^
0_0_33525930_26115.cpp:28:19: error: expected ';' before 'o'
             Point o = p[1]+v3/Length(v3)*len;
                   ^
0_0_33525930_26115.cpp:29:13: error: 'Circle' was not declared in this scope
             Circle c = Circle(o, (double)r);
             ^
0_0_33525930_26115.cpp:33:17: error: 'Line' was not declared in this scope
                 Line l = Line(p[i], p[(i+1)%n]-p[i]);
                 ^
0_0_33525930_26115.cpp:34:53: error: 'l' was not declared in this scope
                 int cnt = getLineCircleIntersection(l, c);
                                                     ^
0_0_33525930_26115.cpp:34:56: error: 'c' was not declared in this scope
                 int cnt = getLineCircleIntersection(l, c);
                                                        ^
0_0_33525930_26115.cpp:34:57: error: 'getLineCircleIntersection' was not declared in this scope
                 int cnt = getLineCircleIntersection(l, c);
                                                         ^
0_0_33525930_26115.cpp:49:24: error: expected ';' before 'v1'
                 Vector v1 = p[i]-p[(i+1)%n], v2 = p[(i+2)%n]-p[(i+1)%n];
                        ^


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-11-16 23:40:04, Gzip enabled