It still won't compile. You missed some semicolons in the main function, and in your sorting function you called it `array1' not `array'.
Also, your printing procedure assumes 10 items even if they...