Arrays-wave print column wise

The code written is working correctly on other IDEs
and is showing error in every test case of Coding Blocks.Please review the code and make me aware of the mistake,Thank You,

@AbhiNavJha hey abhinav copy your code on this link ide.codingblocks.com and press save button it will generate a link that link you have to share

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.

Here is the link- ide.codingblocks.com/s/135250