Array-Wave Print column

this is my code why isn’t this working can anyone correct out

It’s showing cannot convert ‘int ()[m]’ to 'int ()[4]’, which is because m is variable and 4 is a constant. So this conversion isn’t possible.

Solution :- take a global array with dimensions big enough to accommodate every case.

how should i do that??

Refer to this https://ide.codingblocks.com/s/630703?_ga=2.113839168.678391402.1637056908-1386310766.1634998184

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.