Segmentation fault at array declaration

Viewed 33

I'm trying to create an array that is os the size 1073741824, but I get a segmentation fault when trying to do so. I've already tried using bigger data types but I keep having the same error.

This is the piece of the code:

typedef unsigned long long int ULLI;

int main()
{
    ULLI N;
    cin>>N;
    ULLI array[N][N];
}
0 Answers
Related