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
}
^
|