返回顶部

runtime error: store to address 0x625000002048 with insufficient space for an object of type 'double' (solution.c) 0x625000002048: note: pointer points here

错误信息:

Line 36: Char 33: runtime error: store to address 0x625000002048 with insufficient space for an object of type 'double' (solution.c)
0x625000002048: note: pointer points here
 00 00 f8 ff  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^

错误原因:

1. malloc格式没写对
   malloc格式为:   (分配类型 *)malloc(分配元素个数 *sizeof(分配类型))

2. 代码死循环,导致malloc申请的空间被用光(我的是这个原因,找半天错误,发现打错一个变量)
posted @ 2020-09-13 00:32  #wr  阅读(2844)  评论(0编辑  收藏  举报
         1 2 3