Notes
This function is in beta test. Please help improve it in the issues
here.
$ ./l5 rand_double.txt rand 440=-0.146051 7349=-0.052086 19=-0.364034 6914=-0.293884 330=-0.327987 8991=0.108060 7511=0.285217 724=-0.298420 6508=-0.000729 3885=0.263913 777=0.095504 9424=-0.157716 7868=-0.185257 726=-0.177886 6656=0.213285 1187=-0.083354 235=0.242527 5087=-0.328797 54=-0.181855 9592=0.020899 747=0.151802 9004=0.387606 939=0.356096 4565=-0.145727 4623=-0.128959 5570=-0.234265 7393=-0.227542 86=0.275982 1855=-0.277683 4957=-0.232564 9430=-0.093722 2035=-0.339247 5055=0.357959 9208=0.372620 7192=-0.107088 8013=-0.177076 1363=-0.272499 9107=0.234022 3897=-0.247550 9414=-0.243904 7409=0.136006 3194=-0.188659 5160=-0.202673 282=0.248927 8876=-0.230539 4239=-0.082382 8312=-0.364115 5655=-0.225192 7847=-0.174241 5879=-0.298096 4732=-0.339976 7304=-0.094127 1370=0.403969 7838=0.349615 1240=-0.317294 7971=-0.338437 2977=-0.336574 9339=-0.228352 8155=-0.040907 3721=0.039368 8705=-0.380478 4614=0.244795 7158=0.021709 7358=0.076873 7724=-0.238801 4225=-0.195383 2508=-0.305225 5198=-0.105792 8988=-0.08408
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!