The tx led of arduino uno is always on and the board can't be programmed(programmer not responding)

Did you disconnect the external devices?

I just looked at your code and you don't have any serial functions.

Have you done anything since the last time you programmed this board?