Not sure why I am getting an error here
I did some more debugging and im running into an error at this section of my code. This is the error i got, im not sure why. I think it might be because im not storing the values to the dynamic memory properly.

