Ma che errore ti dà Dev-Cpp quando tenti di usare la to_string?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum