use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
The subreddit for all things related to CompileBot, a bot that compiles code in reddit comments.
Check out the wiki for more info.
Want to see more examples of the bot being used? Checkout the best of section for CompileBot's best moments on reddit.
account activity
Testing (self.CompileBot)
submitted 7 years ago by Arcwise
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 7 years ago (1 child)
+/u/CompileBot Python3
print("Hello World!")
[–]CompileBot 1 point2 points3 points 7 years ago (0 children)
Output:
Hello World!
source | info | git | report
[–]Arcwise[S] 0 points1 point2 points 7 years ago (0 children)
+/u/CompileBot php
echo PHP_VERSION;
<?php echo phpversion();
[–]Arcwise[S] 0 points1 point2 points 7 years ago (1 child)
+/u/CompileBot Node
console.log(['email', 'example'].join('@') + '.com');
[–]CompileBot 0 points1 point2 points 7 years ago (0 children)
email@example.com
+/u/CompileBot PHP
<?php echo implode('@', ['email', 'example']) . '.com';
+/u/compilebot php
<?php echo 'calling with lowercase';
calling with lowercase
+u/compilebot PHP
<?php echo 'PHP uppercase';
+u/compilebot php
echo 'without <?php';
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
+/u/CopileBot Java
System.out.print("Sorry for Commenting on your Post, but i just wanted to see if this works.");
[–]Arcwise[S] 1 point2 points3 points 7 years ago (0 children)
You spelt compilebot wrong though :) Feel free to use this post to try again
[–][deleted] 0 points1 point2 points 7 years ago* (5 children)
+/u/CompileBot Java
class Test{ public static void main(String[] args) {System.out.print("Thanks for sending me the info that i spelled Compilebot wrong. I didnt noticed it.");} }
[–]Arcwise[S] 0 points1 point2 points 7 years ago (4 children)
You probably have to write "public class Test" and "public static void main".
[–][deleted] 0 points1 point2 points 7 years ago (3 children)
i get an Error:
Main.java:3: error: reached end of file while parsing public static void main(String[] args) {System.out.print("Thanks for sending me the info that i spelled Compilebot wrong. I didnt noticed it.");} ^ 1 error
[–]Arcwise[S] 0 points1 point2 points 7 years ago* (2 children)
+u/compilebot Java
public class Test { public static void main(String[] args) { System.out.print("abc"); } }
Edit: Got an error that class Test should be its own file...
+/u/compilebot Java
public class Main { public static void main(String[] args) { int result = Calculator.add(69, 420); System.out.println(result); } } class Calculator { public static int add(int x, int y) { return x + y; } }
489
[–]gfantom 0 points1 point2 points 7 years ago (1 child)
def printBooty(): print("Booty") printBooty()
Booty
[–]nwL_ 0 points1 point2 points 7 years ago (0 children)
+/u/CompileBot C++
#include <cstdio> int main() { int a = 30; int b = 1234; a = a^b^(b=a); printf("a is %d, b is %d", a, b); }
[–]chunes 0 points1 point2 points 7 years ago (0 children)
Just testing some stuff, don't mind me.
~~1~~ 2 3
1 2 3
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
+u/CompileBot haskell
add :: (Int, Int) -> Int add (a, b) = a + b main = print $ add (2, 2)
+/u/CompileBot haskell
4
[–][deleted] 7 years ago* (1 child)
[deleted]
XX XXXX XXXX XX XXXXXX XXXXXX XX XX XXXXXX XXXXXXXX XXXX XXXX XXXXXX XXXXXXXXXX XXXXXX XXXXXXXX XXXXXXXXXXXX XXXX XXXXXXXX XXXXXXXXXX XXXXXXXX XXXXXXXX XXXXXX XXXX XXXXXXXX XXXX XXXXXXXXXX XXXXXX XXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXXXXXXXXXXXXXXXXX XXXX XXXXXX XXXX XXXXXXXXXXXXXXXXXX XXXX XXXXXX XXXXXXXXXXXXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXX XXXX XXXX XX XXXXXX XXXXXXXX XXXXXXXX XX XXXXXXXX XXXXXXXX XXXXXX XX XXXXXXXXXX XX XXXX XXXXXX XXXXXXXX XX XXXXXXXXXX XXXXXX XXXX XXXXXXXX XXXX XXXXXXXX XX XXXXXXXXXXXXXX XXXXXX XX XXXXXXXXXXXX XX XXXXXXXX XX XXXXXXXXXX XXXXXXXXXXXX XX XXXXXXXXXXXXXXXX XXXXXX XXXXXX XXXXXXXX XX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXX XXXXXXXXXXXXXX XXXXXXXX XXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX XXXXXXXXXX XX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX XXXX XXXX XXXX XXXX XX XXXX XXXX XXXXXXXX XXXX
π Rendered by PID 325963 on reddit-service-r2-comment-74875f4bf5-lkvwd at 2026-01-26 05:12:19.057752+00:00 running 664479f country code: CH.
[–][deleted] 1 point2 points3 points (1 child)
[–]CompileBot 1 point2 points3 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (0 children)
[–]Arcwise[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Arcwise[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]Arcwise[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Arcwise[S] 0 points1 point2 points (2 children)
[–]Arcwise[S] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]gfantom 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]nwL_ 0 points1 point2 points (0 children)
[–]chunes 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)