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_33473393_31839.cpp: In function 'int main()':
0_0_33473393_31839.cpp:18:35: error: 'cos' was not declared in this scope
   double vx = V * cos(a * pi / 180);//vx=cos x;vy=sin x;
                                   ^
0_0_33473393_31839.cpp:19:35: error: 'sin' was not declared in this scope
   double vy = V * sin(a * pi / 180);
                                   ^
0_0_33473393_31839.cpp:22:42: error: 'sqrt' was not declared in this scope
    t1 = 2 * ((vy / g) - (sqrt(vy * vy - g)/g));
                                          ^
0_0_33473393_31839.cpp:29:30: error: 'sqrt' was not declared in this scope
    t2 = (sqrt(vy * vy + 6 * g) - vy) / g;
                              ^


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-09-28 05:27:03, Gzip enabled