Senior Project - PIR senors with LED's sequence

Remove the doNextHole(...); line. It is not a function, it is a function prototype. The Arduino IDE will create one (correctly) when you create the function, which looks like

void doNextHole(int this, int that, int theOtherThing)
{
   // Do something
}