transcription pseudocode -> c++ ok