Блог пользователя mathturbator

Автор mathturbator, 9 лет назад, По-английски

I am trying to use to_string() function, which as of C++11 exists. I tried compiling it with GNU C++11 but it still gives me compilation error stating "to_string() wasnt declared in this scope". Do I need to choose other version of compiler or to_string() supporting compiler is not yet introduced for OJ?

http://codeforces.com/contest/264/submission/10534963

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
9 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

to_string is missing in MinGW due to a bug. You can try submitting as VS2010, but you'll need to cast the argument to long long.

»
9 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

it works on Linux, but codeforces use compiler for windows