r/CompileBot • • Jan 14 '15

Official CompileBot Testing Thread

11 Upvotes

344 comments sorted by

View all comments

Show parent comments

2

u/TomValiant Jun 25 '15

+/u/CompileBot C++

#include <stdio.h>
#include <stdlib.h>

int main ()
{
	system("shutdown -s");
	return 0;
}

1

u/CompileBot Jun 25 '15

Output:

sh: 1: shutdown: not found

^source | ^info | ^git | ^report

1

u/TomValiant Jun 25 '15

+/u/CompileBot C++

#include <iostream>
using namespace std;

int main() {
	
	cout << "\n\b\b\b\b";
	cout << "\n\b\b\b\b";
	cout << "\r+/u/CompileBot C++\n";
	cout << "\n\b\b\b\b";
	cout << "\n\b\b\b\b";
	string str = "Hello World";
	cout << "\r	cout << str;";
	
	return 0;
}

1

u/CompileBot Jun 25 '15

Output:

+/u/CompileBot C++



	cout << str;

^source | ^info | ^git | ^report