Error: to_string() not declared in this scope

I have written the code for splitwise, and I am getting the above error on compilation. The code is running fine on online compilers.
I have used c++11 flag to compile the code. The exact command that I used is
g++ -std=c++11 source.cpp -o cashFlowMinimizer.exe
I have also tried using
g++ -std=c++0x source.cpp -o cashFlowMinimizer.exe

My code: https://ide.codingblocks.com/s/347824

Hey @Ishitagambhir
This is working fine on my system.
So there must be some issue with your system .

@Kartikkhariwal1 can you suggest any alternative? i need screenshots of the output but online compilers show input and output separately

@Kartikkhariwal1 is it possible for you to share the .exe file with me?

Yeah sure I will send u the exe file over mail, just drop ur email Id here :slight_smile:

@Kartikkhariwal1 i have send the email id in chat, please check

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.