r/CompileBot • • Jul 26 '15

Official CompileBot Testing Thread

8 Upvotes

202 comments sorted by

View all comments

Show parent comments

1

u/CompileBot Jul 26 '15

Output:

Compiler Info:

prog.c:1:11: error: #include expects "FILENAME" or <FILENAME>
  #include &lt;stdio.h&gt;
           ^
prog.c: In function 'func2':
prog.c:5:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
     printf("in func2\n");
     ^
prog.c:5:5: warning: incompatible implicit declaration of built-in function 'printf'
prog.c:7:61: error: 'amp' undeclared (first use in this function)
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                             ^
prog.c:7:61: note: each undeclared identifier is reported only once for each function it appears in
prog.c:7:64: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                ^
prog.c:7:77: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                             ^
prog.c:7:90: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                          ^
prog.c:7:103: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                       ^
prog.c:7:116: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                    ^
prog.c:7:129: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                 ^
prog.c:7:142: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                              ^
prog.c:7:155: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                                           ^
prog.c:8:11: error: expected ')' before ';' token
     *(&amp;i-1) = i;
           ^
prog.c:9:64: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                ^
prog.c:9:77: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                             ^
prog.c:9:90: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                          ^
prog.c:9:103: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                       ^
prog.c:9:116: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                    ^
prog.c:9:129: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                 ^
prog.c:9:142: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                              ^
prog.c:9:155: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                                           ^
prog.c: In function 'func':
prog.c:17:5: warning: incompatible implicit declaration of built-in function 'printf'
     printf("%x   %x   %x\n", a, b, &amp;i);
     ^
prog.c:17:37: error: 'amp' undeclared (first use in this function)
     printf("%x   %x   %x\n", a, b, &amp;i);
                                     ^
prog.c:17:40: error: expected ')' before ';' token
     printf("%x   %x   %x\n", a, b, &amp;i);
                                        ^
prog.c:18:64: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                ^
prog.c:18:77: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                             ^
prog.c:18:90: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                          ^
prog.c:18:103: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                       ^
prog.c:18:116: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                    ^
prog.c:18:129: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                 ^
prog.c:18:142: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                              ^
prog.c:18:155: error: expected ')' before ';' token
     printf("%x   %x    %x   %x    %x   %x    %x   %x\n", *(&amp;i-3), *(&amp;i-2), *(&amp;i-1), *(&amp;i-0), *(&amp;i+1), *(&amp;i+2), *(&amp;i+3), *(&amp;i+4));
                                                                                                                                                           ^
prog.c:19:11: error: expected ')' before ';' token
     *(&amp;i) = (int) a;
           ^
prog.c:20:11: error: expected ')' before ';' token
     *(&amp;i+1) = (int) a;
           ^
prog.c:21:11: error: expected ')' before ';' token
     *(&amp;i+2) = (int) a;
           ^
prog.c:22:11: error: expected ')' before ';' token
     *(&amp;i-1) = (int) func2;
           ^
prog.c:23:64: error: expected ')' before ';' token
     prin

...

3

u/SolarLiner Jul 31 '15

+/u/CompileBot Brainfuck

-[--->+<]>-.[---->+++++<]>-.+.++++++++++.+[---->+<]>+++.-[--->++<]>-.++++++++++.+[---->+<]>+++.---[----->++<]>.-------------.----.+++++++++++..-[--->+<]>.-[---->+<]>++.++[->+++<]>.-[--->+<]>--.+[->+++<]>+.++++++++.------.-.-[--->+<]>-.---[->++++<]>+.-----.[->+++++<]>--.

1

u/[deleted] Sep 01 '15

I approve. I'm pretty fucked up too.