What is the error here which is throwing exception at compile time?
Code:#include <iostream> #include <set> #include <vector> using namespace std; struct edge{ int n2; char wt; }; typedef struct edge edge; int main(){ vector<set<edge> > v; edge e; e.n2 = 1; e.wt = 'a'; v[1].insert(e); }