If you want help on an error message, it's a good idea to give us the same information your compiler gave you (eg the text of the error message, the line number it highlightd as a problem).
In this case, the problem is when you're calling divisor_count.
divisors = divisor_count(int x);
I've highlighted the int keyword here because it is the source of your problem. Remove it.