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://mirror.codeforces.com/contest/264/submission/10534963
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.
it works on Linux, but codeforces use compiler for windows