Getting an error when I am running the code

Its saying I’ve defined the main function before when I didn’t.

Can u please give the question link

Here. My code is running now by the way.