MacOs after Bahrain Clion need to install the compiler can compile the program properly.
After you install Cmake and Xcode encountered such a problem:
Because there is no licence
Input terminal: sudo xcodebuild -license
After you have finished entering the password, the text follows a long list of similar agreements will be the last line of the following tips:
It has been long time press the space bar on the line until you see:
This time as long as at the end of input:
agree
Then, return to Clion, File-Reload Cmake Project
Until then run the program, you should be successful.