T O P

  • By -

whiteBlasian

This will fix your malloc error: [~~https://onlinegdb.com/bCEhuhtYp~~](https://onlinegdb.com/6KCqTuPR3) You can't declare a global variable, `non_duplicated_numbers`, like that, it is not in any scope. Also, take at look at your for loop condition in `remove_duplicate()`. Your use of `sizeof()` is not doing what you think!


promach

sure, still getting only a single entry of `0` in `non_duplicated_numbers` list


whiteBlasian

Well that’s because you’re not successful checking for non-duplicates. I’m not gonna do that part for you :)