Https://ide.codingblocks.com/s/36531

https://ide.codingblocks.com/s/36531
question is https://hack.codingblocks.com/contests/c/512/382
what is wrong with my code

Code is correct but when you submit it on hackerblocks you will be given only one input as no. of rows and cols cols are equal but your is taking rows and cols as different inputs.