#include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
int main(){
vector< set< int > > A;
A[0].insert(1);
A[0].insert(2);
}
When i run above ode on Codeblocks ,I get segmentation fault.Can anyone answer why am i getting this error and solution to avoid segmentation fault in this code.