Error: 'quickSort' was not declared in this scope

Error: 'binarySearch' was not declared in this scope

Its basically giving errors where the function is called :(

#include

#include

using namespace std;

int main()

{

int arraySize = 38;

int numberList[38] = {14, 89, 18, 105, 23, 4, 35, 99, 67, 76, 198, 20, 5, 38, 55, 2, 30, 19, 487, 11, 40, 10, 13, 27, 22, 45, 37, 231, 46, 17, 731, 49, 167, 234, 59, 91, 179, 201};

bool keyExists = false;

int i = 0;

int j = 0;

//put list in ascending order

quickSort(numberList, 0, arraySize);

int difference = 0;

for(i=0; i < arraySize; i++)

{

int num1 = numberList*;

for(j=i+1; j < arraySize-1; j++)

{

if (num1 > numberList[j])

difference = num1 - numberList[j];

else

difference = numberList[j] - num1;

if(binarySearch(numberList, difference, 0, arraySize) != -1)

keyExists = true;

}

}

cout << keyExists << endl;

}

int binarySearch(int arr[], int value, int left, int right) {

while (left <= right)

{

int middle = (left + right) / 2;

if (arr[middle] == value)

return middle;

else if (arr[middle] > value)

right = middle - 1;

else

left = middle + 1;

}

return -1;

}

void quickSort(int arr[], int left, int right) {

int i = left, j = right;

int tmp;

int pivot = arr[(left + right) / 2];

/* partition */

while (i <= j)

{

while (arr* < pivot)*

i++;

while (arr[j] > pivot)

j;

if (i <= j)

{

tmp = arr;

arr* = arr[j];*

arr[j] = tmp;

i++;

j;

}

}

/ recursion */

if (left < j)

quickSort(arr, left, j);

if (i < right)

quickSort(arr, i, right);

}