Path Problem( Dynamic Programming-1)

i am getting code dumped error.Please tell me where i am going wrong and reply asap