0

I'm trying to use the <bits/stdc++.h> header file in vs code for c++, which basically includes all the header files necessary if im not wrong (I'm pretty new to c++ so i might be wrong). Now, whenever I try to compile a simple program it returns with the errors :- file path for mingw - C:/msys64/mingw64/include/c++/13.1.0/cuchar:97:11: followed by the errors shown below.Errors

#include <bits/stdc++.h>
using namespace std;

int main(){
cout << "Hello World!";
    return 0;
}

If I just include iostream it works fine.

Neal
  • 11
  • 2
  • 2
    https://stackoverflow.com/questions/31816095/why-should-i-not-include-bits-stdc-h – Mat Jul 05 '23 at 06:07
  • 2
    [Don't post images of text](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors), copy-paste text *as text*. And please read [Why is "using namespace std;" considered bad practice?](https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice) – Some programmer dude Jul 05 '23 at 06:08
  • 1
    Although `` is bad practice the fact that you cannot include it when you are using a compiler that does support it would bother me. Possibly you have something misconfigured either in your compiler or in VSCode. No idea what that would be however. First step in tracking that down would be to try and compile your code outside of VSCode. If you still have problems then its definitely your compiler that is at fault. – john Jul 05 '23 at 06:20

0 Answers0