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]);
^
|