Two loops. Same answer. One makes 1000 extra copies.
Keep the same output. Remove the extra iterator copies.
it++ returns the old iterator — so it makes a copy first. Here the iterator is heavy.
it++