Newbee question about error

Hello,
I have a simple code that won't compile. can someone point me to my error ?

#include <EEPROM.h>


//Régle le mode de fonctionnement en EEPROM
uint8_t fonctionnement = 0;
byte F_LOG1 = EEPROM.read(0);
byte F_LOG2 = EEPROM.read(1);
if (F_LOG1 == 0)

{
  switch (F_LOG2) {
    case 0:
      fonctionnement = 0;
      break;
    case 1:
      fonctionnement = 1;
      break;
  }
} else {
  fonctionnement = 2;
}

void setup() {
  // put your setup code here, to run once:

}

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

}

Thanks,
Manu

Thank you surely have reason, even if I don't understand how to do. But I'll try all my best.