Main.cpp:5:14: error: multiple types in one declaration
5 | typedef long double double;
| ^~~~~~
Main.cpp:5:21: error: declaration does not declare anything [-fpermissive]
5 | typedef long double double;
| ^~~~~~
Main.cpp: In function 'int32_t main()':
Main.cpp:19:42: error: 'ld' was not declared in this scope
19 | vector DP(n+1,vector(n+1,vector(n+1,(ld)INF)));
| ^~
Main.cpp:21:22: error: 'ld' is not a type
21 | auto solve = [&](ld x) {
| ^~
Main.cpp: In lambda function:
Main.cpp:23:24: error: 'j' was not declared in this scope
23 | for(ld j=0;j<=x;j++) {
| ^
Main.cpp:28:24: error: 'j' was not declared in this scope
28 | for(ld j=x;j<=i;j++) {
| ^
Main.cpp: In function 'int32_t main()':
Main.cpp:36:7: error: expected ';' before 'ans'
36 | ld ans = INF;
| ^~~~
| ;
Main.cpp:37:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
37 | for(int x=0;x<=k;x++)ans=min(solve(x),ans);
| ^~~
| abs
Main.cpp:38:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
38 | cout << setprecision(10) << ans << '\n';
| ^~~
| abs