every time I ran my code which is a simple merge sort in c++, it throw an error that Merge func is not found. can any one help on this issue. the implementation is some thing like this:
int A[9];
void mergeSort(int low,int high) {
if (low==high)
return ;
int mid=(high-low)/2;
mergeSort(low, mid);
mergeSort(mid+1,high);
Merge(low,mid,high);
}
void Merge(int l,int m ,int h) {
int i=l;int k= l;int j=mid+1;
int b[9];
while (l<=m &&j<=high) {
if (a[i]<=a[j])
b[k]=a[i];
k++;
b[k]=a[j];
j++;
i++;
}
}