Use vector constructor instead of a for loop to initialize entries.