Why it's giving TLE

https://ide.codingblocks.com/s/279593.
Why this code is giving a TLE. please help me

Please fix the bug in the code if u can

hello @aryan
wait i m checcking

hey u have same mistake ,
i,e u have not declared vector properly.
and also why u r declaring
dp[n][w] this will take too much space.
watch the tutorial video and chnage ur dp state.

Thnx aman for your help