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_15577569_21015.cpp: In function 'int dcmp(double)':
0_0_15577569_21015.cpp:3:14: error: 'fabs' was not declared in this scope
     if(fabs(x)<eps)  return 0;else return x < 0 ? -1 : 1;
              ^
0_0_15577569_21015.cpp: In function 'double dis(Point, Point)':
0_0_15577569_21015.cpp:23:57: error: 'sqrt' was not declared in this scope
     return  sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
                                                         ^
0_0_15577569_21015.cpp: In function 'double Length(Vec)':
0_0_15577569_21015.cpp:38:45: error: 'sqrt' was not declared in this scope
 double Length(Vec A)  { return sqrt(Dot(A,A)); }
                                             ^
0_0_15577569_21015.cpp: In function 'double Angle(Vec, Vec)':
0_0_15577569_21015.cpp:40:70: error: 'acos' was not declared in this scope
 double Angle(Vec A,Vec B)  { return acos(Dot(A,B)/Length(A)/Length(B)); }
                                                                      ^
0_0_15577569_21015.cpp: In function 'Vec Rotate(Vec, double)':
0_0_15577569_21015.cpp:47:27: error: 'cos' was not declared in this scope
     return Vec(A.x*cos(rad)-A.y*sin(rad),A.x*sin(rad)+A.y*cos(rad));
                           ^
0_0_15577569_21015.cpp:47:40: error: 'sin' was not declared in this scope
     return Vec(A.x*cos(rad)-A.y*sin(rad),A.x*sin(rad)+A.y*cos(rad));
                                        ^
0_0_15577569_21015.cpp: In function 'double Dis_to_Line(Point, Point, Point)':
0_0_15577569_21015.cpp:76:29: error: 'fabs' was not declared in this scope
     return fabs(Cross(v1,v2)) / Length(v1);
                             ^
0_0_15577569_21015.cpp: In function 'double Dis_to_Seg(Point, Point, Point)':
0_0_15577569_21015.cpp:84:34: error: 'fabs' was not declared in this scope
     else return fabs(Cross(v1,v2))/Length(v1);
                                  ^
0_0_15577569_21015.cpp: In function 'int convechull(int)':
0_0_15577569_21015.cpp:111:15: error: 'sort' was not declared in this scope
     sort(p,p+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-30 08:08:22, Gzip enabled