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_25771782_16726.cpp:18:1: error: expected initializer before 'double'
 double getDistance(coord &bi1, coord &bi2)    
 ^
0_0_25771782_16726.cpp: In function 'double divide_conquer(int, int)':
0_0_25771782_16726.cpp:65:46: error: 'getDistance' was not declared in this scope
         dis = getDistance(num[low], num[high]);  
                                              ^
0_0_25771782_16726.cpp:70:51: error: 'getDistance' was not declared in this scope
         temp1 = getDistance(num[low], num[low + 1]);  
                                                   ^
0_0_25771782_16726.cpp:92:17: error: 'c' was not declared in this scope
                 c[p].index = L;  
                 ^
0_0_25771782_16726.cpp:103:17: error: 'c' was not declared in this scope
                 c[p].index = R;  
                 ^
0_0_25771782_16726.cpp:109:14: error: 'c' was not declared in this scope
         sort(c, c + p, cmpy);   
              ^
0_0_25771782_16726.cpp:116:53: error: 'getDistance' was not declared in this scope
                     min = getDistance(c[i], c[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-10 11:08:49, Gzip enabled