I'm not understanding role of vector here and how the adj[0] is storing data{1,2}.
int main()
{
vector <int>* adj;
cout<<adj<<endl;
adj = new vector <int> [10]; //did'nt understood what this line is doing
adj[0].push_back(1);
adj[0].push_back(2);
for(int i=0; i<2; ++i){
cout<<adj[0][i]<<endl; //how adj[0][0] is storing data
}
return 0;
}