I made up some code for vector iteration but it is not what I wanted. From the example below, I would like to iterate through vector that is populated by inputs from user, and then get outputs for matching strings from the user with the element from arrays. In the code below that would look like:
Pizza has this ingredients that you have: ...
Pasta has this ingredients that you have:...
Pizza and pasta don't have this ingredients:...
I don't know how to do it to get only one output for each if case in one sentence like that.
What I also don't know is how to remove element from vector if it has already the same one in it.
Like for example if user has already put ingredient ham, and then written it again, to remove the new second ham element from the vector.