Is it incorrect to use g/ml as the unit for the density of a solid object? I thought g/ml and g/cc were the same.

I've never seen anyone use g/cc before. The usual standard is g/L as they are the standard metric values. However you can definitely use g/mL if used properly.