You can see all your rights when flying on the europa.eu website, it’s a really good resource. As Jacob said though, it is 3 hours before you get compensation.
Air passenger rights - Your Europe
Travellers' rights - flight delays, cancellations and overbooking (passengers unable to fly on flight they booked)