which processes lead to the formation of igneous rock?

A. Heat and pressure

B. Melting and cooling

C. Erosion and weathering

D. Compacting and cementing