hi, i wrote this function to help me reduce a fraction but i can't seem to get it to work. the errors say

invalid use of member (did you forget the `&' ?)

expected `)' before ':' token

both occor at the line i starred.

Code:void Rational::simplify(Rational rational) { int x; ***** for (x=2; x <= ((num>den) ? num :den); x++) ***** { if (num%x==0 && den%==0) { num=(num/x); den=(den/x); x--; } } }