Which option is correct for this program:
#include <bits/stdc++.h>
using namespace std;
int main()
{
unordered_set<int> s = {1, 2, 3};
auto it = s.begin();
*it = 4;
}
Valid
Compilation error
Undefined behavior
Runtime error
This question is part of this quiz :
C++ Unordered Set