Skip to main content
✏️ Code CompletionC+ C++ Medium+20 XP

Range-Based For

Complete the range-based for loop.

✏️ Fill in the blank
vector<int> nums = {1, 2, 3};
for (int n ___ nums) {
    cout << n << " ";
}

✏️ Type the missing code: