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_20612248_22280.cpp:5:5: error: 'G' does not name a type
     G)                        {               double t1=2*(vy-sqrt(vy*vy-2*H2*G))/G;            double t2=(sqrt(vy*vy+2*G*H1)-vy)/G;            t=t1+t2;          }        else        {            t=2*vy/G+(sqrt(vy*vy+2*G*H1)-vy)/G;        }        x=t*vx;        printf("%.3lf\n",x);    }    return 0;}
     ^
0_0_20612248_22280.cpp:5:172: error: expected unqualified-id before 'else'
     G)                        {               double t1=2*(vy-sqrt(vy*vy-2*H2*G))/G;            double t2=(sqrt(vy*vy+2*G*H1)-vy)/G;            t=t1+t2;          }        else        {            t=2*vy/G+(sqrt(vy*vy+2*G*H1)-vy)/G;        }        x=t*vx;        printf("%.3lf\n",x);    }    return 0;}
                                                                                                                                                                            ^
0_0_20612248_22280.cpp:5:249: error: 'x' does not name a type
     G)                        {               double t1=2*(vy-sqrt(vy*vy-2*H2*G))/G;            double t2=(sqrt(vy*vy+2*G*H1)-vy)/G;            t=t1+t2;          }        else        {            t=2*vy/G+(sqrt(vy*vy+2*G*H1)-vy)/G;        }        x=t*vx;        printf("%.3lf\n",x);    }    return 0;}
                                                                                                                                                                                                                                                         ^
0_0_20612248_22280.cpp:5:270: error: expected constructor, destructor, or type conversion before '(' token
     G)                        {               double t1=2*(vy-sqrt(vy*vy-2*H2*G))/G;            double t2=(sqrt(vy*vy+2*G*H1)-vy)/G;            t=t1+t2;          }        else        {            t=2*vy/G+(sqrt(vy*vy+2*G*H1)-vy)/G;        }        x=t*vx;        printf("%.3lf\n",x);    }    return 0;}
                                                                                                                                                                                                                                                                              ^
0_0_20612248_22280.cpp:5:288: error: expected declaration before '}' token
     G)                        {               double t1=2*(vy-sqrt(vy*vy-2*H2*G))/G;            double t2=(sqrt(vy*vy+2*G*H1)-vy)/G;            t=t1+t2;          }        else        {            t=2*vy/G+(sqrt(vy*vy+2*G*H1)-vy)/G;        }        x=t*vx;        printf("%.3lf\n",x);    }    return 0;}
                                                                                                                                                                                                                                                                                                ^


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-09-28 09:18:54, Gzip enabled