Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <set>
- using namespace std;
- int main() {
- multiset<int> ms;
- ms.insert(5);
- ms.insert(1);
- ms.insert(3);
- ms.insert(4);
- ms.insert(7);
- ms.insert(9);
- ms.insert(5);
- multiset<int>::iterator it = ms.lower_bound(8);
- cout << *it << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment