You have a line that says:

double TAKE = total - minus;

then later it tries to use the same variable for an int:

int take = TAKE;