Note that the cin >> only completes when a <CR> is entered following text. If just a <CR> is entered then a blank line is shown but input is still required until some text has been entered followed by a <CR>.
the space after ':' isn't written in the output, but in the cout i write : ";
there is no space between : and ciao, but the space there is at the beginning of the new line
Does your CLion use MinGW? If so, what version? You most likely can continue to use CLion as an IDE, but try to hook it up to a different compiler instead.
try doing the following: in Registry (Help | Find Action..., type Registry there) disable the run.processes.with.pty option and restart CLion. Does that help?
According to the response in CPP-12752 disabling PTY (without CLion restart, since the run.processes.with.pty option is not saved after CLion's restart - CPP-8395) helps.
You could also try running the program in cmd instead of whatever window CLion shows.