Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int length = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

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

Compiler output:
Main.java:16: error: cannot find symbol
            int length = new length[3];
                             ^
  symbol:   class length
  location: class Main
Main.java:16: error: incompatible types: length[] cannot be converted to int
            int length = new length[3];
                         ^
Main.java:19: error: array required, but int found
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());
                                                  ^
Main.java:21: error: no suitable method found for sort(int)
                Arrays.sort(length);
                      ^
    method Arrays.sort(int[]) is not applicable
      (argument mismatch; int cannot be converted to int[])
    method Arrays.sort(long[]) is not applicable
      (argument mismatch; int cannot be converted to long[])
    method Arrays.sort(short[]) is not applicable
      (argument mismatch; int cannot be converted to short[])
    method Arrays.sort(char[]) is not applicable
      (argument mismatch; int cannot be converted to char[])
    method Arrays.sort(byte[]) is not applicable
      (argument mismatch; int cannot be converted to byte[])
    method Arrays.sort(float[]) is not applicable
      (argument mismatch; int cannot be converted to float[])
    method Arrays.sort(double[]) is not applicable
      (argument mismatch; int cannot be converted to double[])
    method Arrays.sort(Object[]) is not applicable
      (argument mismatch; int cannot be converted to Object[])
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (actual and formal argument lists differ in length))
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                          ^
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                                    ^
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                                                ^
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                                                          ^
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                                                                        ^
Main.java:22: error: array required, but int found
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                                                                                  ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
10 errors