Those last few bracekts you were told to remove need to be put back because you are using an old compiler that does not respect the new standard on for-loop variable scoping.

You are using various...