0_0_37690194_24377.cpp:6:1: error: stray '\241' in program
inline double a_t(double t) { double tmp=2.0/tan(t); if(tmp>2) tmp=2.0; else if(tmp<0) tmp=0.0; return acos(tmp-1.0); }inline double I(double a) { return pi*cos(a)+sin(a)-a*cos(a)-pow(sin(a),3)/3.0; }inline double V(double t) { if(equ(t,pi/2.0)) return 0; else return tan(t)*(I(a_t(t))-I(pi)); }int main() { int T; double d; cin>>T; while(T--) { cin>>d; if(equ(d,0)) { printf("%.5f\n",0); continue; }if(d>1) { printf("%.5f\n",pi/cos(atan(2-d))); continue; }double l=pi/4.0, r=pi/2.0, t; while(r-l>eps) { t=(l+r)/2; if(equ(V(t),pi*d)) break; else if(V(t)>pi*d) l=t; 0 ¡Ü ¦Á ¡Ü ¦Ð 2 ¡Ý x0 ¡Ý 0 V = ¡Ò (¦Ð " ¦Á + sin ¦Á cos ¦Á)d[(1 + cos ¦Á)tan ¦È] 20 tan ¦È ¡Ò (¦Ð " ¦Á + sin ¦Á cos ¦Á)(" sin ¦Á)d¦Á ¦Á1 ¦Ð ¦Á1 = arccos( " 1) 2 tan ¦È V = tan ¦È[(¦Ð cos ¦Á) + (sin ¦Á " ¦Á cos ¦Á) " ¦Á 13 sin3 ]¦Á1 ¦Ð ¦È V ¦Ðd ¦È SбÃæ = Sµ×Ãæ cos¦È
^
0_0_37690194_24377.cpp:6:1: error: stray '\334' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\241' in program
0_0_37690194_24377.cpp:6:1: error: stray '\334' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\241' in program
0_0_37690194_24377.cpp:6:1: error: stray '\335' in program
0_0_37690194_24377.cpp:6:1: error: stray '\241' in program
0_0_37690194_24377.cpp:6:1: error: stray '\335' in program
0_0_37690194_24377.cpp:6:1: error: stray '\241' in program
0_0_37690194_24377.cpp:6:1: error: stray '\322' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\22' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\22' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\310' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\310' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\22' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\301' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\310' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\310' in program
0_0_37690194_24377.cpp:6:1: error: stray '\320' in program
0_0_37690194_24377.cpp:6:1: error: stray '\261' in program
0_0_37690194_24377.cpp:6:1: error: stray '\303' in program
0_0_37690194_24377.cpp:6:1: error: stray '\346' in program
0_0_37690194_24377.cpp:6:1: error: stray '\265' in program
0_0_37690194_24377.cpp:6:1: error: stray '\327' in program
0_0_37690194_24377.cpp:6:1: error: stray '\303' in program
0_0_37690194_24377.cpp:6:1: error: stray '\346' in program
0_0_37690194_24377.cpp:6:1: error: stray '\246' in program
0_0_37690194_24377.cpp:6:1: error: stray '\310' in program
0_0_37690194_24377.cpp: In function 'int main()':
0_0_37690194_24377.cpp:6:580: error: expected ';' before numeric constant
inline double a_t(double t) { double tmp=2.0/tan(t); if(tmp>2) tmp=2.0; else if(tmp<0) tmp=0.0; return acos(tmp-1.0); }inline double I(double a) { return pi*cos(a)+sin(a)-a*cos(a)-pow(sin(a),3)/3.0; }inline double V(double t) { if(equ(t,pi/2.0)) return 0; else return tan(t)*(I(a_t(t))-I(pi)); }int main() { int T; double d; cin>>T; while(T--) { cin>>d; if(equ(d,0)) { printf("%.5f\n",0); continue; }if(d>1) { printf("%.5f\n",pi/cos(atan(2-d))); continue; }double l=pi/4.0, r=pi/2.0, t; while(r-l>eps) { t=(l+r)/2; if(equ(V(t),pi*d)) break; else if(V(t)>pi*d) l=t; 0 ¡Ü ¦Á ¡Ü ¦Ð 2 ¡Ý x0 ¡Ý 0 V = ¡Ò (¦Ð " ¦Á + sin ¦Á cos ¦Á)d[(1 + cos ¦Á)tan ¦È] 20 tan ¦È ¡Ò (¦Ð " ¦Á + sin ¦Á cos ¦Á)(" sin ¦Á)d¦Á ¦Á1 ¦Ð ¦Á1 = arccos( " 1) 2 tan ¦È V = tan ¦È[(¦Ð cos ¦Á) + (sin ¦Á " ¦Á cos ¦Á) " ¦Á 13 sin3 ]¦Á1 ¦Ð ¦È V ¦Ðd ¦È SбÃæ = Sµ×Ãæ cos¦È
^
|