criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

//public class Problem0003_IsItaRightTriangle {
public class Main {
	public static void main(String[] args) {
		try {
			Problem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();
			
			BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
			int number = Integer.parseInt(reader.readLine());
			int[] sides = new int[3];	//ÓÍ"side"çµ¢
			
			for(int i = 0; i < number; i++) {	//±±©ç{Ô
				String[] textArray = reader.readLine().split(" ");
				for(int j = 0; j < 3; j++) {
					sides[j] = Integer.parseInt(textArray[j]);
				}
				
				test.showAnswer(test.getMax(sides));
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	Problem0003_IsItaRightTriangle() {
		
	}
	int[] getMax(int[] array) {
		int[] targetArray = array;
		
		int max = targetArray[0];	//}CiXÌêÍ0ðãü³êéÆss
		int maxPosition = 0;		//0ªúlÈÌÍ¾ç©
		for(int i = 1; i < targetArray.length; i++) {
			if(max < targetArray[i]) {
				max = targetArray[i];
				maxPosition = i;
			}
		}
		
		int temporary = targetArray[0];
		targetArray[0] = max;
		targetArray[maxPosition] = temporary;
		
		return targetArray;
	}
	//ÅålªêÔOÉ ézñÉÎµÄA¼pOp`©Ç¤©¦ðo·B
	void showAnswer(int[] array) {
		if(array.length != 3) {
			throw new IllegalArgumentException();	//OÌ½ß
		}
		if(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:26: error: invalid method declaration; return type required
	Problem0003_IsItaRightTriangle() {
	^
1 error
Language: Java

import java.util.Scanner;
import java.util.Array;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int N = cin.nextInt();
	for(int i=1, i<=N, i++){
		int[] len = new int[3];
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		Array.sort(len);
		if(len[0]*len[0] + len[1]*len[1} == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
    }
}

Compiler output:
Main.java:10: error: ';' expected
	for(int i=1, i<=N, i++){
	              ^
Main.java:10: error: ';' expected
	for(int i=1, i<=N, i++){
	                 ^
Main.java:14: error: ']' expected
		if(len[0]*len[0] + len[1]*len[1} == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
		                               ^
Main.java:14: error: illegal start of expression
		if(len[0]*len[0] + len[1]*len[1} == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
		                                 ^
Main.java:14: error: ';' expected
		if(len[0]*len[0] + len[1]*len[1} == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
		                                                 ^
Main.java:14: error: 'else' without 'if'
		if(len[0]*len[0] + len[1]*len[1} == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
		                                                                               ^
6 errors
Language: Java

import java.util.Scanner;
import java.util.Array;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int N = cin.nextInt();
	for(int i=1; i<=N; i++){
		int[] len = new int[3];
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		Array.sort(len);
		if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
    }
}

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;
 
public class Main
{
    public static void main(String[] args)
    {
	Scanner cin = new Scanner(System.in);
	int N = cin.nextInt();
	for(int i=1; i<=N; i++){
		int[] len = new int[3];
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		Arrays.sort(len);
		if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println("YES");} else{System.out.println("NO");}
	}
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
		for(int j=0; j<3; j++){ len[j] = cin.textInt();}
		                                    ^
  symbol:   method textInt()
  location: variable cin of type Scanner
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
		new Main.run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		new Main.run();
		        ^
  symbol:   class run
  location: class Main
1 error
Language: Java

import java.io.*;
import java.util.Scanner;
public class Test {


	public static void main(String[] args) {
		
		//int n;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i;
		for(i = 1;i <= n; i++){
		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();
		if(x*x+y*y==z*z)
			System.out.println("YES");
		else 
			System.out.println("NO");
		}
			
		
		
		
		

	}

}

Compiler output:
Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

package test;

import java.io.*;
import java.util.Scanner;
public class Test {


	public static void main(String[] args) {
		
		//int n;
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int i;
		for(i = 1;i <= n; i++){
		int x = sc.nextInt();
		int y = sc.nextInt();
		int z = sc.nextInt();
		if(x*x+y*y==z*z)
			System.out.println("YES");
		else 
			System.out.println("NO");
		}
			
		
		
		
		

	}

}

Compiler output:
Main.java:5: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

package Volume0;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

public class P0003 {

	public static void main(String[] args) {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s;

		int n;

		try {
			s = br.readLine();
			n = Integer.parseInt(s);

			int[][] tri = new int[n][3];
			int i, j;
			i = j = 0;

			while (null != (s = br.readLine())) {
				Scanner sc = new Scanner(s);
				j = 0;
				while (sc.hasNext()) {
					tri[i][j] = sc.nextInt();
					j++;
				}
				Arrays.sort(tri[i]);
				i++;
			}

			//
			for (i = 0; i < n; i++) {
				int a, b, c;
				a = tri[i][0];
				b = tri[i][1];
				c = tri[i][2];
				if (c * c == a * a + b * b) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				br.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}
}

Compiler output:
Main.java:9: error: class P0003 is public, should be declared in a file named P0003.java
public class P0003 {
       ^
1 error
Language: Java

public static void main(String[] args) {
        int min=Integer.MAX_VALUE,max=Integer.MIN_VALUE,mid=0;
        int n=0;
        try {
            Scanner scan=new Scanner(System.in);
            n=scan.nextInt();
            for (int i = 0; i < n; i++) {
                int temp=scan.nextInt();
                min=max=mid=temp*temp;
                for (int j = 0; j < 2; j++) {    
                    temp=scan.nextInt();
                    if(temp*temp<min){
                         min=temp*temp;
                    }
                    else if(temp*temp>max){
                       mid=max;
                       max=temp*temp;
                    }
                    else{
                        mid=temp*temp;
                    }
                }
                if(min+mid==max){
                    System.out.println("YES");
                }
                else
                    System.out.println("NO");
            }
        }
        catch(Exception exp){
            
        }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

class ACM1 {
    public static void main(String[] args) {
        int min=Integer.MAX_VALUE,max=Integer.MIN_VALUE,mid=0;
        int n=0;
        try {
            Scanner scan=new Scanner(System.in);
            n=scan.nextInt();
            for (int i = 0; i < n; i++) {
                int temp=scan.nextInt();
                min=max=mid=temp*temp;
                for (int j = 0; j < 2; j++) {    
                    temp=scan.nextInt();
                    if(temp*temp<min){
                         min=temp*temp;
                    }
                    else if(temp*temp>max){
                       mid=max;
                       max=temp*temp;
                    }
                    else{
                        mid=temp*temp;
                    }
                }
                if(min+mid==max){
                    System.out.println("YES");
                }
                else
                    System.out.println("NO");
            }
        }
        catch(Exception exp){
            
        }
}
}

Compiler output:
Main.java:6: error: cannot find symbol
            Scanner scan=new Scanner(System.in);
            ^
  symbol:   class Scanner
  location: class ACM1
Main.java:6: error: cannot find symbol
            Scanner scan=new Scanner(System.in);
                             ^
  symbol:   class Scanner
  location: class ACM1
2 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        int min=Integer.MAX_VALUE,max=Integer.MIN_VALUE,mid=0;
        int n=0;
            Scanner scan=new Scanner(System.in);
            n=scan.nextInt();
            for (int i = 0; i < n; i++) {
                int temp=scan.nextInt();
                min=max=mid=temp*temp;
                for (int j = 0; j < 2; j++) {    
                    temp=scan.nextInt();
                    if(temp*temp<min){
                         min=temp*temp;
                    }
                    else if(temp*temp>max){
                       mid=max;
                       max=temp*temp;
                    }
                    else{
                        mid=temp*temp;
                    }
                }
                if(min+mid==max){
                    System.out.println("YES");
                }
                else
                    System.out.println("NO");
            }
        }
}

Compiler output:
Main.java:5: error: cannot find symbol
            Scanner scan=new Scanner(System.in);
            ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
            Scanner scan=new Scanner(System.in);
                             ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java


import java.util.Scanner;

public class RightTriangle {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws java.lang.Exception{
		// TODO 自動生成されたメソッド・スタブ

		Scanner in = new Scanner(System.in);
		
		int checkNum = in.nextInt();
		
		for(int i = 0; i < checkNum; i++) {
			int a = in.nextInt();
			int b = in.nextInt();
			int c = in.nextInt();
			
			int tmp = (a + b + c) / 2;
			
			double space = Math.sqrt(tmp * (tmp - a) * (tmp - b) * (tmp - c));
			double angleA = 0.0;
			double angleB = 0.0;
			double angleC = 0.0;
			double high = 0.0;
			
			if ( b < a && c < a) {
				high = (2 * space) / (double)a;
				angleB = Math.toDegrees(Math.asin(high / c));
				angleC = Math.toDegrees(Math.asin(high / b));
				angleA = 180.0 - angleB - angleC;
			} else if (a < b && c < b) {
				high = (2 * space) / (double)b;
				angleC = Math.toDegrees(Math.asin(high / a));
				angleA = Math.toDegrees(Math.asin(high / c));
				angleB = 180.0 - angleA - angleC;
				
			} else if (a < c && b < c) {
				high = (2 * space) / (double)c;
				angleA = Math.toDegrees(Math.asin(high / b));
				angleB = Math.toDegrees(Math.asin(high / a));
				angleC = 180.0 - angleA - angleB;
			} else {
				// ありえない
			}
			
			if (((int)angleA) == 90 || ((int)angleB) == 90 || ((int)angleC) == 90) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:4: error: class RightTriangle is public, should be declared in a file named RightTriangle.java
public class RightTriangle {
       ^
1 error
Language: Java

#include <deque>
#include <iostream>
#include <algorithm>
 
int main()
{
using namespace std;
deque<int> edge;
int iedge[3];
int j;
int a,b,c;
 
cin >> j;
 
for(int l=0;l<j;l++){
for(int i=0;i<3;i++){
cin >> iedge[i];
edge.push_back(iedge[i]);
}
 
sort(edge.begin(),edge.end());
a = edge[0];
b = edge[1];
c = edge[2];
if(c*c == (a*a+b*b))cout << "YES\n";
else cout << "NO\n";

edge.clear();
}
 
return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <deque>
^
Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <algorithm>
^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
deque<int> edge;
^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
int iedge[3];
^
Main.java:11: error: class, interface, enum, or record expected
int a,b,c;
^
Main.java:13: error: class, interface, enum, or record expected
cin >> j;
^
Main.java:15: error: class, interface, enum, or record expected
for(int l=0;l<j;l++){
^
Main.java:15: error: class, interface, enum, or record expected
for(int l=0;l<j;l++){
            ^
Main.java:15: error: class, interface, enum, or record expected
for(int l=0;l<j;l++){
                ^
Main.java:16: error: class, interface, enum, or record expected
for(int i=0;i<3;i++){
            ^
Main.java:16: error: class, interface, enum, or record expected
for(int i=0;i<3;i++){
                ^
Main.java:18: error: class, interface, enum, or record expected
edge.push_back(iedge[i]);
^
Main.java:19: error: class, interface, enum, or record expected
}
^
Main.java:22: error: class, interface, enum, or record expected
a = edge[0];
^
Main.java:23: error: class, interface, enum, or record expected
b = edge[1];
^
Main.java:24: error: class, interface, enum, or record expected
c = edge[2];
^
Main.java:25: error: class, interface, enum, or record expected
if(c*c == (a*a+b*b))cout << "YES\n";
^
Main.java:26: error: class, interface, enum, or record expected
else cout << "NO\n";
^
Main.java:28: error: class, interface, enum, or record expected
edge.clear();
^
Main.java:29: error: class, interface, enum, or record expected
}
^
Main.java:32: error: class, interface, enum, or record expected
}
^
22 errors
Language: Java

import java.util.Scanner
class Main{

	
	public static void main(String[] a) {
		Scanner keyboad=new Scanner(System.in);
		int i[]=new int[1000];
		int j[]=new int[1000];
		int l[]=new int[1000];
		int kai=keyboad.nextInt();
		
		for(int k=0;k<kai;k++){
		String str1 =keyboad.nextLine();
		String[] bun = str1.split(" ");
		
		i[k]= Integer.parseInt(bun[0]);
		j[k]= Integer.parseInt(bun[1]);
		l[k]= Integer.parseInt(bun[2]);
		}
		
		int mob[][]=new int[kai][3];
		int kau[][]=new int [kai][3];
		int max[][]=new int[kai][3];
		
			for(int b=0;b<kai;b++){
			for(int a=0;a<3;a++){
				if (i[b] > j[b]) {
					max[b][a] = i[b];
					mob[b][a] = i[b];
					kau[b][a]=1;
				} else {
					max[b][a] = j[b];
					mob[b][a] = j[b];
					kau[b][a]=2;
				}
				
				if (l[b] > max[b][a]) {
					max[b][a] = l[b];
					mob[b][a] = l[b];
					kau[b][a]=3;
				}
			if(kau[b][a]==1)i[b]=-1;
			else if(kau[b][a]==2)j[b]=-1;
			else if(kau[b][a]==3)l[b]=-1;
			}
	
			}
			for(int z=0;z<kai;z++){
				if(max[z][0]*max[z][0]==max[z][1]*max[z][1]+max[z][2]*max[z][2]){
					System.out.println("YES");
				}else System.out.println("NO");
			}
		}
		
	}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

import java.util.Scanner;
class Main{

	
	public static void main(String[] a) {
		Scanner keyboad=new Scanner(System.in);
		int i[]=new int[1000];
		int j[]=new int[1000];
		int l[]=new int[1000];
		int kai=keyboad.nextInt();
		
		for(int k=0;k<kai;k++){
		String str1 =keyboad.nextLine();
		String[] bun = str1.split(" ");
		
		i[k]= Integer.parseInt(bun[0]);
		j[k]= Integer.parseInt(bun[1]);
		l[k]= Integer.parseInt(bun[2]);
		}
		
		int mob[][]=new int[kai][3];
		int kau[][]=new int [kai][3];
		int max[][]=new int[kai][3];
		
			for(int b=0;b<kai;b++){
			for(int a=0;a<3;a++){
				if (i[b] > j[b]) {
					max[b][a] = i[b];
					mob[b][a] = i[b];
					kau[b][a]=1;
				} else {
					max[b][a] = j[b];
					mob[b][a] = j[b];
					kau[b][a]=2;
				}
				
				if (l[b] > max[b][a]) {
					max[b][a] = l[b];
					mob[b][a] = l[b];
					kau[b][a]=3;
				}
			if(kau[b][a]==1)i[b]=-1;
			else if(kau[b][a]==2)j[b]=-1;
			else if(kau[b][a]==3)l[b]=-1;
			}
	
			}
			for(int z=0;z<kai;z++){
				if(max[z][0]*max[z][0]==max[z][1]*max[z][1]+max[z][2]*max[z][2]){
					System.out.println("YES");
				}else System.out.println("NO");
			}
		}
		
	}

Compiler output:
Main.java:26: error: variable a is already defined in method main(String[])
			for(int a=0;a<3;a++){
			        ^
1 error
Language: Java

import java.util.Scanner;
import java.io.*;
class Main{

	
	public static void main(String[] a) {
      
		Scanner keyboad=new Scanner(System.in);
		int kai=keyboad.nextInt
		int i[]=new int[1000];
		int j[]=new int[1000];
		int l[]=new int[1000];
		
		
		
		for(int k=0;k<kai;k++){
		String str1 =keyboad.nextLine();
		String[] bun = str1.split(" ");
		
		i[k]= Integer.valueOf(bun[0]).intValue();
		j[k]= Integer.valueOf(bun[1]).intValue();
		l[k]= Integer.valueOf(bun[2]).intValue();
		}
		
		int mob[][]=new int[kai][3];
		int kau[][]=new int [kai][3];
		int max[][]=new int[kai][3];
		
			for(int b=0;b<kai;b++){
			for(int s=0;s<3;s++){
				if (i[b] > j[b]) {
					max[b][s] = i[b];
					mob[b][s] = i[b];
					kau[b][s]=1;
				} else {
					max[b][s] = j[b];
					mob[b][s] = j[b];
					kau[b][s]=2;
				}
				
				if (l[b] > max[b][s]) {
					max[b][s] = l[b];
					mob[b][s] = l[b];
					kau[b][s]=3;
				}
			if(kau[b][s]==1)i[b]=-1;
			else if(kau[b][s]==2)j[b]=-1;
			else if(kau[b][s]==3)l[b]=-1;
			}
	
			}
			for(int z=0;z<kai;z++){
				if(max[z][0]*max[z][0]==max[z][1]*max[z][1]+max[z][2]*max[z][2]){
					System.out.println("YES");
				}else System.out.println("NO");
			}
		}
		
	}

Compiler output:
Main.java:9: error: ';' expected
		int kai=keyboad.nextInt
		                       ^
1 error
Language: Java

public class Main {
    public static void main(String[] args) 
    {
        Scanner in = new Scanner(System.in);

        doStuff(in);
    }

    public static void doStuff(Scanner in) 
    {
        int n = in.nextInt();
        
        for(int i = 0; i < n; i++)
        {
            int[] vals = new int[3];
            vals[0] = in.nextInt();
            vals[1] = in.nextInt();
            vals[2] = in.nextInt();
            
            Arrays.sort(vals);
            
            boolean rightTri = ((vals[0] * vals[0]) + (vals[1] * vals[1])) == (vals[2] * vals[2]);
            
            System.out.println(rightTri ? "YES" : "NO");
        }
    }

    public static void solve() 
    {
    
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
    public static void doStuff(Scanner in) 
                               ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner in = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:20: error: cannot find symbol
            Arrays.sort(vals);
            ^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] a){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		for(int i = 0; i < N; i++){
			int a = scan.nextInt(), b = scan.nextInt(), c = scan.nextInt();
			if(a > b){
				int multi = a;
				a = b;
				b = multi;
			}
			if(b > c){
				int multi = b;
				b = c;
				c = multi;
			}
			if(a * a + b * b == c * c) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:7: error: variable a is already defined in method main(String[])
			int a = scan.nextInt(), b = scan.nextInt(), c = scan.nextInt();
			    ^
1 error
Language: Java

package javatest;

import java.util.Arrays;
import java.util.Scanner;

public class CodeTest {

	public static void main(String[] args) {
		int n;
		Scanner sc = new Scanner(System.in);

		n = sc.nextInt();

		for(int i=0;i<n;i++){
			int[] num = new int[3];
			for(int j=0;j<3;j++){
				num[j] = sc.nextInt();
			}
			Arrays.sort(num);
			if(num[0]*num[0]+num[1]*num[1]==num[2]*num[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}

}

Compiler output:
Main.java:6: error: class CodeTest is public, should be declared in a file named CodeTest.java
public class CodeTest {
       ^
1 error
Language: Java

import java.util.Scanner;
public class dua {


	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		
		int testCase = scan.nextInt();
		
		for(int i=0; i<testCase; i++) {
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();
			
			if (c*c==a*a+b*b)
			{
				System.out.println("YES");
			}
			else if (b*b==a*a+c*c)
			{
				System.out.println("YES");
			}
			else if (a*a==c*c+b*b)
			{
				System.out.println("YES");
			}
			else 
			{
				System.out.println("NO");
			}
		}}}
			

Compiler output:
Main.java:2: error: class dua is public, should be declared in a file named dua.java
public class dua {
       ^
1 error
Language: Java

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			boolean hypotenuseA = (a * a == b * b + c * c);
			boolean hypotenuseB = (b * b == a * a + c * c);
			boolean hypotenuseC = (c * c == a * a + b * b);
			if(A|B|C) {
				System.out.println("YES");
			} else {
                                System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:20: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        for(int i = 0; i < N; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();
            boolean hypotenuseA = (a * a == b * b + c * c);
            boolean hypotenuseB = (b * b == a * a + c * c);
            boolean hypotenuseC = (c * c == a * a + b * b);
            if(A|B|C) {
                System.out.println("YES");
            } else {
                                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
            if(A|B|C) {
               ^
  symbol:   variable A
  location: class Main
Main.java:14: error: cannot find symbol
            if(A|B|C) {
                 ^
  symbol:   variable B
  location: class Main
Main.java:14: error: cannot find symbol
            if(A|B|C) {
                   ^
  symbol:   variable C
  location: class Main
3 errors
Language: Java

import java.io.*;
import java.util.*;

class aoj00004{
    public static void main(String[] a) throws IOException{
    	//String input = new String();
    	BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    	String   input2  = input.readLine();
    	String[] str1ary = input2.split(" ");

		if(str1ary.length == 3){
			if(Integer.valueOf(str1ary[0]) * Integer.valueOf(str1ary[0]) + Integer.valueOf(str1ary[1]) * Integer.valueOf(str1ary[1]) == Integer.valueOf(str1ary[2]) * Integer.valueOf(str1ary[2])){
					System.out.println("YES");
				}
			else{
					System.out.println("NO");
			}
		}
    }

Compiler output:
Main.java:19: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.io.*;
import java.util.Arrays;

public class IsItARightTriangle {
	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		int N, arr[] = new int[3];
		String str, tmp[];
		N = Integer.parseInt(in.readLine());
		for (int i = 0; i < N; i++) {
			str = in.readLine();
			tmp = str.split(" ", 0);
			for (int j = 0; j < 3; j++) {
				arr[j] = Integer.parseInt(tmp[j]);
				arr[j] *= arr[j];
			}
			Arrays.sort(arr);
			if (arr[2] == arr[0] + arr[1])
				System.out.println("YES");
			else
				System.out.println("NO");

		}

	}
}

Compiler output:
Main.java:4: error: class IsItARightTriangle is public, should be declared in a file named IsItARightTriangle.java
public class IsItARightTriangle {
       ^
1 error
Language: Java

#include <iostream>
using namespace std;

bool check(int a, int b , int c){
	return ( a*a == ( b*b + c*c ) )? true : false ;
}

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

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
bool check(int a, int b , int c){
^
  (use --enable-preview to enable unnamed classes)
Main.java:11: error: not a statement
	cin >> n;
	    ^
Main.java:13: error: not a statement
		cin >> a >> b >> c;
		              ^
Main.java:15: error: not a statement
			cout << "YES" << endl;
			              ^
Main.java:17: error: not a statement
			cout << "NO" << endl;
			             ^
7 errors
Language: Java

#include <iostream>
#include <math.h>

using namespace std;

void solve(int a, int b, int c) {
	bool f = false;
	int max_num = max(a, max(b, c));
	int sub1, sub2;
	if (max_num != a) {
		sub1 = a;
		if (max_num != b) sub2 = b;
		else sub2 = c;
	} else if (max_num != b) {
		sub1 = b;
		sub2 = c;
	} 		
	if (pow(max_num, 2) == pow(sub1, 2) + pow(sub2, 2)) f = true;
	if (f) cout << "YES" << endl;
	else cout << "NO" << endl;
}

int main() {
	int num, a, b, c;
	cin >> num;
	for (int i=0; i<num; i++) {
		cin >> a >> b >> c;
		solve(a,b,c);
	}
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <math.h>
^
Main.java:19: error: not a statement
	if (f) cout << "YES" << endl;
	                     ^
Main.java:20: error: not a statement
	else cout << "NO" << endl;
	                  ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
void solve(int a, int b, int c) {
^
  (use --enable-preview to enable unnamed classes)
Main.java:25: error: not a statement
	cin >> num;
	    ^
Main.java:27: error: not a statement
		cin >> a >> b >> c;
		              ^
7 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;



public class AOJ_Volume0003 {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int i = Integer.parseInt(sc.nextLine());
		int[] values = new int[3];

		for(int j=0;j<i;j++)
		{
			String[] s = sc.nextLine().split("[\\s]+");
			values[0] = Integer.parseInt(s[0]);
			values[1] = Integer.parseInt(s[1]);
			values[2] = Integer.parseInt(s[3]);

			Arrays.sort(values);
			if(values[0]*values[0] + values[1]*values[1] == values[2]*values[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:6: error: class AOJ_Volume0003 is public, should be declared in a file named AOJ_Volume0003.java
public class AOJ_Volume0003 {
       ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;



public class AOJ_Volume0003 {

	public static void main(String[] args){

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		int i = Integer.parseInt(sc.nextLine());
		int[] values = new int[3];

		for(int j=0;j<i;j++)
		{
			String[] s = sc.nextLine().split("[\\s]+");
			values[0] = Integer.parseInt(s[0]);
			values[1] = Integer.parseInt(s[1]);
			values[2] = Integer.parseInt(s[3]);

			Arrays.sort(values);
			if(values[0]*values[0] + values[1]*values[1] == values[2]*values[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:6: error: class AOJ_Volume0003 is public, should be declared in a file named AOJ_Volume0003.java
public class AOJ_Volume0003 {
       ^
1 error
Language: Java

import java.util.*;

public class Triangle {

  public static int squareNumber(int x) {
    return x * x;
  }

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int numOfTriangles = in.nextInt();
    for (int i = 0; i < numOfTriangles; i++) {
      Scanner s = new Scanner(System.in);
      int a = s.nextInt();
      int b = s.nextInt();
      int c = s.nextInt();

      System.out.println(a);

      int[] squares = {squareNumber(a), squareNumber(b), squareNumber(c)}; 

      if (squares[0] + squares[1] == squares[2]) {
        System.out.println("YES");
      } else if(squares[1] + squares[2] == squares[0]) {
        System.out.println("YES");
      } else if(squares[0] + squares[2] == squares[1]) {
        System.out.println("YES");
      } else {
        System.out.println("NO");
      }   
    }   
  }
}

Compiler output:
Main.java:3: error: class Triangle is public, should be declared in a file named Triangle.java
public class Triangle {
       ^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class Triangle{

  public static int squareInt(int x){ 
    return x * x;
  }

  public static void main(String[] args){
    Scanner s = new Scanner(System.in);
    int n =  s.nextInt();
    int[] lengths = new int[3];
    for (int i = 0; i < n; i++) {
      // 3辺の配列への入力
      for (int j = 0; j < 3; j++){
        lengths[j] = s.nextInt();
      }   
      // 直角三角形かどうかの判定
      Arrays.sort(lengths);
      if (squareInt(lengths[0]) + squareInt(lengths[1]) == squareInt(lengths[2])){
        System.out.println("YES");
      } else{
        System.out.println("NO");
      }   
    }   
  }

}

Compiler output:
Main.java:4: error: class Triangle is public, should be declared in a file named Triangle.java
public class Triangle{
       ^
1 error
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package algorithm;

import java.util.Arrays;
import java.util.Scanner;

/**
 *
 * @author izumi
 */
public class test1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            
            int[] l = new int[3];
            
            for (int j = 0; j < 3; j++) {
                l[j] = sc.nextInt();
            }
            
            Arrays.sort(l);

            if ((l[2]*l[2]) == ((l[1]*l[1])+(l[0]*l[0]))) {
                System.out.println("YES");
            }
            else{
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:16: error: class test1 is public, should be declared in a file named test1.java
public class test1 {
       ^
1 error
Language: Java

import java.io.IOException;
import java.util.StringTokenizer;

public class RightTriangle {

	public static void main(String[] args) throws IOException{
		java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
		try{
			int count =Integer.parseInt(in.readLine());
			String ans [] = new String [count];
			for(int i=0;i<count;i++){
				String s = in.readLine();
				StringTokenizer st = new StringTokenizer(s);
				int num [] = new int [4];
				for(int j=0;j<3;j++){
					num[j] = Integer.parseInt(st.nextToken());
					if(num[0] < num[j]){
						int tmp = num[0];
						num[0] = num[j];
						num[j] = tmp;
					}
				}
				if (num[0] * num[0] == num[1] * num[1] + num[2] * num[2]){
					ans[i] = "YES";
				}else{
					ans[i] = "NO";
				}
			}
			for(int i=0;i<count;i++){
				System.out.println(ans[i]);
			}
		}catch(Exception e){
			System.exit(0);
		}
	}

Compiler output:
Main.java:35: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.io.IOException;
import java.util.StringTokenizer;

public class RightTriangle {

	public static void main(String[] args) throws IOException{
		java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));
		try{
			int count =Integer.parseInt(in.readLine());
			String ans [] = new String [count];
			for(int i=0;i<count;i++){
				String s = in.readLine();
				StringTokenizer st = new StringTokenizer(s);
				int num [] = new int [4];
				for(int j=0;j<3;j++){
					num[j] = Integer.parseInt(st.nextToken());
					if(num[0] < num[j]){
						int tmp = num[0];
						num[0] = num[j];
						num[j] = tmp;
					}
				}
				if (num[0] * num[0] == num[1] * num[1] + num[2] * num[2]){
					ans[i] = "YES";
				}else{
					ans[i] = "NO";
				}
			}
			for(int i=0;i<count;i++){
				System.out.println(ans[i]);
			}
		}catch(Exception e){
			System.exit(0);
		}
	}

}

Compiler output:
Main.java:4: error: class RightTriangle is public, should be declared in a file named RightTriangle.java
public class RightTriangle {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Triangle {
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		String a = in.nextLine();
		int b = Integer.parseInt(a);
		for(int i = 0;i<b;i++){
			String x = in.next();
			String y = in.next();
			String z = in.next();
			int p = Integer.parseInt(x);
			int q = Integer.parseInt(y);
			int r = Integer.parseInt(z);
			int a1,a2,a3;
			a1 = 0;
			a2 = 0;
			a3 = 0;
			a1 = Math.max(Math.max(p,q),Math.max(q,r));
			if(a1 == p){
				a2=Math.max(q,r);
				a3=Math.min(q,r);
			}
			if(a1 == q){
				a2=Math.max(p,r);
				a3=Math.min(p,r);
			}
			if(a1 == r){
				a2=Math.max(p,q);
				a3=Math.min(p,q);
			}
			if(p == q){
				if(p<r){
					a1=r;
					a2=p;
					a3=p;
				}
			}
			if(q == r){
				if(q<p){
					a1=p;
					a2=q;
					a3=q;
				}
			}
			if(p == r){
				if(p<q){
					a1=q;
					a2=p;
					a3=p;
				}
			}
			if(p ==q && q == r){
				System.out.println("NO");
			}
			if(a2*a2+a3*a3 == a1*a1){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:3: error: class Triangle is public, should be declared in a file named Triangle.java
public class Triangle {
       ^
1 error
Language: Java

import java.util.Scanner;
import java.util.Arrays;

public class Ex04 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		final int cnt = scan.nextInt();
		
		for(int i = 0; i < cnt; i++) {
			Integer[] tri = new Integer[3];
			
			tri[0] = scan.nextInt();
			tri[1] = scan.nextInt();
			tri[2] = scan.nextInt();
			
			Arrays.sort(tri);
			
			tri[0] *= tri[0];
			tri[1] *= tri[1];
			tri[2] *= tri[2];
			
			if((tri[0] + tri[1]) == tri[2]) {
				System.out.println("YES");
			}
			
			else {
				System.out.println("NO");
			}
		}
	}
	
}

Compiler output:
Main.java:4: error: class Ex04 is public, should be declared in a file named Ex04.java
public class Ex04 {
       ^
1 error
Language: C

#include <stdio.h>

int main(void)
{
	int i,N,a,b,c;
	scanf("%d",N);
	for(i=0;i<N;i++){
		scanf("%d %d %d",&a,&b,&c);
		int max=a,min1=b,min2=c;
		if(b>a)
		max=b; min1=a;
		if(c>max)
		int t;
		t=max; max=c; min2=t;
		if(max*max=min1*min1+min2*min2)
		printf("Yes\n");
		else
		printf("No\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:17: error: expected expression before 'int'
   13 |                 int t;
      |                 ^~~
main.c:14:17: error: 't' undeclared (first use in this function)
   14 |                 t=max; max=c; min2=t;
      |                 ^
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:27: error: lvalue required as left operand of assignment
   15 |                 if(max*max=min1*min1+min2*min2)
      |                           ^
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:9:34: error: lvalue required as left operand of assignment
    9 |                 else if(a==b && c=a*sqrt(2))printf("YES\n");
      |                                  ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:9:49: error: lvalue required as left operand of assignment
    9 |                 else if(a==b && c=a*sqrt(2) || c=b*sqrt(2))printf("YES\n");
      |                                                 ^
Language: C

#include <stdio.h>
void judge(int x, int y, int z)
{
	int f = 0;
	if(x * x == y * y + z * z){
		f = 1;
	}else if(y * y == z * z + x * x){
		f = 1;
	}else if(z * z == x * x + y * y){
		f = 1;
	}
	printf( (f == 1) ? ("YES\n") : ("NO\n") );
	return;
}
int main(void)
{
	int n,a,b,c;
	
	scanf("%d", &n);
	while(n--){
		scanf("%d%d%d", &a, &b, &c);
		judge(a, b, c);
	}
	return 0;

Compiler output:
main.c: In function 'main':
main.c:24:9: error: expected declaration or statement at end of input
   24 |         return 0;
      |         ^~~~~~
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:13: error: 'n' undeclared (first use in this function)
    6 |   for(i=0;i<n;i++){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
main()
{
	int N,i,j,k;
	scanf("%d",&N);
	int a[N],b[N],c[N];
	for(i=0;i<N;i++){
		scanf("%d %d %d",&a[i],&b[i],&c[i]);
	}
	int higher,lower;
	for(i=0;i<N;i++){
		if(b[i]<c[i]){
			higher=c[i];
			lower=b[i];
			c[i]=lower;
			b[i]=higher;
		}
		if(a[i]<b[i]){
			higher=b[i];
			lower=a[i];
			b[i]=lower;
			a[i]=higher;
		}
	}
	for(i=0;i<N;i++){
		if(a[i]*a[i]==b[i]*b[i]+c[i]*c[i]){
			printf("YES\n");
		}
			else{printf("NO\n");}
	}
        returen 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:31:9: error: 'returen' undeclared (first use in this function)
   31 |         returen 0;
      |         ^~~~~~~
main.c:31:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:16: error: expected ';' before numeric constant
   31 |         returen 0;
      |                ^~
      |                ;
Language: C

#include<stdio.h>
    
int main(){
    
	int a,b,c,i,N,k[2048]={0};

	scanf("%d",N);)

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


		scanf("%d%d%d",&a,&b,&c);

		if(a<b)a=b;
		if(a<c)a=c;

		if(a*a=b*b+c*c)k[i]++;

	}

	for(i=0;i<N;i++){
		if(k[i]==0)printf("NO\n");
		else printf("YES\n");
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected statement before ')' token
    7 |         scanf("%d",N);)
      |                       ^
main.c:17:23: error: lvalue required as left operand of assignment
   17 |                 if(a*a=b*b+c*c)k[i]++;
      |                       ^
Language: C

#include<stdio.h>
    
int main(){
    
	int a,b,c,tmp,i,N,k[2048]={0};

	scanf("%d",&N);

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


		scanf("%d%d%d",&a,&b,&c);

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


		if(a*a==b*b+c*c)k[i]++;

	}

	for(i=0;i<N;i++){
		if(k[i]==0)printf("NO\n");
		else printf("YES\n");
	}

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:22: error: expected ';' before '}' token
   20 |                 a=tmp
      |                      ^
      |                      ;
   21 |                 }
      |                 ~
Language: C

#include<stdio.h>
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(a*a == b*b + c*c || b*b = c*c + a*a || c*c = a*a + b*b)
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:63: error: lvalue required as left operand of assignment
    7 |                 if(a*a == b*b + c*c || b*b = c*c + a*a || c*c = a*a + b*b)
      |                                                               ^
Language: C

#include<stdio.h>
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((a*a == b*b + c*c) || (b*b = c*c + a*a) || (c*c = a*a + b*b))
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:47: error: lvalue required as left operand of assignment
    7 |                 if((a*a == b*b + c*c) || (b*b = c*c + a*a) || (c*c = a*a + b*b))
      |                                               ^
main.c:7:68: error: lvalue required as left operand of assignment
    7 |                 if((a*a == b*b + c*c) || (b*b = c*c + a*a) || (c*c = a*a + b*b))
      |                                                                    ^
Language: C

#include<stdio.h>
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(a*a == b*b + c*c)
			printf("YES\n");
		else if(b*b = c*c + a*a)
			printf("YES\n");
		else if(c*c = a*a + b*b)
			printf("YES\n");
		else
			printf("NO\n");
	}
	return 0;
}

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

int main(){
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 || b*b+c*c=a*a || c*c+a*a=b*b) {
printf("Yes\n");}
else {printf("No\n");}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:42: error: lvalue required as left operand of assignment
    6 | if (a*a+b*b=c*c || b*b+c*c=a*a || c*c+a*a=b*b) {
      |                                          ^
main.c:7:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 | printf("Yes\n");}
      | ^~~~~~
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else {printf("No\n");}
      |       ^~~~~~
main.c:8:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(){
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) {printf("Yes\n");}
else if (b*b+c*c=a*a) {printf("Yes\n");}
else if (c*c+a*a=b*b) {printf("Yes\n");}
else {printf("No\n");}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 | scanf("%d",&j);
      | ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:12: error: lvalue required as left operand of assignment
    6 | if (a*a+b*b=c*c) {printf("Yes\n");}
      |            ^
main.c:6:19: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | if (a*a+b*b=c*c) {printf("Yes\n");}
      |                   ^~~~~~
main.c:6:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:19: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:17: error: lvalue required as left operand of assignment
    7 | else if (b*b+c*c=a*a) {printf("Yes\n");}
      |                 ^
main.c:7:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 | else if (b*b+c*c=a*a) {printf("Yes\n");}
      |                        ^~~~~~
main.c:7:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:17: error: lvalue required as left operand of assignment
    8 | else if (c*c+a*a=b*b) {printf("Yes\n");}
      |                 ^
main.c:8:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 | else if (c*c+a*a=b*b) {printf("Yes\n");}
      |                        ^~~~~~
main.c:8:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 | else {printf("No\n");}
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>

int main(){
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) {printf("Yes\n");}
else if (b*b+c*c=a*a) {printf("Yes\n");}
else if (c*c+a*a=b*b) {printf("Yes\n");}
else {printf("No\n");}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: lvalue required as left operand of assignment
    8 | if (a*a+b*b=c*c) {printf("Yes\n");}
      |            ^
main.c:9:17: error: lvalue required as left operand of assignment
    9 | else if (b*b+c*c=a*a) {printf("Yes\n");}
      |                 ^
main.c:10:17: error: lvalue required as left operand of assignment
   10 | else if (c*c+a*a=b*b) {printf("Yes\n");}
      |                 ^