what happened

Arduino: 1.8.5 (Windows 8.1), Board: “Arduino/Genuino Uno”

Sketch uses 4486 bytes (13%) of program storage space. Maximum is 32256 bytes.
Global variables use 235 bytes (11%) of dynamic memory, leaving 1813 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can’t open device “\.\COM1”: The system cannot find the file specified.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Is your Uno connected to Com1? Open the Tools menu and see which Port shows up with the Uno connected. Choose that Port and try again.