If someone or something is being a pain in the ass it means that they're being annoying. For example, you're doing your homework but your friend keeps bothering you and won't leave you alone. You can say, "What a pain in the ass." You can also say, "What a pain in the neck." They mean the same thing.