Run timr error in all test cases

sample input is giving correct output
code link: https://ide.codingblocks.com/s/92112

In the Constraints section of the problem it is given that :-
Both M and N are between 1 to 10.

@Ariba_Parveen
okay then what change i should do in my code

please somebody do reply

somebody please solve my this problem

@cutiecoder
hlo mam,
can you help me in this

You are not running the outer loop according to the column . Run outer loop for col , inner loop for row according to the value of col either even or odd.

@Ariba_Parveen
i am doing the same thing mam.
you can check again

I have corrected the code . Have a look at it .

@Ariba_Parveen
please provide the link where you edit the code

It’s the same link you provided above.

@Ariba_Parveen
same error is coming again

Code link :- https://ide.codingblocks.com/s/96852