We present results for the ionic structure in hydrocarbons (polystyrene, polyethylene) that were shock compressed to pressures of up to 190 GPa, inducing rapid melting of the samples. The structure of the resulting liquid is then probed using in situ diffraction by an X-ray free electron laser beam, demonstrating the capability to obtain reliable diffraction data in a single shot, even for low-Z samples without long range order. The data agrees well with ab initio simulations, validating the ability of such approaches to model mixed samples in states where complex interparticle bonds remain, and showing that simpler models are not necessarily valid. While the results clearly exclude the possibility of complete carbon-hydrogen demixing at the conditions probed, they also, in contrast to previous predictions, indicate that diffraction is not always a sufficient diagnostic for this phenomenon.