The in-text citation that is formatted correctly in MLA style is :
Homer writes that Odysseus and his men "were left to groan and wait for morning" (218)
The other ones have incorrect use of citations and bracket.
Good Luck!!
Homer writes that Odysseus and his men "were left to groan and wait for morning" (218) goodluck