Five-day deluge unleashed flash floods and landslides that killed 18 and left nine others missing, authorities say.