r/CompileBot • • May 07 '18

1st timer's test

1 Upvotes
  • /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 • • Apr 03 '18

Practice

1 Upvotes

r/CompileBot • • Jun 25 '17

Test

1 Upvotes

You really looked to see what was in the body of this obviously pointless post? Aww


r/CompileBot • • Jun 04 '17

Is compilebot down?

1 Upvotes

I can't get it to work... and it's made no comments for a couple days


r/CompileBot • • Jun 01 '17

testtt

1 Upvotes

tttest


r/CompileBot • • Jun 01 '17

test

1 Upvotes

r/CompileBot • • May 28 '17

Test

1 Upvotes

+/u/CompileBot Ruby

puts "a.\n" * 10

r/CompileBot • • May 25 '17

Perl test

1 Upvotes

r/CompileBot • • May 19 '17

test

1 Upvotes

r/CompileBot • • Apr 08 '17

JavaScript

1 Upvotes

r/CompileBot • • Apr 03 '17

python3 test

1 Upvotes

+/u/CompileBot python3
for i in range(10): print("Hello World!", end="")


r/CompileBot • • Mar 26 '17

Assembly test

1 Upvotes

r/CompileBot • • Mar 02 '17

Lua test

1 Upvotes

+/u/CompileBot lua --time print("Pi is delicious")


r/CompileBot • • Dec 29 '16

No /dev/null?

1 Upvotes

+/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 • • Dec 28 '16

Python 2.7

1 Upvotes

r/CompileBot • • Nov 29 '16

Gensym

1 Upvotes

+/u/CompileBot Common Lisp

(print (eval (print (eval `(defvar ,(gensym) "Hello")))))

r/CompileBot • • Oct 25 '16

Quine test

1 Upvotes

r/CompileBot • • Oct 14 '16

Java Rock, Paper, Scissors

1 Upvotes

r/CompileBot • • Oct 09 '16

Testing thread, Ocaml

1 Upvotes

r/CompileBot • • Sep 04 '16

ffmpeg

1 Upvotes

r/CompileBot • • Aug 19 '16

/home

1 Upvotes

/u/CompileBot bash

cd ~ && ls && cd .. && ls && cd /usr && ls

r/CompileBot • • Jul 26 '16

Collatz!

1 Upvotes

+/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 • • Jul 05 '16

hello world

1 Upvotes

Testing


r/CompileBot • • Jul 05 '16

Please compile

1 Upvotes

+/u/CompileBot C

#include<stdio.h>
main()
{
    printf("Hello World");
}

r/CompileBot • • Jun 04 '16

sizeof in c

1 Upvotes

+/u/CompileBot #include <stdio.h>

int main(){
    int i=42;
    printf("i= %i, sizeof(i): %li\n", i, sizeof i);
}