chatting using the nrf24l01 error

Hello i have a small problem I’m trying to chat between two computer using 2 arduinos and the nrf24l01 modules i found a sketch online using this module i upload well had the first problem it needed a printf.h library so i found it and installed that took care of that error and worked so i uploaded the sketch and no errors in compiling i open the serial monitor on both my desktop and laptop and see some text everything from what i seen looks normal so when i write to write to serial monitor i get this message
( could not write… ) about 50 times into i closed out the serial monitor and then i tried on the laptop and got the same thing ( could not write… ) about 50 times so i closed that out too I’m not sure what is going on can someone help me out the code is below.

//the same program will run on both the nodes.here any one can initiate the chat and any node can transmit or receive any number of messages in any order.
#include<SPI.h>
#include"nRf24L01.h"
#include"RF24.h"
#include"printf.h"
RF24 radio(9, 10);
const uint64_t pipes[2] = { 0xF0F0F0F0E1LL, 0xF0F0F0F0D2LL };
bool go_to_tx_mode = false;
//bool go_to_rx_mode = false;
//bool go_to_serial_mode = true;
char input[32] = "";
void setup() {
  Serial.begin(57600);
  printf_begin();
  radio.begin();
  radio.enableDynamicPayloads();
  radio.setRetries(15, 15);
  radio.openWritingPipe(pipes[1]);
  radio.openReadingPipe(1, pipes[0]);
  radio.startListening();
  radio.printDetails();
  // put your setup code here, to run once:
 
}
 
void loop() {
  if (go_to_tx_mode)
  {
    radio.stopListening();
    bool ok = radio.write(input, 32);
    if (ok)
    {
      //printf("written successfully !!!\n");
      printf("ME : %s\n", input);
      go_to_tx_mode = false;
      radio.startListening();
    }
    else
      printf("could not write....\n");
  }
  if (radio.available())
  {
    char payload[32] = "";
    bool done = false;
    while (!done)
    {
      done = radio.read( payload , 32 );
      printf("HIM : %s\n", payload);
 
      //delay(20);//see you did this when you checked the getting started example but it is NOT AT ALL required.why?because after being in rx mode it will go in serial mode and wait for our input so the other unit has sufficient time to go in tx mode !!
    }
 
  }
 
  //if(go_to_serial_mode)//having this makes the program extremely stable, just having an if block starting with serial.available is unstable.it will not take untimed serial inputs.
  //{
  if (Serial.available())
  { //try with local "input" variable too by passing a pointer to tx function.
    int len = Serial.readBytesUntil('\n', input, 31);
    input[len] = '\0';
    go_to_tx_mode = true;
    //go_to_serial_mode = false;
  }
  //}
 
}

Surely the commented out code is NOT the source of the problem.
Surely we don’t need to see it.

i didn’t make this code what comment out part paul?

nevermind i figure it out problem solved