Hello everyone.
There was a problem when I compiled this simple program code:
#include <bits/extc++.h>
using namespace std;
using namespace __gnu_cxx;
int main() {
printf("Hello world");
return 0;
}
The compiler (MinGW G++ 4.9.1 and MinGW G++11 4.9.1) complains about the library bits/extc++.h. He can't find iconv.h (you can read the comments of compiler here: http://codeforces.net/problemset/customtest ). What to do and how to fix it? I am so lazy to include libraries from bits/extc++.h by one.
Thanks in advance.
PS. Sorry for my English :)
Why you not try this ?
give minus
I know about it. I read that
bits/extc++.h
includes all ofbits/stdc++.h
andbits/stdtr1c++.h
and some other features of GNU C++. I just want to understand, whybits/extc++.h
doesn't work.Add this before `#include<extc++.h>This can solve your problem.This is wrong. View my next comment.
However, I suggest MikeMirzayanov to check the configure of G++ in Codeforces.
Thanks, in GNU G++ it works. But G++11 says that must be used flag [-fpermissive] when I run this code in GNU G++11 4.9.2 here:
Where should I apply to use this flag in Codeforces compiler?
My bad. My previous comment is wrong.
Use following code at your beginning of source code:
It cheats the compiler to ignore two headers causing trouble.
UPD: It works. I tested them with 9960308
However, this way is cheating the compiler. So I suggest MikeMirzayanov to check the configure of G++ in Codeforces, again.