error: invalid conversion from 'volatile byte' to 'void (*)()'

Everything after this:

// set the pumpspeed of pin 3:

is not in a function; it needs to be.