Hi everyone, I'm trying to solve a dynamic problem
And this is my solution, it caught an runtime error and I dont know why. https://ideone.com/W9UHgh
Can anyone help me and explain why it caught runtime error and how to avoid runtime error ?
Thanks you.