Test Cases failed for Pancake Sorting

I think I’ve written correct code, but it still shows Test Cases failed.

Question : Pancake Sorting
My Solution : https://ide.codingblocks.com/s/433906

Hello @dev.divyanshu19 i can see your not printing according to the ouput format :
we have to print the final vector after making changes above from the function.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.