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_34164882_14577.cpp: In function 'void work()':
0_0_34164882_14577.cpp:13:17: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
    ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
                 ^
0_0_34164882_14577.cpp:13:30: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
    ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
                              ^
0_0_34164882_14577.cpp:13:45: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
    ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
                                             ^
0_0_34164882_14577.cpp:13:58: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
    ans = min((p.x-p[j].x)*(p.x-p[j].x) + (p.y-p[j].y)*(p.y-p[j].y), ans);
                                                          ^
0_0_34164882_14577.cpp: In function 'int main()':
0_0_34164882_14577.cpp:20:22: error: request for member 'x' in 'p', which is of non-class type 'P [100003]'
   scanf("%lf%lf", &p.x, &p.y);
                      ^
0_0_34164882_14577.cpp:20:28: error: request for member 'y' in 'p', which is of non-class type 'P [100003]'
   scanf("%lf%lf", &p.x, &p.y);
                            ^
0_0_34164882_14577.cpp:22:20: error: 'sort' was not declared in this scope
   sort(p, p+n, cmp1),
                    ^


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-09-28 12:23:53, Gzip enabled