Subset sum problem IDE

Subset sum problem giving run time error .
Also the constraints in this problem are of order 5.10power 10 , which cant be solved by DP.