c++ compilation issue in x code app

I am not able to run my c++ code on x code . In the out put section it shows a error ie; clang error , fatal error ,compilation terminated . here below i am pasting the whole error that show on running c++ code.


include/c++/10.2.0/iosfwd:40,
from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/ios:38,
from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/ostream:38,
from /usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/iostream:39,
from snakegame.cpp:1:
/usr/local/Cellar/gcc/10.2.0_4/include/c++/10.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
44 | #include <wchar.h>
| ^~~~~
compilation terminated.


Please resolve my issue as soon as possible . it really means a lot to me
c&#43;&#43; compilation issue in x code app
 
 
Q