Many airlines have programs and policies that aim to compensate their passengers if they encounter problems on a flight.