Notes
This function is in beta test. Please help improve it in the issues
here.
$ ./ex3 rand_double.txt dec sorting elements reading rand_double.txt writing dec_double.txt 5770=0.404779 2754=0.404779 7360=0.404698 2984=0.404617 112=0.404536 6305=0.404455 1753=0.404455 1817=0.404374 2830=0.404293 1567=0.404293 3963=0.404131 461=0.404131 2182=0.404050 2306=0.403969 1370=0.403969 4300=0.403645 9155=0.403483 2962=0.403402 2531=0.403402 3270=0.403159 1154=0.402997 8737=0.402754 2735=0.402754 9403=0.402673 654=0.402592 1912=0.402268 8239=0.402187 8131=0.402106 15=0.402025 4213=0.401944 2919=0.401944 6181=0.401863 4708=0.401701 6204=0.401539 3360=0.401539 7495=0.401458 5363=0.401458 8498=0.401377 3792=0.401296 6255=0.401134 2229=0.401134 1994=0.401134 987=0.401134 8442=0.400972 1806=0.400972 7298=0.400891 2421=0.400729 7927=0.400648 5430=0.400648 1399=0.400648 9016=0.400405 6454=0.400243 9466=0.400162 273=0.400162 307=0.400000 9990=0.399919 4365=0.399838 3864=0.399838 7573=0.399757 9740=0.399595 6621=0.399595 3914=0.399595 7967=0.399514 3219=0.399271 2862=0.399271 2057=0.399190 132=0.399109 393
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!