You can remember the meaning of 教训 with this easy mnemonic:
Your loss in this competition should teach (教) you a lesson, and that is you should practice and practice (训), no matter how good you think you're doing!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.