There are three types of muscle pain related to exercise.
→ soreness: pain occurring during or immediately after exercise.
→ siffness: delayed onset muscle pain (second day soreness).
→ muscle cramps: painful muscle contraction occuring during or soon after exercise.
(incomplete section, work in process)
References, Suggested reading:
What Cures Cramps?: take your pick, several riders discuss what they have done to deal with cramps.
Cycling Performance Tips: Excellent discussion of exercise induced muscle pain, soreness and cramps
Why does Muscle Cramp happen? A theory: An interesting alternative viewpoint.