r/CompileBot • u/CopperBag • May 07 '18
1st timer's test
/u/compilebot C++
include <iostream>
long int factorial(int n) { if (n <= 1) return n; return n*factorial(n-1); }
int main() { std::cout << "f(1337) = " << factorial (1337); }
r/CompileBot • u/CopperBag • May 07 '18
/u/compilebot C++
long int factorial(int n) { if (n <= 1) return n; return n*factorial(n-1); }
int main() { std::cout << "f(1337) = " << factorial (1337); }
r/CompileBot • u/quaductas • Jun 25 '17
You really looked to see what was in the body of this obviously pointless post? Aww
r/CompileBot • u/[deleted] • Jun 04 '17
I can't get it to work... and it's made no comments for a couple days
r/CompileBot • u/imaconor • Apr 03 '17
+/u/CompileBot python3
for i in range(10): print("Hello World!", end="")
r/CompileBot • u/cheese3660 • Mar 02 '17
+/u/CompileBot lua --time print("Pi is delicious")
r/CompileBot • u/poizan42 • Dec 29 '16
+/u/CompileBot python
import binascii, hashlib, uuid
def guid_xl():
a = uuid.uuid4()
b = uuid.uuid4()
c = a.bytes + b.bytes
d = hashlib.sha1(c).digest()
return d
if __name__ == '__main__':
print binascii.b2a_hex(guid_xl())r/CompileBot • u/Goheeca • Nov 29 '16
+/u/CompileBot Common Lisp
(print (eval (print (eval `(defvar ,(gensym) "Hello")))))r/CompileBot • u/dizzyzane_ • Aug 19 '16
/u/CompileBot bash
cd ~ && ls && cd .. && ls && cd /usr && lsr/CompileBot • u/b4ux1t3 • Jul 26 '16
+/u/compilebot Go
package main
import "fmt"
func main(){
x := 1337
for x > 1 {
if x % 2 != 0{
x = x * 3 + 1
} else {
x /= 2
}
fmt.Println(x)
}
}r/CompileBot • u/wbbigdave • Jul 05 '16
#include<stdio.h>
main()
{
printf("Hello World");
}r/CompileBot • u/AngriestSCV • Jun 04 '16
+/u/CompileBot #include <stdio.h>
int main(){
int i=42;
printf("i= %i, sizeof(i): %li\n", i, sizeof i);
}