fix typos in cpp