As far as I know,, In C++ , if you are defining a parametrized constructor, you need to define a default constructor too.
Thats the problem in your code I guess