Language: C++

#include <bits/stdc++.h>
using namespace std;
#define double long double
#include <math.h>

double sqrt(double x) {
    if (x <= 0)
        return 0;       // if negative number throw an exception?
    int exp = 0;
    x = frexp(x, &exp); // extract binary exponent from x
    if (exp & 1) {      // we want exponent to be even
        exp--;
        x *= 2;
    }
    double y = (1+x)/2; // first approximation
    double z = 0;
    while (y != z) {    // yes, we CAN compare doubles here!
        z = y;
        y = (y + x/y) / 2;
    }
    return ldexp(y, exp/2);
    } // multiply answer by 2^(exp/2)
main()
{
   //ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
   //#define int long long int
  double a,b,c;
   cin>>a>>b>>c;

   if((sqrt(a)+sqrt(b))<sqrt(c))cout<<"Yes"<<endl;
   else cout<<"No"<<endl;


}


Compiler output:
a.cc:6:21: error: 'long double sqrt(long double)' conflicts with a previous declaration
    6 | double sqrt(double x) {
      |                     ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114,
                 from a.cc:1:
/usr/include/c++/14/cmath:446:3: note: previous declaration 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
a.cc:23:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   23 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:30:12: error: call of overloaded 'sqrt(long double&)' is ambiguous
   30 |    if((sqrt(a)+sqrt(b))<sqrt(c))cout<<"Yes"<<endl;
      |        ~~~~^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
a.cc:6:8: note: candidate: 'long double sqrt(long double)'
    6 | double sqrt(double x) {
      |        ^~~~
a.cc:30:20: error: call of overloaded 'sqrt(long double&)' is ambiguous
   30 |    if((sqrt(a)+sqrt(b))<sqrt(c))cout<<"Yes"<<endl;
      |                ~~~~^~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
a.cc:6:8: note: candidate: 'long double sqrt(long double)'
    6 | double sqrt(double x) {
      |        ^~~~
a.cc:30:29: error: call of overloaded 'sqrt(long double&)' is ambiguous
   30 |    if((sqrt(a)+sqrt(b))<sqrt(c))cout<<"Yes"<<endl;
      |                         ~~~~^~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
a.cc:6:8: note: candidate: 'long double sqrt(long double)'
    6 | double sqrt(double x) {
      |        ^~~~