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申请的空间被用光(我的是这个原因,找半天错误,发现打错一个变量)
Don't aim for success if you really want it.Just stick to what you love and believe in.And it will come naturally.