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_25421777_32102.cpp:9:7: error: 'maxn' does not name a type
 const maxn=50010;
       ^
0_0_25421777_32102.cpp:10:10: error: 'maxn' was not declared in this scope
 double x[maxn],y[maxn];
          ^
0_0_25421777_32102.cpp:10:18: error: 'maxn' was not declared in this scope
 double x[maxn],y[maxn];
                  ^
0_0_25421777_32102.cpp: In function 'double f(double)':
0_0_25421777_32102.cpp:17:22: error: 'x' was not declared in this scope
         temp=sqrt((a-x[i])*(a-x[i])+y[i]*y[i]);
                      ^
0_0_25421777_32102.cpp:17:37: error: 'y' was not declared in this scope
         temp=sqrt((a-x[i])*(a-x[i])+y[i]*y[i]);
                                     ^
0_0_25421777_32102.cpp: In function 'int main()':
0_0_25421777_32102.cpp:27:31: error: 'x' was not declared in this scope
             scanf("%lf %lf", &x[i], &y[i]);
                               ^
0_0_25421777_32102.cpp:27:38: error: 'y' was not declared in this scope
             scanf("%lf %lf", &x[i], &y[i]);
                                      ^


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-17 06:19:28, Gzip enabled