The purpose of going to school is to learn; getting an A is the indicator of success (but can be falsely attained by cheating). The purpose of life is to grow; being happy with your life is an indicator that you're succeeding (but can be falsely attained by addictive behaviors and substances).
https://yourmeaninginlife.com/blog/happiness-without-growth-is-like-getting-an-a-without-learning
You decide what meaning the events in your life have to you.
https://yourmeaninginlife.com/blog/you-can-find-meaning-in-whatever-happens-to-you
Asking where you see yourself in five years is a good exercise to determine both where you're going and what you want to be doing today to reach your desired future state.
https://yourmeaninginlife.com/blog/where-do-you-see-yourself-in-five-years