Rule reminder
Gerundio composto = same subject, less formal. Participio assoluto = different subjects OR same subject (very formal/literary). Both are correct when the subject is the same.
Not having understood the instructions, the students made mistakes. → Best Italian: