segmentation fault : 11

后端 未结 4 528
甜味超标
甜味超标 2021-01-31 01:40

I\'m having a problem with some program, I have searched about segmentation faults, by I don\'t understand them quite well, the only thing I know is that presumably I am trying

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-31 02:13

    This declaration:

    double F[1000][1000000];
    

    would occupy 8 * 1000 * 1000000 bytes on a typical x86 system. This is about 7.45 GB. Chances are your system is running out of memory when trying to execute your code, which results in a segmentation fault.

提交回复
热议问题