John tentou, em vão, resolver o problema.
John tried in vain to solve the problem.