CLion's Advice

C++ is famous for scary error messages. They can look like alien language. But CLion gives you clearer hints before you even run the code.

CLion missing semicolon


Errors you will often see

1. “You forgot the semicolon (;)!”

The most common error. If C++ does not see ;, it does not know where the sentence ends.

2. “Types do not match!”

int x = "hello"; // (Error!)

If you try to put text into an int box, CLion draws a red line immediately.


Just hover your mouse

Hover over the error and wait a moment.

CLion error example

CLion will explain exactly what is wrong. If you press Alt + Enter, it can even guess your intent and fix the code for you.

You will get friendly guidance before you even run the program.