title: how to iterate a unordered map from begin to a certain index not end
body: <p>Suppose I have a unordered map of size 5 but I want to run a for loop for index 0 to index 1 then what should be the syntax? I tried this but such error is coming.<a href="https://i.stack.imgur.com/zQ6S5.jpg" rel="nofollow noreferrer">enter image description here</a></p>