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_26270239_18476.cpp: In function 'bool cmpy(int, int)':
0_0_26270239_18476.cpp:10:12: error: 'p' was not declared in this scope
     return p[tmp[a]].y<p[tmp[b]].y;
            ^
0_0_26270239_18476.cpp:10:14: error: 'tmp' was not declared in this scope
     return p[tmp[a]].y<p[tmp[b]].y;
              ^
0_0_26270239_18476.cpp: In function 'double solve(int, int)':
0_0_26270239_18476.cpp:37:43: error: request for member 'y' in 'tmp[j]', which is of non-class type 'int'
         for(int j=i+1;j<idex&&fabs(tmp[j].y-tmp[i].y)<d;j++)
                                           ^
0_0_26270239_18476.cpp:37:52: error: request for member 'y' in 'tmp[i]', which is of non-class type 'int'
         for(int j=i+1;j<idex&&fabs(tmp[j].y-tmp[i].y)<d;j++)
                                                    ^
0_0_26270239_18476.cpp:38:31: error: could not convert 'tmp[i]' from 'int' to 'point'
             d=min(d,dist(tmp[i],tmp[j]));
                               ^


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-30 06:31:48, Gzip enabled