Help to correct the code

That is the problem. Start with a human-written tutorial that actually works, like this one: Simple nRF24L01+ 2.4GHz transceiver demo