Wave print challenge (arrays)

my code is getting an error. Please help me out

@mkidwai74,
You can not declare an array with variable size without fixing the value of variable first, aka first take input n,m and then declare array.

i am still getting an error.
could you please correct my code and paste it again?

@mkidwai74,
Updated code link…??

@mkidwai74,
Using namespace and #include is written twice,
Hint: You can look at the compiler error tho know which line has error.

when i ran it on the coding blocks ide it said segmentation error
i still dont get where i am going wrong.


look at this please.

@mkidwai74,
Scroll up, see what is written in Line 1 and 2.

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.