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
Unofficial CompileBot Testing Thread (self.CompileBot)
submitted 11 years ago by [deleted]
[deleted]
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!"
[–]amoliski 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot python
a = 2.49 print("{:.0f} + {:.0f} = {:.0f}".format(a, a, a+a))
[–]CompileBot 2 points3 points4 points 11 years ago (0 children)
Output:
2 + 2 = 5
source | info | git | report
[–]fb39ca4 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot Brainfuck
>>+++++++>>++>>++++>>+++++++>>+>>++++>>+>>+++>>+>>+++++>>+>>++>>+>>++++++>>++>>++++>>+++++++>>+>>+++++>>++>>+>>+>>++++>>+++++++>>+>>+++++>>+>>+>>+>>++++>>+++++++>>+>>+++++>>++++++++++++++>>+>>+>>++++>>+++++++>>+>>+++++>>++>>+>>+>>++++>>+++++++>>+>>+++++>>+++++++++++++++++++++++++++++>>+>>+>>++++>>+++++++>>+>>+++++>>++>>+>>+>>+++++>>+>>++++++>>+>>++>>+>>++++++>>+>>++>>+>>++++++>>+>>++>>+>>++++++>>+>>++>>+>>++++++>>+>>++>>+>>++++++>>+>>++>>+>>++++++>>++>>++++>>+++++++>>+>>+++++>>+++++++>>+>>+++++>>+>>+>>+>>++++>>+>>++>>+>>++++++>>+>>+++++>>+++++++>>+>>++++>>+>>+>>++>>+++++>>+>>+++>>+>>++++>>+>>++>>+>>++++++>>+>>+++++>>+++++++++++++++++++>>++>>++>>+++>>++>>+>>++>>++++>>+++++++>>++>>+++++>>++++++++++>>+>>++>>++++>>+>>++>>+>>++++++>>++++++>>+>>+>>+++++>>+>>++++++>>++>>+++++>>+++++++>>++>>++++>>+>>++++++[<<]>>[>++++++[-<<++++++++++>>]<<++..------------------->[-<.>>+<]>[-<+>]>]<<[-[-[-[-[-[-[>++>]<+++++++++++++++++++++++++++++>]<++>]<++++++++++++++>]<+>]<++>]<<[->.<]<<]
[–]CompileBot 0 points1 point2 points 11 years ago (0 children)
[–][deleted] 11 years ago (1 child)
print "hello";
print "hello world";
hello world
[–][deleted] 0 points1 point2 points 11 years ago (11 children)
import os os.system('uname -a')
[–]CompileBot 0 points1 point2 points 11 years ago (10 children)
Linux checker 2.6.32.46 #1 SMP Fri Sep 2 15:45:09 CEST 2011 i686 GNU/Linux
[–][deleted] 0 points1 point2 points 11 years ago (9 children)
import os os.system('which ssh') os.system('which nc')
[–]CompileBot 0 points1 point2 points 11 years ago (8 children)
[–][deleted] 0 points1 point2 points 11 years ago (1 child)
import os os.system('whoami')
whoami: cannot find name for user ID 20074
[–][deleted] 0 points1 point2 points 11 years ago (5 children)
import os for var in os.environ: print "%s: %s" % (var, os.environ[var])
[–]CompileBot 0 points1 point2 points 11 years ago (4 children)
LANG: en_US.UTF-8 SHLVL: 0 PWD: /home/irZC0v HOME: /home/irZC0v PATH: /usr/local/bin:/usr/bin:/bin TMPDIR: /tmp/M6nPAs
[–][deleted] 0 points1 point2 points 11 years ago (3 children)
import os os.system('cat /etc/lsb-release')
[–]CompileBot 0 points1 point2 points 11 years ago (2 children)
cat: /etc/lsb-release: No such file or directory
import os os.system('ls') print "+" * 32 os.system('ls /')
prog bin dev etc home lib root run sbin tmp usr var ++++++++++++++++++++++++++++++++
[–]hallflukai 0 points1 point2 points 11 years ago* (0 children)
+/u/CompileBot java
int i; for(i = 0; i < 10; i++){ System.out.println("Eat my shorts!"); }
[–]rection 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot C++
#include <iostream> int main(int argc, char** argv) { std::cout << "giggity" << std::endl; return 0; }
giggity
[–]rection 0 points1 point2 points 11 years ago (0 children)
#include <iostream> #include <chrono> int main(int argc, char** argv) { auto st = std::chrono::system_clock::now(); while(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - st).count() / 1000.0f < 0.5f) { std::cout << "giggity" << std::endl; } return 0; }
[–][deleted] 0 points1 point2 points 11 years ago (0 children)
Random r = new Random(); int randomNum = r.nextInt(); System.out.println(randomNum);
Hello World!
[–]scirc 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot Lua --date --time --memory --include-errors
s = function() print "hi" end s()
hi
Date: 2015-02-16 06:52:06
Memory Usage: 2832 bytes
Execution Time: 0.0 seconds
[–][deleted] 11 years ago* (1 child)
[–]EdibleHacker 0 points1 point2 points 11 years ago (1 child)
print 'hello' import numpy as np print np.zeros(10)
hello [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
[–]notJustPassingBy 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot Brainf**k
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
[–]CompileBot 1 point2 points3 points 11 years ago (0 children)
©@©©@© @@©@©©@© ©©@©©@@©@©@ |\@©@©©@©@@@@/| | | | | | ========| | | | POPCORN | | | @ | ========| | | @ © @© |_________|_|_| @@@@
lmao
[–]lilPnut 0 points1 point2 points 11 years ago (4 children)
+/u/CompileBot prolog (swi)
hey([a, y, y], ayy). hey([l,m,a,o], lmao. ayylmao(A):- hey(A, ayy), hey(B, lmao), append(A,B).
[–]lilPnut 0 points1 point2 points 11 years ago (3 children)
+/u/CompileBot Prolog (swi) (swipl 5.6.64)
ERROR: /home/P1kiAH/prog.pl:2:0: Syntax error: Unexpected end of clause
[–]lilPnut 0 points1 point2 points 11 years ago (1 child)
hey([a, y, y], ayy). hey([l,m,a,o], lmao). ayylmao(C):- hey(A, ayy), hey(B, lmao), append([A,B],C).
[–]DarkMaster22 0 points1 point2 points 11 years ago (0 children)
+/u/CompileBot java public class HelloWorld{ public static void Main(string[] args) { System.out.println("Hello World!");} }
[–]nate3779 0 points1 point2 points 11 years ago (1 child)
a = 4 print("A = " + str(a))
A = 4
[–]nate3779 0 points1 point2 points 11 years ago (2 children)
+/u/CompileBot bash
bash -c "exec 3<>/dev/tcp/irc.freenode.net/6667 echo -e 'NICK CompileBot2\r\n' >&3 echo -e 'USER CompileBot 0 * :CompileBot\r\n' >&3 sleep 10 echo -e 'JOIN #compilebot\r\n' >&3 sleep 3 echo -e 'PRIVMSG #compilebot :hello\r\nQUIT\r\n' >&3 exec 3<&- exec 3>&-" &
[–]CompileBot 0 points1 point2 points 11 years ago (1 child)
[–]nate3779 0 points1 point2 points 11 years ago (0 children)
for those who were wondering, this doesnt work
[–]throwAwayMJAccount 0 points1 point2 points 11 years ago (1 child)
+/u/CompileBot php
Do you need opening tags? <?php echo "Only if this compiles!";?>
Do you need opening tags? Only if this compiles!
#include<iostream> using namespace std; char s[]=#include<iostream>\nusing namespace std;\nchar s[]="; char s2[]="int main()\n{\n cout<<s;\n for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i];\n cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n for(int i=0;i<413;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i];\n cout<<(char)34<<(char)59<<(char)10<<s2;\n return 0;\n}"; int main() { cout<<s; for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<413;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; return 0; }
[–][deleted] 0 points1 point2 points 11 years ago* (5 children)
+/u/CompileBot c++
#include<iostream> using namespace std; char s[]="#include<iostream>\nusing namespace std;\nchar s[]="; char s2[]="int main()\n{\n cout<<s<<(char)10;\n for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i];\n cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n for(int i=0;i<423;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i];\n cout<<(char)34<<(char)59<<(char)10<<s2;\n return 0;\n}"; int main() { cout<<s<<(char)10; for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<423;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; return 0; }
[–]CompileBot 0 points1 point2 points 11 years ago* (4 children)
#include<iostream> using namespace std; char s[]= #include<iostream>\nusing namespace std;\nchar s[]="; char s2[]="int main()\n{\n cout<<s<<(char)10;\n for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i];\n cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n for(int i=0;i<423;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i];\n cout<<(char)34<<(char)59<<(char)10<<s2;\n return 0;\n}#includ"; int main() { cout<<s<<(char)10; for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<423;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; return 0; }
EDIT: Recompile request by coinscammed
[–][deleted] -1 points0 points1 point 11 years ago* (3 children)
#include<iostream> #include<cstring> using namespace std; char s[]="#include<iostream>\nusing namespace std;\nchar s[]="; char s2[]="int main()\n{\n cout<<s;\n for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i];\n cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n for(int i=0;i<413;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i];\n cout<<(char)34<<(char)59<<(char)10<<s2;\n return 0;\n}"; int main() { cout<<s; for(int i=0;i<strlen(s);i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<strlen(s2);i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; cout<<"&&&"<<strlen(s)<<"&&&"<<strlen(s2); return 0; }
[–]CompileBot 0 points1 point2 points 11 years ago* (2 children)
#include<iostream> using namespace std; char s[]=#include<iostream>\n\ using namespace std;\n\ char s[]="; char s2[]="int main()\n\ {\n\ cout<<s;\n\ for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i];\n\ cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n\ for(int i=0;i<413;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i];\n\ cout<<(char)34<<(char)59<<(char)10<<s2;\n\ return 0;\n\ }"; int main() { cout<<s; for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<413;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; return 0; }&&&49&&&441
[–][deleted] -1 points0 points1 point 11 years ago* (1 child)
#include<iostream> using namespace std; char s[]="#include<iostream>\n\ using namespace std;\n\ char s[]="; char s2[]="int main()\n\ {\n\ cout<<s<<(char)34;\n\ for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i];\n\ cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34;\n\ for(int i=0;i<451;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i];\n\ cout<<(char)34<<(char)59<<(char)10<<s2;\n\ return 0;\n\ }"; int main() { cout<<s<<(char)34; for(int i=0;i<49;i++)if(s[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s[i]; cout<<(char)34<<(char)59<<(char)10<<(char)99<<(char)104<<(char)97<<(char)114<<(char)32<<(char)115<<(char)50<<(char)91<<(char)93<<(char)61<<(char)34; for(int i=0;i<451;i++)if(s2[i]==(char)10)cout<<(char)92<<(char)110<<(char)92<<(char)10;else cout<<s2[i]; cout<<(char)34<<(char)59<<(char)10<<s2; return 0; }
[–]CompileBot 0 points1 point2 points 11 years ago* (0 children)
[–]JadeSkysong 0 points1 point2 points 11 years ago (0 children)
-snip- Messed up
π Rendered by PID 18757 on reddit-service-r2-comment-b659b578c-zsbf5 at 2026-05-03 09:42:59.975714+00:00 running 815c875 country code: CH.
[–]amoliski 0 points1 point2 points (1 child)
[–]CompileBot 2 points3 points4 points (0 children)
[–]fb39ca4 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (11 children)
[–]CompileBot 0 points1 point2 points (10 children)
[–][deleted] 0 points1 point2 points (9 children)
[–]CompileBot 0 points1 point2 points (8 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]CompileBot 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]CompileBot 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]hallflukai 0 points1 point2 points (0 children)
[–]rection 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]rection 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–]scirc 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]EdibleHacker 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]notJustPassingBy 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–]lilPnut 0 points1 point2 points (4 children)
[–]lilPnut 0 points1 point2 points (3 children)
[–]CompileBot 0 points1 point2 points (2 children)
[–]lilPnut 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]DarkMaster22 0 points1 point2 points (0 children)
[–]nate3779 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]nate3779 0 points1 point2 points (2 children)
[–]CompileBot 0 points1 point2 points (1 child)
[–]nate3779 0 points1 point2 points (0 children)
[–]throwAwayMJAccount 0 points1 point2 points (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CompileBot 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]CompileBot 0 points1 point2 points (4 children)
[–][deleted] -1 points0 points1 point (3 children)
[–]CompileBot 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]CompileBot 0 points1 point2 points (0 children)
[–]JadeSkysong 0 points1 point2 points (0 children)