4 people hurt in 18-vehicle pileup