I\'ve written a program for removing the duplicates in a linked list, but I got different outputs from two online platforms, which are repl.it (using C++) and onlinegdb.com.