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_24394281_26702.cpp:72:3: error: expected initializer before 'num'
   num =iCount;
   ^
0_0_24394281_26702.cpp:73:4: error: expected unqualified-id before 'for'
    for(int i =0;i<iCount;i++)
    ^
0_0_24394281_26702.cpp:73:17: error: 'i' does not name a type
    for(int i =0;i<iCount;i++)
                 ^
0_0_24394281_26702.cpp:73:26: error: 'i' does not name a type
    for(int i =0;i<iCount;i++)
                          ^
0_0_24394281_26702.cpp:75:10: error: expected constructor, destructor, or type conversion before '(' token
     qsort(p,num,sizeof(p[0]),cmp_x);//鍏圶杞存帓搴?}
          ^
0_0_24394281_26702.cpp:83:2: error: expected initializer before 'if'
  if(end-start==1)//鍙湁涓や釜椤剁偣鏃跺€?  return Distance(&p[start],&p[end]);
  ^
0_0_24394281_26702.cpp:86:28: error: 'start' was not declared in this scope
   double temp2=Distance(&p[start],&p[end]);
                            ^
0_0_24394281_26702.cpp:86:41: error: invalid types 'Point*[<unresolved overloaded function type>]' for array subscript
   double temp2=Distance(&p[start],&p[end]);
                                         ^
0_0_24394281_26702.cpp:86:42: error: 'Distance' was not declared in this scope
   double temp2=Distance(&p[start],&p[end]);
                                          ^
0_0_24394281_26702.cpp:87:28: error: 'start' was not declared in this scope
   double temp3=Distance(&p[start+1],&p[end]);
                            ^
0_0_24394281_26702.cpp:87:43: error: invalid types 'Point*[<unresolved overloaded function type>]' for array subscript
   double temp3=Distance(&p[start+1],&p[end]);
                                           ^
0_0_24394281_26702.cpp:87:44: error: 'Distance' was not declared in this scope
   double temp3=Distance(&p[start+1],&p[end]);
                                            ^
0_0_24394281_26702.cpp:88:20: error: 'temp1' was not declared in this scope
   double temp= Min(temp1,temp2);
                    ^
0_0_24394281_26702.cpp:89:5: error: expected unqualified-id before 'return'
     return Min(temp,temp3);
     ^
0_0_24394281_26702.cpp:90:2: error: expected declaration before '}' token
  }
  ^


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-11 15:03:29, Gzip enabled