The "compact" and "triple" designation refers to the types and number of chainrings on the cranks.
Triple means there are three gears attached to the cranks. On the Specialized the largest has 50 teeth, middle has 39 teeth, smallest has 30 teeth. The smaller the chainring the easier it is to climb hills, but the more you must spin.
Compact chainrings have two gears in the front with the large having 50 teeth and the smaller having 34 teeth. Compact (vs "regular" chainrings which have 53 teeth on the larger and 39 on the smaller) is simply the cycling industry's way of differentiating how large the double chainrings are on the cranks.