Fix error in cpp iter/for snippets