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_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¦È
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ^


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-26 15:55:39, Gzip enabled