In most cases you have the right to be rebooked on the next available flight, or ask for a refund and flight back to your point of departure. You'll need these later to make a compensation claim. Today most airlines are aware straight away and will try to contact you with a replacement flight.