Arrays-Wave Print Column : CB IDE prb

My code is working fine(giving desired outputs) when I run it in GeeksforGeeks IDE,but when I run it in Coding Blocks IDE,it’s showing an error.
I found that it’s not taking the array values properly in CB IDE.
I’m enclosing the code written in both the IDE’s

GeeksforGeeks IDE :
https://ide.geeksforgeeks.org/2ZkQ2gd2C5

Coding Blocks IDE :

hey @Vivek0126, I run CB ide code for this input, it is working absolutely fine
4 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44

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.