Notes
This function is in beta test. Please help improve it in the issues
here.
$ ./l5_memory_check rand_double.txt rand 945=0.212799 4922=-0.202430 8326=0.066100 9292=0.131065 3372=0.041150 654=0.402592 1992=0.344026 511=0.047550 1692=0.340786 6534=-0.124990 4740=-0.013690 2505=-0.372053 4140=-0.357878 6986=0.238963 8452=0.168003 8681=-0.152612 1423=-0.404860 9814=0.270231 9640=-0.089996 1124=0.233212 924=0.258404 9932=-0.404131 2627=-0.382908 4420=0.135763 6174=0.031187 8906=-0.399433 220=0.099230 6690=-0.337951 5126=0.302228 6275=0.104901 2544=-0.159984 5211=0.039611 1010=0.031673 8803=0.271527 4984=-0.100203 2157=0.032159 908=0.300365 7354=0.168732 362=0.376752 3334=-0.375051 1928=-0.363143 3081=-0.384285 1822=-0.310085 2399=-0.194492 3182=-0.268530 2421=0.400729 6611=-0.192791 4832=-0.219198 9731=-0.388497 3355=0.264156 3550=-0.353422 8772=-0.185743 6666=-0.009802 1371=-0.153260 1280=0.187363 7495=0.401458 7179=0.359255 4879=0.360227 3539=-0.111948 84=-0.105225 7389=0.303038 9325=0.015958 8795=-0.186958 8014=0.034022 3776=0.389793 1222=0.169137 3693=0.376347 1190=-0.081085 5933=0.32
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 243, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Program exit with non zero value -13!
JOJ Answer
Correct!