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_33617534_9354.cpp:5:28: error: 'acos' was not declared in this scope
 const double pi = acos(-1.0);
                            ^
0_0_33617534_9354.cpp: In function 'std::pair<double, double> get_point(const std::pair<double, double>&, const double&)':
0_0_33617534_9354.cpp:11:39: error: 'cos' was not declared in this scope
     return make_pair(a.first * cos(rad) - (a.second - h / 3) * sin(rad), a.first * sin(rad) + (a.second - h / 3) * cos(rad) + h / 3);
                                       ^
0_0_33617534_9354.cpp:11:71: error: 'sin' was not declared in this scope
     return make_pair(a.first * cos(rad) - (a.second - h / 3) * sin(rad), a.first * sin(rad) + (a.second - h / 3) * cos(rad) + h / 3);
                                                                       ^
0_0_33617534_9354.cpp: In function 'bool ck(double)':
0_0_33617534_9354.cpp:16:97: error: 'floor' was not declared in this scope
     has += abs(floor(get_point(make_pair(sx + vx * times, sy + vy * times), base * 0).second / h));
                                                                                                 ^
0_0_33617534_9354.cpp: In function 'int main()':
0_0_33617534_9354.cpp:25:23: error: 'sqrt' was not declared in this scope
         h = L * sqrt(3) / 2;
                       ^


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.000000(s) query 1, Server time : 2025-02-17 04:42:10, Gzip enabled