0_0_38818851_16153.cpp: In function 'int main()':
0_0_38818851_16153.cpp:3:12: error: 'scanf' was not declared in this scope
3 | int t; scanf("%d", &t);
| ^~~~~
0_0_38818851_16153.cpp:6:9: error: 'point' was not declared in this scope; did you mean 'int'?
6 | point a, b;
| ^~~~~
| int
0_0_38818851_16153.cpp:8:42: error: 'a' was not declared in this scope
8 | scanf("%lf %lf %lf %lf %lf",&r, &a.x, &a.y, &b.x, &b.y);
| ^
0_0_38818851_16153.cpp:8:54: error: 'b' was not declared in this scope
8 | scanf("%lf %lf %lf %lf %lf",&r, &a.x, &a.y, &b.x, &b.y);
| ^
0_0_38818851_16153.cpp:10:12: error: 'length' was not declared in this scope
10 | if(length(a) < eps) ans = 2 * r; //函数ptp(point a, point p, double r)输入要保证a和p不重合
| ^~~~~~
0_0_38818851_16153.cpp:10:24: error: 'eps' was not declared in this scope
10 | if(length(a) < eps) ans = 2 * r; //函数ptp(point a, point p, double r)输入要保证a和p不重合
| ^~~
0_0_38818851_16153.cpp:14:17: error: 'ptp' was not declared in this scope
14 | a = ptp(a, {0,0}, r);
| ^~~
0_0_38818851_16153.cpp:17:26: error: 'dis_to_line' was not declared in this scope
17 | double dis = dis_to_line({0, 0}, a, b);
| ^~~~~~~~~~~
0_0_38818851_16153.cpp:18:16: error: 'dcmp' was not declared in this scope
18 | if(dcmp(dis, r) <= 0) ans = get_dis(a, b);
| ^~~~
0_0_38818851_16153.cpp:18:41: error: 'get_dis' was not declared in this scope
18 | if(dcmp(dis, r) <= 0) ans = get_dis(a, b);
| ^~~~~~~
0_0_38818851_16153.cpp:21:22: error: expected ';' before 'e'
21 | point e = (a + b) / 2;
| ^~
| ;
0_0_38818851_16153.cpp:22:17: error: 'e' was not declared in this scope
22 | e = norm(e) * r;
| ^
0_0_38818851_16153.cpp:22:21: error: 'norm' was not declared in this scope
22 | e = norm(e) * r;
| ^~~~
0_0_38818851_16153.cpp:23:23: error: 'get_dis' was not declared in this scope
23 | ans = get_dis(e, a) + get_dis(e, b);
| ^~~~~~~
0_0_38818851_16153.cpp:28:9: error: 'printf' was not declared in this scope
28 | printf("%.8f\n",ans);
| ^~~~~~
0_0_38818851_16153.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | int main()
|