SHANGHAI, Oct 9 (Reuters) - China stocks erased losses to end higher on Wednesday, as banks and real estate firms jumped, while investors were cautious ahead of important trade talks between the U.S.