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_19231175_28313.cpp:29:6: error: stray '#' in program
  ll; #ifdef ecust
      ^
0_0_19231175_28313.cpp:20:12: error: 'i' does not name a type
 int i = 0; i < (int)(n); i++)
            ^
0_0_19231175_28313.cpp:20:26: error: 'i' does not name a type
 int i = 0; i < (int)(n); i++)
                          ^
0_0_19231175_28313.cpp:29:7: error: 'ifdef' does not name a type
  ll; #ifdef ecust
       ^
0_0_19231175_28313.cpp: In function 'void solve()':
0_0_19231175_28313.cpp:37:44: error: 'x0' was not declared in this scope
 void solve(){    scanf("%lf%lf%lf%lf%lf", &x0, &y0, &x1, &y1, &t);    if(fabs(t) <= 1e-8) {puts("Impossible."); return;}    vx = ((x1 - x0))/t;    vy = ((y1 - y0) + 0.5*9.8*t*t)/t;    printf("%.3lf\n", fun(vy)-fun(vy-9.8*t));} 
                                            ^
0_0_19231175_28313.cpp:37:49: error: 'y0' was not declared in this scope
 void solve(){    scanf("%lf%lf%lf%lf%lf", &x0, &y0, &x1, &y1, &t);    if(fabs(t) <= 1e-8) {puts("Impossible."); return;}    vx = ((x1 - x0))/t;    vy = ((y1 - y0) + 0.5*9.8*t*t)/t;    printf("%.3lf\n", fun(vy)-fun(vy-9.8*t));} 
                                                 ^
0_0_19231175_28313.cpp:37:54: error: 'x1' was not declared in this scope
 void solve(){    scanf("%lf%lf%lf%lf%lf", &x0, &y0, &x1, &y1, &t);    if(fabs(t) <= 1e-8) {puts("Impossible."); return;}    vx = ((x1 - x0))/t;    vy = ((y1 - y0) + 0.5*9.8*t*t)/t;    printf("%.3lf\n", fun(vy)-fun(vy-9.8*t));} 
                                                      ^
0_0_19231175_28313.cpp:37:59: error: 'y1' was not declared in this scope
 void solve(){    scanf("%lf%lf%lf%lf%lf", &x0, &y0, &x1, &y1, &t);    if(fabs(t) <= 1e-8) {puts("Impossible."); return;}    vx = ((x1 - x0))/t;    vy = ((y1 - y0) + 0.5*9.8*t*t)/t;    printf("%.3lf\n", fun(vy)-fun(vy-9.8*t));} 
                                                           ^
0_0_19231175_28313.cpp: At global scope:
0_0_19231175_28313.cpp:40:67: error: expected declaration before '}' token
 int cas; scanf("%d", &cas);    while(cas--){        solve();    }}} 
                                                                   ^


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-12-22 15:55:34, Gzip enabled