Error C1189 and MSB372

Errors in programming with VS2017.
How should this problem be solved?