Please tell me the mistake in my code as i m not able to find the mistake...Thankyou

Please tell me the mistake in my code as i m not able to find the mistake…Thankyou

dp[0][0]=0 but in ur code it is INT_MAX