Can someone correct my code please

My code talk about control (on-off) 220v object with a tv remote.
the connection and the code are attached.

IRrecord.ino (3.96 KB)

The code does something. You haven't said what.

You want the code to do something. You haven't said what.

How are we supposed to correct the code? For all I know, it is working perfectly.

I finish the correction but i have one problem is an error
““Error compilling.””
can you help me

IRrecord1.ino (2.2 KB)

Do not cross-post.

can you help me

No. You have not defined which version of the IDE you are using, which board you are compiling for, or where you got the IR library you have (or where you installed it).

When I compile your code, I get:

Binary sketch size: 4,520 bytes (of a 32,256 byte maximum)