LogiQuest
Back to STL
19

What will be the output of the program?

#include <iostream>
using namespace std;
#include <set>
int main() {
    set<int> s = {5, 1, 3};
    s.insert(3);
    s.erase(1);
    for (int x : s) cout << x;
    cout << endl;
    return 0;
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.