mathturbator's blog

By mathturbator, 9 years ago, In English

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

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

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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 years ago, # |
  Vote: I like it 0 Vote: I do not like it

it works on Linux, but codeforces use compiler for windows