I\'m having some troubles with a large array of vectors in C++.
Basicaly I wan\'t an array of 2 millions elements, and each elements is a vector
(It
This is helpfull
Dynamically allocate memory for my_List
. or
Declare your array of vector of int's(my_List
) as a global variable and size a `const. Thier storage locations are by design big enough to allocate such large mermory size.
For local variable, the stack segment might be to small to allocate 2e6*24B.