You've defined this function: double calculatecharge(double charge,double hour,double x)
It requires three parameters.
But in function main() you call a function calculatecharge(hour1) which takes a single parameter.
It looks like you don't actually need those three parameters, so change the function definition to use just double hour as a parameter and make the others local variables defined inside the function.