Can`t build. Error C2429.

Hello, there is an error C2429 (‘init-statements in if/switch’ requires compiler flag ‘/std:c++17’)
when building project. Tried to find information in internet, but there is nothing. Can someone help?

you need to post the build log