Why does this code not work?

How can I fix this code ?

Coursework EEE2021 - Replit

There seems to be no obvious errors in syntax but the code will display lots of initialisation and redefinition errors. Could it be fixed easily ?

~Nyle