Are you using a vector<int> for your linked list?

If so, if you want an array:
Qt Code:
  1. vector<int> array[] = {
  2. vector<int> a,
  3. vector<int> b
  4. };
  5.  
  6. // Insert into a.
  7. array[0].push_back(1);
To copy to clipboard, switch view to plain text mode