Change line 29 to utility.erase(iter);
You might also have to change iter to a normal iterator. It should work with const_iterator but not all compilers support it yet.
begin doesn't take any arguments and doesn't have anything to do on line 29 at all. Also, you're missing {}s after the if. Other than that, it look ok. For reference, see the example on http://cplusplus.com/reference/stl/vector/erase/ slow..