Notes
This function is in beta test. Please help improve it in the issues
here.
$ ./l5 rand_int.txt inc 6308=-5000 7990=-5000 9194=-5000 2357=-4999 6178=-4998 718=-4996 981=-4996 9917=-4996 1030=-4994 616=-4991 6021=-4991 6916=-4991 7571=-4991 7996=-4991 8488=-4991 2583=-4989 3562=-4989 3724=-4989 3994=-4989 9534=-4989 488=-4988 8878=-4988 17=-4986 4321=-4986 6221=-4986 9902=-4986 3878=-4985 7580=-4984 7211=-4983 9665=-4983 5041=-4982 9430=-4982 1978=-4980 2532=-4980 8843=-4980 2426=-4978 4299=-4978 2562=-4977 2684=-4975 5440=-4974 8231=-4974 1556=-4973 2832=-4973 9063=-4973 6174=-4972 4954=-4971 5486=-4969 2829=-4967 4545=-4967 5964=-4967 1506=-4965 9081=-4964 5001=-4963 9805=-4963 8129=-4962 9607=-4962 1353=-4961 1394=-4961 4061=-4960 5842=-4958 3603=-4957 780=-4956 5324=-4954 7325=-4954 2352=-4952 3885=-4950 9613=-4949 696=-4948 8049=-4947 5176=-4944 8253=-4943 4298=-4942 4656=-4942 8032=-4941 7334=-4940 7536=-4939 6120=-4936 7913=-4936 750=-4935 6753=-4935 6807=-4935 6944=-4935 9838=-4935 4273=-4934 4712=-4934 2193=-4933 5791=-4933 8401=-4933 3703=-4932 6568=-4932 8177=-4932 1498=-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!