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;}
^
|