Error[Solved] | SoloLearn: Learn to code for FREE!

+2

Error[Solved]

So I get an error when trying to add an object to my vector. Why? I've tried a few things but I came up with nothing Edit: Nevermind, I fixed it. https://code.sololearn.com/c842MPT0CN64/?ref=app

12/7/2019 1:59:31 AM

Daniel Cooper

2 Answers

New Answer

+2

Manual I was storing Product in Cart rather than Product*

+1

What was wrong with the code?