The major U.S. indexes erased early losses to end Wednesday with gains amid inflation concerns, while GameStop stock skyrocketed after CFO Jim Bell announced plans to resign.