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_34023717_7811.cpp:1:17: error: 'point' was not declared in this scope
 double Distance(point a,point b){
                 ^
0_0_34023717_7811.cpp:1:25: error: 'point' was not declared in this scope
 double Distance(point a,point b){
                         ^
0_0_34023717_7811.cpp:1:32: error: expression list treated as compound expression in initializer [-fpermissive]
 double Distance(point a,point b){
                                ^
0_0_34023717_7811.cpp:1:33: error: expected ',' or ';' before '{' token
 double Distance(point a,point b){
                                 ^
0_0_34023717_7811.cpp: In function 'double PointsMinDis(int, int)':
0_0_34023717_7811.cpp:17:24: error: 'a' was not declared in this scope
         dis = Distance(a[s], a[e]);
                        ^
0_0_34023717_7811.cpp:17:34: error: 'Distance' cannot be used as a function
         dis = Distance(a[s], a[e]);
                                  ^
0_0_34023717_7811.cpp:21:25: error: 'a' was not declared in this scope
         dis1 = Distance(a[s], a[s + 1]);
                         ^
0_0_34023717_7811.cpp:21:39: error: 'Distance' cannot be used as a function
         dis1 = Distance(a[s], a[s + 1]);
                                       ^
0_0_34023717_7811.cpp:22:39: error: 'Distance' cannot be used as a function
         dis2 = Distance(a[s + 1], a[e]);
                                       ^
0_0_34023717_7811.cpp:23:35: error: 'Distance' cannot be used as a function
         dis3 = Distance(a[s], a[e]);
                                   ^
0_0_34023717_7811.cpp:30:9: error: 'point' was not declared in this scope
         point x = a[mid];
         ^
0_0_34023717_7811.cpp:33:29: error: 'min' was not declared in this scope
         dis = min(disl, disr);
                             ^
0_0_34023717_7811.cpp:36:32: error: 'a' was not declared in this scope
             double leftCoord = a[mid].x - dis;
                                ^
0_0_34023717_7811.cpp:38:17: error: 'b' was not declared in this scope
                 b[k].index = L;
                 ^
0_0_34023717_7811.cpp:38:30: error: 'L' was not declared in this scope
                 b[k].index = L;
                              ^
0_0_34023717_7811.cpp:45:33: error: 'a' was not declared in this scope
             double rightCoord = a[mid].x + dis;
                                 ^
0_0_34023717_7811.cpp:47:17: error: 'b' was not declared in this scope
                 b[k].index = R;
                 ^
0_0_34023717_7811.cpp:47:30: error: 'R' was not declared in this scope
                 b[k].index = R;
                              ^
0_0_34023717_7811.cpp:53:14: error: 'b' was not declared in this scope
         sort(b, b + k, cmp2);
              ^
0_0_34023717_7811.cpp:53:24: error: 'cmp2' was not declared in this scope
         sort(b, b + k, cmp2);
                        ^
0_0_34023717_7811.cpp:53:28: error: 'sort' was not declared in this scope
         sort(b, b + k, cmp2);
                            ^
0_0_34023717_7811.cpp:57:53: error: 'Distance' cannot be used as a function
                     mindis = Distance(b[i], b[i + 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-17 06:29:28, Gzip enabled