The Olympic flag was hung upside down on a flagpole during the opening ceremony of the Paris Olympics.