I am writing some code that requires me to use a 2D integer array that is size 50000x50000. Unfortunately, every single time I try to do this, I end up getting a segmentation error. I am currently using the repl.it IDE. Do you know any way in which I can increase the maximum size of a 2D array in repl.it? If this is not possible, could you give me some data structures that can be used as substitutes for a large 2D array?
I have checked all other parts of the code I am writing and can confirm that the segmentation error is not caused by anything other than the 2D array.
I have also seen some solutions that involved configuring the Replit but was unsure of how to implement them.
Full error message -> "signal: segmentation fault (core dumped)"