How many cubic millimeters are there in one square centimeter?

I know that in one square centimeter there is 100 millimeters squared. So this is what I did: x^3 = 100^2 so x=100 is this correct?

No. There are zero cubic millimeters in a square centimeter, as there are zero gallons in a square inch.

There is no volume in an area.