I have seen recently that #include <bits/stdc++.h>
includes every standard library and stl include file. When i try to compile the following code segment with visual studio 2013, it gives an error C1083: Cannot open include file: 'bits/stdc++.h': No such file or directory
. But it works perfectly fine with codeblocks. Is there any way to avoid this error?
#include <bits/stdc++.h>
using namespace std;
int main()
{
}
I saw in some post that 'the header file is not part of the C++ standard, is therefore non-portable', and should be avoided'. But i think it is helpful in contest programming.