C137's blog

By C137, history, 7 years ago, In English

I am trying to add a solution for a problem on polygon, however i keep getting:

Can't compile: solution.cpp

solution.cpp(1) : fatal error C1083: Cannot open include file: 'bits/stdc++.h': No such file or directory

same thing happened when i tried to add the validator, but after trying to add the validator for nearly 10 times it was successfully added...

Am I the only one having this problem??? or is there something wrong???

Thanks in advance...

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

»
7 years ago, # |
  Vote: I like it +1 Vote: I do not like it

This happens when you have selected Autodetect language and then Polygon tries to compile your program using (in this order) cpp.g++, cpp.g++11, cpp.ms (which doesn't support bits/stdc++.h). Finally, only the last compilation error is shown. You can see the actual error by choosing the language "cpp.g++" manually.

  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Now that's something weird, cuz i always use the "Auto-detect Language" option, and this is the first time i face this problem :\

    Anyway, I manually chosen cpp.g++11 and it works fine now, thanks lot :D