This has been answered in https://question.onlinegdb.com/15372/error-expected-constructor-destructor-conversion-before.
Replace line
divide (int)
by
int divide (int);