Subste Sum to Target

I tried submitting the code but the first 2 test cases are not passing.
LINK : https://ide.codingblocks.com/s/358806

image

i think u r getting run error because of this . use long long int

if this resolves your doubt please mark it as resolved

It is still showing the same error.

Kindly reply as soon as possible.

yeah , make your dp definition global i.e define it outside the function

Kindly edit this code of mine. Iā€™m not able to solve the issue. LINK : https://ide.codingblocks.com/s/359618

sure


if this resolves your doubt please mark it as resolved