i am trying to pair a vector and an integer but
map<vector[i][j],int>m;
m.insert(pair<vector[i][j],int>,(v[1][0],sum));
did not work??
what is "vector[j]" supposed to mean?
By definition of maps compare what are you doing right now and what do you want it to do.May be what you want is
map<vector<vector<int> >,int > m;
vector<vector<int> > vvi;
int i;
m.insert(make_pair(vvi,i));
Hope it helps!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.