submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s525630358
p00003
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt; int t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ int total=t[i][0]+t[i][1]+t[i][2]; int max=Math.max(t[i][0],t[i][1],t[i][2]); int res=total-max; if(res>total){return true;} else{return false;} } }
Main.java:6: error: cannot find symbol int n=sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner Main.java:7: error: incompatible types: int[][] cannot be converted to int int t=new int[n][3]; ^ Main.java:10: error: array required, but int found t[i][j]=sc.nextInt(); ^ Main.java:12: error: incompatible types: int cannot be converted to int[][] if(triangle(i,t)){System.out.println("YES");} ^ Main.java:18: error: no suitable method found for max(int,int,int) int max=Math.max(t[i][0],t[i][1],t[i][2]); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and formal argument lists differ in length) method Math.max(float,float) is not applicable (actual and formal argument lists differ in length) method Math.max(double,double) is not applicable (actual and formal argument lists differ in length) Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 5 errors
s248620477
p00003
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt; int[][] t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ int total=t[i][0]+t[i][1]+t[i][2]; int max=Math.max(t[i][0],t[i][1],t[i][2]); int res=total-max; if(res>total){return true;} else{return false;} } }
Main.java:6: error: cannot find symbol int n=sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner Main.java:18: error: no suitable method found for max(int,int,int) int max=Math.max(t[i][0],t[i][1],t[i][2]); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and formal argument lists differ in length) method Math.max(float,float) is not applicable (actual and formal argument lists differ in length) method Math.max(double,double) is not applicable (actual and formal argument lists differ in length) 2 errors
s206023859
p00003
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[][] t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ int total=t[i][0]+t[i][1]+t[i][2]; int max=Math.max(t[i][0],t[i][1],t[i][2]); int res=total-max; if(res>total){return true;} else{return false;} } }
Main.java:18: error: no suitable method found for max(int,int,int) int max=Math.max(t[i][0],t[i][1],t[i][2]); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and formal argument lists differ in length) method Math.max(float,float) is not applicable (actual and formal argument lists differ in length) method Math.max(double,double) is not applicable (actual and formal argument lists differ in length) 1 error
s771245797
p00003
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[][] t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ int max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]); int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1])) if(res==max){return true;} else{return false;} } }
Main.java:18: error: ';' expected int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1])) ^ 1 error
s987419448
p00003
Java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[][] t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ int max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]); int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1])); if(res==max){return true;} else{return false;} } }
Main.java:18: error: incompatible types: possible lossy conversion from double to int int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1])); ^ 1 error
s845598814
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main5 { private final static String NEGATIVE = "NO\n"; private final static String AFFIRMATIVE = "YES\n"; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512); int number = Integer.parseInt(br.readLine());//行数 int sides[] = new int[3]; int productAB;//辺abの積 StringTokenizer tknz; StringBuilder builder = new StringBuilder(); for (; 0 < number; number--) { tknz = new StringTokenizer(br.readLine()); for (int i = 0; i < 3; i++) { sides[i] = Integer.parseInt(tknz.nextToken()); } Arrays.sort(sides); if (((productAB = sides[0] * sides[1]) % 12) != 0) { builder.append(NEGATIVE); } else if (productAB * sides[2] % 60 != 0) { builder.append(NEGATIVE); } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) { builder.append(NEGATIVE); } else { builder.append(AFFIRMATIVE); } } System.out.print(builder); } }
Main.java:6: error: class Main5 is public, should be declared in a file named Main5.java public class Main5 { ^ 1 error
s697408978
p00003
Java
import java.io.*; import java.util.*; public class Math{ public static void main(String args[]){ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); try{ String str=br.readLine(); StringTokenizer st=new StringTokenizer(str); int n[]=new int[Integer.parseInt(st.nextToken())]; while((str=br.readLine())!=null){ st=new StringTokenizer(str); for(int i=0;i<=2;i++){ n[i]=Integer.parseInt(st.nextToken()); } Arrays.sort(n); int a=(int)Math.pow(n[0],2); int b=(int)Math.pow(n[1],2); int c=(int)Math.pow(n[2],2); if(a+b==c){ System.out.println("YES"); }else{ System.out.println("NO"); } } }catch(Exception ex){ } } }
Main.java:3: error: class Math is public, should be declared in a file named Math.java public class Math{ ^ Main.java:16: error: cannot find symbol int a=(int)Math.pow(n[0],2); ^ symbol: method pow(int,int) location: class Math Main.java:17: error: cannot find symbol int b=(int)Math.pow(n[1],2); ^ symbol: method pow(int,int) location: class Math Main.java:18: error: cannot find symbol int c=(int)Math.pow(n[2],2); ^ symbol: method pow(int,int) location: class Math 4 errors
s718816735
p00003
Java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> list = new ArrayList<Integer>(); int limit = Integer.parseInt(scanner.next()); for (int i = 0; i < limit; i++) { for (int j = 0; j < 3; j++) { list.add(Integer.parseInt(scanner.next())); } Collections.sort(list); Collections.reverse(list); int a = list.get(0); int b = list.get(1); int c = list.get(2); double cosA = getCosA(a, b, c); if (cosA == 0.0) { System.out.println("YES"); } else { System.out.println("NO"); } list.clear(); } } private static double getCosA(int a, int b, int c) { return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c); } }
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class List location: class Main Main.java:4: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class ArrayList location: class Main Main.java:10: error: cannot find symbol Collections.sort(list); ^ symbol: variable Collections location: class Main Main.java:11: error: cannot find symbol Collections.reverse(list); ^ symbol: variable Collections location: class Main 6 errors
s731385029
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Isitsarighttriangle { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String f = br.readLine(); int[][] a = new int[Integer.parseInt(f)][3]; for(int i = 0 ; i < Integer.parseInt(f) ; i++){ String str = br.readLine(); String[] stra = str.split(" "); a[i][0] = Integer.parseInt(stra[0]); a[i][1] = Integer.parseInt(stra[1]); a[i][2] = Integer.parseInt(stra[2]); if(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[i][2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:4: error: class Isitsarighttriangle is public, should be declared in a file named Isitsarighttriangle.java public class Isitsarighttriangle { ^ 1 error
s097609513
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Isitsarighttriangle { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String f = br.readLine(); int[][] a = new int[Integer.parseInt(f)][3]; for(int i = 0 ; i < Integer.parseInt(f) ; i++){ String str = br.readLine(); String[] stra = str.split(" "); a[i][0] = Integer.parseInt(stra[0]); a[i][1] = Integer.parseInt(stra[1]); a[i][2] = Integer.parseInt(stra[2]); if(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[i][2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:4: error: class Isitsarighttriangle is public, should be declared in a file named Isitsarighttriangle.java public class Isitsarighttriangle { ^ 1 error
s117914465
p00003
Java
import java.util.Arrays; import java.util.Scanner; public class IsitaRightTriangle { /** * 1 ??\??? 1000 ??\?????????????????£?????´??°?????\?????????????????????????????????????????¨??????????§???¢?????´?§?????§???¢??§????????´????????? YES ??????????????´????????? NO ??¨????????????????????????????????°????????????????????????????????? * @param args * @throws IOException */ public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); // ???????????????????????° int num = sc.nextInt(); for (int i = 0; i < num; i++) { int[] inputNumList = new int[3]; inputNumList[0] = sc.nextInt(); inputNumList[1] = sc.nextInt(); inputNumList[2] = sc.nextInt(); // ?????????????????????inputNumList[2]?????§?????????????????£????????? Arrays.sort(inputNumList); if (inputNumList[0] * inputNumList[0] + inputNumList[1] * inputNumList[1] == inputNumList[2] * inputNumList[2]) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
Main.java:4: error: class IsitaRightTriangle is public, should be declared in a file named IsitaRightTriangle.java public class IsitaRightTriangle { ^ 1 error
s867614400
p00003
Java
import java.util.*; public class Program2 { 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(); a*=a; b*=b; c*=c; if(a + b == c || a + c == b || b + c == a){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:2: error: class Program2 is public, should be declared in a file named Program2.java public class Program2 ^ 1 error
s992363656
p00003
Java
import java.util.*; public class Program2 { 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(); a*=a; b*=b; c*=c; if(a + b == c || c - a == b || c - b == a){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:2: error: class Program2 is public, should be declared in a file named Program2.java public class Program2 ^ 1 error
s335053724
p00003
Java
import java.util.*; public class Program2 { 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(); a*=a; b*=b; c*=c; if(a + b == c || c - a == b || c - b == a){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:2: error: class Program2 is public, should be declared in a file named Program2.java public class Program2 ^ 1 error
s890880255
p00003
Java
import java.util.*; public class Program2{ 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(); a*=a; b*=b; c*=c; if(a + b == c || a + c == b || b + c == a){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
Main.java:3: error: class Program2 is public, should be declared in a file named Program2.java public class Program2{ ^ 1 error
s637134220
p00003
Java
import java.util.Arrays; import java.util.Scanner; public class vol3 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i[] = new int[3]; for (int j = 0; j < i.length; j++) { i[j] = scan.nextInt(); } Arrays.sort(i); if((i[2]*i[2]) == (i[1]*i[1])+(i[0]*i[0])){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
Main.java:4: error: class vol3 is public, should be declared in a file named vol3.java public class vol3 { ^ 1 error
s344669188
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(br.readLine()); String ans[] = new String[count]; for (int i = 0; i < count; i++) { String s = br.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]); } } }
Main.java:7: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s972770851
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // ????§???¢??????????????° int x; int y; int z; // ????????\??????????????????????????§2???????????????????????? String line = br.readLine(); line = br.readLine(); while (line != null) { String strArray[] = line.split(" "); x = Integer.valueOf(strArray[0]); y = Integer.valueOf(strArray[1]); z = Integer.valueOf(strArray[2]); // ????????????????????? // ??´?§?????§???¢???????????¬????????? 3:4:5???????????????????????????????????? // Yes???????????¨????????? // ????????????:?????????3??§??????????????? ?????? ???????????????4??¨5??§???????????????(?????????) // ?????????????????????????????????3???????????? String Anser = "NO"; if (x % 3 == 0 && (y % 4 ==0 && z % 5 == 0) || (y % 5 == 0 && z % 4 ==0)) { Anser = "YES"; } else if (x % 4 == 0 && (y % 3 ==0 && z % 5 == 0) || (y % 5 == 0 && z % 3 ==0)) { Anser = "YES"; } else if (x % 5 == 0 && (y % 4 ==0 && z % 3 == 0) || (y % 3 == 0 && z % 4 ==0)) { Anser = "YES"; } else if (x % 5 == 0 && (y % 12 ==0 && z % 13 == 0) || (y % 13 == 0 && z % 12 ==0)) { Anser = "YES"; } else if (x % 12 == 0 && (y % 5 ==0 && z % 13 == 0) || (y % 13 == 0 && z % 5 ==0)) { Anser = "YES"; } else if (x % 13 == 0 && (y % 5 ==0 && z % 12 == 0) || (y % 12 == 0 && z % 5 ==0)) { Anser = "YES"; } System.out.println(Anser); line = br.readLine(); } }
Main.java:46: error: reached end of file while parsing } ^ 1 error
s758889235
p00003
Java
class Main{ public static void main(String[] a) throws NumberFormatException, IOException{ int arr[]={0,0,0}; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int no = Integer.parseInt(br.readLine()); if(no < 1000) { for(int j=0;j<no;j++) { StringTokenizer tkn = new StringTokenizer(br.readLine()); for(int i=0;i<3;i++) { arr[i] = Integer.parseInt(tkn.nextToken()); } Arrays.sort(arr); isRightTriangle(arr); } } } public static void isRightTriangle(int a[]) { int hyp = a[2]; if(hyp !=0 && a[0] != 0 && a[1] != 0) { if(((a[0]*a[0]) + (a[1]*a[1])) == (hyp*hyp)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
Main.java:2: error: cannot find symbol public static void main(String[] a) throws NumberFormatException, IOException{ ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main Main.java:10: error: cannot find symbol StringTokenizer tkn = new StringTokenizer(br.readLine()); ^ symbol: class StringTokenizer location: class Main Main.java:10: error: cannot find symbol StringTokenizer tkn = new StringTokenizer(br.readLine()); ^ symbol: class StringTokenizer location: class Main Main.java:14: error: cannot find symbol Arrays.sort(arr); ^ symbol: variable Arrays location: class Main 7 errors
s593869086
p00003
Java
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int nDataSets = sc.nextInt(); for (int i = 0; i < noDataSet; i++) { ArrayList<Integer> nums = new ArrayList<Integer>(); nums.add(sc.nextInt()); nums.add(sc.nextInt()); nums.add(sc.nextInt()); Collections.sort(nums); int a = nums.get(0); int b = nums.get(1); int c = nums.get(2); if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
Main.java:11: error: cannot find symbol for (int i = 0; i < noDataSet; i++) { ^ symbol: variable noDataSet location: class Main 1 error
s646465787
p00003
Java
import java.util.Scanner; public class main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(), m = 0; int a[] = new int[n], b[] = new int[n],c[] = new int[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); b[i] = sc.nextInt(); c[i] = sc.nextInt(); } for(int i = 0; i < n; i++){ if(a[i]<b[i]){ m = a[i]; a[i] = b[i]; b[i] = m; } else { if(a[i]<c[i]){ m = a[i]; a[i] = c[i]; c[i] = m; } } if(a[i]*a[i] == b[i]*b[i] + c[i]*c[i]){ System.out.println("Yes"); } else { System.out.println("No"); } } } }
Main.java:2: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
s293264061
p00003
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(side); 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); } } }
Main.java:16: error: cannot find symbol int length[] = new length[3]; ^ symbol: class length location: class Main Main.java:21: error: cannot find symbol Arrays.sort(side); ^ symbol: variable side location: class Main 2 errors
s681178050
p00003
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(side); 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); } }
Main.java:25: error: '{' expected } catch (Exception ex) System.exit(0); ^ Main.java:27: error: reached end of file while parsing } ^ 2 errors
s081314405
p00003
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(side); 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)}; } }
Main.java:25: error: ';' expected } catch (Exception ex) {System.exit(0)}; ^ 1 error
s753852171
p00003
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(side); 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)} } }
Main.java:25: error: ';' expected } catch (Exception ex) {System.exit(0)} ^ 1 error
s522288912
p00003
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(side); 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);} } }
Main.java:16: error: cannot find symbol int length[] = new length[3]; ^ symbol: class length location: class Main Main.java:21: error: cannot find symbol Arrays.sort(side); ^ symbol: variable side location: class Main 2 errors
s579528890
p00003
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);} } }
Main.java:16: error: cannot find symbol int length[] = new length[3]; ^ symbol: class length location: class Main 1 error
s956040386
p00003
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);} } }
Main.java:16: error: cannot find symbol int length[] = new length[3]; ^ symbol: class length location: class Main 1 error
s104139403
p00003
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);} } }
Main.java:16: error: cannot find symbol int[] length = new length[3]; ^ symbol: class length location: class Main 1 error
s713342684
p00003
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);} } }
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
s009022396
p00003
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);} } }
Main.java:16: error: cannot find symbol int length[] = new length[3]; ^ symbol: class length location: class Main 1 error
s715991151
p00003
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 side[] = new side[3]; for(int i = 0; i < n; i++) { st = new StringTokenizer(r.readLine()); for(int j = 0; j < 3; j++) side[j] = Integer.parseInt(st.nextToken()); Arrays.sort(length); if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) System.out.println("YES"); else System.out.println("NO"); } } catch (Exception ex) {System.exit(0);} } }
Main.java:16: error: cannot find symbol int side[] = new side[3]; ^ symbol: class side location: class Main Main.java:21: error: cannot find symbol Arrays.sort(length); ^ symbol: variable length location: class Main 2 errors
s909514261
p00003
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 side[] = new side[3]; for(int i = 0; i < n; i++) { st = new StringTokenizer(r.readLine()); for(int j = 0; j < 3; j++) side[j] = Integer.parseInt(st.nextToken()); Arrays.sort(side); if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) System.out.println("YES"); else System.out.println("NO"); } } catch (Exception ex) {System.exit(0);} } }
Main.java:16: error: cannot find symbol int side[] = new side[3]; ^ symbol: class side location: class Main 1 error
s392117673
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Vol0_0003 { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; int[] tri = new int[3]; int count=Integer.parseInt(br.readLine()); while(count<0){ System.out.println("????????´???"); count=Integer.parseInt(br.readLine()); } for(int i=0;i<count;i++){ str=br.readLine(); tri[0]=getA(str); tri[1]=getB(str); tri[2]=getC(str); sortTri(tri); if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } public static int getA(String str){ int index,num; index = str.indexOf(" "); num=Integer.parseInt(str.substring(0,index)); return num; } public static int getB(String str){ int index,num; index = str.indexOf(" "); num=Integer.parseInt(str.substring(index+1,str.indexOf(" ",2))); return num; } public static int getC(String str){ int index,num=1; index = str.indexOf(" ",2); num=Integer.parseInt(str.substring(index+1)); return num; } public static void sortTri(int[] num){ int tmp; for(int i=0;i<num.length-1;i++){ for(int j=i+1;j<num.length;j++){ if(num[i]>num[j]){ tmp=num[i]; num[i]=num[j]; num[j]=tmp; } } } } }
Main.java:5: error: class Vol0_0003 is public, should be declared in a file named Vol0_0003.java public class Vol0_0003 { ^ 1 error
s922310488
p00003
Java
import java.io.*; public class Main { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; int[] tri = new int[3]; int count=Integer.parseInt(br.readLine()); while(count<0){ count=Integer.parseInt(br.readLine()); } for(int i=0;i<count;i++){ str=br.readLine(); tri[0]=getA(str); tri[1]=getB(str); tri[2]=getC(str); sortTri(tri); if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } return 0; } public static int getA(String str){ int index,num; index = str.indexOf(" "); num=Integer.parseInt(str.substring(0,index)); return num; } public static int getB(String str){ int index,num; index = str.indexOf(" "); num=Integer.parseInt(str.substring(index+1,str.indexOf(" ",2))); return num; } public static int getC(String str){ int index,num=1; index = str.indexOf(" ",2); num=Integer.parseInt(str.substring(index+1)); return num; } public static void sortTri(int[] num){ int tmp; for(int i=0;i<num.length-1;i++){ for(int j=i+1;j<num.length;j++){ if(num[i]>num[j]){ tmp=num[i]; num[i]=num[j]; num[j]=tmp; } } } } }
Main.java:30: error: incompatible types: unexpected return value return 0; ^ 1 error
s626269346
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class RightTriangle { public static void main(String[] a){ BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String line; int numDS = -1; int aSide = -1; int bSide = -1; int cSide = -1; ArrayList <String> results = new ArrayList<String>(); //get number of data sets try { while ((line = stdin.readLine()) != null && line.length()!= 0) { String[] checker = line.split(" "); if (checker.length == 1){ numDS = Integer.parseInt(checker[0]); } else if (checker.length == 3){ int temp1 = Integer.parseInt(checker[0]); int temp2 = Integer.parseInt(checker[1]); int temp3 = Integer.parseInt(checker[2]); if (temp1 < 1 || temp1 >1000 || temp2 < 1 || temp2 >1000 || temp3 < 1 || temp3 >1000){ results.add("NO"); } else { //get the highest number and place to cSide if (temp1 > temp2 && temp1> temp3){ cSide = temp1; aSide = temp2; bSide = temp3; } else if (temp2 > temp1 && temp2 > temp3){ cSide = temp2; aSide = temp1; bSide = temp3; } else { cSide = temp3; aSide = temp2; bSide = temp1; } //Pythagorean if ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){ results.add("YES"); } else { results.add("NO"); } if (results.size() == numDS){ break; } } } } //print result for (String s: results){ System.out.println(s); } } catch (NumberFormatException e) { // TODO Auto-generated catch block //e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block //e.printStackTrace(); } } }
Main.java:7: error: class RightTriangle is public, should be declared in a file named RightTriangle.java public class RightTriangle { ^ 1 error
s683918141
p00003
Java
import java.io.*; public class Main { public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // ????§???¢?????°?????\??? System.out.print("????§???¢?????°:"); int num = Integer.parseInt(br.readLine()); int[][] tryangle= new int[num][3]; // ??\??????????????°???????§???¢???????????????????????\??? for (int i = 0; i < num; i++) { System.out.println((i + 1) + "??????:"); for (int j = 0; j < tryangle[i].length; j++) { System.out.print((j + 1) + "????????????:"); tryangle[i][j] = Integer.parseInt(br.readLine()); } System.out.println(); } final int adge1=0; final int adge2=1; final int adge3=2; //??´?§?????§???¢????????? for(int i=0;i<num;i++){ int a = tryangle[i][adge1]*tryangle[i][adge1]; int b = tryangle[i][adge2]*tryangle[i][adge2]; int c = tryangle[i][adge3]*tryangle[i][adge3]; if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:26: error: variable a is already defined in method main(String[]) int a = tryangle[i][adge1]*tryangle[i][adge1]; ^ 1 error
s983283372
p00003
Java
import java.io.*; public class Main { public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); int[][] tryangle= new int[num][3]; for (int i = 0; i < num; i++) { for (int j = 0; j < tryangle[i].length; j++) { tryangle[i][j] = Integer.parseInt(br.readLine()); } System.out.println(); } final int adge1=0; final int adge2=1; final int adge3=2; for(int i=0;i<num;i++){ int a = tryangle[i][adge1]*tryangle[i][adge1]; int b = tryangle[i][adge2]*tryangle[i][adge2]; int c = tryangle[i][adge3]*tryangle[i][adge3]; if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:20: error: variable a is already defined in method main(String[]) int a = tryangle[i][adge1]*tryangle[i][adge1]; ^ 1 error
s401519142
p00003
Java
import java.io.*; public class Main { private static final int adge1=0; private static final int adge2=1; private static final int adge3=2; public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); int[][] tryangle= new int[num][3]; for (int i = 0; i < num; i++) { for (int j = 0; j < tryangle[i].length; j++) { tryangle[i][j] = Integer.parseInt(br.readLine()); } System.out.println(); } for(int i=0;i<num;i++){ int a = tryangle[i][adge1]*tryangle[i][adge1]; int b = tryangle[i][adge2]*tryangle[i][adge2]; int c = tryangle[i][adge3]*tryangle[i][adge3]; if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:22: error: variable a is already defined in method main(String[]) int a = tryangle[i][adge1]*tryangle[i][adge1]; ^ 1 error
s452086420
p00003
Java
import java.io.*; public class Main { private static final int adge1=0; private static final int adge2=1; private static final int adge3=2; public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); int[][] tryangle= new int[num][3]; for (int i = 0; i < num; i++) { for (int j = 0; j < tryangle[i].length; j++) { tryangle[i][j] = Integer.parseInt(br.readLine()); } System.out.println(); } int a,b,c; for(int i=0;i<num;i++){ a = tryangle[i][adge1]*tryangle[i][adge1]; b = tryangle[i][adge2]*tryangle[i][adge2]; c = tryangle[i][adge3]*tryangle[i][adge3]; if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:20: error: variable a is already defined in method main(String[]) int a,b,c; ^ 1 error
s741093107
p00003
Java
public class Main { private static final int subNum = 3; private static final int adge1 = 0; private static final int adge2 = 1; private static final int adge3 = 2; public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); int[][] tryangle = new int[num][subNum]; for (int i = 0; i < num; i++) { String str = br.readLine(); String[] strBuf = str.split(" "); for (int j = 0; j < subNum; j++) { tryangle[i][j] = Integer.parseInt(strBuf[j]); } } int x, y, z; for (int i = 0; i < num; i++) { x = tryangle[i][adge1] * tryangle[i][adge1]; y = tryangle[i][adge2] * tryangle[i][adge2]; z = tryangle[i][adge3] * tryangle[i][adge3]; if (((x + y) == z) || ((y + z) == x) || ((x + z) == y)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:8: error: cannot find symbol public static void main(String[] a) throws IOException { ^ symbol: class IOException location: class Main Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main 4 errors
s974792080
p00003
Java
import java.io.*; public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[]; int N,i; int Line[]=new int[3]; i=1; N=int(in.readLine()); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } }
Main.java:3: 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) Main.java:5: error: array dimension missing String str[]=new String[]; ^ Main.java:9: error: '.class' expected N=int(in.readLine()); ^ Main.java:9: error: ';' expected N=int(in.readLine()); ^ 4 errors
s150777232
p00003
Java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[]; int N,i; int Line[]=new int[3]; i=1; N=int(in.readLine()); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } } }
Main.java:6: error: array dimension missing String str[]=new String[]; ^ Main.java:10: error: '.class' expected N=int(in.readLine()); ^ Main.java:10: error: ';' expected N=int(in.readLine()); ^ 3 errors
s045982898
p00003
Java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=int(in.readLine()); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } } }
Main.java:10: error: '.class' expected N=int(in.readLine()); ^ Main.java:10: error: ';' expected N=int(in.readLine()); ^ 2 errors
s590642702
p00003
Java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[]; int N,i; int Line[]=new int[3]; i=1; N=in.nextInt(); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } } }
Main.java:6: error: array dimension missing String str[]=new String[]; ^ 1 error
s916369893
p00003
Java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=in.nextInt(); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } } }
Main.java:10: error: cannot find symbol N=in.nextInt(); ^ symbol: method nextInt() location: variable in of type BufferedReader Main.java:16: error: bad operand types for binary operator '^' if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ ^ first type: boolean second type: int Main.java:19: error: bad operand types for binary operator '^' else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ ^ first type: boolean second type: int Main.java:22: error: bad operand types for binary operator '^' else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ ^ first type: boolean second type: int 4 errors
s516855985
p00003
Java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); while(i<=N){ str=in.readLine().split(" ",0); for(int j=0;j<=2;j++){ Line[i]=Integer.parseInt(str[i]); } if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ System.out.println("YES"); } else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ System.out.println("YES"); } else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ System.out.println("YES"); } else{ System.out.println("NO"); } i++; } } }
Main.java:16: error: bad operand types for binary operator '^' if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){ ^ first type: boolean second type: int Main.java:19: error: bad operand types for binary operator '^' else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){ ^ first type: boolean second type: int Main.java:22: error: bad operand types for binary operator '^' else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){ ^ first type: boolean second type: int 3 errors
s275026626
p00003
Java
import java.io.*; class Main{ public static void Triangle(int[3] data){ int a,b,c,d; a=Math.pow(data[0],2); b=Math.pow(data[1],2); c=Math.pow(data[2],2); d=Math.sqrt(a+b); if(d==data[2]){ System.out.println("YES"); } d=Math.sqrt(a+c); else if(d==data[1]){ System.out.println("YES"); } d=Math.sqrt(b+c); else if(d==data[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); while(i<=N){ str=(in.readLine()).split(" ",0); for(int j=0;j<=2;j++){ Line[j]=Integer.parseInt(str[j]); } Triangle(Line); i++; } } }
Main.java:4: error: ']' expected public static void Triangle(int[3] data){ ^ Main.java:14: error: 'else' without 'if' else if(d==data[1]){ ^ Main.java:18: error: 'else' without 'if' else if(d==data[0]){ ^ 3 errors
s150364976
p00003
Java
import java.io.*; class Main{ public static void Triangle(int[] data){ int a,b,c,d; a=Math.pow(data[0],2); b=Math.pow(data[1],2); c=Math.pow(data[2],2); d=Math.sqrt(a+b); if(d==data[2]){ System.out.println("YES"); } d=Math.sqrt(a+c); else if(d==data[1]){ System.out.println("YES"); } d=Math.sqrt(b+c); else if(d==data[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); while(i<=N){ str=(in.readLine()).split(" ",0); for(int j=0;j<=2;j++){ Line[j]=Integer.parseInt(str[j]); } Triangle(Line); i++; } } }
Main.java:14: error: 'else' without 'if' else if(d==data[1]){ ^ Main.java:18: error: 'else' without 'if' else if(d==data[0]){ ^ 2 errors
s583072774
p00003
Java
import java.io.*; class Main{ public static void Triangle(int[] data){ int a,b,c,d; a=Math.pow(data[0],2); b=Math.pow(data[1],2); c=Math.pow(data[2],2); d=Math.sqrt(a+b); if(d==data[2]){ System.out.println("YES"); } d=Math.sqrt(a+c); elseif(d==data[1]){ System.out.println("YES"); } d=Math.sqrt(b+c); elseif(d==data[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); while(i<=N){ str=(in.readLine()).split(" ",0); for(int j=0;j<=2;j++){ Line[j]=Integer.parseInt(str[j]); } Triangle(Line); i++; } } }
Main.java:14: error: ';' expected elseif(d==data[1]){ ^ Main.java:18: error: ';' expected elseif(d==data[0]){ ^ Main.java:21: error: 'else' without 'if' else{ ^ 3 errors
s656362105
p00003
Java
import java.io.*; class Main{ public static void Triangle(int[] data){ int a,b,c,d; a=Math.pow(data[0],2); b=Math.pow(data[1],2); c=Math.pow(data[2],2); d=(int)Math.sqrt(a+b); if(d==data[2]){ System.out.println("YES"); } else if((d=(int)Math.sqrt(a+c))==data[1]){ System.out.println("YES"); } else if((d=(int)Math.sqrt(b+c))==data[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); while(i<=N){ str=(in.readLine()).split(" ",0); for(int j=0;j<=2;j++){ Line[j]=Integer.parseInt(str[j]); } Triangle(Line); i++; } } }
Main.java:6: error: incompatible types: possible lossy conversion from double to int a=Math.pow(data[0],2); ^ Main.java:7: error: incompatible types: possible lossy conversion from double to int b=Math.pow(data[1],2); ^ Main.java:8: error: incompatible types: possible lossy conversion from double to int c=Math.pow(data[2],2); ^ 3 errors
s647358524
p00003
Java
import java.io.*; class Main{ public static void Triangle(int[] data){ int a,b,c,d,e,f; a=(int)Math.pow(data[0],2); b=(int)Math.pow(data[1],2); c=(int)Math.pow(data[2],2); d=(int)Math.sqrt(a+b); e=(int)Math.sqrt(a+c); f=(int)Math.sqrt(b+c); if(d==data[2]){ System.out.printf("YES\n"); } else if(e==data[1]){ System.out.printf("YES\n"); } else if(f==data[0]){ System.out.printf("YES\n"); } else{ System.out.printf("NO\n"); } } public static void main(String[] args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String str[]=new String[3]; int N,i; int Line[]=new int[3]; i=1; N=Integer.parseInt(in.readLine()); String inputstr; while(i<=N){ inputstr=in.readLine(); str=stra.split(" ",0); for(int j=0;j<=2;j++){ Line[j]=Integer.parseInt(str[j]); } Triangle(Line); i++; } } }
Main.java:36: error: cannot find symbol str=stra.split(" ",0); ^ symbol: variable stra location: class Main 1 error
s485328271
p00003
Java
class Main { public static void main(String[] a){ Scanner scan = new Scanner(System.in); int x, y, z; while(scan.hasNext()){ x = scan.nextInt(); y = scan.nextInt(); z = scan.nextInt(); if(x*x + y*y == z*z || x*x + z*z == y*y || z*z + y*y == x*x) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s356913788
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class RightTriangle { private static int[] datasetint; public static void main(String[]arg)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); int count=Integer.parseInt(str); for (int i=0;i<=count;i++){ String[] datasetstr=str.split(" ",3); for (int j=0;j<=2;j++){ datasetint[j]=Integer.parseInt(datasetstr[j]); } Sort(datasetint); Boolean isRight=datasetint[0]==(datasetint[1]^2+datasetint[2]^2); if (isRight){ System.out.println("YES"); }else{ System.out.println("NO"); } } } private static void Sort(int[] datasetint){ for (int k=0;k<=1;k++){ for (int l=k+1;l<=2;l++){ if(datasetint[k]<datasetint[l]){ int temporary=datasetint[k]; datasetint[k]=datasetint[l]; datasetint[l]=temporary; } } } } }
Main.java:4: error: class RightTriangle is public, should be declared in a file named RightTriangle.java public class RightTriangle { ^ 1 error
s448867623
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); int numCases = Integer.parseInt(buffer.readLine()); String[] line; int[] lineInt; int A, B, C; for(int i = 0;i < numCases;i++){ line = buffer.readLine().split(); A = Integer.parseInt(line[0]); B = Integer.parseInt(line[1]); C = Integer.parseInt(line[2]); if( ((A * A) + (B * B)) == (C * C)) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:14: error: no suitable method found for split(no arguments) line = buffer.readLine().split(); ^ method String.split(String,int) is not applicable (actual and formal argument lists differ in length) method String.split(String,int,boolean) is not applicable (actual and formal argument lists differ in length) method String.split(char,int,boolean) is not applicable (actual and formal argument lists differ in length) method String.split(String) is not applicable (actual and formal argument lists differ in length) 1 error
s375851296
p00003
Java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ List<String> list = new ArrayList<String>(); boolean flag = false; int[] tri = new int[3]; int N = scan.nextInt(); for(int i = 0; i < N; i++){ for(int j = 0; j < 3; j++){ tri[j] = scan.nextInt(); } for(int j = 0; j < 3 - 1; j++){ for(int k = 3 - 1; k > j; k++){ if(tri[j] < tri[k]){ int big = tri[k]; tri[k] = tri[j]; tri[j] = big: } } } if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){ flag = true; } else{ flag = false; } list.add(flag? "YES" : "NO"); } for(String s : list){ System.out.println(s); } } }
Main.java:20: error: ';' expected tri[j] = big: ^ 1 error
s743324563
p00003
Java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ List<String> list = new ArrayList<String>(); int[] tri = new int[3]; boolean flag = false; int N = scan.nextInt(); for(int i = 0; i < N; i++){ for(int j = 0; j < 3; j++){ tri[j] = scan.nextInt(); } for(int j = 0; j < tri.length - 1; j++){ for(int k = tri.lengt - 1; k > j; k--){ if(tri[j] < tri[k]){ int big = tri[k]; tri[k] = tri[j]; tri[j] = big; } } } if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){ flag = true; } else{ flag = false; } list.add(flag? "YES" : "NO"); } for(String s : list){ System.out.printf("%s\n", s); } } }
Main.java:16: error: cannot find symbol for(int k = tri.lengt - 1; k > j; k--){ ^ symbol: variable lengt location: variable tri of type int[] 1 error
s769810170
p00003
Java
import java.util.Scanner; public class RigthAngle { public static int Func(int a,int b,int c){ if(a*a==b*b+c*c){ return 1; } return 0; } public static void main(String[] args) { Scanner sc=new Scanner(System.in); int TestCase=sc.nextInt(); for (int i = 1; i <= TestCase; i++) { int ans=0; int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); if(a>b && a>c) { ans=Func(a,b,c); } else if(b>c && b>a) { ans=Func(b,a,c); } else if(c>b && c>a) { ans=Func(c,a,b); } if(ans==1) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:2: error: class RigthAngle is public, should be declared in a file named RigthAngle.java public class RigthAngle { ^ 1 error
s131413818
p00003
Java
import java.util.Scanner; public static int Func(int a,int b,int c){ if(a*a==b*b+c*c){ return 1; } return 0; } public class Main { Scanner sc=new Scanner(System.in); int TestCase=sc.nextInt(); for (int i = 1; i <= TestCase; i++) { int ans=0; int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); if(a>b && a>c) { ans=Func(a,b,c); } else if(b>c && b>a) { ans=Func(b,a,c); } else if(c>b && c>a) { ans=Func(c,a,b); } if(ans==1) System.out.println("YES"); else System.out.println("NO"); } }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static int Func(int a,int b,int c){ ^ (use --enable-preview to enable unnamed classes) Main.java:24: error: illegal start of type for (int i = 1; i <= TestCase; i++) { ^ Main.java:24: error: <identifier> expected for (int i = 1; i <= TestCase; i++) { ^ Main.java:24: error: <identifier> expected for (int i = 1; i <= TestCase; i++) { ^ Main.java:24: error: <identifier> expected for (int i = 1; i <= TestCase; i++) { ^ 5 errors
s592311416
p00003
Java
public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){ System.out.println("YES"); }else{ System.out.println("NO"); } } scan.close(); } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s377452077
p00003
Java
public class Main { public static void main(String args[] ) throws Exception { Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ int count = scanner.nextInt();//??????????????°?????????????????? for(int i = 0;i<count;i++){ double a = scanner.nextInt();//??????????????°?????????????????? double b = scanner.nextInt();//????????????????????????????????°?????????????????? double c = scanner.nextInt();//??????????????????3???????????°?????????????????? double d = a*a; double f = b*b; double g = c*c; if(d == f+g || f== d+g || g==d+f){ System.out.println("YES\n"); }else{ System.out.println("NO\n"); } } } } }
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s517295816
p00003
Java
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main0003{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); for(int i= 0; i < n; i++){ String[] input = br.readLine().split(" "); int a = Integer.parseInt(input[0]); int b = Integer.parseInt(input[1]); int c = Integer.parseInt(input[2]); boolean isRight = false; if(a>=c && a>=b) isRight = (a*a == b*b + c*c); else if(b>=c && b>=a) isRight = (b*b == c*c + a*a); else if(c>=a && c>=b) isRight = (c*c == a*a + b*b); if(isRight) System.out.println("YES"); else System.out.println("NO"); } } }
Main.java:5: error: class Main0003 is public, should be declared in a file named Main0003.java public class Main0003{ ^ 1 error
s663371061
p00003
Java
public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { final int n = sc.nextInt(); while (sc.hasNext()) { int[] x = new int[3]; x[0] = sc.nextInt(); x[1] = sc.nextInt(); x[2] = sc.nextInt(); Arrays.sort(x); boolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]); System.out.println(isTriangle ? "YES" : "NO"); } } } }
Main.java:3: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:10: error: cannot find symbol Arrays.sort(x); ^ symbol: variable Arrays location: class Main 3 errors
s089857186
p00003
Java
Class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int a[3]; string str[]; n = Integer.parseInt(br.readLine()); str[]=new str[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); a[0]=max(a,b,c); if(a[0]==a){ a[1]=b; a[2]=c; }elseif(a[0]==b){ a[1]=a; a[2]=c; }elseif(a[0]==c){ a[1]=b; a[2]=a; } if(a[0]^2==a[1]^2+a[2]^2){ str[i]="YES"; }else{ str[i]="NO"; } } for(int i=0;i<n;i++){ System.out.println(str[i]); } } } }
Main.java:1: error: class, interface, enum, or record expected Class Tenmou{ ^ Main.java:10: error: not a statement str[]=new str[n]; ^ Main.java:10: error: not a statement str[]=new str[n]; ^ Main.java:2: 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) Main.java:6: error: ']' expected int a[3]; ^ Main.java:10: error: ';' expected str[]=new str[n]; ^ Main.java:21: error: ';' expected }elseif(a[0]==b){ ^ Main.java:24: error: ';' expected }elseif(a[0]==c){ ^ Main.java:39: error: class, interface, enum, or record expected } ^ 9 errors
s752879791
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int a[3]; string str[]; n = Integer.parseInt(br.readLine()); str[]=new str[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); a[0]=max(a,b,c); if(a[0]==a){ a[1]=b; a[2]=c; }elseif(a[0]==b){ a[1]=a; a[2]=c; }elseif(a[0]==c){ a[1]=b; a[2]=a; }//if if(a[0]^2==a[1]^2+a[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:6: error: ']' expected int a[3]; ^ Main.java:10: error: not a statement str[]=new str[n]; ^ Main.java:10: error: ';' expected str[]=new str[n]; ^ Main.java:10: error: not a statement str[]=new str[n]; ^ Main.java:21: error: ';' expected }elseif(a[0]==b){ ^ Main.java:24: error: ';' expected }elseif(a[0]==c){ ^ 6 errors
s717018454
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; string str[]; n = Integer.parseInt(br.readLine()); str[]=new char[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }elseif(x[0]==b){ x[1]=a; x[2]=c; }elseif(x[0]==c){ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:12: error: not a statement str[]=new char[n]; ^ Main.java:12: error: ';' expected str[]=new char[n]; ^ Main.java:12: error: not a statement str[]=new char[n]; ^ Main.java:24: error: ';' expected }elseif(x[0]==b){ ^ Main.java:27: error: ';' expected }elseif(x[0]==c){ ^ 5 errors
s312404369
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; n = Integer.parseInt(br.readLine()); string str[]; str[]=new char[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }elseif(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:11: error: not a statement str[]=new char[n]; ^ Main.java:11: error: ';' expected str[]=new char[n]; ^ Main.java:11: error: not a statement str[]=new char[n]; ^ Main.java:23: error: ';' expected }elseif(x[0]==b){ ^ Main.java:26: error: 'else' without 'if' }else{ ^ 5 errors
s759399914
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; n = Integer.parseInt(br.readLine()); string str[]; str[]=new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }elseif(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:11: error: not a statement str[]=new string[n]; ^ Main.java:11: error: ';' expected str[]=new string[n]; ^ Main.java:11: error: not a statement str[]=new string[n]; ^ Main.java:23: error: ';' expected }elseif(x[0]==b){ ^ Main.java:26: error: 'else' without 'if' }else{ ^ 5 errors
s053327962
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str[]=new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }elseif(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:13: error: not a statement str[]=new string[n]; ^ Main.java:13: error: ';' expected str[]=new string[n]; ^ Main.java:13: error: not a statement str[]=new string[n]; ^ Main.java:25: error: ';' expected }elseif(x[0]==b){ ^ Main.java:28: error: 'else' without 'if' }else{ ^ 5 errors
s189823228
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }elseif(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:25: error: ';' expected }elseif(x[0]==b){ ^ Main.java:28: error: 'else' without 'if' }else{ ^ 2 errors
s452489535
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Tenmou Main.java:12: error: cannot find symbol string str[]; ^ symbol: class string location: class Tenmou Main.java:13: error: cannot find symbol str = new string[n]; ^ symbol: class string location: class Tenmou Main.java:21: error: cannot find symbol x[0]=max(a,b,c); ^ symbol: method max(int,int,int) location: class Tenmou Main.java:32: error: bad operand types for binary operator '^' if(x[0]^2==x[1]^2+x[2]^2){ ^ first type: int second type: boolean 7 errors
s271454074
p00003
Java
class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Tenmou Main.java:12: error: cannot find symbol string str[]; ^ symbol: class string location: class Tenmou Main.java:13: error: cannot find symbol str = new string[n]; ^ symbol: class string location: class Tenmou Main.java:21: error: cannot find symbol x[0]=max(a,b,c); ^ symbol: method max(int,int,int) location: class Tenmou Main.java:32: error: bad operand types for binary operator '^' if(x[0]^2==x[1]^2+x[2]^2){ ^ first type: int second type: boolean 7 errors
s968967614
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:14: error: cannot find symbol string str[]; ^ symbol: class string location: class Tenmou Main.java:15: error: cannot find symbol str = new string[n]; ^ symbol: class string location: class Tenmou Main.java:23: error: cannot find symbol x[0]=max(a,b,c); ^ symbol: method max(int,int,int) location: class Tenmou Main.java:34: error: bad operand types for binary operator '^' if(x[0]^2==x[1]^2+x[2]^2){ ^ first type: int second type: boolean 4 errors
s006492437
p00003
Java
import java.*; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:1: error: package java does not exist import java.*; ^ Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Tenmou Main.java:13: error: cannot find symbol string str[]; ^ symbol: class string location: class Tenmou Main.java:14: error: cannot find symbol str = new string[n]; ^ symbol: class string location: class Tenmou Main.java:22: error: cannot find symbol x[0]=max(a,b,c); ^ symbol: method max(int,int,int) location: class Tenmou Main.java:33: error: bad operand types for binary operator '^' if(x[0]^2==x[1]^2+x[2]^2){ ^ first type: int second type: boolean 8 errors
s659701672
p00003
Java
import java.*; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:1: error: package java does not exist import java.*; ^ Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Tenmou Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Tenmou Main.java:13: error: cannot find symbol string str[]; ^ symbol: class string location: class Tenmou Main.java:14: error: cannot find symbol str = new string[n]; ^ symbol: class string location: class Tenmou Main.java:22: error: cannot find symbol x[0]=max(a,b,c); ^ symbol: method max(int,int,int) location: class Tenmou Main.java:33: error: bad operand types for binary operator '^' if(x[0]^2==x[1]^2+x[2]^2){ ^ first type: int second type: boolean 8 errors
s552761349
p00003
Java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int a , b , c , max_num1, max_num2; String output; String y = "YES"; String n = "NO"; //String n = s.next(); int n = Integer.parseInt(s.nextLine()); for(int i = 0;i<n;i++){ String line = s.nextLine(); String[] array = line.split(" ",0); a = Integer.parseInt(array[0]); b = Integer.parseInt(array[1]); c = Integer.parseInt(array[2]); if(a >= b && a >= c){ if(a*a == b*b+c*c){ output = y; }else{ output = n; } } else if(b >= a && b >= c){ if(b*b == a*a+c*c){ output = y; }else{ output = n; } } else if(c >= a && a >= b){ if(c*c == b*b+a*a){ output = y; }else{ output = n; } }else{ output = n; } System.out.println(output); } } }
Main.java:11: error: variable n is already defined in method main(String[]) int n = Integer.parseInt(s.nextLine()); ^ Main.java:23: error: incompatible types: int cannot be converted to String output = n; ^ Main.java:30: error: incompatible types: int cannot be converted to String output = n; ^ Main.java:37: error: incompatible types: int cannot be converted to String output = n; ^ Main.java:40: error: incompatible types: int cannot be converted to String output = n; ^ 5 errors
s919903731
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; string strbf BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:12: error: ';' expected string strbf ^ Main.java:18: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:18: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 3 errors
s784855076
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; string strbf; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); string str[]; str = new string[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:18: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:18: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 2 errors
s253824555
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; String strbf; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]^2==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:18: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:18: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 2 errors
s672501724
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; String strbf; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=Math.max(a,b,c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if(x[0]*x[0]==x[1]^2+x[2]^2){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:18: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:18: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 2 errors
s045512820
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; String strbf; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); c = Integer.parseInt(br.readLine()); x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:18: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:18: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 2 errors
s740446921
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; String strbf; strbf = "0" BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:13: error: ';' expected strbf = "0" ^ Main.java:19: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:19: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:29: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:29: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:39: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:39: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 9 errors
s906598520
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; String strbf; strbf = "0"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:19: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:19: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:29: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:29: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:39: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:39: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 8 errors
s340013171
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; x= new int[3]; x={0,0,0}; String strbf; strbf = "0"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:12: error: illegal start of expression x={0,0,0}; ^ Main.java:12: error: not a statement x={0,0,0}; ^ Main.java:12: error: ';' expected x={0,0,0}; ^ Main.java:20: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:20: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:30: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:30: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:35: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:35: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:40: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:40: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 11 errors
s015174782
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; int x[]; //x= new int[3]; //x={0,0,0}; int x[] = {0,0,0}; String strbf; strbf = "0"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:21: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:21: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:36: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:36: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 8 errors
s841397180
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; //int x[]; //x= new int[3]; //x={0,0,0}; int x[] = {0,0,0}; String strbf; strbf = "0"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:21: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:21: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:36: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:36: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 8 errors
s392639594
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } n = Integer.parseInt(strbf); String str[]; str = new String[n]; for(int i=0;i<n;i++){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:21: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:21: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:34: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:48: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:48: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ 8 errors
s380883916
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.NumberFormatException class Tenmou{ public static void main (String[] args) { int n; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ n = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:4: error: ';' expected import java.io.NumberFormatException ^ Main.java:23: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:23: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:30: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:44: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:50: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:50: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:53: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:59: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:59: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:62: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ 13 errors
s414304014
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.NumberFormatException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ n = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:23: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:23: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:30: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:44: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:50: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:50: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:53: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:59: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:59: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:62: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ 12 errors
s419037761
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; class Tenmou{ public static void main (String[] args) { int n; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ n = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:23: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:23: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:30: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:41: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:41: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:44: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:50: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:50: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:53: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:59: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:59: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:62: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ 12 errors
s199550361
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.NumberFormatException; class Tenmou{ public static void main (String[] args) { int n; n=1; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ n = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ a = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ b = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ c = Integer.parseInt(br.readLine()); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:24: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:24: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:42: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:42: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:45: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:51: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:51: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:54: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:60: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:60: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:63: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ 12 errors
s508638482
p00003
Java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; //import java.io.NumberFormatException; class Tenmou{ public static void main (String[] args) { int n; n=1; int a,b,c; a=0; b=0; c=0; int x[] = {0,0,0}; String strbf; strbf = "1"; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ n = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } String str[]; str = new String[n]; for(int i=0;i<n;i++){ try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ a = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } try{ b = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } try{ strbf = br.readLine(); }catch(IOException e){ System.out.println("??\?????¨??????:" + e.getMessage()); } tyr{ c = Integer.parseInt(strbf); }catch (NumberFormatException e) { System.out.println("?????????" + e); System.out.println("?????°?????´??°??§??\????????????????????????"); } x[0]=Math.max(a,b); x[0]=Math.max(x[0],c); if(x[0]==a){ x[1]=b; x[2]=c; }else if(x[0]==b){ x[1]=a; x[2]=c; }else{ x[1]=b; x[2]=a; }//if if((x[0]*x[0])==(x[1]*x[1]+x[2]*x[2])){ str[i]="YES"; }else{ str[i]="NO"; }//if }//for for(int i=0;i<n;i++){ System.out.println(str[i]); }//for }//method }//class
Main.java:24: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:24: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:31: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:42: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:42: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:48: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:54: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:54: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:60: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:66: error: illegal escape character System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:66: error: ';' expected System.out.println("??\????????????:" + e.getMessage()); ^ Main.java:68: error: not a statement tyr{ ^ Main.java:68: error: ';' expected tyr{ ^ Main.java:72: error: illegal escape character System.out.println("????????????????????\????????????????????????"); ^ Main.java:70: error: 'catch' without 'try' }catch (NumberFormatException e) { ^ 15 errors
s790833998
p00003
Java
import java.io.*; import java.util.*; public class???Main { public static void main(String[] args) throws IOException{ BufferedReader bf=new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(bf.readLine()); ArrayList<String> ans=new ArrayList<String>(); int[] num={}; for(int i=0;i<n;i++){ String[] str=bf.readLine().split(" "); for(int j=0;j<3;j++){ num[j]=Integer.parseInt(str[j]); } Arrays.sort(num); if(num[2]*num[2]==(num[1]*num[1])+(num[3]*num[3])) ans.add("NO\n"); else ans.add("YES\n"); } System.out.println(ans); } }
Main.java:3: error: <identifier> expected public class???Main { ^ 1 error
s972063804
p00003
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String argv[]) throws IOException { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String str; String triangle_side_str[] = new String[3]; int max = 0; int remain[] = new int[2]; int triangle_side_int[] = new int[3]; int N = Integer.parseInt(br.readLine()); for (int i=0;i<N;i++) { str = br.readLine(); remain[0] = 0; remain[1] = 0; max = 0; triangle_side_str = str.split(" "); for (int i = 0; i < 3; i++) { triangle_side_int[i] = Integer.parseInt(triangle_side_str[i]); if (max <= triangle_side_int[i]) { if (remain[1] == 0) remain[1] = max; else if (remain[0] == 0) remain[0] = max; max = triangle_side_int[i]; } else { if (remain[1] == 0) remain[1] = triangle_side_int[i]; else if (remain[0] == 0) remain[0] = triangle_side_int[i]; } } System.out.println(max); System.out.println(remain[0]); System.out.println(remain[1]); if (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) { System.out.println("YES"); } else System.out.println("NO"); } } }
Main.java:25: error: variable i is already defined in method main(String[]) for (int i = 0; i < 3; i++) { ^ 1 error
s196378419
p00003
Java
import java.util.Scanner; //Is it a Right Triangle? public class AOJ0003 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n--!=0){ int a[] = new int[3]; for(int i=0;i<3;i++){ a[i]=(int)Math.pow(sc.nextInt(), 2); } System.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?"YES":"NO"); } } }
Main.java:4: error: class AOJ0003 is public, should be declared in a file named AOJ0003.java public class AOJ0003 { ^ 1 error
s500478783
p00003
Java
import java.util.*; public class aoj0003 { static final Scanner stdin = new Scanner(System.in); static final String solve(int a, int b, int c){ return ( a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b ) ? "YES" : "NO"; } public static void main(String[] args) { int n = stdin.nextInt(); while( n-- != 0 ){ int a = stdin.nextInt(); int b = stdin.nextInt(); int c = stdin.nextInt(); System.out.println( solve(a,b,c) ); } } }
Main.java:2: error: class aoj0003 is public, should be declared in a file named aoj0003.java public class aoj0003 { ^ 1 error
s248246207
p00003
Java
public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int[][] box = new int[n][3]; for (int i = 0; i < n; i++) { for (int j = 0; j < 3; j++) { box[i][j] = sc.nextInt(); } } for (int i = 0; i < n; i++) { Arrays.sort(box[i]); int a = box[i][0]; int b = box[i][1]; int c = box[i][2]; if (c * c == a * a + b * b) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
Main.java:3: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:17: error: cannot find symbol Arrays.sort(box[i]); ^ symbol: variable Arrays location: class Main 3 errors
s825649805
p00003
Java
public class triangle { public static void main(String[] args) { int a = new java.util.Scanner(System.in).nextInt(); int b = new java.util.Scanner(System.in).nextInt(); int c = new java.util.Scanner(System.in).nextInt(); if (a * a == b * b + c * c ) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:1: error: class triangle is public, should be declared in a file named triangle.java public class triangle { ^ 1 error
s167574536
p00003
Java
public class triangle { public static void main(String[] args) { int a = new java.util.Scanner(System.in).nextInt(); int b = new java.util.Scanner(System.in).nextInt(); int c = new java.util.Scanner(System.in).nextInt(); if (a * a == b * b + c * c ) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:1: error: class triangle is public, should be declared in a file named triangle.java public class triangle { ^ 1 error
s405031852
p00003
Java
public class triangle.java { public static void main(String[] args) { int a = new java.util.Scanner(System.in).nextInt(); int b = new java.util.Scanner(System.in).nextInt(); int c = new java.util.Scanner(System.in).nextInt(); if (a * a == b * b + c * c ) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:1: error: '{' expected public class triangle.java { ^ 1 error