to_string() function in codeblock not wrorking!

FOR C++

TO INCLUDE ALL THE LIBRARY FILES USE #include bits/stdc++.h . THIS HEADER FILES INCLUDES ALL THE LIBRARY FILES REQUIRED FOR A TYPICAL COMPETITIVE PROGRAMMING ENVIRONMENT LIKE ALGORITHMS, MULTISET, SET ETC.
IN YOUR CASE IT IS SUFFICE TO INCLUDE THIS HEADER FILE OR YOU CAN JUST #include string.
Dont forget to put use namespace std in your file.

It doesn’t work in codebloacks

I have version 6

select std=c++0x flag in the compiler settings . it will work .

3 Likes