This is just that your "call a member function" syntax is wrong; the rest of the code and the question is all besides the point.
When you wrote:
Fraction::set(4,16);
You meant:
f->set(4,16);
There are other problems, like your int num, den
have no values and don't do anything.