Problem in uploading

I am new to this Arduino world.
I got my first Arduino, UNO R3 // ATMEL 1649 // ATMEGA328-PU
I am trying to upload a simple program
But it keeps giving an error message as

avrdude: verification error, first mismatch at byte 0x0000
0x62 != 0x0c
avrdude: verification error; content mismatch

but this one liner programs seem to work, the LED glows when i upload with 13,HIGH and stops glowing with 13,LOW(at the same time with the error message)

There is nothing attached to the board(other than the USB cable of course),
I'm using Arduino 1.8.2 IDE
Win 10(64 bit)