Exemple transformare algoritm pseudocod în C++