If I recall correctly the question on the ballot paper was should the uk leave the eu or remain...As I understand it the EU would not allow this unless the UK also accepted free movement and the Customs Union rules and superiority of the European Courts...which hardly squares with leaving
The question wasn't should the uk leave the eu, eec and the single market or remain.