I’m getting a weird error for odd values in this question. Please help out.
The error I am getting is
a.out: malloc.c:2394: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)’ failed.
Aborted (core dumped)
if I uncomment the line before the recursive call, it gives correct answer.