Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<stack>
#include<queue>
#include<math.h>
using namespace std;
typedef long long ll;
#define int long long
typedef vector<int> VI;
typedef pair<int, int> pii;
typedef priority_queue<int> PQ;
template<class T>bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
#define fore(i,a) for(auto &i:a)
#define REP(i,n) for(int i=0;i<n;i++)
#define eREP(i,n) for(int i=0;i<=n;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define eFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define SORT(c) sort((c).begin(),(c).end())
#define rSORT(c) sort((c).rbegin(),(c).rend())
#define LB(x,a) lower_bound((x).begin(),(x).end(),(a))
#define UB(x,a) upper_bound((x).begin(),(x).end(),(a))
#define INF 1000000000
#define LLINF 9223372036854775807
#define mod 1000000007
//vector<vector<int> > dp;
//vector<vector<vector<int> > > vvvi;
//dp=vector<vector<int> >(N, vector<int>(M,0));
//vector<pair<int,int> > v;
//v.push_back(make_pair(x,y));
//priority_queue<int,vector<int>, greater<int> > q2;


signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a, b, c;
	cin >> a >> b >> c;

	if (a > INF || b > INF || c > INF) {
		cout << -1 << endl;
	}


	int n = 4 * a*b;
	int m = (c - a - b)*(c - a - b);
	if (n < m && m>=0) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<stack>
#include<queue>
#include<math.h>
using namespace std;
typedef long long ll;
#define int long long
typedef vector<int> VI;
typedef pair<int, int> pii;
typedef priority_queue<int> PQ;
template<class T>bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
#define fore(i,a) for(auto &i:a)
#define REP(i,n) for(int i=0;i<n;i++)
#define eREP(i,n) for(int i=0;i<=n;i++)
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define eFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define SORT(c) sort((c).begin(),(c).end())
#define rSORT(c) sort((c).rbegin(),(c).rend())
#define LB(x,a) lower_bound((x).begin(),(x).end(),(a))
#define UB(x,a) upper_bound((x).begin(),(x).end(),(a))
#define INF 1000000000
#define LLINF 9223372036854775807
#define mod 1000000007
//vector<vector<int> > dp;
//vector<vector<vector<int> > > vvvi;
//dp=vector<vector<int> >(N, vector<int>(M,0));
//vector<pair<int,int> > v;
//v.push_back(make_pair(x,y));
//priority_queue<int,vector<int>, greater<int> > q2;


signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a, b, c;
	cin >> a >> b >> c;

	if (a > INF || b > INF || c > INF) {
		cout << -1 << endl;
	}


	int n = 4 * a*b;
	int m = (c - a - b)*(c - a - b);
	if (n < m && c - a - b>=0) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}



Compiler output:
a.cc:77:23: error: redefinition of 'template<class T> bool chmax(T&, const T&)'
   77 | template<class T>bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
      |                       ^~~~~
a.cc:16:23: note: 'template<class T> bool chmax(T&, const T&)' previously declared here
   16 | template<class T>bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
      |                       ^~~~~
a.cc:78:23: error: redefinition of 'template<class T> bool chmin(T&, const T&)'
   78 | template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
      |                       ^~~~~
a.cc:17:23: note: 'template<class T> bool chmin(T&, const T&)' previously declared here
   17 | template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
      |                       ^~~~~
a.cc:99:8: error: redefinition of 'int main()'
   99 | signed main() {
      |        ^~~~
a.cc:38:8: note: 'int main()' previously defined here
   38 | signed main() {
      |        ^~~~