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_37795476_14103.cpp: In function 'bool Onsegment(Point, Point, Point)':
0_0_37795476_14103.cpp:76:23: error: 'p' was not declared in this scope
  return dcmp(Cross(a1-p,a2-p))==0&&dcmp(Dot(a1-p,a2-p))<0;
                       ^
0_0_37795476_14103.cpp: In function 'double PolygonArea(Point*, int)':
0_0_37795476_14103.cpp:82:3: error: 'area' was not declared in this scope
   area+=Cross(p[i]-p[0],p[i+1]-p[0]);
   ^
0_0_37795476_14103.cpp:83:9: error: 'area' was not declared in this scope
  return area/2;
         ^
0_0_37795476_14103.cpp: In function 'void solve(Vector, Vector, double)':
0_0_37795476_14103.cpp:98:12: error: 'pi' was not declared in this scope
  double t2=pi/2-t1;
            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 16:01:43, Gzip enabled