I need to allocate a vector with 6227020800 elements. Its obviously too big for a regular call:
vector<int> largevector(6227020800)
I tried using new and its even too big for that:
vector<int> largevector= new vector<int>[6227020800]
Is there a way to allocate a vector that large?
Take a look at the stxxl library.