I try to run it on the repl and this is what it said "exited, segmentation fault error". I tried free() function to allocated the memory but it still doesn\'t work