public static String getResultName(int result) {
		String value = null;
		switch (result) {
		case -2:
			value = "Pending";
			break;
		case 0:
			value = "Accepted";
			break;
		case 1:
			value = "Rejected";
			break;
		case 2:
			value = "No output";
			break;
		case 3:
			value = "Compilation error";
			break;
		case 4:
			value = "Runtime error";
		}
		return value;
	}