If the code above is everything you have, then you got too many problems.
Firstly, line 3, you didn't declare the header <string> and using namespace std.
Secondly, line 13, you really should learn about the pointer before you intend using it.
Next, line 18, you can add a var into a pointer paramenter.
Finally, line 20, you just declared the push() function. You need to define it too.