Notes
This function is in beta test. Please help improve it in the issues
here.
$ export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH $ ./l6 rand_int.txt inc 10000 4994=4999 6309=4999 8020=4999 4351=4998 7822=4998 302=4997 3648=4997 1234=4995 4408=4995 8307=4995 9419=4995 1174=4992 4467=4989 6961=4989 6673=4988 2604=4987 6467=4987 3685=4985 3804=4984 1940=4983 7831=4983 539=4982 5905=4982 8653=4982 9151=4980 4132=4979 6900=4978 2036=4977 5757=4976 2887=4975 359=4974 9864=4974 2941=4971 8525=4971 7214=4967 7291=4966 1293=4965 7564=4964 9949=4963 376=4962 6633=4962 949=4961 9711=4959 2753=4956 8749=4956 300=4955 6618=4955 5456=4954 4614=4953 7513=4952 9918=4952 2126=4949 2504=4949 2977=4949 440=4948 7501=4948 1979=4944 9315=4944 1502=4943 5377=4943 8859=4942 3393=4941 9476=4941 1753=4937 1942=4935 1194=4934 4684=4932 1040=4930 2090=4930 4793=4930 4804=4930 7658=4930 9129=4930 4010=4928 3345=4927 1227=4926 6851=4926 7756=4925 4595=4924 1104=4922 3461=4920 7943=4914 1377=4913 9384=4913 855=4912 563=4911 5659=4911 2861=4910 439=4909 9208=4908 6541=4907 3624=4906 5223=4906 6400=4906 6196=4905 7739=49
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!