Arduino Pins are not working properly

I was working on my project when my Arduino Uno Rev3 started behaving weird.
I then wrote a sketch printing on the console all the pins state.
The first column is the state and the second the name of the pin. That's what is going on when nothing is plugged in:
1 0
0 1
0 2
0 3
0 4
0 5
0 6
0 7
0 8
0 9
0 10
0 11
0 12
1 13
0 A0
0 A1
0 A2
0 A3
0 A4
0 A5

And this when I plug a cable in the 5V and GND pins without doing anything else:
1 0
0 1
0 2
1 3
1 4
0 5
0 6
0 7
0 8
1 9
1 10
1 11
0 12
1 13
0 A0
0 A1
1 A2
1 A3
0 A4
0 A5

It is not even constant, on every refresh of the sketch (every 3s) the output is slightly different.
Have I somehow fried my board?

I was working on my project when my Arduino Uno Rev3 started behaving weird.
I then wrote a sketch printing on the console all the pins state.
The first column is the state and the second the name of the pin. That's what is going on when nothing is plugged in:

1  0 
0  1 
0  2 
0  3 
0  4 
0  5 
0  6 
0  7 
0  8 
0  9 
0  10 
0  11 
0  12 
1  13 
0  A0 
0  A1 
0  A2 
0  A3 
0  A4
0  A5

And this when I plug a cable in the 5V and GND pins without doing anything else:

1  0 
0  1 
0  2 
1  3 
1  4 
0  5 
0  6 
0  7 
0  8 
1  9 
1  10 
1  11 
0  12 
1  13 
0  A0 
0  A1 
1  A2 
1  A3 
0  A4 
0  A5

It is not even constant, on every refresh of the sketch (every 3s) the output is slightly different.
Have I somehow fried my board?

(deleted)

Oh, you're Right! I completely forgot about that!
Thanks for answer to this stupid question! :sweat_smile:

If you have nothing connected to a pin and if it is set as pinMode(pin, INPUT) which is the default then the state of the pin is unstable. Either connect an external pullup (preferred) or pulldown resistor or use pinMode(pin, INPUT_PULLUP) to set the internal pullup resistor.

...R

@simya

Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

TOPIC MERGED.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum.