Exit status 1 Error compiling for board Arduino Uno. How fix?

@konk
I have moved your question to a more appropriate place in the forum, I am not sure why you thought it was an installation and troubleshooting question. Choosing and appropriate section of the forum makes it more likely that someone who can help will see your question.

Well done on posting your code correctly.