I am trying to create a large size array(about 80000*80000)
I tried
int *bigarray = new int[80000*80000];
but it gave me the error
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
And the thing I want to do is to create a social network's edge matrix.
Can anyone tell me how to create a large size array or any other methods to solve it?
Thanks!