Output ke STDERR
Outputing ke STDERR sekarang di + 33 / -21 sebagai default yang diizinkan, yang positif tetapi diperebutkan. Ini adalah jawaban CW untuk mengumpulkan jawaban yang baru saja memanggil kesalahan dalam bahasa di mana pesan kesalahan menyertakan nama bahasa.
1
Kesalahan:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
1
Kesalahan:
lua: .code.tio:1: syntax error near <eof>
(nama file tidak penting)
Batch, 1 byte
~
Kesalahan:
'~' is not recognized as an internal or external command,
operable program or batch file.
(c()1
Kesalahan:
Error: cannot cons to Int in tinylisp
R, 1 byte
)
Kesalahan:
Error: unexpected ')' in ")"
Bytecode Java, 0 byte
Kesalahan:
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
Groovy, 1 byte
a
Catatan yang a
bisa diganti dengan karakter lain
Kesalahan:
groovy.lang.MissingPropertyException: No such property: a ...
MATLAB, 1 byte
\
Kesalahan:
Error: Unexpected MATLAB operator.
<?=
Kesalahan:
PHP Parse error: syntax error, unexpected end of file in /home/runner/.code.tio on line 1
CJam, 1 byte
/
Kesalahan:
/
^
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)
Ranting adalah bahasa templat yang ditulis dalam PHP. Mungkin saja ini poliglot.
{{
{%
{#
Kesalahan:
PHP Fatal error: Uncaught exception 'Twig_Error_Syntax' with message [...] in [...][...]:n:
Stack trace:
#0 [...]
Pesan bervariasi tergantung pada program mana yang Anda pilih.
x+
Cobalah online!
Sepele meminta perilaku tidak berdokumen. Silo adalah nama bahasa.
Python, 6 byte
pYTHON
Karena pembatasan karakter tidak peka huruf besar-kecil, dan hasilnya tidak harus dalam huruf yang benar, ini adalah jawaban yang valid. Pesan kesalahan yang dihasilkannya adalah seperti ini:
Traceback (most recent call last):
File ".code.tio", line 1, in <module>
pYTHON
NameError: name 'pYTHON' is not defined
Cobalah online! (keluaran ke tab 'debug')
JavaScript, 10 byte
jAVAsCRIPT
Ini menghasilkan pesan kesalahan berikut atau serupa di semua lingkungan:
ReferenceError: jAVAsCRIPT is not defined
QBIC , 6 byte
?b(12)
Dalam 6 byte, kita bisa menempatkan kesalahan yang ditemui QBIC: 9 di layar, menandakan kesalahan di luar batas.
ForceLang, 2 byte
()
Kesalahan yang dihasilkan:
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~`[`
(Catatan: ini berfungsi dalam versi saat ini pada tulisan ini, 0.17.09.01 . Tidak ada jaminan penerjemah tidak akan berubah untuk menangani kesalahan ini secara berbeda di masa mendatang.)
Mencoba melakukan regex yang cocok dengan pola yang secara sintaksis tidak valid. Kesalahan yang dihasilkan akan terlihat seperti ini:
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
Kesalahan:
Stax runtime error: rational divide by zero
zh
juga berfungsi.
~
~
pada awal baris menandai bahwa baris adalah pernyataan yang akan dieksekusi, bukan teks yang akan dicetak. Pada versi TIO inklecate mana saja yang digunakan, jika tidak ada setelah ~
, penerjemah lumpuh dengan kesalahan berikut:
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