RDFZchenyy's blog

By RDFZchenyy, history, 4 weeks ago, In English

To use pbds, I've submitted a code which uses #include<bits/extc++.h>.

It can compile and run on my computer, however, it can't compile on Codeforces platform.

You can see it at 292301911, in which it recieves CE, and return as follow.

Can't compile file:
In file included from C:/Programs/gcc13-64-winlibs/include/c++/13.2.0/x86_64-w64-mingw32/bits/extc++.h:83,
                 from program.cpp:1:
C:/Programs/gcc13-64-winlibs/include/c++/13.2.0/ext/codecvt_specializations.h:42:10: fatal error: iconv.h: No such file or directory
   42 | #include <iconv.h>
      |          ^~~~~~~~~
compilation terminated.

I'd like to ask if we can add iconv.h file to CF platform, and thank you.

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
4 weeks ago, # |
  Vote: I like it +8 Vote: I do not like it

Just add #undef _GLIBCXX_HAVE_ICONV before #include <bits/extc++.h>, and it passes: 292337691.