Your returns are not in your functions and they are returning the wrong kind of data.
C++ does not have enough memory in any of its normal variables to hold 100! or anything remotely close.
Also your int n,f,a; line needs to be declared inside of your main function if you plan to use them.
If you want your functions that you declare before main to actually work you need to call them from main.
You will also have to pass the values of f and a to your functions so either add more arguments or use pointer type variables.
If you still have problems, post whatever code you come up with after fixing at least some of what I told you and I will look at it again.
@pablorod: olredixsis fixed one of your problems now just change the return value from float to int and add the arguments to your functions for values of f and a also.