“You mustn't leave the door unlocked,” Mr Atkins said to Mark. (told)
A.Mr Atkins told Mark not to have left the door unlocked.
B.Mr Atkins told Mark not leaving the door unlocked.
C.Mr Atkins told Mark not to leave the door unlocked.
D.Mr Atkins told Mark that he didn't leave the door unlocked.