Error while running the code

Hi, I am getting an error while writing this code on my own laptop. It is not recognizing the auto iterator…any fixes?