The use of 'who' and 'whom' is an area of English that is currently changing. Historically, 'who' is used as a subject pronoun and 'whom' as an object pronoun, similar to 'she'/'her' and 'he'/'him'. In light of this, 'whom' did you visit in the cemetery' would be correct as the person being visited is the object of the sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousWhich should I use?Use Who did you visit in the cemetery?