请帮助 我有这个数组列表,每个索引都嵌入了不同长度的链表。我该如何打印?
#include <list>
#include <etc...>
for (int i = 0; i < N; i++) {
std::cout << "Number of elements in row " << i << endl;
std::cin >> s;
s = s * 2;
for (int j = 0; j < s; j++){
std::cin >> k;
listArray2[i].push_back(k);
}
}