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



#include<stdio.h>
#include<stdbool.h>
 
bool right_triangle(int x, int y, int z); 
 
int main(void)
{
    int n, a, b, c;
    scanf("%d",&n);
    for(int i = 0; i < n; i++){
        scanf("%d %d %d", &a, &b, &c);
        if(right_triangle(a, b, c)){
            printf("YES\n");
        }else{
            printf("NO/n");
        }
    }
    return 0;
}
 
bool right_triangle(int x, int y, int z)
{
    if(x*x + y*y = z*z || x*x  +  z*z = y*y || z*z + y*y = x*x ){
        return true;
    }
    return false;
}        
 

 
Compile Error Logs: 

code.cpp: In function ‘bool right_triangle(int, int, int)’: 
code.cpp:23:60: error: lvalue required as left operand of assignment 

 
 
Status 
Judge: 0/1  C++  CPU: 00.00 sec  Memory: 0 [KB]  Length: 514 [B]  2014-07-10 01:35  2014-07-10 01:35  
Results for testcases 

















 Case #1:  : Compile Error  - - -  NA  -  NA  



 < | 1 /  1 | >     : Compile Error        -        - 

 

Input #1 (  )  Output #1 (  ) 

Not available.
  
Not available.
 

Comments 
 

 Under Construction. 

 
Categories 
 



 
Free Tags 
 



 

Compiler output:
a.cc:35:23: error: extended character ‘ is not valid in an identifier
   35 | code.cpp: In function ‘bool right_triangle(int, int, int)’:
      |                       ^
a.cc:35:58: error: extended character ’ is not valid in an identifier
   35 | code.cpp: In function ‘bool right_triangle(int, int, int)’:
      |                                                          ^
a.cc:60:7: error: stray '#' in program
   60 |  Case #1:  : Compile Error  - - -  NA  -  NA
      |       ^
a.cc:68:7: error: stray '#' in program
   68 | Input #1 (  )  Output #1 (  )
      |       ^
a.cc:68:23: error: stray '#' in program
   68 | Input #1 (  )  Output #1 (  )
      |                       ^
a.cc: In function 'bool right_triangle(int, int, int)':
a.cc:25:45: error: lvalue required as left operand of assignment
   25 |     if(x*x + y*y = z*z || x*x  +  z*z = y*y || z*z + y*y = x*x ){
      |                                         ~~~~^~~~~~~~~~~~
a.cc: At global scope:
a.cc:33:1: error: 'Compile' does not name a type
   33 | Compile Error Logs:
      | ^~~~~~~
Language: C++

#include<stdio.h>
#include<string.h>

int checkRightAngle(a,b,c){
	if(a*a == b*b + c*c ||
	   b*b == a*a + c*c ||
	   c*c == a*a + b*b){
			return 1;
	}

	return 0;
}

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

	scanf("%d", &n);
	for(i=0; i<n; i++){
		scanf("%d %d %d",&a ,&b ,&c);
		if(checkRightAngle(a,b,c)){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
	}

	return 0;
}

Compiler output:
a.cc:4:21: error: 'a' was not declared in this scope
    4 | int checkRightAngle(a,b,c){
      |                     ^
a.cc:4:23: error: 'b' was not declared in this scope
    4 | int checkRightAngle(a,b,c){
      |                       ^
a.cc:4:25: error: 'c' was not declared in this scope
    4 | int checkRightAngle(a,b,c){
      |                         ^
a.cc:4:26: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int checkRightAngle(a,b,c){
      |                          ^
a.cc: In function 'int main()':
a.cc:20:35: error: 'checkRightAngle' cannot be used as a function
   20 |                 if(checkRightAngle(a,b,c)){
      |                    ~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <string.h>
#include <math.h>
using namespace std;
int main(){
    double a[1010], n, s, k=0, i=0;
    cin >> n;
    for(i=0; i<n;i++){
             cin>>a[0]>>a[1]>>a[2];
             sort(a, a+3);
             k=(a[1]*a[1])+(a[0]*a[0]);
             if(a[2]==sqrt(k))
             printf("YES\n");
             else
             printf("NO\n");
    }
    return 0;
}

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

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


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'cnum' was not declared in this scope; did you mean 'num'?
    8 | cin>>num[0]>>num[1]>>cnum[2];
      |                      ^~~~
      |                      num
Language: C++

#include <stdlib.h>
#include <stdio.h>

typedef struct triangle_cont {
	int sideOne;
	int sideTwo;
	int sideThree;
} triangle;

int main () {
	int numberOfTriangles, i;
	scanf("%d", &numberOfTriangles);
	if (numberOfTriangles > 1000)
		return;
	triangle x[numberOfTriangles];
	for (i = 0; i < numberOfTriangles; i++) {
		scanf("%d %d %d", &x[i].sideOne, &x[i].sideTwo, &x[i].sideThree);
	}
	for (i = 0; i < numberOfTriangles; i++) {
		if (x[i].sideOne < 1 || x[i].sideOne >1000) {
			printf("NO\n");
		}
		else if (x[i].sideTwo < 1 || x[i].sideTwo >1000) {
			printf("NO\n");
		}
		else if (x[i].sideThree < 1 || x[i].sideThree >1000) {
			printf("NO\n");
		}
		else if (x[i].sideOne*x[i].sideOne +  x[i].sideTwo * x[i].sideTwo  == x[i].sideThree * x[i].sideThree) {
			printf("YES\n");
		}
		else {
			printf("NO\n");
		}
	}

}

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

#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

long dd(int n){
	return n*n;
}

int main(){
	int n, t[3];
	
	cin >> n;
	for(int i=0; i<n; ++i){
		for(int j=0; j<3; ++j)
		scanf(" %d", &t[j]);
	 		
		sort(t, t+3);
		if( dd(t[2]) == dd(t[0])+dd(t[1]) ) printf("YES\n");
		else printf("NO\n");
	}
	 
	return 0;
}

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

#include <iostream>
#include <algorithm>
using namespace std;
int main ()　{
	int v[3]; cin >> v[0];
	while (cin >> v[0] >> v[1] >> v[2])
		sort (v, v+3), cout << (*v**v + *(v+1)**(v+1) == *(v+2)**(v+2) ? "YES" : "NO") << endl;
}

Compiler output:
a.cc:4:12: error: extended character 　 is not valid in an identifier
    4 | int main ()　{
      |            ^
a.cc:4:12: error: expected initializer before '\U00003000'
    4 | int main ()　{
      |            ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(a,a+3);//a[0]<=a[1]<=a[2]
      |     ^~~~
      |     short
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int ignore;
    cin >> ignore;
    int fi;
    int se;
    int th;
    vector<int> v;

    while(cin >> fi >> se >> th)
    {
        v.push_back(fi);
        v.push_back(se);
        v.push_back(th);
        sort(v.begin(), v.end(), greater<int>());
        if(v[0] * v[0] == v[1] * v[1] + v[2] * v[2])
        {
            cout << "YES" << endl;
        }
        else
        {
            cout << "NO" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   20 |         sort(v.begin(), v.end(), greater<int>());
      |         ^~~~
      |         short
Language: C++

#include <iostream>
#include <math.h>
#include <algorithm>
using namespace std;

int main()
{
	
	int n;
	cin >>n;
	for(int i=0;i<n;i++){
	int a,b,c;
	cin >>a >>b >>c;
	int tmp;
	if(b>=a && b>=c){
	tmp = b;
	b = a;
	a = tmp;
	}else if(c>=a && c>=b){
	tmp = c;
	c = a;
	a = tmp;
	}
	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:24:13: error: lvalue required as left operand of assignment
   24 |         if(a*a = b*b + c*c){
      |            ~^~
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

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

  int i, n, a, b, c;
  vector<int> triangle;
  cin >> n;

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

    sort(triangle.begin(), triangle.end());
    if (triangle.at(0) * triangle.at(0) + triangle.at(1) * triangle.at(1) == triangle.at(2) * triangle.at(2)) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }

    triangle.clear();
  }

  return 0;
}

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

#include<iostream>
#include<math.h>
using namespace std;
void main()
{
	/*FILE *a;
	char b[20],op;
	int p,cod,caso;
	float c;
	do
	{
		fflush(stdin);
		cout<<"\nLa Cato S.A"<<endl;
		cout<<"\nA.Crear archivo.\nB.Ingresar Cliente. \nC.Mostrar Clientes. \nD.Salir del programa"<<endl;
		cin>>op;
		switch (op)
		{
		case 'A':
				a=fopen("La cato.txt","w");
				cout<<"\nARCHIVO CREADO"<<endl;
				break;
		case 'B':
			if(fopen("La cato.txt","w")==NULL)
				cout<<"NO HA CREADO ARCHIVO PRIMERO"<<endl;
			if(caso!=0)
				a=fopen("La cato.txt","a");
			do
			{
				p=0;
				fflush(stdin);
				puts("\nINGRESE NOMBRE: ");
				gets(b);
				for(int j=0;j<strlen(b);j++)
				{
					if(b[j]!=' '&&(b[j]<'A'||b[j]>'Z'))
					{
						fflush(stdin);
						cout<<"HAY LETRAS NO MAYUSCULAS"<<endl;
						p=1;
						break;
					}
				}
			}while(p);
			fflush(stdin);
			fprintf(a,"%s    ",b);
			do
			{
				cout<<"INGRESE CODIGO"<<endl;
				fflush(stdin);
				cin>>cod;
			}while(cod<100000||cod>999999);
			fprintf(a,"%d    ",cod);
			for(int i=0;i<3;i++)
			{
				fflush(stdin);
				do
				{
					cout<<"INGRESE PRECIO "<<i+1<<endl; //INGRSAMOS precios
					fflush(stdin);
					cin>>c;
					if(c<0)
						cout<<"ERROR, NEGATIVO"<<endl;
				}while(c<0);
				fprintf(a,"%10.2f  ",c);
			}
			caso++;
			break;
		case 'C':
			fclose(a);
			a=fopen("La cato.txt","r");
			do
			{
				c=getc(a);
				putchar(c);
			}while(c!=EOF);
			break;
		case 'D':
			fclose(a);
			break;
		default:
			cout<<"INGRESE LETRA CORRECTO"<<endl;
		}
	}while(op!='D');*/
	int cant,a,b,hip;
	cin>>cant;
	for(int i=0;i<cant;i++)
	{
		cin>>a>>b>>hip;
		if((a*a)+(b*b)==hip*hip)
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	}
	//return 0;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main()
      | ^~~~
Language: C++

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());
        for (int i = 0; i < n; i++) {
            String[] array = sc.nextLine().split("[\\s]");
            int n1 = Integer.parseInt(array[0]);
            int n2 = Integer.parseInt(array[1]);
            int n3 = Integer.parseInt(array[2]);
            if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
        sc.close();
    }

}

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

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

int main(){
  int n;
  int t[3];
  cin >> n;

  for(int i=0;i<n;i++){
    for(int j=0;j<3;j++) cin >> t[j];
    sort(t,t+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:13:8: error: 'a' was not declared in this scope
   13 |     if(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) cout << "YES" << endl;
      |        ^
Language: C++

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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incude; did you mean #include?
    2 | #incude <cmath>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:9:12: error: 'hypot' was not declared in this scope
    9 |         if(hypot(a,b)==c||hypot(b,c)==a||hypot(a,c) == b) cout << "Yes" << endl;
      |            ^~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'for'
    8 |     for(i=0;i<n;i++){
      |     ^~~
a.cc:8:20: error: expected ';' before ')' token
    8 |     for(i=0;i<n;i++){
      |                    ^
      |                    ;
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
	ci<<n;
	while(n--){
		vector<int> v(3);
		for (int i = 0; i < 3; ++i){
			cin>>v[i];
		}
		sort(v.begin(), v.end());
		if (v[2]*v[2] == v[0]*v[0] + v[1]*v[1])
			cout<<"YES";
		else
			cout<<"NO";
		cout<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'ci' was not declared in this scope
    7 |         ci<<n;
      |         ^~
a.cc:7:13: error: 'n' was not declared in this scope
    7 |         ci<<n;
      |             ^
Language: C++

#include<stdio.h>
void temp(int x,int y,int z)
{
int tmp;
if(x<y){tmp=y;y=x;x=tmp;}
if(x<z){tmp=x;x=z;z=tmp;}
if(y<z){tmp=z;z=y;y=tmp;}
}
int main()
{
int x,y,z.n;
scanf("%d",&n);
while(n-->=0)
{
scanf("%d",&x);scanf("%d",&y);scanf("%d",&z);

temp(x,y,z);
if(x*x=y*y+z*z)printf("YES\n");
else printf("NO\n");


}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected initializer before '.' token
   11 | int x,y,z.n;
      |          ^
a.cc:12:13: error: 'n' was not declared in this scope
   12 | scanf("%d",&n);
      |             ^
a.cc:15:43: error: 'z' was not declared in this scope
   15 | scanf("%d",&x);scanf("%d",&y);scanf("%d",&z);
      |                                           ^
Language: C++

#include <iostream>
#include <string>
#include <sstream>


using namespace std;

int main()
{
	int n;
	int a,b,c;
	
	cin >> n;
	
	while (n)
	{
		cin >> a >> b >> c;
		
		if (pow(c, 2) == pow(a, 2) + pow(b, 2))
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
		
		n--;
	}
	return 0;
}

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

#include <cstdio>
#include <algorithm>

int main() {
    int n; scanf("%d", &n);
    
    for(int i = 0; i < n; ++i) {
    	int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
    	
    	sort(s, s + 3);
    	
    	int a=s[0], b=s[1], c=s[2];
    	
    	if (c*c == (a+b)*(a+b)) puts("YES");
    	else puts("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:53: error: expected identifier before numeric constant
    8 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                     ^
a.cc: In lambda function:
a.cc:8:55: error: expected '{' before ')' token
    8 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                       ^
a.cc: In function 'int main()':
a.cc:8:52: error: taking address of rvalue [-fpermissive]
    8 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                    ^~~
a.cc:10:9: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   10 |         sort(s, s + 3);
      |         ^~~~
      |         std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <cstdio>
#include <algorithm>

using namespace std;

int main() {
    int n; scanf("%d", &n);
    
    for(int i = 0; i < n; ++i) {
    	int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
    	
    	sort(s, s + 3);
    	
    	int a=s[0], b=s[1], c=s[2];
    	
    	if (c*c == (a+b)*(a+b)) puts("YES");
    	else puts("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:53: error: expected identifier before numeric constant
   10 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                     ^
a.cc: In lambda function:
a.cc:10:55: error: expected '{' before ')' token
   10 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                       ^
a.cc: In function 'int main()':
a.cc:10:52: error: taking address of rvalue [-fpermissive]
   10 |         int s[3]; scanf("%d %d %d", &s[0], &s[1], &[2]);
      |                                                    ^~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharpPractice
{
	class Program
	{
		static bool IsRightTriangle(int a, int b, int c)
		{
			return a * a + b * b == c * c;
		}
		static void Main(string[] args)
		{
			int n = int.Parse(Console.ReadLine());
			for (int j = 0; j < n; j++)
			{
				List<int> list = new List<int>();
				foreach (string val in Console.ReadLine().Split(' '))
				{
					list.Add(int.Parse(val));
				}
				bool flg = false;
				for (int i = 0; i < 3; i++)
				{
					flg |= IsRightTriangle(list[i], list[(i + 1) % 3], list[(i + 2) % 3]);
				}
				Console.WriteLine(flg ? "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.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:14:34: error: 'string' has not been declared
   14 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:14:43: error: expected ',' or '...' before 'args'
   14 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:32:10: error: expected ';' after class definition
   32 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void CSharpPractice::Program::Main(int*)':
a.cc:16:33: error: expected primary-expression before 'int'
   16 |                         int n = int.Parse(Console.ReadLine());
      |                                 ^~~
a.cc:19:33: error: 'List' was not declared in this scope
   19 |                                 List<int> list = new List<int>();
      |                                 ^~~~
a.cc:19:38: error: expected primary-expression before 'int'
   19 |                                 List<int> list = new List<int>();
      |                                      ^~~
a.cc:20:42: error: 'string' was not declared in this scope
   20 |                                 foreach (string val in Console.ReadLine().Split(' '))
      |                                          ^~~~~~
a.cc:20:33: error: 'foreach' was not declared in this scope
   20 |                                 foreach (string val in Console.ReadLine().Split(' '))
      |                                 ^~~~~~~
a.cc:27:64: error: 'list' was not declared in this scope
   27 |                                         flg |= IsRightTriangle(list[i], list[(i + 1) % 3], list[(i + 2) % 3]);
      |                                                                ^~~~
a.cc:29:33: error: 'Console' was not declared in this scope
   29 |                                 Console.WriteLine(flg ? "YES" : "NO");
      |                                 ^~~~~~~
Language: C++

#include <iostream>

using namespace std;
int loop;
int panjang[1000][3];
int y = 0;
int temp;
int main()
{
 cin >> loop;
for(int x=0;x<loop;x++)
{
        cin >> panjang[x][y] >> panjang[x][y+1] >> panjang[x][y+2];
}
for(int looper= 0;looper<loop;looper++)
{
    for(int looper2 = 0;looper2<5;looper2++)
{
    if((panjang[looper][y])<(panjang[looper][y+1]))
    {
        temp = panjang[looper][y];
        panjang[looper][y]=panjang[looper][y+1];
        panjang[looper][y+1]=temp;
        temp = 0;
            if((panjang[looper][y+1]<(panjang[looper][y+2])))
    {
        temp = panjang[looper][y+1];
        panjang[looper][y+1]=panjang[looper][y+2];
        panjang[looper][y+2]=temp;
        temp = 0;

    }

    }
}
cout << std;
}
for(int pyth=0;pyth<loop;pyth++)
{
    if(panjang[pyth][y]*panjang[pyth][y]==panjang[pyth][y+1]*panjang[pyth][y+1]+panjang[pyth][y+2]*panjang[pyth][y+2])
        cout << "YES" << endl;
    else cout << "NO" << endl;
}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:12: error: expected primary-expression before ';' token
   36 | cout << std;
      |            ^
Language: C++

#include <iostream>

using namespace std;
int loop;
int panjang[1000][1000];
int y = 0;
int temp = 0;
int main()
{
 cin >> loop;
for(int x=0;x<loop;x++)
{
        cin >> panjang[x][y] >> panjang[x][y+1] >> panjang[x][y+2];

}
for(int looper= 0;looper<loop;looper++)
{
    for(int looper2 = 0;looper2<4;looper2++)
{
    if((panjang[looper][y+1])<(panjang[looper][y+2]))
    {
        temp = panjang[looper][y+1];
        panjang[looper][y+1]=panjang[looper][y+2];
        panjang[looper][y+2]=temp;
        temp = 0;
            if((panjang[looper][y])<(panjang[looper][y+1]))
    {
        temp = panjang[looper][y];
        panjang[looper][y]=panjang[looper][y+1];
        panjang[looper][y+1]=temp;
        temp = 0;
    }
    }

}

for(int pyth=0;pyth<loop;pyth++)
{
    if(panjang[pyth][y]*panjang[pyth][y]==panjang[pyth][y+1]*panjang[pyth][y+1]+panjang[pyth][y+2]*panjang[pyth][y+2])
        cout << "YES" << endl;
    else cout << "NO" << endl;
}


}

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

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

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

#include<iostream>
using namespace std;
int main(){
  int a, b, c, buf;
  int n;
  bool x[1000];
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> a >> b >> c;
    if(c > b){
      buf = c;
      c = b;
      b = buf;
    }
    if(b > a){
      buf = b;
      b = a;
      a = buf;
    }
    if(a*a==b*b+c*c)
      x[i] = 1;
    else
      x[i] = 0;
  }
  for(int i = 0; i < n; i++){
    if(x[i] == 0)
      cout << "NO\n";
    else
      cout << "YES\n";
  return 0;
}

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

/*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0003&lang=jp*/

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n;

    cin>>n;
    for (int i = 0; i < n; ++i) {
        vector<int> lens;
        for (int j = 0; j < 3; ++j) {
            int tmp;
            cin>>tmp;
            lens.push_back(tmp);
        }
        sort(lens.begin(),lens.end(),greater<int>());
        if(pow(lens[0],2)==pow(lens[1],2)+pow(lens[2],2)){
            cout<<"YES"<<endl;
        }else{
            cout<<"NO"<<endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: 'pow' was not declared in this scope
   21 |         if(pow(lens[0],2)==pow(lens[1],2)+pow(lens[2],2)){
      |            ^~~
Language: C++

#include<stdio.h>
#include<iostream>
#include<cmath>
using namespace std;

int main() {
	int a, b, c, n;
	cin >> n;
	for(int i = 0; i < n; i++) {
		cin >> a >> b >> c;
		if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == a*a + b*b) {
			printf("YES\n");
		}else printf("NO\n");
	}

	return 0;

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

#include <algorithm>
#include <iostream>

int pow2(int i) {
	return std::pow(i, (double) 2);
}

int main() {
	int in[3];
	while (std::cin >> in[0] >> in[1] >> in[2]) {
		std::sort(in, in + 3);
		if (pow2(in[2]) == pow2(in[0]) + pow2(in[1]))
			std::cout << "YES" << std::endl;
		else
			std::cout << "NO" << std::endl;
	}
}

Compiler output:
a.cc: In function 'int pow2(int)':
a.cc:5:21: error: 'pow' is not a member of 'std'
    5 |         return std::pow(i, (double) 2);
      |                     ^~~
Language: C++

#include <algorithm>
#include <iostream>

int pow2(int i) {
	return std::pow((double) i, (double) 2);
}

int main() {
	int in[3];
	while (std::cin >> in[0] >> in[1] >> in[2]) {
		std::sort(in, in + 3);
		if (pow2(in[2]) == pow2(in[0]) + pow2(in[1]))
			std::cout << "YES" << std::endl;
		else
			std::cout << "NO" << std::endl;
	}
}

Compiler output:
a.cc: In function 'int pow2(int)':
a.cc:5:21: error: 'pow' is not a member of 'std'
    5 |         return std::pow((double) i, (double) 2);
      |                     ^~~
Language: C++

#include <stdio.h>

int main(void) {
	int a,b,c,i,j;
	scanf("%d",&j);
		for (i=1;i<=j;i++){
			scanf("%d%d%d",&a,&b,&c);
			if (a*a + b*b == c*c||a*a + c*c == b*b||c*c + b*b == a*a){
				printf("YES");
			}
			else{
				printf("NO");
			}
			}
		}
		}
	return 0;
}

Compiler output:
a.cc:16:17: error: expected declaration before '}' token
   16 |                 }
      |                 ^
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<stdio.h>

int main(){
  int a,b,c;
  std::cin>>a;
  std::cin>>b;
  std::cin>>c;
  if      (a*a==b*b+c*c) {std::cout<<"YES"<<std::endl};
  else if(b*b==a*a+c*c) {std::cout<<"YES"<<std::endl};
  else if(c*c==a*a+b*b) {std::cout<<"YES"<<std::endl};
  else std::cout<<"NO"<<std::endl;
  

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:54: error: expected ';' before '}' token
    9 |   if      (a*a==b*b+c*c) {std::cout<<"YES"<<std::endl};
      |                                                      ^
      |                                                      ;
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if(b*b==a*a+c*c) {std::cout<<"YES"<<std::endl};
      |   ^~~~
a.cc:10:53: error: expected ';' before '}' token
   10 |   else if(b*b==a*a+c*c) {std::cout<<"YES"<<std::endl};
      |                                                     ^
      |                                                     ;
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(c*c==a*a+b*b) {std::cout<<"YES"<<std::endl};
      |   ^~~~
a.cc:11:53: error: expected ';' before '}' token
   11 |   else if(c*c==a*a+b*b) {std::cout<<"YES"<<std::endl};
      |                                                     ^
      |                                                     ;
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else std::cout<<"NO"<<std::endl;
      |   ^~~~
Language: C++

#include<iostream>

int main(){
	int a,b,c;
	std::cin>>a>>b>>c
	if(a*a+b*b==c*c){
		std::cout<<"YES";
	}else if(a*a+c*c==b*b){
		std::cout<<"YES";
	}else if(b*b+c*c==a*a){
		std::cout<<"YES";
	}else{
		std::cout<<"NO";	
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: expected ';' before 'if'
    5 |         std::cin>>a>>b>>c
      |                          ^
      |                          ;
    6 |         if(a*a+b*b==c*c){
      |         ~~                
a.cc:8:10: error: 'else' without a previous 'if'
    8 |         }else if(a*a+c*c==b*b){
      |          ^~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args){
	 
	Scanner sc= new Scanner (System.in);
	int n = sc.nextInt();
	int i[];
	i = new int[3];
for(int a=0;a<=n;a++){	
		for(int d=0;d<3;d++ ){
			i[d]=sc.nextInt();
			Arrays.sort(i);
			if((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){
				System.out.println("Yes");
			}
			else System.out.println("No");	
			}	
		}
	
		
	 
	
	}

}

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: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

	/**
	 * <p>
	 * 与えられた三辺で直角三角形が作れるかを判定する。
	 * </p>
	 *
	 * @param args
	 *            利用しない。
	 * @throws IOException
	 */
	public static void main(String[] args) throws NumberFormatException,
			IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int lineCount = Integer.parseInt(br.readLine());
		for (int i = 0; i < lineCount; i++) {

			String line = br.readLine();

			// 三辺の長さをリストに格納し、ソート
			List<Integer> sideList = new ArrayList<Integer>();
			String[] input = line.split(" ");
			sideList.add(Integer.parseInt(input[0]));
			sideList.add(Integer.parseInt(input[1]));
			sideList.add(Integer.parseInt(input[2]));
			Collections.sort(sideList);

			if (isRightTriangle(sideList.get(2), sideList.get(1),
					sideList.get(0))) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	/**
	 * 三辺の長さから、直角三角形であるかどうかを判定する。<br>
	 * 注意：第一引数に最も長い辺を与えること。
	 *
	 * @param side1
	 *            辺1
	 * @param side2
	 *            辺2
	 * @param side3
	 *            辺3
	 * @return 直角三角形であるかどうか
	 */
	private static boolean isRightTriangle(int side1, int side2, int side3) {
		return (side1 * side1 == side2 * side2 + side3 * side3);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
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.IOException;
      | ^~~~~~
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.io.InputStreamReader;
      | ^~~~~~
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.util.ArrayList;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Collections;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.List;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
Language: C++

import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int a;
		int b;
		int c;
		int N = stdIn.nextInt();
		int count = 0;
		int box;
		while (true) {
			if(N<=0){
			break;
			}
			a = stdIn.nextInt();
			b = stdIn.nextInt();
			c = stdIn.nextInt();
			if (a < b) {
				box = a;
				a = b;
				b = box;
			}
			if (a < c) {
				box = a;
				a = c;
				c = box;
			}
			a = a * a;
			b = b * b;
			c = c * c;
			if (a == b + c)
				System.out.println("YES");
			else
				System.out.println("NO");
			count=count+1;
			if (count == N){
				break;
			}
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class A {
      | ^~~~~~
Language: C++

#include <stdio.h>

void right_triangle (int x, int y, int z)
{
    scanf("%d %d %d", &x, &y, &z);
    if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main(void)
{
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i){
        right_triangle();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void right_triangle(int, int, int)':
a.cc:6:55: error: lvalue required as left operand of assignment
    6 |     if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
      |                                         ~~~~~~~~~~~~~~^~~~~~~~
a.cc: In function 'int main()':
a.cc:18:23: error: too few arguments to function 'void right_triangle(int, int, int)'
   18 |         right_triangle();
      |         ~~~~~~~~~~~~~~^~
a.cc:3:6: note: declared here
    3 | void right_triangle (int x, int y, int z)
      |      ^~~~~~~~~~~~~~
Language: C++

#include <stdio.h>

void right_triangle (int x, int y, int z)
{
    if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main(void)
{
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i){
        int x, y, z;
        scanf("%d %d %d", &x, &y, &z);
        right_triangle(x, y, z);
    }
    return 0;
}

Compiler output:
a.cc: In function 'void right_triangle(int, int, int)':
a.cc:5:55: error: lvalue required as left operand of assignment
    5 |     if(x * x = y * y + z * z || y * y = z * z + x * x || z * z = x * x + y * y){
      |                                         ~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h> 

void judge(int x, int y, int z)
{    
    static bool flag = false;
    if (x * x + y * y == z * z){
        flag = true;
    }  
}


int main(void)
{
    int repeat, a, b, c;
    scanf("%d", &repeat);
    for (int i = 0; i < repeat ; ++i){
        scanf("%d %d %d", &a, &b, &c); 
        judge (a, b, c); 
        judge (b, c, a);
        judge (c, a, b);
        if (flag == true){    
            printf("YES\n");
        }else{	
            printf("NO\n");
        }
    }
    return 0;        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:13: error: 'flag' was not declared in this scope
   22 |         if (flag == true){
      |             ^~~~
Language: C++

#include <stdio.h>
#include <stdbool.h> 

void judge(int x, int y, int z, bool flag)
{    
    if (x * x + y * y == z * z){
        flag = true;
    }  
}


int main(void)
{
    int repeat, a, b, c;
    bool flag = false;
    scanf("%d", &repeat);
    for (int i = 0; i < repeat ; ++i){
        scanf("%d %d %d", &a, &b, &c); 
        judge (a, b, c); 
        judge (b, c, a);
        judge (c, a, b);
        if (flag == true){    
            printf("YES\n");
        }else{	
            printf("NO\n");
        }
    }
    return 0;        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: too few arguments to function 'void judge(int, int, int, bool)'
   19 |         judge (a, b, c);
      |         ~~~~~~^~~~~~~~~
a.cc:4:6: note: declared here
    4 | void judge(int x, int y, int z, bool flag)
      |      ^~~~~
a.cc:20:15: error: too few arguments to function 'void judge(int, int, int, bool)'
   20 |         judge (b, c, a);
      |         ~~~~~~^~~~~~~~~
a.cc:4:6: note: declared here
    4 | void judge(int x, int y, int z, bool flag)
      |      ^~~~~
a.cc:21:15: error: too few arguments to function 'void judge(int, int, int, bool)'
   21 |         judge (c, a, b);
      |         ~~~~~~^~~~~~~~~
a.cc:4:6: note: declared here
    4 | void judge(int x, int y, int z, bool flag)
      |      ^~~~~
Language: C++

#include <stdio.h>

int triJudgefunc(int x, int y, int z);

int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (judgefunc(firstn, secondn, thirdn) = true) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}



int triJudgefunc(int x, int y, int z)
{
    double maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x, notmax1 = y, notmax2 = z;    //x???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x, maxlength = y, notmax2 = z;    //y???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    }
    double result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'judgefunc' was not declared in this scope; did you mean 'triJudgefunc'?
   12 |         if (judgefunc(firstn, secondn, thirdn) = true) {
      |             ^~~~~~~~~
      |             triJudgefunc
Language: C++

#include <stdio.h>
 
int triJudgefunc(int x, int y, int z);
 
int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (triJudgefunc(firstn, secondn, thirdn) = true) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}
 
 
 
int triJudgefunc(int x, int y, int z)
{
    double maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x, notmax1 = y, notmax2 = z;    //x???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x, maxlength = y, notmax2 = z;    //y???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    }
    double result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
   12 |         if (triJudgefunc(firstn, secondn, thirdn) = true) {
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
  
int triJudgefunc(int x, int y, int z);
  
int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (triJudgefunc(firstn, secondn, thirdn) = true) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}
  
  
  
int triJudgefunc(int x, int y, int z)
{
    int maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x, notmax1 = y, notmax2 = z;    //x???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x, maxlength = y, notmax2 = z;    //y???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    }
    double result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
   12 |         if (triJudgefunc(firstn, secondn, thirdn) = true) {
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
   
int triJudgefunc(int x, int y, int z);
   
int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (triJudgefunc(firstn, secondn, thirdn) = 0) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}
   
   
   
int triJudgefunc(int x, int y, int z)
{
    int maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x, notmax1 = y, notmax2 = z;    //x???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x, maxlength = y, notmax2 = z;    //y???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    }
    double result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
   12 |         if (triJudgefunc(firstn, secondn, thirdn) = 0) {
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
    
int triJudgefunc(int x, int y, int z);
    
int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (triJudgefunc(firstn, secondn, thirdn) = 0) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}
    
    
    
int triJudgefunc(int x, int y, int z)
{
    int maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x, notmax1 = y, notmax2 = z;    //x???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x, maxlength = y, notmax2 = z;    //y???max
        } else {
            notmax1 = x, notmax2 = y, maxlength = z;    //z???max
        }
    }
    int result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
   12 |         if (triJudgefunc(firstn, secondn, thirdn) = 0) {
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
    
int triJudgefunc(int x, int y, int z);
    
int main(void)
{
    int row;
    scanf("%d", &row);
    for (int i = 0; i < row; ++i) {
        int firstn, secondn ,thirdn; 
        scanf("%d %d %d", &firstn, &secondn, &thirdn);
        if (triJudgefunc(firstn, secondn, thirdn) = 0) {
        printf("YES\n");
        } else {
        printf("NO\n");
        }
    }
    return 0;
}
    
    
    
int triJudgefunc(int x, int y, int z)
{
    int maxlength, notmax1, notmax2;
    if (x > y) {    //x > y
        if (x > z) {
            maxlength = x; notmax1 = y; notmax2 = z;    //x???max
        } else {
            notmax1 = x; notmax2 = y; maxlength = z;    //z???max
        }
    } else {    //y > x
        if (y > z) {
            notmax1 = x; maxlength = y; notmax2 = z;    //y???max
        } else {
            notmax1 = x; notmax2 = y; maxlength = z;    //z???max
        }
    }
    int result = maxlength * maxlength - notmax1 * notmax1 - notmax2 * notmax2;
    return result;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: lvalue required as left operand of assignment
   12 |         if (triJudgefunc(firstn, secondn, thirdn) = 0) {
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
 
int print(void)
{
    if (C == A + B) {
        printf("YES\n");
    } else if (A == B + C) {
        printf("YES\n");
    } else if (B == C + A) {
        printf("YES\n");
    } else {
        printf("NO\n");
    }
}

int main(void)
{
    int i, N, a, b, c, A, B, C;
    scanf("%d", &N);
    for (i = 0; i < N; i++) {
    scanf("%d %d %d\n", &a, &b, &c);
    A = a * a;
    B = b * b;
    C = c * c;
    print();
    }
    return 0;
}

Compiler output:
a.cc: In function 'int print()':
a.cc:5:9: error: 'C' was not declared in this scope
    5 |     if (C == A + B) {
      |         ^
a.cc:5:14: error: 'A' was not declared in this scope
    5 |     if (C == A + B) {
      |              ^
a.cc:5:18: error: 'B' was not declared in this scope
    5 |     if (C == A + B) {
      |                  ^
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

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

  if(a>c){
    tmp=a;
    a=c;
    c=tmp;
  }
  if(b>c){
    tmp=b;
    b=c;
    c=tmp;
  }

  if(a*a+b*b==c*c)
    cin >> YES >> endl;
  else
    cin >> NO >> endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: 'YES' was not declared in this scope
   27 |     cin >> YES >> endl;
      |            ^~~
a.cc:29:12: error: 'NO' was not declared in this scope
   29 |     cin >> NO >> endl;
      |            ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: expected '}' before ';' token
   12 |                 d = a * a + b * b;
      |                                  ^
a.cc:11:9: note: to match this '{'
   11 |         {
      |         ^
a.cc:12:34: error: expected ')' before ';' token
   12 |                 d = a * a + b * b;
      |                                  ^
      |                                  )
a.cc:10:44: note: to match this '('
   10 |         while(scanf("%d %d %d", &a, &b, &c)(
      |                                            ^
a.cc:12:34: error: expected ')' before ';' token
   12 |                 d = a * a + b * b;
      |                                  ^
      |                                  )
a.cc:10:14: note: to match this '('
   10 |         while(scanf("%d %d %d", &a, &b, &c)(
      |              ^
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^