Dane wyjściowe do STDERR
Wyjście do STDERR jest teraz na + 33 / -21 jako dozwolone domyślne, co jest dodatnie, ale kwestionowane. To jest odpowiedź CW do zbierania odpowiedzi, które wywołują błąd w języku, w którym komunikaty o błędach zawierają nazwę języka.
1
Błąd:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
1
Błąd:
lua: .code.tio:1: syntax error near <eof>
(nazwa pliku jest nieistotna)
Partia, 1 bajt
~
Błąd:
'~' is not recognized as an internal or external command,
operable program or batch file.
(c()1
Błąd:
Error: cannot cons to Int in tinylisp
R, 1 bajt
)
Błąd:
Error: unexpected ')' in ")"
Kod bajtowy Java, 0 bajtów
Błąd:
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
Groovy, 1 bajt
a
Pamiętaj, że amożna go zastąpić dowolną inną postacią
Błąd:
groovy.lang.MissingPropertyException: No such property: a ...
MATLAB, 1 bajt
\
Błąd:
Error: Unexpected MATLAB operator.
<?=
Błąd:
PHP Parse error: syntax error, unexpected end of file in /home/runner/.code.tio on line 1
CJam, 1 bajt
/
Błąd:
/
^
RuntimeException: The stack is empty
Java exception:
java.lang.RuntimeException: The stack is empty
at net.aditsu.cjam.CJam.pop(CJam.java:75)
at net.aditsu.cjam.Op2.run(Op2.java:10)
at net.aditsu.cjam.Block.run(Block.java:304)
at net.aditsu.cjam.CJam.runCode(CJam.java:210)
at net.aditsu.cjam.CJam.main(CJam.java:240)
Twig to język szablonów napisany w PHP. Możliwe, że jest to poliglota.
{{
{%
{#
Błąd:
PHP Fatal error: Uncaught exception 'Twig_Error_Syntax' with message [...] in [...][...]:n:
Stack trace:
#0 [...]
Komunikat różni się w zależności od wybranego programu.
x+
Wypróbuj online!
Trywialnie wywołuje zachowanie nieudokumentowane. Silos to nazwa języka.
Python, 6 bajtów
pYTHON
Ponieważ ograniczenie znaków nie rozróżnia wielkich i małych liter, a wynik nie musi być w prawidłowej wielkości, jest to poprawna odpowiedź. Wyświetlany komunikat o błędzie wygląda mniej więcej tak:
Traceback (most recent call last):
File ".code.tio", line 1, in <module>
pYTHON
NameError: name 'pYTHON' is not defined
Wypróbuj online! (wyniki w zakładce „debugowanie”)
JavaScript, 10 bajtów
jAVAsCRIPT
Powoduje to następujący komunikat o błędzie lub podobny we wszystkich środowiskach:
ReferenceError: jAVAsCRIPT is not defined
QBIC , 6 bajtów
?b(12)
W 6 bajtach możemy umieścić na ekranie napotkany błąd QBIC: 9, oznaczający błąd przekroczenia granicy.
ForceLang, 2 bajty
()
Wystąpił błąd:
Exception in thread "main" lang.exceptions.IllegalInvocationException: null is not a function.
at lang.ForceLang.parse(ForceLang.java:99)
at lang.ForceLang.main(ForceLang.java:129)
1~`[`
(Uwaga: działa to w obecnej wersji z tego tekstu , 0.17.09.01 . Nie ma gwarancji, że interpreter nie zmieni się, aby obsługiwać ten błąd inaczej w przyszłości.)
Próbuje dopasować wyrażenie regularne z niepoprawnym składniowo wzorem. Wytworzony błąd będzie wyglądał mniej więcej tak:
Traceback (most recent call last):
File "/opt/pip/pip.py", line 221, in <module>
pip(interactive=False)
File "/opt/pip/pip.py", line 206, in pip
state.executeProgram(tree, args)
File "/opt/pip/execution.py", line 56, in executeProgram
returnVal = self.functionCall(mainFunction, cmdLineArgs)
File "/opt/pip/execution.py", line 368, in functionCall
returnVal = self.getRval(returnExpr)
File "/opt/pip/execution.py", line 235, in getRval
expr = self.evaluate(expr)
File "/opt/pip/execution.py", line 213, in evaluate
result = opFunction(*args)
File "/opt/pip/execution.py", line 1134, in FIRSTMATCH
matchObj = regex.asRegex().search(str(string))
File "/opt/pip/ptypes.py", line 175, in asRegex
self._compiled = re.compile(pyRegex)
File "/usr/lib64/python3.6/re.py", line 233, in compile
return _compile(pattern, flags)
File "/usr/lib64/python3.6/re.py", line 301, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
not nested and not items))
File "/usr/lib64/python3.6/sre_parse.py", line 765, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
not nested and not items))
File "/usr/lib64/python3.6/sre_parse.py", line 523, in _parse
source.tell() - here)
sre_constants.error: unterminated character set at position 8
0u
Błąd:
Stax runtime error: rational divide by zero
zh działa również.
~
~na początku linii oznacza, że linia jest instrukcją do wykonania, a nie tekstem do wydrukowania. Od jakiejkolwiek używanej wersji Inklecate TIO, jeśli nie ma nic po ~, interpreter ulega awarii z następującym błędem:
System.NullReferenceException: Object reference not set to an instance of an object
at Ink.InkParser.LogicLine () [0x000b1] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00012] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000a] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x00009] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser+<>c__DisplayClass134_0.<StatementsAtLevel>b__0 () [0x00000] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00012] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00040] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004f] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.Parse () [0x00000] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.Compiler.Compile () [0x00033] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.CommandLineTool..ctor (System.String[] args) [0x001a3] in <d64e27e7788347b2a5377c9e19bbdcab>:0
at Ink.CommandLineTool.Main (System.String[] args) [0x00000] in <d64e27e7788347b2a5377c9e19bbdcab>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at Ink.InkParser.LogicLine () [0x000b1] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00012] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000a] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x00009] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser+<>c__DisplayClass134_0.<StatementsAtLevel>b__0 () [0x00000] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00012] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00040] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004f] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.InkParser.Parse () [0x00000] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.Compiler.Compile () [0x00033] in <b1e5e74f4ee842fc961297862cf23e07>:0
at Ink.CommandLineTool..ctor (System.String[] args) [0x001a3] in <d64e27e7788347b2a5377c9e19bbdcab>:0
at Ink.CommandLineTool.Main (System.String[] args) [0x00000] in <d64e27e7788347b2a5377c9e19bbdcab>:0