Subset sum problem daily code byte

I have used dp approach but its giving run time error . Plz see to it.
Here is the link :

@f2016115 hey shubham there is some mistakes in your code is
1 In line 14 and 15, the reason for taking extra variable will not affect the code
2 In line 17 the loop run from i=0 to n not upto n
3 in line 20 the loop run from i=0 to n not upto n
4 in line 29 j>a[i-1];
5 in 33 b[i][j]=b[i-1][j] || b[i-1][j-A[i-1]];