Upgrade. It compiles cleanly on my version of Dev-C++ (4.9.8.0).
My best code is written with the delete key.