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_38969403_23999.cpp: In function 'void Cal()':
0_0_38969403_23999.cpp:30:32: error: 'sin' was not declared in this scope
   30 |     fore(i, 1, n) node[i].r = -sin(ang) * node[i].x + cos(ang) * node[i].y;
      |                                ^~~
0_0_38969403_23999.cpp:30:55: error: 'cos' was not declared in this scope
   30 |     fore(i, 1, n) node[i].r = -sin(ang) * node[i].x + cos(ang) * node[i].y;
      |                                                       ^~~
0_0_38969403_23999.cpp: In lambda function:
0_0_38969403_23999.cpp:33:12: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   33 |         if(fabs(a.r - b.r) > eps) return a.r < b.r;
      |            ^~~~
      |            labs
0_0_38969403_23999.cpp: In function 'int main()':
0_0_38969403_23999.cpp:55:27: error: 'acos' was not declared in this scope
   55 |         double l = 0, r = acos(-1), mid;
      |                           ^~~~
0_0_38969403_23999.cpp:58:19: error: 'mid' was not declared in this scope
   58 |             ang = mid = (l + r) / 2;
      |                   ^~~
0_0_38969403_23999.cpp:70:48: error: 'cos' was not declared in this scope
   70 |         printf("%d %d %d %d\n", int(nx - 1e8 * cos(ang)), int(ny - 1e8 * sin(ang)), int(nx + 1e8 * cos(ang)), int(ny + 1e8 * sin(ang)));
      |                                                ^~~
0_0_38969403_23999.cpp:70:74: error: 'sin' was not declared in this scope
   70 |         printf("%d %d %d %d\n", int(nx - 1e8 * cos(ang)), int(ny - 1e8 * sin(ang)), int(nx + 1e8 * cos(ang)), int(ny + 1e8 * sin(ang)));
      |                                                                          ^~~


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-22 19:41:34, Gzip enabled