Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <set>
- using namespace std;
- int main() {
- multiset<char> str;
- int n = 30;
- char temp;
- while (n--) {
- cin >> temp;
- str.insert(temp);
- }
- for (auto& c : str)
- cout << c;
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement