Common error: making the article agree with the antecedent. Always look at the noun that comes AFTER 'cui'. That noun's gender and number determines il/la/i/le.
Il Cui — Antecedent vs Following Noun1 / 10
Il professore ___ figlia studia all'estero è fiero di lei.