Many areas of the city were underwater, with vehicles floating and people trapped on the roofs of their homes.