Don't. Get a compiler that compiles C++ in accordance with the standard.
The problem with your code is that there is no check to ensure you're not asking the code to calculate the square root of a negative number. This code fixes that, but it does need a modern compiler.
Yes got that one. I was giving the value of 'b' less than product of 'a' and 'c'.
But would you like to tell me that which compiler is best and modern compiler?
Then g++ is still good, though most people would probably suggest VC++ (which is by no means bad, however Microsoft seems to put very little effort in further developing it).