Depending on the nature of the problem, you are entitled to compensation for unsatisfactory quality. Confirmation from the railway staff is always key when establishing unsatisfactory quality. It is not possible to carry out a subsequent investigation without this confirmation and compensation may be refused in such cases.
Unsatisfactory quality may include broken heating or air conditioning on a night train, for example, or a lack of available seats despite having purchased a reservation.