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_15279348_26472.cpp: In function 'double GetParacurveLength(double, double, double, double)':
0_0_15279348_26472.cpp:3:13: error: 'sgn' was not declared in this scope
     if(sgn(a)==0)
             ^
0_0_15279348_26472.cpp:5:30: error: 'p' was not declared in this scope
         if(sgn(b)==0) return p.r-p.l;
                              ^
0_0_15279348_26472.cpp:6:31: error: 'sqrt' was not declared in this scope
         else return sqrt(1+b*b)*(p.r-p.l);
                               ^
0_0_15279348_26472.cpp:6:34: error: 'p' was not declared in this scope
         else return sqrt(1+b*b)*(p.r-p.l);
                                  ^
0_0_15279348_26472.cpp:9:28: error: 'sqrt' was not declared in this scope
     double ffl=sqrt(fl*fl+1),ffr=sqrt(fr*fr+1);
                            ^
0_0_15279348_26472.cpp:10:16: error: 'ffr' was not declared in this scope
     return (fr*ffr-fl*ffl+log(fabs(fr+ffr))-log(fabs(fl+ffl)))/(4.0*a);
                ^
0_0_15279348_26472.cpp:10:42: error: 'fabs' was not declared in this scope
     return (fr*ffr-fl*ffl+log(fabs(fr+ffr))-log(fabs(fl+ffl)))/(4.0*a);
                                          ^
0_0_15279348_26472.cpp:10:43: error: 'log' was not declared in this scope
     return (fr*ffr-fl*ffl+log(fabs(fr+ffr))-log(fabs(fl+ffl)))/(4.0*a);
                                           ^


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-02 12:07:05, Gzip enabled