criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
int main()
{
	int a, b, c, d, c2;
	a = 0;
	b = 0;
	c = 0;
	d = 0;
	c2 = 0;
	while(cin >> a >> b >> c)
	{
		d = a * a + b * b;
		c2 = c * c; 
		if( d == c2 )
		{
			cout << "YES" << endl;
		}
		else
		{
			cout << "NO" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         while(cin >> a >> b >> c)
      |               ^~~
      |               std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |                         cout << "YES" << endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |                         cout << "YES" << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:20:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |                         cout << "NO" << endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |                         cout << "NO" << endl;
      |                                         ^~~~
      |                                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int N;
cin >> N;
while(N--){
int i[3],c;
int max;
cin >> i[0] >> i[1] >> i[2];
sort(i,i+3);
cout << ((i[0]*i[0]+i[1]*i[1]==i[2]*i[2])?"YES\n":"NO\n";
}}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:57: error: expected ')' before ';' token
   12 | cout << ((i[0]*i[0]+i[1]*i[1]==i[2]*i[2])?"YES\n":"NO\n";
      |         ~                                               ^
      |                                                         )
Language: C++

#include<stdio.h>
int main(){
int n,a,b,c,t;
scanf("%d",&n);
while(n--){
scnaf("%d %d %d",&a,&b,&c);
if(a<b){t=a;a=b;b=t;}
if(a<c){t=a;a=c;c=t;}
if(a*a==b*b+c*c)printf("Yes\n");
else            printf("No\n);
}
return 0;
}

Compiler output:
a.cc:10:24: warning: missing terminating " character
   10 | else            printf("No\n);
      |                        ^
a.cc:10:24: error: missing terminating " character
   10 | else            printf("No\n);
      |                        ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    6 | scnaf("%d %d %d",&a,&b,&c);
      | ^~~~~
      | scanf
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

gets.to_i.times do
  a=gets.split.map(&:to_i).sort
  if a[0]*a[0]+a[1]*a[1]==a[2]*a[2] then puts "YES"
  else puts "NO"
  end
end

Compiler output:
a.cc:1:1: error: 'gets' does not name a type
    1 | gets.to_i.times do
      | ^~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int n,a,b,c,i,l;
	scanf("%d",&n);
	for(i=0;i<n;i++){
	l=0;
		scanf("%d %d %d",&a,&b,&c);
	if(a<c&&b<c){
		if(a*a+b*b==c*c){
		l=1;
			printf("YES\n");	
		}
	}
	else if(a<b&&c<b){
		if(a*a+c*c==b*b){
		l=1;
			printf("YES\n");
		}
	}
	else if(b<a&&c<a){
		if(c*c+b*b==a*a){
			l=1;
			printf("YES\n");
		}
	}
	if(l==0){
	printf("NO\n");
	}
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:31:18: error: expected '}' at end of input
   31 |         return 0;
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
#include <iostream>
using namespace std;
int main(){

	int a;
	int b;
	int c;

	int n;
	cin >> n;

	for(int i=1; i<=n; i++){

		cin >> a >> b >> c;

		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){

			cout << "Yes\n";

		}
		else {
			cout << "No" << endl;
		}
	}
}

Compiler output:
a.cc:1:17: error: expected unqualified-id before 'if'
    1 |                 if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
      |                 ^~
Language: C++

#include<stido.h>
int main(void)
{
	int a,b,c1,c2,c3,i;
	scanf("%d",&a);
	for(i=0;i<a;i++){
		scanf("%d %d %d",&c1,&c2,&c3);
	}
	if(c1*c1+c2*c2==c3*c3){
		printf("YES\n");
	}
	else if(c1*c1+c3*c3==c2*c2){
		printf("YES\n");
	}
	else if(c2*c2+c3*c3==c1*c1){
		printf("YES\n");
	}
	else{
		printf("NO\n");
	}
	return 0;
}

Compiler output:
a.cc:1:9: fatal error: stido.h: No such file or directory
    1 | #include<stido.h>
      |         ^~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<utility>
#include<climits>
using namespace std;

int main()
{
	double a, b, c;
	int n;

	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> a >> b >> c;

		if (pow(a, 2)  == pow(b, 2) + pow(c, 2)
			||pow(b, 2)  == pow(c, 2) + pow(a, 2)
			||pow(c, 2)  == pow(a, 2) + pow(b, 2))
		{cout << "YES" << endl;}
		else {cout << "NO" << endl;}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 'pow' was not declared in this scope
   16 |                 if (pow(a, 2)  == pow(b, 2) + pow(c, 2)
      |                     ^~~
Language: C++

import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;

public class Main {

	static final Scanner in = new Scanner(System.in);
	static final PrintWriter out = new PrintWriter(System.out,false);

	static void solve() {
		int n = in.nextInt();

		while (n-- > 0) {
			int a = in.nextInt();
			int b = in.nextInt();
			int c = in.nextInt();

			if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		long start = System.currentTimeMillis();

		solve();
		out.flush();

		long end = System.currentTimeMillis();
		//trace(end-start + "ms");
		in.close();
		out.close();
	}

	static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.awt.geom.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.math.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(void){
    int n1, n2, n3, m;
    scanf("%d\n",&m);
    for(i = 0;i < m;i++) {
        scanf("%d %d %d",&n1,&n2,&n3);
        if(n1 * n1 + n2 * n2 = n3 * n3)
            printf("YES");
        else
            printf("NO");
        }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i = 0;i < m;i++) {
      |         ^
a.cc:8:20: error: lvalue required as left operand of assignment
    8 |         if(n1 * n1 + n2 * n2 = n3 * n3)
      |            ~~~~~~~~^~~~~~~~~
Language: C++

#include<stdio.h>

int main(void){
    int n1, n2, n3, m;
    scanf("%d",&m);
    for(i = 0;i < m;i++) {
        scanf("%d %d %d",&n1,&n2,&n3);
        if(n1 * n1 + n2 * n2 = n3 * n3)
            printf("YES");
        else
            printf("NO");
        }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     for(i = 0;i < m;i++) {
      |         ^
a.cc:8:20: error: lvalue required as left operand of assignment
    8 |         if(n1 * n1 + n2 * n2 = n3 * n3)
      |            ~~~~~~~~^~~~~~~~~
Language: C++

import sys

N = (int)(raw_input())
a = [0,0,0]

for i in range(N):
    a[0],a[1],a[2] = map(int,raw_input().split())
    a.sort()
    if a[0]^2 + a[1]^2 == a[2]^2:
	print("YES")
    else:
	print("NO")

    

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <stdio.h>
#include <math.h >
int main(void) {
	int a, b, c, t, x, y;
	t = a ; x = b ; y = c; 
	if(t<=b){
		t = b ; x = c ; y = a ;
	}
	if(t<=c){
		t = c ; x = a ; y = b;
		
	}
	if(t==sqrt(pow(x)+pow(y))){
	printf("YES");
	}
	else{
		printf("NO");
	}
	return 0;
}

Compiler output:
a.cc:2:10: fatal error: math.h : No such file or directory
    2 | #include <math.h >
      |          ^~~~~~~~~
compilation terminated.
Language: C++

using namespace std;

int main(void){
	int n , a[3];
	cin >> n;
	for (int i=0; i<n; i++){
		cin >> a[0] >> a[1] >> a[2];
		sort(a,a+3);
		if (a[0]*a[0]+a[1]*a[1]==a[2]*a[2]){
			cout << "YES" << endl;
		}else{
			cout << "NO" << endl;
		}
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> n;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:17: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |                 sort(a,a+3);
      |                 ^~~~
      |                 short
a.cc:10:25: error: 'cout' was not declared in this scope
   10 |                         cout << "YES" << endl;
      |                         ^~~~
a.cc:10:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:42: error: 'endl' was not declared in this scope
   10 |                         cout << "YES" << endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:12:25: error: 'cout' was not declared in this scope
   12 |                         cout << "NO" << endl;
      |                         ^~~~
a.cc:12:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:41: error: 'endl' was not declared in this scope
   12 |                         cout << "NO" << endl;
      |                                         ^~~~
a.cc:12:41: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,a,b,c,i;
cin>>n;
for(i=0;i<n;i++){
cin>>a>>b>>c;
if(a<b+c){
if(b<a+c){
if(c<a+b){
 cout<<"YES"<<endl;
}
}
}
else cout<<"NO"<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,a,b,c,i;
cin>>n;
for(i=0;i<n;i++){
cin>>a>>b>>c;
if(a<b+c){
if(b<a+c){
if(c<a+b){
 cout<<"YES"<<endl;
}
}
}else {
cout<<"NO"<<endl;
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,a,b,c,i;
cin>>n;
for(i=0;i<n;i++){
cin>>a>>b>>c;
if(a*a=b*b+c*c)cout<<"YES"<<endl;else if(b*b=a*a+c*c)cout<<"YES"<<endl;else if(c*c=a*a+b*b)cout<<"YES"<<endl;else cout<<"NO"<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: lvalue required as left operand of assignment
    8 | if(a*a=b*b+c*c)cout<<"YES"<<endl;else if(b*b=a*a+c*c)cout<<"YES"<<endl;else if(c*c=a*a+b*b)cout<<"YES"<<endl;else cout<<"NO"<<endl;
      |    ~^~
a.cc:8:43: error: lvalue required as left operand of assignment
    8 | if(a*a=b*b+c*c)cout<<"YES"<<endl;else if(b*b=a*a+c*c)cout<<"YES"<<endl;else if(c*c=a*a+b*b)cout<<"YES"<<endl;else cout<<"NO"<<endl;
      |                                          ~^~
a.cc:8:81: error: lvalue required as left operand of assignment
    8 | if(a*a=b*b+c*c)cout<<"YES"<<endl;else if(b*b=a*a+c*c)cout<<"YES"<<endl;else if(c*c=a*a+b*b)cout<<"YES"<<endl;else cout<<"NO"<<endl;
      |                                                                                ~^~
Language: C++

#include <iostream.h>
#include <algorithm>

int main()
{
	int n;
	int hen[3];
	
	cin >> n;
	
	for (int i = 0; i < n; i++){
		for (int j = 0; j < 3; j++){
			cin >> hen[j];
			hen[j] *= hen[j];
		}
		
		sort(hen, hen + 3);
		
		if ((hen[0] + hen[1]) == hen[2]){
			cout << "YES";
		}
		else {
			cout << "NO";
		}
		cout << endl;
	}
	
	return (0);
}

Compiler output:
a.cc:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio>
int main(){
 int n,a,b,c;
 scanf("%d",&n);
 while(n>0){
  scanf("%d %d %d",&a,&b,&c);
  m=a>b?(a>c?a:c):(b>c?b:c);
  if (a*a+b*b+c*c==2*m*m) printf("YES\n")
  else printf("NO\n");
  --n;
 };
 return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'm' was not declared in this scope
    7 |   m=a>b?(a>c?a:c):(b>c?b:c);
      |   ^
a.cc:8:42: error: expected ';' before 'else'
    8 |   if (a*a+b*b+c*c==2*m*m) printf("YES\n")
      |                                          ^
      |                                          ;
    9 |   else printf("NO\n");
      |   ~~~~
Language: C++

#include <cstdio>
int main(){
 int n,a,b,c,m;
 scanf("%d",&n);
 while(n>0){
  scanf("%d %d %d",&a,&b,&c);
  m=a>b?(a>c?a:c):(b>c?b:c);
  if (a*a+b*b+c*c==2*m*m) printf("YES\n")
  else printf("NO\n");
  --n;
 };
 return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: expected ';' before 'else'
    8 |   if (a*a+b*b+c*c==2*m*m) printf("YES\n")
      |                                          ^
      |                                          ;
    9 |   else printf("NO\n");
      |   ~~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c,d;
    while(cin >> a >> b???>>c){
        if(a*a+b*b==c*c||b*b+c*c==a*a||c*c+a*a==b*b){
            cout << "YES" << endl;
        }
        else cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc:6:25: warning: trigraph ??> ignored, use -trigraphs to enable [-Wtrigraphs]
    6 |     while(cin >> a >> b???>>c){
a.cc: In function 'int main()':
a.cc:6:25: error: expected primary-expression before '?' token
    6 |     while(cin >> a >> b???>>c){
      |                         ^
a.cc:6:26: error: expected primary-expression before '?' token
    6 |     while(cin >> a >> b???>>c){
      |                          ^
a.cc:6:27: error: expected primary-expression before '>>' token
    6 |     while(cin >> a >> b???>>c){
      |                           ^~
a.cc:6:30: error: expected ':' before ')' token
    6 |     while(cin >> a >> b???>>c){
      |                              ^
      |                              :
a.cc:6:30: error: expected primary-expression before ')' token
a.cc:6:30: error: expected ':' before ')' token
    6 |     while(cin >> a >> b???>>c){
      |                              ^
      |                              :
a.cc:6:30: error: expected primary-expression before ')' token
a.cc:6:30: error: expected ':' before ')' token
    6 |     while(cin >> a >> b???>>c){
      |                              ^
      |                              :
a.cc:6:30: error: expected primary-expression before ')' token
Language: C++

#include <cstdio>
#include <iostream>

using namespace std;

int main(void){
  int n,array[3],i,temp;

  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d%d%d",&array[0],&array[1],&array[2]);
    sort(array,array+3);
    if(array[0]*array[0]+array[1]*array[1]==array[2]*array[2])  printf("Yes\n");
    else  printf("No\n");
  }

  return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |     sort(array,array+3);
      |     ^~~~
      |     short
Language: C++

#include <iostream>
using namespade std;

void swap(int& a, int& b)
{
  int tmp = a;
  a = b;
  b = tmp;
}

int main()
{
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a, b, c;
    cin >> a >> b >> c;
    if (a > b) swap(a, b);
    if (a > c) swap(a, c);
    if (b > c) swap(b, c);

    if(a * a + b * b == c * c)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespade'
    2 | using namespade std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:23:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |       cout << "Yes" << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |       cout << "Yes" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:25:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |       cout << "No" << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |       cout << "No" << endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a = 0;
	int kazu = 0;
	int b = 0;
	int c = 0;
	for (int i = 0; i < kazu; i++)
	{
		cin >> a;
		cin >> b;
		cin >> c;
		if (a * a + b * b == c * c)
		{
			cout << "YES" << endl;
			return;
		}
		else if (a * a + c * c == b * b)
		{
			cout << "YES" << endl;
			return;
		}
		else if (c * c + b * b == a * a)
		{
			cout << "YES" << endl;
			return;
		}
		else
		{
			cout << "NO" << endl;
			return;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |                         return;
      |                         ^~~~~~
a.cc:22:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |                         return;
      |                         ^~~~~~
a.cc:27:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   27 |                         return;
      |                         ^~~~~~
a.cc:32:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   32 |                         return;
      |                         ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a = 0;
	int kazu = 0;
	int b = 0;
	int c = 0;
	cin >> kazu;
	for (int i = 0; i < kazu; i++)
	{
		cin >> a;
		cin >> b;
		cin >> c;
		if (a * a + b * b == c * c)
		{
			cout << "YES" << endl;
			return;
		}
		else if (a * a + c * c == b * b)
		{
			cout << "YES" << endl;
			return;
		}
		else if (c * c + b * b == a * a)
		{
			cout << "YES" << endl;
			return;
		}
		else
		{
			cout << "NO" << endl;
			return;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |                         return;
      |                         ^~~~~~
a.cc:23:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |                         return;
      |                         ^~~~~~
a.cc:28:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   28 |                         return;
      |                         ^~~~~~
a.cc:33:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   33 |                         return;
      |                         ^~~~~~
Language: C++


#include<iostream>
using namespace std;

int main()
{
    int a,b,c;
    while(cin>>a>>b>>c){
        if(a*a=b*b+c*c)
            cout<<"Yes"<<endl;
        else if(b*b=a*a+c*c)
            cout<<"Yes"<<endl;
        else if(c*c=a*a+b*b)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |         if(a*a=b*b+c*c)
      |            ~^~
a.cc:11:18: error: lvalue required as left operand of assignment
   11 |         else if(b*b=a*a+c*c)
      |                 ~^~
a.cc:13:18: error: lvalue required as left operand of assignment
   13 |         else if(c*c=a*a+b*b)
      |                 ~^~
Language: C++


inputArray = Array.new
rows = gets.to_i
i = 0
rows.times do
  temp = gets
  inputArray[i], inputArray[i+1], inputArray[i+2] = temp.split(" ").map(&:to_i)
  i += 3
end
i = 0
inputArray.map!{|n| n ** 2}
rows.times do
  if inputArray[i] + inputArray[i+1] == inputArray[i+2]
    puts "YES"
  else
    puts "NO"
  end
end

Compiler output:
a.cc:2:1: error: 'inputArray' does not name a type
    2 | inputArray = Array.new
      | ^~~~~~~~~~
a.cc:12:1: error: 'rows' does not name a type
   12 | rows.times do
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int main(){

	int i, m;
	cin >> m;

	for(i=0; i<m; i++){

	int a[3];

	cin >> a[0] >> a[1] >> a[2];
	sort(a, a+3);

	if(a[2]*a[2] = a[0]*a[0] + a[1]*a[1]){
		cout << "YES" << endl;
	}
	else{
		cout << "NO" << endl;
	}
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: lvalue required as left operand of assignment
   18 |         if(a[2]*a[2] = a[0]*a[0] + a[1]*a[1]){
      |            ~~~~^~~~~
Language: C++

#include <stdio.h>
int main()
{
  int a,b,c,sum,i,n;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d %d %d",&a,&b,&c);
    a=a*a;
    b=b*b;
    c=c*c;
    sum=a+b+c;
    if(a=1&&b=1&&c=1){
      printf("NO\n");
    }else if(sum/2==a||sum/2==b||sum/2==c)printf("YES\n");
    else printf("NO\n");
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: lvalue required as left operand of assignment
   12 |     if(a=1&&b=1&&c=1){
      |               ~^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a,b,c,d,i;
	cin>>i;
	for(int n=0;<i;n++){
 		cin>>a>>b>>c;
  		if(a<b){d=a,a=b,b=a;}
   		else if(a<c){d=a,a=c,c=d;}

   		if(a*a==b*b+c*c){cout<<"Yes"<<endl;}
   		else {cout<<"No"<<endl;}
   	}   
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '<' token
    7 |         for(int n=0;<i;n++){
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a,b,c,d,i;
	cin>>i;
	for(int n=0;<i;n++;){
 		cin>>a>>b>>c;
  		if(a<b){d=a,a=b,b=a;}
   		else if(a<c){d=a,a=c,c=d;}

   		if(a*a==b*b+c*c){cout<<"Yes"<<endl;}
   		else {cout<<"No"<<endl;}
   	}   
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '<' token
    7 |         for(int n=0;<i;n++;){
      |                     ^
a.cc:7:27: error: expected ')' before ';' token
    7 |         for(int n=0;<i;n++;){
      |            ~              ^
      |                           )
a.cc:7:28: error: expected primary-expression before ')' token
    7 |         for(int n=0;<i;n++;){
      |                            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int a,b,c,d,i;
	cin>>i;
	for(int n=0;n<i;n++;){
 		cin>>a>>b>>c;
  		if(a<b){d=a,a=b,b=a;}
   		else if(a<c){d=a,a=c,c=d;}
   		if(a*a==b*b+c*c){cout<<"Yes"<<endl;}
   		else {cout<<"No"<<endl;}
   	}   
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ')' before ';' token
    7 |         for(int n=0;n<i;n++;){
      |            ~               ^
      |                            )
a.cc:7:29: error: expected primary-expression before ')' token
    7 |         for(int n=0;n<i;n++;){
      |                             ^
Language: C++

#include <iostream>
using namespace std;

class Triangle{
public:
Triangle(){
}
void push(int num1,int num2,int num3){
if(num1>=num2){
if(num1>=num3){c=num1;a=num2;b=num3;}
else{c=num3;a=num1;b=num2;}
}
else{
if(num2>=num3){c=num2;a=num1;b=num3;}
else{c=num3;a=num1;b=num2;}
}
};
void checkRight(){
int cs=c*c;
if(cs==a*a+b*b) ans=1;
else ans=0;
};

void print(){
if(ans==0)
cout << "NO" << endl;
if(ans==1)
cout << "YES" << endl;
}

protected:
int a,b,c,ans;
};

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

class Triangle{
public:
Triangle(){
}
void push(int num1,int num2,int num3){
if(num1>=num2){
if(num1>=num3){c=num1;a=num2;b=num3;}
else{c=num3;a=num1;b=num2;}
}
else{
if(num2>=num3){c=num2;a=num1;b=num3;}
else{c=num3;a=num1;b=num2;}
}
};
void checkRight(){
int cs=c*c;
if(cs==a*a+b*b) ans=1;
else ans=0;
};

void print(){
if(ans==0)
cout <<"NO"<< endl;
if(ans==1)
cout <<"YES"<< endl;
}
protected:
int a,b,c;
int ans=10;
}

int main(){
int num,a,b,c;
	Triangle *tri /* = Triangle[1000]*/;
	cin >> num;
	tri = new Triangle[num]/*(a,b,c)*/;
	for(int n=0;n<num;n++){
	cin >> a;
	cin >> b;
	cin >> c;
	tri[n].push(a,b,c);
	}
for(int n=0;n<num;n++){
tri[n].checkRight();
tri[n].print();
}
return 0;
}

Compiler output:
a.cc:33:2: error: expected ';' after class definition
   33 | }
      |  ^
      |  ;
Language: C++

#include<iostream>
#include<vector>
using namespace std;

void judgement(int a,int b,int c) {
	if (a == b && b == c || a <= 0 || b <= 0 || c <= 0) {
		cout << "NO" << endl;
		return;
	}
	else if ((a*a) == (b*b) + (c*c) || (b*b) == (a*a) + (c*c) || (c*c) == (a*a) + (b*b)) {
		cout << "YES" << endl;
		return;
	}
	else {
		cout << "NO" << endl;
		return;
	}
}

unsigned int main() {
	unsigned int n;//dataset

	cin >> n;

	vector<int> vector_a;
	vector<int> vector_b;
	vector<int> vector_c;

	for (int i = 0; i < n; i++)
	{
		int a, b, c;
		cin >> a >> b >> c;
		vector_a.push_back(a);
		vector_b.push_back(b);
		vector_c.push_back(c);
	}

	for (int i = 0; i < n; i++) {
		judgement(vector_a[i], vector_b[i], vector_c[i]);
	}

	return 0;

}

Compiler output:
a.cc:20:10: error: '::main' must return 'int'
   20 | unsigned int main() {
      |          ^~~
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<algorithm>

using namespace std;

int main(void)
{
  int a[3];
  int i;
  int n;

  cin>>n;

  for(i=0;i<n;i++)
    {
      cin>>a[0]>>a[1]>>c[2];

      sort(a,a+3)

        if(a[2]*a[2]==a[0]*a[0]+a[1]*a[1])
          cout<<"YES"<<endl;

        else
          cout<<"NO"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'c' was not declared in this scope
   20 |       cin>>a[0]>>a[1]>>c[2];
      |                        ^
a.cc:22:18: error: expected ';' before 'if'
   22 |       sort(a,a+3)
      |                  ^
      |                  ;
   23 | 
   24 |         if(a[2]*a[2]==a[0]*a[0]+a[1]*a[1])
      |         ~~        
a.cc:27:9: error: 'else' without a previous 'if'
   27 |         else
      |         ^~~~
Language: C++

#include<iostream>
#include<queue>
#include<string>
#include<stack>
#include<cstdio>
#include<algorithm>

using namespace std;

int main(void)
{
  int a[3];
  int i;
  int n;

  cin>>n;

  for(i=0;i<n;i++)
    {
      cin>>a[0]>>a[1]>>c[2];

      sort(a,a+3);

        if(a[2]*a[2]==a[0]*a[0]+a[1]*a[1])
          cout<<"YES"<<endl;

        else
          cout<<"NO"<<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:24: error: 'c' was not declared in this scope
   20 |       cin>>a[0]>>a[1]>>c[2];
      |                        ^
Language: C++

using System;
using System.Linq;
public class Program {
	public static void Main() {
		int n = int.Parse(Console.ReadLine());
		for(int i = 0; i < n; i++) {
			string[] s = Console.ReadLine().Split();
			int[] a = new int[3];
			for(int j = 0; j < 3; j++) a[j] = int.Parse(s[j]);
			Array.Sort(a);
			Console.WriteLine(((a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) ? "YES" : "NO"));
		}
	}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Program {
      | ^~~~~~
Language: C++

#include<iostream>

bool right_triangle(int a,int b,int c)
{
    if (a*a + b*b == c*c || b*b + c*c == a*a || c*c + a*a == b*b) {
        return true;
    }else{
        return false;
    }   
}

int main()
{
    int x,y,z,N;
    std::cin >> N;
    for (int i = 0; i < N; i++) {
        std::cin >> x >> y >> z;
        if (right_triangle(x,y,z)) {
            std::cout << "Yes" << std::endl;
        }else if (right_triangle(x,y,z) == 0 ) { 
            std::cout << "No" << std::endl;
        }
    }
    return 0;
}
                                                            1,1          ??????

Compiler output:
a.cc:26:61: error: expected unqualified-id before numeric constant
   26 |                                                             1,1          ??????
      |                                                             ^
Language: C++

#include<iostream>

bool right_triangle(int a,int b,int c)
{
    if (a*a + b*b == c*c || b*b + c*c == a*a || c*c + a*a == b*b) {
        return true;
    }else{
        return false;
    }   
}

int main()
{
    int x,y,z,N;
    std::cin >> N;
    for (int i = 0; i < N; i++) {
        std::cin >> x >> y >> z;
        if (right_triangle(x,y,z)) {
            std::cout << "Yes" << std::endl;
        }else if (right_triangle(x,y,z) == 0 ) { 
            std::cout << "No" << std::endl;
        }
    }   
    return 0;
}                                                         1,1          ?????? 

Compiler output:
a.cc:25:59: error: expected unqualified-id before numeric constant
   25 | }                                                         1,1          ??????
      |                                                           ^
Language: C++

#include<iostream>
#include<string>
//0001
#include<cstddef>
#include<queue>
#include<vector>
using namespace std;

int main() {
	//0000
	/*
	int i, j;

	for (i = 1; i < 10; i++) {
		for (j = 1; j < 10; j++) {
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	*/
	//0001
	/*
	int i;
	const size_t MNum = 10;
	int MHeight[MNum];
	int MH1 = 0, MH2 = 0, MH3 = 0;
	for (i = 0; i < 10; i++) {
		cin >> MHeight[i];
		if (MHeight[i] > MH1) {
			MH3 = MH2;
			MH2 = MH1;
			MH1 = MHeight[i];
		}
		else if (MHeight[i] > MH2) {
			MH3 = MH2;
			MH2 = MHeight[i];
		}
		else if (MHeight[i] > MH3) {
			MH3 = MHeight[i];
		}
	}
	cout << MH1 << endl << MH2 << endl << MH3 << endl;
	*/
	/*
	priority_queue<int, vector<int>, less<int> > que;
	int MH;

	for (int i = 0; i < 10; i++) {
		cin >> MH;
		que.push(MH);
	}

	for (int j = 0; j < 3; j++) {
		cout << que.top() << endl;
		que.pop();
	}
	*/
	//0002
	/*
	int a, b;
	while (cin >> a >> b) {
		int sum = a + b;
		int count = 0;
		while (sum > 0) {
			sum = sum / 10;
			count++;
		}
		cout << count << endl;
	}
	*/
	//0003
	int a[3];
	int N;
	cin >> N;
	for (int i = 0; i < N; i++) {
		cin >> a[0] >> a[1] >> a[2];
		sort(a, a + 3);
		if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2]) {
			cout << "YES" << endl;
		}
		else {
			cout << "NO" << endl;
		}
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:76:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   76 |                 sort(a, a + 3);
      |                 ^~~~
      |                 short
Language: C++

#include "stdafx.h"
#include <iostream>
using namespace std;
int n;
int main()
{
	cin >> n;
	int i,a[1000],b[1000],c[1000],x[1000],y[1000],z[1000],res[1000];
	for (i = 0; i < n; i++) {
		cin >> a[i] >> b[i] >> c[i];
		x[i] = a[i];
		if (x[i] < b[i]) {
			y[i] = x[i];
			x[i] = b[i];
		}
		else {
			y[i] = b[i];
		}
		if (x[i] < c[i]) {
			z[i] = y[i];
			y[i] = x[i];
			x[i] = c[i];
		}
		else if (y[i] < c[i]) {
			z[i] = y[i];
			y[i] = c[i];
		}
		else {
			z[i] = c[i];
		}
	}
	for (i = 0; i < n; i++) {
		res[i] = x[i] * x[i] - z[i] * z[i] - y[i] * y[i];
		if (res[i] == 0) {
			cout << "YES" << endl;
		}
		else {
			cout << "NO" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
int main(void)
{
	int n,a,b,c,i;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&a,&b,&c);
		if(a>b&&a>c){
			if(b*b+c*c==a*a){
				printf("YES\n");
			}
			else{
				printf("NO\n");
			}
		}
		else if(b>a&&b>c){
			if(a*a+c*c==b*b){
				printf("YES\n");
			}
			else{
				printf("NO\n");
			}
		}
		else(c>a&&c>b){
			if(a*a+b*b==c*c){
				printf("YES\n");
			}
			else{
				printf("NO\n");
			}
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:31: error: expected ';' before '{' token
   24 |                 else(c>a&&c>b){
      |                               ^
      |                               ;
Language: C++

#include<iostream>
#include <cmath>
using namespace std;

int main(){
	int n, a, b, c;
	
	cin >> n;
	while(n--){
		cin >> a >> b >> c;
		int sum = a + b + c;
		x = max(a,max(b,c));
		y = min(a,min(b,c));
		z = sum - x - y;
		
		if(y*y + z*z == x*x)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'x' was not declared in this scope
   12 |                 x = max(a,max(b,c));
      |                 ^
a.cc:13:17: error: 'y' was not declared in this scope
   13 |                 y = min(a,min(b,c));
      |                 ^
a.cc:14:17: error: 'z' was not declared in this scope
   14 |                 z = sum - x - y;
      |                 ^
Language: C++

#include<iostream>
#include <cmath>
#include <algorithm>
using namespace std;

int main(){
	int n, a, b, c, x, y, z;
	
	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> a >> b >> c;
		int sum = a + b + c;
		x = max(a,b,c);
		y = min(a,b,c));
		z = sum - x - y;
		
		if((y*y) + (z*z) == x*x)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ';' before ')' token
   14 |                 y = min(a,b,c));
      |                               ^
      |                               ;
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:13:10:   required from here
   13 |                 x = max(a,b,c);
      |                     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:14:10:   required from here
   14 |                 y = min(a,b,c));
      |                     ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;

int main(){
	int n, l[3]
	cin >> n;
	for(int i = 0; i < n; i++){
		cin >> l[0] >> l[1] >> l[2];
		sort(l,l+3);
		if(l[0]*l[0] +l[1]*l[1] == l[2]*l[2])
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'cin'
    7 |         cin >> n;
      |         ^~~
a.cc:9:24: error: 'l' was not declared in this scope
    9 |                 cin >> l[0] >> l[1] >> l[2];
      |                        ^
Language: C++

#include<iostream>
#include<cmath>

using namespace std;

int main(){
	int n;
	cin >> n;
	while(n--){
		int a, b, c;
		cin >> a >> b >> c;
		int x, y ,z;
		x = max(a,max(b,c));
		y = min(a,min(b,c));
		z = sum - x - y;
		
		if(x*x == y*y + z*z)
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: 'sum' was not declared in this scope
   15 |                 z = sum - x - y;
      |                     ^~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		int l[3];
		cin >> l[0] >> l[1] >> l[2];
		sort(l,l+3);
		
		if(l[2]l[2]=l[1]*l[1]+l[0]*l[0])
			cout << "Yes" << endl;
		else
			cout << "No" << endl;
	}
      return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ')' before 'l'
   12 |                 if(l[2]l[2]=l[1]*l[1]+l[0]*l[0])
      |                   ~    ^
      |                        )
Language: C++

num = []
i = 0
roop = gets.to_i

while i < roop
	a = gets
	num = []
	num = a.split(nil)
	num = num.map{|n| n.to_i}
	num.sort!

	if (num[2]**2) == ((num[1]**2) + (num[0]**2))
		puts "YES"
	else
		puts "NO"
	end

	i = i + 1
end

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num = []
      | ^~~
      | enum
a.cc:10:9: error: 'num' does not name a type; did you mean 'enum'?
   10 |         num.sort!
      |         ^~~
      |         enum
Language: C++

n=int(input())
for i in range(n):
        a=[]
        a=input().split()
        a=sorted(a)
        if (int(a[0])**2)+(int(a[1])**2)==(int(a[2])**2):
            print('YES')
        else:
            print('NO')

Compiler output:
a.cc:7:19: warning: multi-character character constant [-Wmultichar]
    7 |             print('YES')
      |                   ^~~~~
a.cc:9:19: warning: multi-character character constant [-Wmultichar]
    9 |             print('NO')
      |                   ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

import sys

array = []

for line in sys.stdin:
    try:
        array = [int(x) for x in line.split()]
        array.sort()
        if array[2]**2 == (array[0]**2+array[1]**2):
            print('YES')
        else:
            print('NO')
    except(ValueError):
        continue

Compiler output:
a.cc:10:19: warning: multi-character character constant [-Wmultichar]
   10 |             print('YES')
      |                   ^~~~~
a.cc:12:19: warning: multi-character character constant [-Wmultichar]
   12 |             print('NO')
      |                   ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>

using namespace std;

bool isRightTriangle(int a, int b, int c)
{
	return (a*a + b*b == c*c);
}

int main()
{
	int num_of_test;
	cin >> num_of_test;
	
	for (int i=0; i<num_of_test; i++) {
		if ( isRightTriangle(a,b,c) || isRightTriangle(c,a,b) || isRightTriangle(b,c,a) ) {
			cout << "YES" << endl;
		} else {
			cout << "NO" << endl;
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: 'a' was not declared in this scope
   16 |                 if ( isRightTriangle(a,b,c) || isRightTriangle(c,a,b) || isRightTriangle(b,c,a) ) {
      |                                      ^
a.cc:16:40: error: 'b' was not declared in this scope
   16 |                 if ( isRightTriangle(a,b,c) || isRightTriangle(c,a,b) || isRightTriangle(b,c,a) ) {
      |                                        ^
a.cc:16:42: error: 'c' was not declared in this scope
   16 |                 if ( isRightTriangle(a,b,c) || isRightTriangle(c,a,b) || isRightTriangle(b,c,a) ) {
      |                                          ^
Language: C++

#include<iostream>
#Include<cstdio>
using namespace std;

int main(){
int n;
int a,b,c;

scans(" %d",&n);

for(int i=0;i<n;i++){
scanf(" %d %d %d",&a,&b,&c);
if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}

return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #Include; did you mean #include?
    2 | #Include<cstdio>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:1: error: 'scans' was not declared in this scope; did you mean 'scanf'?
    9 | scans(" %d",&n);
      | ^~~~~
      | scanf
a.cc:13:30: error: lvalue required as left operand of assignment
   13 | if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
int n;
int a,b,c;

scans(" %d",&n);

for(int i=0;i<n;i++){
scanf(" %d %d %d",&a,&b,&c);
if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'scans' was not declared in this scope; did you mean 'scanf'?
    9 | scans(" %d",&n);
      | ^~~~~
      | scanf
a.cc:13:30: error: lvalue required as left operand of assignment
   13 | if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;

int main(){
int n;
int a,b,c;

scanf(" %d",&n);

for(int i=0;i<n;i++){
scanf(" %d %d %d",&a,&b,&c);
if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: lvalue required as left operand of assignment
   13 | if(a*a==b*b+c*c||c*c==b*b+a*a||b*b=a*a+c*c){
      |    ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int n, a[3];
	cin >> n;
	while (cin >> a[0] >> a[1] >> a[2])
	{
		sort(a, a + 3);
		if (a[0] * a[0] + a[1] * a[1] == a[2] * a[2])
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |                 sort(a, a + 3);
      |                 ^~~~
      |                 short
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(){
  int n,j=0;
  int a[3];
  cin>>n;
  while(j<n){
    for(int i=0;i<3;i++){
      cin>>a[i];
    }
    sort(a,a+3);
    if(pow(a[2],2)==pow(a[1],2)+pow(a[0],2)){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  j++;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
   12 |     sort(a,a+3);
      |     ^~~~
      |     sqrt
Language: C++

#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
  int n,j=0;
  int a[3];
  cin>>n;
    for(int i=0;i<n;i++){
      cin>>a[0]>>a[1]>>a[2];
    sort(a,a+3);
    if(a[2]*a[2]==(a[1]*a[1])+(a[0]*a[0])){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<algorithm>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:17: error: 'endl' was not declared in this scope
   15 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:15:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
using namespace std;

int main(){
	int n;
	cin>>n;
	
	for(int i=0;i<n;i++){
		int data[3],tmp;
		cin>>data[0]>>data[1]>>data[2];
		
		for(int j=0;j<2;j++){
			if(data[j]>data[j+1]){
				tmp=data[j];
				data[j+1]=data[j];
				data[j]=tmp;
			}
		}
		if(data[0]*data[0]+data[1]*data[1] == data[2]*data[2]{
			cout<<"YES"<<endl;
		}
		else{
			cout<<"NO"<<endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:70: error: expected ')' before '{' token
   19 |                 if(data[0]*data[0]+data[1]*data[1] == data[2]*data[2]{
      |                   ~                                                  ^
      |                                                                      )
a.cc:25:9: error: expected primary-expression before '}' token
   25 |         }
      |         ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(){
	vector<int> a(3);
	cin >> a[0];
	while(cin>>a[0]>>a[1]>>a[2]){
		sort(a.begin(),a.end());
		if(a[2]*a[2]==a[0]*a[0] + a[1]*a[1]){
			cout << "YES" << endl;
		}else{
			cout << "NO" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |                 sort(a.begin(),a.end());
      |                 ^~~~
      |                 short