What sort of error is this? ------ *** Error in `./solution': double free or corr

What sort of error is this?

*** Error in `./solution’: double free or corruption (out): 0x0000000002493010 ***
Aborted.

even I am getting the same error. But when I run the same test case on my system it runs fine. So, I guess its a environmental issue.

I’m getting the same problem.
Program works fine with custom tests, but fails when run test or submit.

P.S. Is this site dead? I asked another question in different task… no answer.

I’m pretty sure something wrong with checker, or it shows wrong tests case for error.
Because I’m getting same error when submit, but works fine for “run custom test”. And I print indexes which I access, so I do not access anything out of range.

You receive Double Free or corruption when you try to delete/dereference a memory that has already been deleted/dereferenced.

i faced the same problem.
Issue came for the test case in which elements are in descending order(o/p shud be the first permutation for this test case).
Now it has been accepted.
try with this test case: input(5 5 4 3 2 1) —> output(1 2 3 4 5)

Adding a return; statement helped , I was getting the same error

Click here to start solving coding interview questions