I've been getting these errors on two computers through four different compilers.
It seems the directories arnt set up. If that's the cause, I have no clue how to resolve that.
Its a very simple prog too; it just calculates a dist, using dist formula.
well your problem is that your using dev-c++ use vs or my personal favorite mingw (well actually its the gnu compiler compository but seeing as you are on windows...) so i would download and install code blocks with mingw
Looks like from the image that the file extension you use is *.c so the compiler is probably compiling as c code, so no <iostream> or <cstdlib>. Change the file extension to cpp.