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_34120653_12326.cpp:6:13: error: expected initializer before 'a'
 double n, k a[N], maxx = -0x3f3f3f3f, x;
             ^
0_0_34120653_12326.cpp: In function 'int main()':
0_0_34120653_12326.cpp:8:27: error: 'k' was not declared in this scope
     scanf("%lf %lf", &n, &k);
                           ^
0_0_34120653_12326.cpp:10:23: error: 'x' was not declared in this scope
         scanf("%lf", &x);
                       ^
0_0_34120653_12326.cpp:11:9: error: 'a' was not declared in this scope
         a[i] = x + 0.005;
         ^
0_0_34120653_12326.cpp:12:9: error: 'maxx' was not declared in this scope
         maxx = max(a[i], maxx);
         ^
0_0_34120653_12326.cpp:14:23: error: 'maxx' was not declared in this scope
     double l = 0, r = maxx;
                       ^
0_0_34120653_12326.cpp:18:47: error: 'a' was not declared in this scope
         for (int i = 1; i <= n; i ++) ans += (a[i] / mid);
                                               ^
0_0_34120653_12326.cpp:23:43: error: 'a' was not declared in this scope
     for (int i = 1; i <= n; i ++) ans += (a[i] / l), an += (a[i] / r);
                                           ^


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-10-05 22:32:00, Gzip enabled