[Question]
  [
Your challenge: write a "program", for a language of your choice, that causes the compiler/interpreter/runtime to produce *error output* when compiling/running your program which is identical to your program's source code.
Rules:
* Your program may be specific to a particular version or implementation of your language's compiler/interpreter/runtime environment. If so, please specify the particulars.
* Only standard compiler/interpreter/runtime options are permitted. You cannot pass some weird flag to your compiler to get a specific result.
* The program does *not* need to be syntactically or semantically valid, but I may give a bounty to the best syntactically valid submission.
* The program must not produce any output of its own (e.g. by calling a print or output function). All output generated upon attempting to compile/run the program must originate from the compiler/interpreter/runtime.
* The complete output of the compiler/interpreter/runtime must be exactly identical to your program source code.
* The compiler/interpreter/runtime must generate at least one error message when invoked with your program.
This is a *popularity contest*. Most creative answer, as determined by upvotes, wins. If you can give a *good* case for using a standard loophole, you may do so.
  
[Answer]
## Windows Command Prompt
```
& was unexpected at this time.
```
![enter image description here](https://i.stack.imgur.com/xWAdk.png)
[Answer]
# Ed (1 byte)
All the other solutions thus far are long and ugly. I suppose that is because of the nature of most error messages. But a good error message is elegant in its simplicity. For that, look no further than ed.
```
?
```
Save this to a file called `edscript` and run with `ed < edscript`, or run `ed<<<?`. The result:
```
?
```
The question mark is written to stderr and ed returns 1, so this actually is an error message. I wonder why ed isn't very popular?
# False (0 bytes)
Run with `false filename`. It writes the program's source code (i.e. nothing) to stderr and returns 1. Of course, calling false a programming language is questionable, and the zero byte quine is unoriginal, but I thought I might as well add it. There is probably some interpreter for a language that prints no error messages, and could replace false.
Now I wish this was code golf.
[Answer]
## CoffeeScript, syntactically valid
As tested on [their website](http://coffeescript.org/) using Chrome or Firefox.
```
ReferenceError: defined is not defined
```
You can replace `defined` with anything that's not a built-in variable, but I thought this version was fun. Unfortunately, `undefined is not defined` in particular doesn't work as a quine.
In CoffeeScript this isn't even a syntax error, because it compiles. This is technically a runtime error in JavaScript, albeit a boring one. CoffeeScript is a likely candidate to produce some more interesting runtime error quines because a lot of funny sentences are valid code. E.g. the above example compiles to
```
({
  ReferenceError: defined === !defined
});
```
[Answer]
# Windows .EXE, 248 bytes
```
The version of this file is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.
```
No, really. Save as `quine.txt`, then rename to `quine.exe` (or download it [here](https://gist.github.com/aaronryank/b11a719bb450718e0d7693b337029344/archive/dbe0ce95ef570a3f2147137382229f0eaa87a19e.zip)):
[![](https://i.stack.imgur.com/T4svL.png)](https://i.stack.imgur.com/T4svL.png)
[Answer]
# Python
## Spyder
Well, a rather trivial solution for the Spyder IDE is to raise a `SyntaxError`.
**Code and identical output:**
```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
    execfile(filename, namespace)
  File "/Users/falko/golf.py", line 1
    Traceback (most recent call last):
                         ^
SyntaxError: invalid syntax
```
(Python 2.7.8 with Spyder 2.2.5)
---
## Terminal
An alternative solution for Python started from command line struggles with an unexpected indent.
**Command:**
```
python golf.py
```
**Code and identical output:**
```
  File "golf.py", line 1
    File "golf.py", line 1
    ^
IndentationError: unexpected indent
```
---
## ideone.com
On [ideone.com](http://ideone.com/) a solution might be as follows. [(Try it!)](http://ideone.com/sGPFdT)
**Code and identical output:**
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError: SyntaxError: ('invalid syntax', ('prog.py', 1, 22, 'Traceback (most recent call last):\n'))
```
(This is for Python 2. An example for Python 3 is trivial but with [15 lines of "code"](http://ideone.com/mQ7NRI) rather lengthy.)
---
# General approach:
## How to create your own solution in 2 minutes?
1. Open a new file in an IDE of your choice.
2. Bang your head onto the keyboard in front of you.
3. Compile.
4. Replace the code with the compiler error message.
5. Repeat steps 3 and 4 until the code converges.
I bet such a procedure terminates pretty quickly in most cases!
[Answer]
## ><> - 25 Bytes
```
something smells fishy...
```
In Fish, any bad instruction outputs the error: "something smells fishy...". Since s is not a valid command, it errors immediately.
[Answer]
# [Chicken](https://web.archive.org/web/20180816190122/http://torso.me/chicken "Chicken chicken chicken: chicken chicken")
```
Error on line 1: expected 'chicken'
```
[Answer]
# Whitespace
First I thought this is clearly impossible. But actually it is trivial as well. -.-
```
Fail: Input.hs:108: Non-exhaustive patterns in function parseNum'
```
[Try it.](http://ideone.com/13FBnQ)
Yeah, my first whitespace program! ;)
[Answer]
# JavaScript
Since different browsers use different JavaScript compilers, they produce different messages. These are, however, rather trivial solutions.
## V8 (Chrome 36 / Node.js)
```
SyntaxError: Unexpected identifier
```
![enter image description here](https://i.stack.imgur.com/LRFup.png)
## SpiderMonkey (Firefox 31)
```
SyntaxError: missing ; before statement
```
![enter image description here](https://i.stack.imgur.com/x3lir.png)
## Chakra (Internet Explorer 11)
```
Expected ';'
```
![enter image description here](https://i.stack.imgur.com/DdRVJ.png)
[Answer]
## Microsoft Excel
Formula: `#DIV/0!`
Error Message: `#DIV/0!`
In order to enter a formula without using an equals sign, go into Excel Options/Advanced/Lotus Compatibility Settings and enable Transition Formula Entry.
[Answer]
## Commodore 64 Basic
```
?SYNTAX  ERROR
```
When run on the emulator of your choice (or an actual Commodore 64), produces
```
?SYNTAX  ERROR
```
This is, in fact, a syntactically-valid one-line program. The question mark is a shortcut for `PRINT`, and `SYNTAX` and `ERROR` are valid variable names. The error occurs because the parser gets confused by the substring `OR` in `ERROR`.
[Answer]
## Java 8 compilation error quine (12203 bytes)
Generated on windows + mingw with java 1.8.0\_11 jdk, using this command:
```
echo a > Q.java; while true; do javac Q.java 2> Q.err; if [ $(diff Q.err Q.java | wc -c) -eq 0 ]; then break; fi; cat Q.err > Q.java; done
```
May not be the shortest one, may not be the longest one either, more a proof of concept. Works because error output shows at most 100 errors.
```
Q.java:1: error: class, interface, or enum expected
Q.java:1: error: class, interface, or enum expected
^
Q.java:1: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:1: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:1: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:2: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
      ^
Q.java:2: error: ';' expected
Q.java:1: error: class, interface, or enum expected
       ^
Q.java:2: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
        ^
Q.java:2: error: = expected
Q.java:1: error: class, interface, or enum expected
               ^
Q.java:2: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:2: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:2: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:2: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:3: error: illegal start of type
^
^
Q.java:4: error: = expected
Q.java:1: error: <identifier> expected
 ^
Q.java:4: error: <identifier> expected
Q.java:1: error: <identifier> expected
      ^
Q.java:4: error: ';' expected
Q.java:1: error: <identifier> expected
       ^
Q.java:4: error: illegal start of type
Q.java:1: error: <identifier> expected
        ^
Q.java:4: error: = expected
Q.java:1: error: <identifier> expected
               ^
Q.java:5: error: '(' expected
Q.java:1: error: class, interface, or enum expected
 ^
Q.java:5: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
      ^
Q.java:5: error: ';' expected
Q.java:1: error: class, interface, or enum expected
       ^
Q.java:5: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
        ^
Q.java:5: error: = expected
Q.java:1: error: class, interface, or enum expected
               ^
Q.java:5: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:5: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:5: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:5: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:6: error: illegal start of type
                      ^
                      ^
Q.java:7: error: = expected
Q.java:1: error: <identifier> expected
 ^
Q.java:7: error: <identifier> expected
Q.java:1: error: <identifier> expected
      ^
Q.java:7: error: ';' expected
Q.java:1: error: <identifier> expected
       ^
Q.java:7: error: illegal start of type
Q.java:1: error: <identifier> expected
        ^
Q.java:7: error: = expected
Q.java:1: error: <identifier> expected
               ^
Q.java:8: error: '(' expected
Q.java:1: error: class, interface, or enum expected
 ^
Q.java:8: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
      ^
Q.java:8: error: ';' expected
Q.java:1: error: class, interface, or enum expected
       ^
Q.java:8: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
        ^
Q.java:8: error: = expected
Q.java:1: error: class, interface, or enum expected
               ^
Q.java:8: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:8: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:8: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:8: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:9: error: illegal start of type
                                 ^
                                 ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
 ^
Q.java:10: error: <identifier> expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
      ^
Q.java:10: error: ';' expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
       ^
Q.java:10: error: illegal start of type
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
        ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
               ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                       ^
Q.java:10: error: illegal start of type
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                               ^
Q.java:10: error: <identifier> expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                ^
Q.java:10: error: unclosed character literal
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                  ^
Q.java:10: error: ';' expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                    ^
Q.java:10: error: unclosed character literal
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                       ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                                     ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                                           ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                                                      ^
Q.java:10: error: = expected
Q.java:1: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
                                                                                 ^
Q.java:11: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
      ^
Q.java:11: error: ';' expected
Q.java:1: error: class, interface, or enum expected
       ^
Q.java:11: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
        ^
Q.java:11: error: = expected
Q.java:1: error: class, interface, or enum expected
               ^
Q.java:11: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:11: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:11: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:11: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:12: error: illegal start of type
                                      ^
                                      ^
Q.java:12: error: <identifier> expected
                                      ^
                                       ^
Q.java:13: error: = expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
   ^
Q.java:13: error: ';' expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
      ^
Q.java:13: error: <identifier> expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
              ^
Q.java:13: error: = expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
               ^
Q.java:13: error: ';' expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
                  ^
Q.java:13: error: = expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
                               ^
Q.java:13: error: unclosed character literal
  (use -source 1.4 or lower to use 'enum' as an identifier)
                                   ^
Q.java:13: error: unclosed character literal
  (use -source 1.4 or lower to use 'enum' as an identifier)
                                        ^
Q.java:13: error: = expected
  (use -source 1.4 or lower to use 'enum' as an identifier)
                                                          ^
Q.java:14: error: <identifier> expected
Q.java:1: error: = expected
      ^
Q.java:14: error: ';' expected
Q.java:1: error: = expected
       ^
Q.java:14: error: illegal start of type
Q.java:1: error: = expected
        ^
Q.java:14: error: = expected
Q.java:1: error: = expected
               ^
Q.java:14: error: illegal start of type
Q.java:1: error: = expected
                 ^
Q.java:15: error: = expected
Q.java:1: error: class, interface, or enum expected
^
Q.java:15: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
 ^
Q.java:15: error: = expected
Q.java:1: error: class, interface, or enum expected
      ^
Q.java:15: error: illegal start of type
Q.java:1: error: class, interface, or enum expected
       ^
Q.java:15: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
        ^
Q.java:15: error: = expected
Q.java:1: error: class, interface, or enum expected
          ^
Q.java:15: error: ';' expected
Q.java:1: error: class, interface, or enum expected
               ^
Q.java:15: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                      ^
Q.java:15: error: <identifier> expected
Q.java:1: error: class, interface, or enum expected
                                 ^
Q.java:15: error: as of release 5, 'enum' is a keyword, and may not be used as an identifier
Q.java:1: error: class, interface, or enum expected
                                      ^
  (use -source 1.4 or lower to use 'enum' as an identifier)
Q.java:15: error: = expected
Q.java:1: error: class, interface, or enum expected
                                           ^
Q.java:16: error: illegal start of type
                                           ^
                                           ^
Q.java:17: error: = expected
Q.java:2: error: <identifier> expected
 ^
Q.java:17: error: <identifier> expected
Q.java:2: error: <identifier> expected
      ^
Q.java:17: error: ';' expected
Q.java:2: error: <identifier> expected
       ^
Q.java:17: error: illegal start of type
Q.java:2: error: <identifier> expected
        ^
Q.java:17: error: = expected
Q.java:2: error: <identifier> expected
               ^
100 errors
```
[Answer]
# Bash (32)
Save as file named `x`:
```
x: line 1: x:: command not found
```
When run:
```
>> bash x
x: line 1: x:: command not found
```
[Answer]
# ArnoldC
```
missing IT'S SHOWTIME on first line
```
Paste the code into [this compiler](http://mapmeld.github.io/ArnoldC/).
[Answer]
# TrumpScript - Making PPCG Great Again ([TrumpScript](https://github.com/samshadwell/TrumpScript))
When trying to run this language on a windows PC, the output is always:
```
Make sure the currently-running OS is not Windows, because we're not PC
```
So when running this program:
```
Make sure the currently-running OS is not Windows, because we're not PC
```
It won't even parse it because the OS check fails, and you get the error message. Examples can be given for Mac as well if anyone wants them haha. God I've wanted to use this in PPCG for awhile now, good that I finally get to. 
Full list of errors that can be triggered using environmental specifics:  
<https://github.com/samshadwell/TrumpScript/blob/master/src/trumpscript/utils.py>
---
# Bonus Answer: ArnoldC ([ArnoldC](https://github.com/lhartikk/ArnoldC))
ArnoldC requires root declaration of `IT'S SHOWTIME`, meaning `main()`, so:
```
WHAT THE FUCK DID I DO WRONG
```
Results in the only error message in ArnoldC...
```
WHAT THE FUCK DID I DO WRONG
```
Which, is actually... hilarious. You have to run it non-verbose though w/o stack traces.
[Answer]
# Mathematica
```
Syntax: "needed." is incomplete; more input is needed.
```
A `.` in *Mathematica* means either a decimal point or function `Dot`. In this case, the `.` appears at the end of an expression and cannot be interpreted. 
---
[![enter image description here](https://i.stack.imgur.com/Db7EV.png)](https://i.stack.imgur.com/Db7EV.png)
[Answer]
# Z-machine interpreter
```
I don't know the word "know".
```
Test against [this popular interpreter](https://www.bbc.co.uk/programmes/articles/1g84m0sXpnNCv84GpN2PLZG/the-game-30th-anniversary-edition). Also there's some sort of mostly harmless game hosted there.
[Answer]
## Julia 0.2.0
Another syntax error found iteratively until a fixed point was reached:
```
ERROR: syntax: extra token "token" after end of expression
```
[Answer]
# AppleScript
```
A identifier can‚Äôt go after this identifier.
```
Both `A` and `identifier` can be identifiers, so AppleScript says no.
[![identifiers](https://i.stack.imgur.com/OzHaC.png)](https://i.stack.imgur.com/OzHaC.png)
[Answer]
# C++ (g++)
The file must be saved as `1.pas`.
```
g++: error: 1.pas: Pascal compiler not installed on this system
```
[Answer]
# [INTERCALL](//github.com/theksp25/INTERCALL), 90 bytes
```
Fatal error: A INTERCALL program must start with the mandatory header to prevent golfing.\n
```
Includes a trailing newline at the end. Note that this isn't STDERR, but it was considered to be error output by many, so I posted it here.
This is the "mandatory header":
```
INTERCALL IS A ANTIGOLFING LANGUAGE
SO THIS HEADER IS HERE TO PREVENT GOLFING IN INTERCALL
THE PROGRAM STARTS HERE:
```
[Answer]
# [Pepe](//github.com/Soaku/Pepe), 9 bytes
```
RRRERROR!
```
[Link to interpreter](//soaku.github.io/Pepe/) (paste the code above, permalink removes the `!` and `O`)
**Explanation:**
The interpreter ignores characters other than `R`,`r`,`E`,`e` so the code is:
```
RRRERRR
```
Now to explain:
```
  RE    # Push 0
RR      # (RR flag: doesn't exist)
    RRR # There is no command RRR, so output RRRERROR!
```
[Answer]
# Applescript (in Script Editor)
```
Syntax Error
A "error" can't go after this identifier.
```
![enter image description here](https://i.stack.imgur.com/w4Dfp.png)
[Answer]
# C
I applied the method of repeatedly copying the error messages to the source. It converged in 2 cycles. Compiled on OSX 10.9 with 'cc -c error.c'.
```
error.c:1:1: error: unknown type name 'error'
error.c:1:1: error: unknown type name 'error'
^
error.c:1:6: error: expected identifier or '('
error.c:1:1: error: unknown type name 'error'
     ^
2 errors generated.
```
Note: This is not so much an answer as it is a methodology to get one. The result might change depending on your OS or the version of cc you are using.
The exact method to get the result is to execute the instructions
```
$ cc -c error.c 2>out ; mv out error.c ; cat error.c
```
repeatedly until the output stops changing.
[Answer]
# BBC Basic, 7 bytes (or 0 Bytes)
This is a valid 7 byte entry:
```
Mistake
```
This is the error message produced by the interpreter when it is completely unable to make sense of the code.
On the other hand, this is not:
```
ERROR
```
This is a valid keyword in BBC Basic which is supposed to deliberately introduce an error of a specified code into the program, but the syntax is wrong (no code is given.) Therefore it returns `Syntax error` (which in turn returns `Mistake` when it is run.)
In general the procedure described by Falko in his answer leads to `Mistake` in BBC basic. There are a few exceptions. anything producing the errors`DATA not LOCAL` or `ON ERROR not LOCAL` leads to the famous zero byte quine: an empty source code produces an empty file.
Given that most error messages in BBC basic are lowercase (and therefore not valid keywords) I am pretty sure that any invalid input will ultimately lead to one of these possibilities.
[Answer]
# GHCi (a Haskell interpreter/shell)
```
Code.hs:1:1: Parse error: naked expression at top level
```
### Usage:
Write the code in a file named Code and load with GHCi.
A nice fact is that, if the words were actual identifiers, this would be a legal expression (as long as it would typecheck). This is basically due to the fact that `:` is a built in operator, `.` is used for module-qualified names, and whitespace is used to denote function application.
[Answer]
### Ruby 2 on Windows
*Code:*
```
error.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
error.rb:1: syntax error, unexpected tI...
          ^
```
The code was found by testing and iterating the process over and over until a fix-point was reached. The code must be inside the file `"error.rb"`.
*Demo:*
```
C:\>type error.rb
error.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTR
ING_DBEG or tSTRING_DVAR or tSTRING_END
error.rb:1: syntax error, unexpected tI...
          ^
C:\>ruby.exe error.rb
error.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTR
ING_DBEG or tSTRING_DVAR or tSTRING_END
error.rb:1: syntax error, unexpected tI...
          ^
```
[Answer]
# CJam 0.6.2
```
Syntax error:
java.lang.RuntimeException: y not handled
```
[Try it online.](http://cjam.aditsu.net/)
[Answer]
# x86 assembly
Bytecode:
```
53 65 67 6d 65 6e 74 61 75 69 6f 6e 20 66 61 75
6c 74 20 28 63 6f 72 65 20 64 75 6d 70 65 64 29
```
i.e. the text
```
Segmentation fault (core dumped)
```
Crashes immediately because the second instruction (the first being just "push %[er]bx") is
```
insl (%dx), %gs:(%di)
```
which fails because (a) ins cannot take segment overrides, (b) %dx and %di are almost certainly uninitialized, (c) %di is a 16-bit memory address and therefore can't be accessed in long mode, (d) ins is an invalid instruction outside of real mode.
The exact output may vary depending on what system this is run on, but it is likely that it will contain some form of illegal instruction.
[Answer]
# C (gcc)
```
error.c:1:6: error: expected ‚Äò=‚Äô, ‚Äò,‚Äô, ‚Äò;‚Äô, ‚Äòasm‚Äô or ‚Äò__attribute__‚Äô before ‚Äò.‚Äô token
 error.c:1:6: error: expected ‚Äò=‚Äô, ‚Äò,‚Äô, ‚Äò;‚Äô, ‚Äòasm‚Äô or ‚Äò__attribute__‚Äô before ‚Äò.‚Äô token
      ^
compilation terminated due to -Wfatal-errors.
```
Compile with `gcc -Wfatal-errors error.c`.
]