A patient complains of tooth pain which is sharp and stabbing when chewing sweet or cold foods. Pain is relieved by warmth and direct pressure. The most likely diagnosis is

a cracked tooth.

traumatic occlusion.

a carious lesion with pulp degeneration.

a carious lesion with pulpal inflammation.