Output the Missing Character


When writing a programm 1 missing character can ruin everything, wouldn't it be great if the programm told you what was missing ?


Create any (non Empty) programm, that takes no input and outputs nothing.

That when 1 Character is removed from the programm, outputs that Character.

Input: None


Output nothing if the programm is unmodified.

Output the removed character if one was removed from the programm.

The output is unspecified if any character is changed or added.

The output is also unspecified if more than 1 characters are removed.

The output can not contain any additional characters.

The output can also be an error message, that again must be only 1 character.


If the programm was the following:


These 5 Outputs are required:

abcd ->  <NO OUTPUT>
abc  ->  d
abd  ->  c
acd  ->  b
bcd  ->  a


This is shortest code in bytes wins!

Standard loopholes are forbidden.


This challenge is not a duplicate of Radiation Detector!.

The original program has to output nothing.

It is allowed to read your own source code.


Posted 2019-04-10T07:26:48.803

Reputation: 73

Question was closed 2019-04-10T08:12:58.220

4Possible duplicate – Emigna – 2019-04-10T07:31:43.357

This is not a duplicate of Radiation Detector!, this challenge allows reading your own source and the output cannot be repeated. + The original programm has to output nothing. – peterzuger – 2019-04-10T07:47:26.707

2The differences are there, but whether or not they're big enough, and how much they might need to be emphasized, is something best evaluated while the question is closed. (Well, it's better in the sandbox...) – Unrelated String – 2019-04-10T08:06:59.207


I just noticed my close-vote is a hammer.. Still, I think allowing to read your own source code and outputting nothing for the original program will make it slightly different, but I personally don't think it's different enough. But if someone disagrees feel free to vote to re-open and give some arguments why the differences are big enough. PS: Don't feel discouraged that your first challenge is a duplicate, it happens pretty often for new users unfortunately. Feel free to post it in the Sandbox to get feedback, and enjoy your stay!

– Kevin Cruijssen – 2019-04-10T08:17:41.950

1@peterzuger also, hi, welcome, GREAT first challenge. Most people do not do their first challenge so amazingly well. Please don't be discouraged by how strict we are here; and do use the sandbox, it's a good place to play around, no pun intended. I want to see more questions from you :). You did very well, just accidentally closely mirrored a challenge. – Magic Octopus Urn – 2019-04-10T20:57:48.610

No answers