Array sorted using recursion

https://ide.codingblocks.com/s/343972 its not passing my test cases

at line no 9
correct condition is
if(a[0]<=a[1] && sortarray(a+1,n-1))

and at line 31 F in False should be small f
cout<<“false”;

Modfied Code