FFT magnitude trouble



I wrote the code for FFT and FHT in C++. I normalized the frecuency in
everythig was Ok, but the magnitud of my armonics in both cases are
diferents. This is the signal what i analize
1*sin(2*pi*f*n)+1*sin(2*pi*3*f*n)+1*sin(2*pi*5*f*n)
I dont know what is my mistake or what do i need to do.
Thanks.

.