It is impossible to electrolyze the molten liquid of CuSO4. This is because CuSO4 would be decomposed on heating before it melts.
CuSO4(s) → CuO(s) + SO3(g)
Therefore, the substance being electrolyzed is the molten liquid of CuO instead. Oxygen is formed at the anode, while copper is formed at the cathode.