I've added and modified some parts of your code. See attached.
You have not setup the input and output pins, this should be defined first. Then set at the start of your main function, I've added these to your txt file.
You also end the main function early with a parenthesis '}', I've deleted this from your code and the word 'else' from the second IF statement since it is not needed. Errors like these should have been picked up when you compiled your code.
I would recommended writing a simple code, just to get your leds on/off with a small delay to make them flash. Then included your push buttons, if the leds dont work.. you know there is a problem with your push button code. Then once this works, add control of the relays.... and so forth.
Another tip.. keep your definitions simple. Long worded definitions can easily be spelled incorrectly. For example:
uppersliddinggate >> UpperGate or Up_Gate
Using a capital or an underscore in-between words allows them to be read easily. Programmers need all the help they can get to make life simple.