Turn List project help!!

int F1 = 6
int F2 = 7
int F3 = 8
int F4 = 9
int F5 = 10
int F6 = 11
;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600)
pinMode(F1, INPUT)
pinMode(F2, INPUT)
pinMode(F3, INPUT)
pinMode(F4, INPUT)
pinMode(F5, INPUT)
pinMode(F6, INPUT)

}

void loop() {
  // put your main code here, to run repeatedly:
 
}

You are missing a few of these: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Just cut and paste as needed.

So, the 'F' is unnecessary information. A byte array, of length 6 would be sufficient to track the worker numbers. A byte value, to keep track of the number of idle workers would be sufficient.

You'll want to look at the state change detection example, and the various button (stupid name) examples. You also need to tell us how the switches are wired.

It would be simpler to connect one leg of each switch to ground, and one leg to a digital pin, and enable the pullup resistor on the pin (pinMode(pinNum, INPUT_PULLUP);).

When a switch becomes pressed (or released) it is easy to see which employee number to add to the list (if it isn't in the list, added at the end, and increment the number of idlers) or remove it from the list (if it is there) (and move everything else up and decrement the number of idlers).