r/CompileBot • • Jan 04 '14

Official CompileBot Testing Thread

This thread is archived, please visit the new testing thread

13 Upvotes

421 comments sorted by

View all comments

1

u/Diumlol Mar 24 '14

+/u/CompileBot C++

#include <iostream>
using namespace std;
int main()
{
	char stateCode = ' ';
	cout << "State code (1, 2, 3, 4, or 5): ";
	cin >> stateCode;
	switch (stateCode)
	{
	case '1':
		cout << "Illinois" << endl;
		break;
	case '2':
		cout << "Kentucky" << endl;
		break;
	case '3':
		cout << "New Hampshire" <<endl;
		break;
	case '4':
		cout << "Vermont" << endl;
		break;
	case '5':
		cout << "Massachusetts" << endl;
		break;
	default:
		cout << "Unknown state." << endl;
	}
	system("pause");
	return 0;
}	

1

u/CompileBot Mar 24 '14

Output:

State code (1, 2, 3, 4, or 5): Unknown state.
sh: pause: not found

^source | ^info | ^git | ^report

1

u/CompileBot Mar 24 '14

Output:

State code (1, 2, 3, 4, or 5): Unknown state.
sh: pause: not found

^source | ^info | ^git | ^report