This is very, very basic stuff. You REALLY need to check out the tutorials I posted a link to previously. While you're at it, bookmark this site :
cplusplus.com - The C++ Resources Network[
^]
std::vectorvec;
Element myElement(12, "Twelve");
vec.push_back(myElement); <---
Yes, EXACTLY !!! what does that line with the arrow do? It references the push_back method of a vec object. Where is that variable declared? Look for it. We'll wait.
Look at the first line of that code. What does it do? Nothing, and that's the problem. It is not a function prototpe because there are no parenthesis. It is not a valid declaration because it lacks a type and name. That is the cause of the error because that is a mal-formed statement. You do know what a std::vector is, right? You are also missing the declaration of a variable called vec.
You will have to use your deductive reasoning to come up with the answer from here.