I realized that there is some problem using the namespace std by adding the line to the beginning of your code

using namespace std

In this case the program will not be translated any more according to some conflicts in the Octave files. I do not know what is the problem here.