I don't think that <cmath> is in std namespace:
Example with iostream (using namespace std;)Example with cmath (doesn't have using...)
Maybe he declared another function named sqrt? Or a variable perhaps.
You are right that the functions in cmath aren't in std namespace -- they are in global namespace. The version of cmath supplied with vc++ 2008 express has all the using statements at the bottom of the file.
>>area=sqrt(s*(s-a)*(s-b)*(s-c));
I get no errors/warnings when I declare each of the variables float. So there must be something else wrong with the program.