Coin Change Problem

Not able to get what is wrong with the code, getting runtime
link: https://ide.codingblocks.com/s/176361

@Codemaniac_Aditya
Hello Auditya,
In your coin change function - numd variable can be m and n can be n.
so your program will try to access output[n][m] which is not allowed because you declared your output array of size output[n+1][m] so maximum index you can go is dp[n][m-1] ( m-1 and not m)

@Codemaniac_Aditya,
Hello Auditya,
are u still facing any issue?


i am not getting my all test cases passed