We are not allowe to use classes yet.
You are using iostream ;)
All joking aside, all your loop does is copy the next value to the position you planned on deleting, but that just makes two copies of the next position's data. The tedious way would be to use two loops. Once you've found the value to delete, start the next loop and copy the next value to the current position.
Also, why is your for loop checking for index < 9? Should it be inv.total?