Arduino UNO R3

A long time ago I used my arduino and accidentally supplied it with 12v, it immediately turned off. I thought it was dead so I didn’t use it a long time. Today, I found the Arduino and connected it to 5v and it worked! The LED on the board was lighten green. I plugged it into the computer via USB and launched the Arduino IDE. (As you can see in the picture below) when I connect to USB, it appears under: Tools → Port.
So I tried writing the example blink sketch to it, and it said error compiling:

cc1plus: out of memory allocating 1677721600 bytes after a total of 0 bytes
exit status 1
Error compiling.

What should I do??


never mind its working…