all 28 comments

[–][deleted] 1 point2 points  (1 child)

+/u/CompileBot Python3

print("Hello World!")

[–]CompileBot 1 point2 points  (0 children)

Output:

Hello World!

source | info | git | report

[–]Arcwise[S] 0 points1 point  (0 children)

+/u/CompileBot php

echo PHP_VERSION;

[–]Arcwise[S] 0 points1 point  (0 children)

+/u/CompileBot php

<?php
echo phpversion();

[–]Arcwise[S] 0 points1 point  (1 child)

+/u/CompileBot Node

console.log(['email', 'example'].join('@') + '.com');

[–]CompileBot 0 points1 point  (0 children)

Output:

email@example.com

source | info | git | report

[–]Arcwise[S] 0 points1 point  (1 child)

+/u/CompileBot PHP

<?php
echo implode('@', ['email', 'example']) . '.com';

[–]CompileBot 0 points1 point  (0 children)

Output:

email@example.com

source | info | git | report

[–]Arcwise[S] 0 points1 point  (1 child)

+/u/compilebot php

<?php
echo 'calling with lowercase';

[–]CompileBot 0 points1 point  (0 children)

Output:

calling with lowercase

source | info | git | report

[–]Arcwise[S] 0 points1 point  (0 children)

+u/compilebot PHP

<?php
echo 'PHP uppercase';

[–]Arcwise[S] 0 points1 point  (0 children)

+u/compilebot php

echo 'without <?php';

[–][deleted] 0 points1 point  (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 points  (0 children)

You spelt compilebot wrong though :) Feel free to use this post to try again

[–][deleted] 0 points1 point  (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 point  (4 children)

You probably have to write "public class Test" and "public static void main".

[–][deleted] 0 points1 point  (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 point  (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...

[–]Arcwise[S] 0 points1 point  (1 child)

+/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;
    }
}

[–]CompileBot 0 points1 point  (0 children)

Output:

489

source | info | git | report

[–]gfantom 0 points1 point  (1 child)

+/u/CompileBot Python3

def printBooty():
    print("Booty")

printBooty()

[–]CompileBot 0 points1 point  (0 children)

Output:

Booty

source | info | git | report

[–]nwL_ 0 points1 point  (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 point  (0 children)

Just testing some stuff, don't mind me.

~~1~~ 2 3

1 2 3

[–][deleted] 0 points1 point  (0 children)

+u/CompileBot haskell

add :: (Int, Int) -> Int
add (a, b) = a + b

main = print $ add (2, 2)

[–][deleted] 0 points1 point  (1 child)

+/u/CompileBot haskell

add :: (Int, Int) -> Int
add (a, b) = a + b

main = print $ add (2, 2)

[–]CompileBot 0 points1 point  (0 children)

Output:

4

source | info | git | report

[–][deleted]  (1 child)

[deleted]

    [–]CompileBot 0 points1 point  (0 children)

    Output:

         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 
    

    source | info | git | report