This one of the homework questions I have, and I'm having some issues.
I have to write a function that allocates a dynamic array with the size of the variable amount. Send it to a function to fill the array from 1 to the variable amount. Then return it into a unique_ptr and display all the elements of the arary. As far as I can tell everything works in the second function. But I'm having issues with the unique_ptr, was hoping for a nudge in the right direction. I have looked at documentation online about unique_ptr but I really don't understand what I'm doing wrong.