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_13689782_21311.cpp:20:1: error: expected unqualified-id before 'double'
 double k, xx, x[MAXN], h[MAXN];
 ^
0_0_13689782_21311.cpp: In function 'int main()':
0_0_13689782_21311.cpp:44:19: error: 'x' was not declared in this scope
    scanf("%d%d", &x[i], &h[i]);
                   ^
0_0_13689782_21311.cpp:44:26: error: 'h' was not declared in this scope
    scanf("%d%d", &x[i], &h[i]);
                          ^
0_0_13689782_21311.cpp:55:4: error: 'xx' was not declared in this scope
    xx = x[i + 1] - x[i];
    ^
0_0_13689782_21311.cpp:55:9: error: 'x' was not declared in this scope
    xx = x[i + 1] - x[i];
         ^
0_0_13689782_21311.cpp:58:27: error: 'k' was not declared in this scope
     if (pota[j].p == x[i])k = h[i];
                           ^
0_0_13689782_21311.cpp:58:31: error: 'h' was not declared in this scope
     if (pota[j].p == x[i])k = h[i];
                               ^
0_0_13689782_21311.cpp:61:10: error: 'h' was not declared in this scope
      if (h[i] > h[i + 1])
          ^
0_0_13689782_21311.cpp:63:7: error: 'k' was not declared in this scope
       k = (x[i + 1] - pota[j].p) / xx*(h[i] - h[i + 1]);
       ^
0_0_13689782_21311.cpp:68:7: error: 'k' was not declared in this scope
       k = (pota[j].p - x[i]) / xx*(h[i + 1] - h[i]);
       ^
0_0_13689782_21311.cpp:73:43: error: 'k' was not declared in this scope
     if (pota[j].v > sqrt(ans*ans - 2 * g*(k - h[1])))ans =sqrt(pota[j].v*pota[j].v+2*g*(k-h[1]));
                                           ^
0_0_13689782_21311.cpp:73:47: error: 'h' was not declared in this scope
     if (pota[j].v > sqrt(ans*ans - 2 * g*(k - h[1])))ans =sqrt(pota[j].v*pota[j].v+2*g*(k-h[1]));
                                               ^


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 20:05:22, Gzip enabled