fork download
#include <iostream>

using namespace std;

int main() {
    char t = 'T';

	string v = (
	 ( t == 'B' ) ? "bus" :
	 ( t == 'A' ) ? "airplane" :
	 ( t == 'T' ) ? "train" :
	 ( t == 'C' ) ? "car" :
	 ( t == 'H' ) ? "horse" :
	 "feet" );
	 
	cout << v;
}
Success #stdin #stdout 0.01s 2856KB
stdin
Standard input is empty
stdout
train