what did you do的意思是 “你做了什么?”
没有what were you do.只有 what were you doing.应为were作为be动词are的过去式后面应该加现在进行时.