so to correct everything you just need to delete stdc++.h.gch file on this locaiton C:\MinGW\lib\gcc\mingw32\9.2.0\include\c++\mingw32\bits .... and then run your code it should work..