As the planet warms, subway systems around the world have struggled to cope with floods far beyond what they were originally designed to handle.