Why does my code shows run time error for starting test cases

I don’t find any error in my code, can you point out the bug?
My code: https://ide.codingblocks.com/s/224448

hello @ayushjain.iitg

image

ur dimension of dp should be atleast 10001 X 10001 .( u have declare it of 1004 X 1004 )

aah…i see, i missed a zero there. xD…thanks!