Here's the code:
first = mult.lower_bound(c); last = mult.upper_bound(c); if (first == mult.end()) { printf("%d not found\n", c); } else { printf("%d found from %d to %d\n", c, first, last); }
The problem is that the first and last are iterators, I've tried first - mult.begin () but the IDE does not accept: /