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_38593253_25841.cpp: In function 'double getdist(int, int)':
0_0_38593253_25841.cpp:71:20: error: 'struct Point' has no member named 'x'
  return sqrt((p[i].x-p[j].x)*(p[i].x-p[j].x)+(p[i].y-p[j].y)*(p[i].y-p[j].y));
                    ^
0_0_38593253_25841.cpp:71:27: error: 'struct Point' has no member named 'x'
  return sqrt((p[i].x-p[j].x)*(p[i].x-p[j].x)+(p[i].y-p[j].y)*(p[i].y-p[j].y));
                           ^
0_0_38593253_25841.cpp:71:36: error: 'struct Point' has no member named 'x'
  return sqrt((p[i].x-p[j].x)*(p[i].x-p[j].x)+(p[i].y-p[j].y)*(p[i].y-p[j].y));
                                    ^
0_0_38593253_25841.cpp:71:43: error: 'struct Point' has no member named 'x'
  return sqrt((p[i].x-p[j].x)*(p[i].x-p[j].x)+(p[i].y-p[j].y)*(p[i].y-p[j].y));
                                           ^
0_0_38593253_25841.cpp: In function 'int main()':
0_0_38593253_25841.cpp:81:25: error: 'struct Point' has no member named 'x'
    scanf("%lf%lf",&p[i].x,&p[i].y);
                         ^


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-02 16:52:07, Gzip enabled