Before I talk abt the problem with your code, I would tell you abt the problem with your post.
Please *always* :
(1) Post properly indented code.
(2) Don't COLOR code, rather post them inside [CODE] ... [/CODE]

Now ... abt your code. Well, it has a *lot* of mistakes.

(1) Declaration of arrays
You are declaring arrays like : int array[7, 9, 15, 14, 11, 13, 4, 3, 21, 33, 28];, which is syntactically incorrect.
Declare arrays like : int array[] = {7, 9, 15, 14, 11, 13, 4, 3, 21, 33, 28};.

(2) Insufficient arguments into quicksort
You are calling the quicksort function with 1 argument (quicksort(array[]);) instead of 3 (void quicksort ( int array[], int lo, int hi );).
You should do it like : void quicksort ( array, 0, 10 );

(3) Printing a value with "void" data-type
You are trying to print the return value of quicksort function, which actually has void return type.
You can do it this way :
Code: C++
quicksort(array,0,10);
for(int i=0; i < 11; ++i) cout << array[i] << " ";
putchar(10);
BTW, Your quicksort logic is all right, so don't worry abt that.
s11049151, shabbir likes this