Whenever I try to compile this code it always ends up with this error:
In file included from /usr/include/wchar.h:6:0, from /usr/lib/gcc/i68
This problem was solved for me as I installed codeblocks with mingw compiler then I copied the mingw folder from codeblocks to C drive and added C\mingw\bin to the environment variables.
codeblocks
C\mingw\bin