Ad
  • Default User Avatar

    basic tests 1 and 2 succeed but all random cases fail.
    As "ooflorent" already mentioned, my solution for [+..,,] also outputs:

    if (*p) do {
      *p += 1;
      putchar(*p);
      putchar(*p);
      *p = getchar();
      *p = getchar();
    } while (*p);