Hundreds of people were trapped in flooded homes and in cars stranded in high waters.