Ma dove sta la pow nel tuo codice?

Hai incluso il file math.h ?