Why is this map stl code is throwing error

here is the code

there were 2 syntactical errors in your code i have fixed them and added comments please check the below given code

what was the error in my code.? please explain.

I have added comments next to the lines 27 and 47 where the error was present