Error message terminal & output

I only seem to get error messages when I run code. Not sure what I am doing wrong. I am including screenshots.