What was an outcome of the Spanish-American War?

A) Cuba received independence.
B) The Treaty of San Juan was made.
C) Puerto Rico became independent.
D) Nicaragua and Panama became U.S. territories.