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_38818852_22399.cpp: In function 'int main()':
0_0_38818852_22399.cpp:7:9: error: 'point' was not declared in this scope; did you mean 'printf'?
    7 |         point a, b;
      |         ^~~~~
      |         printf
0_0_38818852_22399.cpp:9:42: error: 'a' was not declared in this scope
    9 |         scanf("%lf %lf %lf %lf %lf",&r, &a.x, &a.y, &b.x, &b.y);
      |                                          ^
0_0_38818852_22399.cpp:9:54: error: 'b' was not declared in this scope
    9 |         scanf("%lf %lf %lf %lf %lf",&r, &a.x, &a.y, &b.x, &b.y);
      |                                                      ^
0_0_38818852_22399.cpp:11:12: error: 'length' was not declared in this scope
   11 |         if(length(a) < eps) ans = 2 * r; //函数ptp(point a, point p, double r)输入要保证a和p不重合
      |            ^~~~~~
0_0_38818852_22399.cpp:11:24: error: 'eps' was not declared in this scope
   11 |         if(length(a) < eps) ans = 2 * r; //函数ptp(point a, point p, double r)输入要保证a和p不重合
      |                        ^~~
0_0_38818852_22399.cpp:15:17: error: 'ptp' was not declared in this scope
   15 |             a = ptp(a, {0,0}, r);
      |                 ^~~
0_0_38818852_22399.cpp:18:26: error: 'dis_to_line' was not declared in this scope
   18 |             double dis = dis_to_line({0, 0}, a, b);
      |                          ^~~~~~~~~~~
0_0_38818852_22399.cpp:19:16: error: 'dcmp' was not declared in this scope
   19 |             if(dcmp(dis, r) <= 0) ans = get_dis(a, b);
      |                ^~~~
0_0_38818852_22399.cpp:19:41: error: 'get_dis' was not declared in this scope; did you mean 'get_s'?
   19 |             if(dcmp(dis, r) <= 0) ans = get_dis(a, b);
      |                                         ^~~~~~~
      |                                         get_s
0_0_38818852_22399.cpp:22:22: error: expected ';' before 'e'
   22 |                 point e = (a + b) / 2;
      |                      ^~
      |                      ;
0_0_38818852_22399.cpp:23:17: error: 'e' was not declared in this scope
   23 |                 e = norm(e) * r;
      |                 ^
0_0_38818852_22399.cpp:23:21: error: 'norm' was not declared in this scope
   23 |                 e = norm(e) * r;
      |                     ^~~~
0_0_38818852_22399.cpp:24:23: error: 'get_dis' was not declared in this scope; did you mean 'get_s'?
   24 |                 ans = get_dis(e, a) + get_dis(e, b);
      |                       ^~~~~~~
      |                       get_s


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-05-08 09:04:31, Gzip enabled