Rule reminder
In 'il cui / la cui / i cui / le cui', the article must agree with the noun immediately following 'cui'. The antecedent (before 'il/la/i/le cui') can be any gender or number — it does not affect the article choice.
Stiamo discutendo di un problema ___ soluzione non è ancora chiara.