Is input a string "c 20 10 10" or every parameter is written separately, like the
cin>>a>>b>>c;
in C++ would do?
Actually I've succesfully wrote the code, but the input is my own variaton, and i can't pass the test. For now it is:
char type;
cin>>type;
and then the rest of input depends of what type was choosen, and it is controlled by the switch case.