Two men have been accused of raping a 13-year-old girl after she sat alone outside a hospital.