Don't worry about the exp and complex numbers because they work correctly. N is the number of samples of the input (2500). Esc is the difference between different frequences. So the samples of the output are (1250).
As you have noticed, with for-loops you should really only ever use control variables of an integral type. (Something which seems be missing from this site's page on control structures.) http://www.cplusplus.com/doc/tutorial/control/
While I'm here, if you'd like to tag your code for readility, see: