Ad
  • Custom User Avatar

    You need to have the cmath library to use the 'sqrt' operation. Just add:

    #include cmath

    to the top of your program and it should fix it. Make sure to put "cmath" in angle brackets too.