Skip to main content

Questions tagged [error-message]

For challenges that involve error output, such as compiler/interpreter warnings or errors.

12 votes
8 answers
1k views

Shortest English prompt to produce LLM falsehood [closed]

Since programming is predicted to become natural linguisized by the unstoppable advances in LLM technology, perhaps we can code golf LLMs themselves. Produce the shortest question that is not an ...
Innuo's user avatar
  • 237
34 votes
90 answers
7k views

iHateOddNumbers

Task Given a non-negative number, check if it's odd or even. In case it's even, output that number. Otherwise, throw any exception/error that your language supports, and stop the program. Example with ...
LeopardL GD's user avatar
-12 votes
18 answers
449 views

Reverse and error!

You have to write a program, if its source code is reversed, then it will error. For example, if your source is ABC, then reversing it and writing ...
user avatar
4 votes
5 answers
649 views

Largest Error Message in 100 bytes [duplicate]

The goal is to raise the error message with the most bytes! The error message may not be generated by the program itself, such as Python's raise. errors that do not ...
someone's user avatar
  • 339
-8 votes
3 answers
301 views

Generate a RecursionError [closed]

Write the shortest possible code cause an error due to recursion too deep Example error in python RecursionError: maximum recursion depth exceeded Example error in ...
Danis's user avatar
  • 773
7 votes
15 answers
1k views

Russian Roulette, varying chances [duplicate]

Russian roulette It's Russian roulette! The rules are simple. Shoot a revolver with n slots for bullets and one round inside at your head and you might not die! ...
Wezl's user avatar
  • 1,478
10 votes
19 answers
4k views

Shortest way to get an EOF Error [closed]

It's simple, simply output text to STDERR containing the string EOF. Input/Output Your input will be none; however, you should output the message to STDERR. ...
user avatar
0 votes
7 answers
669 views

Shortest way to get a TypeError

It's simple, simply write the shortest code to raise a TypeError. In Python you can do: raise TypeError However it should be ...
U13-Forward's user avatar
  • 2,001
-12 votes
6 answers
634 views

You failed everything! [closed]

Your goal is simple: to fail everything. More precisely, you should write the shortest code that triggers a compilation/interpretation error, or a runtime error. What does not count Failing with ...
bodqhrohro's user avatar
16 votes
4 answers
2k views

Get the lowest possible pylint score within 128 bytes of python

pylint has no lower bound on the scores it will give your code. It uses the following metric to score code, with the maximum score being 10: ...
user82938's user avatar
  • 171
49 votes
52 answers
9k views

We had a question once which only failed on Sundays

Inspired by We had a unit test once which only failed on Sundays, write a program or function that does nothing but throw an error when it is Sunday, and exit gracefully on any other day. Rules: No ...
Jo King's user avatar
  • 47.3k
148 votes
127 answers
16k views

Shortest Error Message

Challenge Write the shortest program that, when compiled or executed, produces a fatal error message smaller than the program itself. The error message may not be generated by the program itself, ...
user72528's user avatar
  • 1,503
17 votes
2 answers
648 views

Quine/Error Quine Polyglot

Your task is simple: Write a program that can be run in two languages. It should be a normal quine (prints its own source code) in language 1, and should be an error quine (generates an error message ...
Esolanging Fruit's user avatar
55 votes
20 answers
9k views

Exit Code Golfing

Inspired by this default for IO. The Task Write a program that, given an input integer x between 0 and 255, crashes with exit code ...
Addison Crump's user avatar
51 votes
8 answers
7k views

1 character typo generating most error messages from C++ compilation

It seems that simple changes to a C++ file, especially with templates, can generate pages of errors. This contest is to see what the largest "bang of the buck" is, that is the more verbose error ...
Mark Lakata's user avatar
  • 1,641

15 30 50 per page