row_id
large_string
sid
large_string
submission_id
large_string
pid
large_string
problem_id
large_string
uid
large_string
user_id
large_string
date
int64
date_iso
timestamp[ms]
source_name
large_string
code
large_string
compilemessage
large_string
compile_status
large_string
exit_code
int64
javac_version
large_string
category
large_string
label_status
large_string
taxonomy_version
large_string
session_id
large_string
session_6h
large_string
source
large_string
original_status
large_string
code_size
int64
v2_s148401435
s148401435
s148401435
p03657
p03657
u458268106
u458268106
1,572,564,888
2019-10-31T23:34:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=1/(a+b); System.out.println(((a>2)?"Possible":"Impossible"); } }
Main.java:8: error: ')' or ',' expected System.out.println(((a>2)?"Possible":"Impossible"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p03657|0
u458268106|p03657|0
codenet
Compile Error
242
v2_s368242238
s368242238
s368242238
p03657
p03657
u476635134
u476635134
1,591,233,080
2020-06-04T01:11:20
Main.java
Impossible
Main.java:1: error: reached end of file while parsing Impossible ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476635134|p03657|0
u476635134|p03657|0
codenet
Compile Error
10
v2_s080841018
s080841018
s080841018
p03657
p03657
u492223956
u492223956
1,522,239,255
2018-03-28T12:14:15
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextINt(); int b = sc.nextInt(); if((a%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.ptintln("Possible") }else{ System.out.println("Impossible") } } ...
Main.java:8: error: ';' expected System.out.ptintln("Possible") ^ Main.java:10: error: ';' expected System.out.println("Impossible") ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492223956|p03657|0
u492223956|p03657|0
codenet
Compile Error
321
v2_s288749342
s288749342
s288749342
p03657
p03657
u492223956
u492223956
1,522,239,301
2018-03-28T12:15:01
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextINt(); int b = sc.nextInt(); if((a%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.ptintln("Possible"); }else{ System.out.println("Impossible"); } ...
Main.java:5: error: cannot find symbol int a = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner Main.java:8: error: cannot find symbol System.out.ptintln("Possible"); ^ symbol: method ptintln(String) location: variable out of type PrintSt...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492223956|p03657|0
u492223956|p03657|0
codenet
Compile Error
323
v2_s674250590
s674250590
s674250590
p03657
p03657
u492223956
u492223956
1,522,239,372
2018-03-28T12:16:12
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if((a%3==0)||(b%3==0)||(a+b %3 == 0)){ System.out.println("Possible"); }elser System.out.println("Impossible"); } ...
Main.java:10: error: ';' expected System.out.println("Impossible"); ^ Main.java:13: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492223956|p03657|0
u492223956|p03657|0
codenet
Compile Error
323
v2_s339410755
s339410755
s339410755
p03657
p03657
u511853544
u511853544
1,501,017,653
2017-07-25T21:20:53
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { br.lines() .map(line -> Arrays.stream(line.split(" ")) .ma...
Main.java:12: error: cannot find symbol int a = toknes[0]; ^ symbol: variable toknes location: class Main Main.java:13: error: cannot find symbol int b = toknes[1]; ^ symbol: variable toknes location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03657|0
u511853544|p03657|0
codenet
Compile Error
666
v2_s147024442
s147024442
s147024442
p03657
p03657
u511853544
u511853544
1,501,017,798
2017-07-25T21:23:18
Main.java
import java.io.*; import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) throws Exception { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { br.lines() .map(line -> Arrays.stream(line.split(" ")) ...
Main.java:12: error: cannot find symbol int a = toknes[0]; ^ symbol: variable toknes location: class Main Main.java:13: error: cannot find symbol int b = toknes[1]; ^ symbol: variable toknes location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03657|0
u511853544|p03657|0
codenet
Compile Error
685
v2_s461851557
s461851557
s461851557
p03657
p03657
u515713863
u515713863
1,503,649,678
2017-08-25T08:27:58
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import Main339A.IOUtils; /** * Built using CHelper plug-in Actua...
Main.java:9: error: package Main339A does not exist import Main339A.IOUtils; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u515713863|p03657|0
u515713863|p03657|0
codenet
Compile Error
1,715
v2_s283912012
s283912012
s283912012
p03657
p03657
u574367244
u574367244
1,500,171,365
2017-07-16T02:16:05
Main.java
class Main{ public static void main(String arg[]) throws IOException{ String message; int n=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); message = br.readLine(); String num[] = message.split(" "); message = br.readLine(); String nagasa[] = message.split(" "); n = Integer....
Main.java:3: error: cannot find symbol public static void main(String arg[]) throws IOException{ ^ symbol: class IOException location: class Main Main.java:6: error: cannot find symbol BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574367244|p03657|0
u574367244|p03657|0
codenet
Compile Error
768
v2_s561479699
s561479699
s561479699
p03657
p03657
u597436499
u597436499
1,529,936,312
2018-06-25T14:18:32
Main.java
a,b = map(int, input().split()) flag = 0 for i in [a,b,a+b]: if i % 3 == 0: flag = 1 break if flag: print("Possible") else: print("Impossible")
Main.java:1: error: class, interface, enum, or record expected a,b = map(int, input().split()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u597436499|p03657|0
u597436499|p03657|0
codenet
Compile Error
172
v2_s503137453
s503137453
s503137453
p03657
p03657
u603540589
u603540589
1,500,411,427
2017-07-18T20:57:07
Main.java
import java.util.*; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); ArrayList<int> ar = new ArrayList<>(); for(int i = 0; i < n; i++){ ...
Main.java:10: error: unexpected type ArrayList<int> ar = new ArrayList<>(); ^ required: reference found: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u603540589|p03657|0
u603540589|p03657|0
codenet
Compile Error
511
v2_s331327728
s331327728
s331327728
p03657
p03657
u692131329
u692131329
1,565,483,262
2019-08-11T00:27:42
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a%3==0 || b%3==0 (a+b)%3==0){ System.out.println("Possible"); }else{ System.out.println...
Main.java:8: error: ')' expected if(a%3==0 || b%3==0 (a+b)%3==0){ ^ Main.java:8: error: not a statement if(a%3==0 || b%3==0 (a+b)%3==0){ ^ Main.java:8: error: ';' expected if(a%3==0 || b%3==0 (a+b)%3==0){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u692131329|p03657|0
u692131329|p03657|0
codenet
Compile Error
362
v2_s934895586
s934895586
s934895586
p03657
p03657
u782190155
u782190155
1,500,172,797
2017-07-16T02:39:57
Main.java
import java.util.*; import java.util.Arrays; class Main{ public static void main(String args[]){ Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int a[] = new int[n]; int count = 0; for (count; count < n; count++){ a[count]=stdIn.nextInt(); } Arrays.sort(a); int ...
Main.java:11: error: not a statement for (count; count < n; count++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u782190155|p03657|0
u782190155|p03657|0
codenet
Compile Error
596
v2_s693410423
s693410423
s693410423
p03657
p03657
u843984346
u843984346
1,500,321,053
2017-07-17T19:50:53
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args){ FastScanner fs = new FastScanner(); long num1 = fs.nextLong(); ...
Main.java:13: error: ')' expected if((num1+num2) 3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible"); ^ Main.java:13: error: not a statement if((num1+num2) 3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible"); ^ Main.java:13: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843984346|p03657|1
u843984346|p03657|1
codenet
Compile Error
1,467
v2_s618569262
s618569262
s618569262
p03657
p03657
u843984346
u843984346
1,500,321,284
2017-07-17T19:54:44
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class A{ public static void main(String[] args){ FastScanner fs = new FastScanner(); long num1 = fs.nextLong(); l...
Main.java:13: error: cannot find symbol if( (num+1+num2)%3 == 0||num1%3 == 0||num2%3 == 0) System.out.println("Possible"); ^ symbol: variable num location: class A 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843984346|p03657|1
u843984346|p03657|1
codenet
Compile Error
1,465
v2_s087973699
s087973699
s087973699
p03657
p03657
u936066246
u936066246
1,575,342,818
2019-12-03T03:13:38
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println("ABC" + N); }
Main.java:10: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u936066246|p03657|0
u936066246|p03657|0
codenet
Compile Error
182
v2_s944576672
s944576672
s944576672
p03658
p03658
u024824950
u024824950
1,555,086,633
2019-04-12T16:30:33
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] l = new int[n]; int sum = 0; for(int i=0; i<n; i++){ l[i] = sc.nextInt(); } ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03658|0
u024824950|p03658|0
codenet
Compile Error
473
v2_s262072401
s262072401
s262072401
p03658
p03658
u024824950
u024824950
1,555,086,661
2019-04-12T16:31:01
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] l = new int[n]; int sum = 0; for(int i=0; i<n; i++){ l[i] = sc.nextInt(); } ...
Main.java:13: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(l,Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int upp...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03658|0
u024824950|p03658|0
codenet
Compile Error
479
v2_s045732611
s045732611
s045732611
p03658
p03658
u062736195
u062736195
1,581,785,798
2020-02-15T16:56:38
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //棒の全体数 int K = sc.nextInt(); //取る棒の本数 int[] rodList = new int[55]; int rodSum = 0; for(i=0; i < N; i++){ rodList[i] = sc.nextInt(); } //...
Main.java:9: error: cannot find symbol for(i=0; i < N; i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=0; i < N; i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=0; i < N; i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03658|0
u062736195|p03658|0
codenet
Compile Error
681
v2_s337633154
s337633154
s337633154
p03658
p03658
u062736195
u062736195
1,581,982,889
2020-02-17T23:41:29
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Collections; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //棒の全体数 int K = sc.nextInt(); //取る棒の本数 int[] rodList = new int[55]; int rodSum = 0; for(int i=0; i...
Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(rodList, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03658|1
u062736195|p03658|1
codenet
Compile Error
559
v2_s325851494
s325851494
s325851494
p03658
p03658
u188396343
u188396343
1,579,204,060
2020-01-16T19:47:40
Main.java
import java.util.Arrays; import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); int[] l = new int[n]; int i; int leng = 0; for(i=0;i<n;i++){ l[i] = sc.nextInt(); ...
Main.java:14: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(l, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int up...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03658|0
u188396343|p03658|0
codenet
Compile Error
469
v2_s449852319
s449852319
s449852319
p03658
p03658
u247366051
u247366051
1,583,531,966
2020-03-06T21:59:26
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int m = scanner.nextInt(); int n = scanner.nextInt(); // int[] arr = new int[m]; // for (int i = 0; i < m; i++) { // arr[i] = scanner.nextInt(); // } // Arrays.sort(...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u247366051|p03658|1
u247366051|p03658|1
codenet
Compile Error
800
v2_s144699377
s144699377
s144699377
p03658
p03658
u273396603
u273396603
1,500,610,116
2017-07-21T04:08:36
Main.java
import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int k = scan.nextInt(); Integer[] l = new Integer[n]; for (int i=0; i < n; i++) { l[...
Main.java:15: error: ';' expected int sum += l[j]; ^ Main.java:15: error: not a statement int sum += l[j]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273396603|p03658|0
u273396603|p03658|0
codenet
Compile Error
516
v2_s566227527
s566227527
s566227527
p03658
p03658
u547167033
u547167033
1,566,664,301
2019-08-24T16:31:41
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] l = new int[n]; int sum = 0; for(int i = 0;i < n;i++) l[i] = sc.nextInt(); arrays.sort(l); for(int i = n-1...
Main.java:10: error: cannot find symbol arrays.sort(l); ^ symbol: variable arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03658|0
u547167033|p03658|0
codenet
Compile Error
384
v2_s352595728
s352595728
s352595728
p03658
p03658
u553314348
u553314348
1,593,744,106
2020-07-03T02:41:46
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { static Scanner scanner; public static void main(String[] args) { scanner = new Scanner(System.in); int N=gi(); int K=gi(); ...
Main.java:29: error: cannot find symbol System.out.print(a); ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553314348|p03658|0
u553314348|p03658|0
codenet
Compile Error
1,205
v2_s661492888
s661492888
s661492888
p03658
p03658
u578441226
u578441226
1,530,019,823
2018-06-26T13:30:23
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int Ln[] = new int[N]; for(int i = 0;i < N;i++){ Ln[i] = sc.nextInt()...
Main.java:13: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(Ln, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578441226|p03658|0
u578441226|p03658|0
codenet
Compile Error
495
v2_s771691514
s771691514
s771691514
p03658
p03658
u587721314
u587721314
1,567,298,522
2019-09-01T00:42:02
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] sticks = new int[n]; for (int i = 0; i < sticks.length; i++) { sticks[i] = sc....
Main.java:12: error: cannot find symbol Arrays.sort(sticks[i]); ^ symbol: variable i location: class Main Main.java:12: error: no suitable method found for sort(int) Arrays.sort(sticks[i]); ^ method Arrays.sort(int[]) is not applicable (argument misma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p03658|0
u587721314|p03658|0
codenet
Compile Error
572
v2_s561940557
s561940557
s561940557
p03658
p03658
u587842109
u587842109
1,543,926,188
2018-12-04T12:23:08
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextIn(); int K = sc.nextIn(); int[] num = new int[N]; for(int i=0; i<N;i++){ num[i] = sc.nextIn(); } Arrays.sort(num); int output =...
Main.java:8: error: cannot find symbol int N = sc.nextIn(); ^ symbol: method nextIn() location: variable sc of type Scanner Main.java:9: error: cannot find symbol int K = sc.nextIn(); ^ symbol: method nextIn() location: variable sc of type Scanner Main.java:13: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03658|0
u587842109|p03658|0
codenet
Compile Error
449
v2_s526331346
s526331346
s526331346
p03658
p03658
u587842109
u587842109
1,543,926,277
2018-12-04T12:24:37
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextIn(); int K = sc.nextIn(); int[] num = new int[N]; for(int i=0; i<N;i++){ num[i] = sc.nextIn(); } Arrays.sort(num); int output ...
Main.java:29: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:57: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03658|0
u587842109|p03658|0
codenet
Compile Error
916
v2_s202170753
s202170753
s202170753
p03658
p03658
u587842109
u587842109
1,543,926,357
2018-12-04T12:25:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] num = new int[N]; for(int i=0; i<N;i++){ num[i] = sc.nextIn(); } Arrays.sort(num); int output...
Main.java:13: error: cannot find symbol num[i] = sc.nextIn(); ^ symbol: method nextIn() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03658|0
u587842109|p03658|0
codenet
Compile Error
440
v2_s416211067
s416211067
s416211067
p03658
p03658
u587842109
u587842109
1,543,926,378
2018-12-04T12:26:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] num = new int[N]; for(int i=0; i<N;i++){ num[i] = sc.nextIn(); } Arrays.sort(num); int output...
Main.java:13: error: cannot find symbol num[i] = sc.nextIn(); ^ symbol: method nextIn() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03658|0
u587842109|p03658|0
codenet
Compile Error
440
v2_s818004063
s818004063
s818004063
p03658
p03658
u603540589
u603540589
1,500,411,337
2017-07-18T20:55:37
Main.java
import java.util.*; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); ArrayList ar = new ArrayList(); for(int i = 0; i < n; i++){ ar...
Main.java:17: error: bad operand types for binary operator '+' ret += ar.get(ar.size()-i); ^ first type: int second type: Object Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u603540589|p03658|0
u603540589|p03658|0
codenet
Compile Error
495
v2_s348951847
s348951847
s348951847
p03658
p03658
u643840641
u643840641
1,537,303,204
2018-09-18T20:40:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] l = new int(n); for(int i=0; i<n; i++){ l[i] = sc.nextInt(); } Arrays.sort(l); int len = 0; for(int i=0; i<k; i++){ len += l[n-i-...
Main.java:7: error: '[' expected int[] l = new int(n); ^ Main.java:7: error: ']' expected int[] l = new int(n); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u643840641|p03658|0
u643840641|p03658|0
codenet
Compile Error
359
v2_s100959149
s100959149
s100959149
p03658
p03658
u762160119
u762160119
1,556,394,063
2019-04-27T19:41:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int K = Integer.parseInt(sc.next()); int[] a = new int[N]; for(int i = 0; i<N; i++) { a[i] = Integer.parseInt(sc.nex...
Main.java:11: error: no suitable method found for sort(no arguments) Arrays.sort(); ^ 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[]...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762160119|p03658|0
u762160119|p03658|0
codenet
Compile Error
505
v2_s087851814
s087851814
s087851814
p03658
p03658
u784448849
u784448849
1,545,617,105
2018-12-24T02:05:05
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { solve(sc); } } public static void solve(Scanner sc) { int n = sc.nextInt(); ...
Main.java:20: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(barLength, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03658|0
u784448849|p03658|0
codenet
Compile Error
670
v2_s147651116
s147651116
s147651116
p03658
p03658
u803314854
u803314854
1,551,455,641
2019-03-01T15:54:01
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int[]po=new int[n]; for(int i=0;i<n;i++)po[i]=sc.nextInt(); Arrays.sort(po[i]); System.out.println(po[n-1]+po[n-2]+po[n-3]); } }
Main.java:9: error: cannot find symbol Arrays.sort(po[i]); ^ symbol: variable i location: class Main Main.java:9: error: no suitable method found for sort(int) Arrays.sort(po[i]); ^ method Arrays.sort(int[]) is not applicable (argument mismatch; int cannot be converted to in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03658|0
u803314854|p03658|0
codenet
Compile Error
297
v2_s604766628
s604766628
s604766628
p03658
p03658
u937328402
u937328402
1,500,167,724
2017-07-16T01:15:24
Main.java
public class Main { private final static Scanner sc = new Scanner(System.in); /** * 本処理を実行します。 */ public static void execute() { int n = nextInt(); int k = nextInt(); Integer[] l = nextInts(n); Arrays.sort(l, Comparator.reverseOrder()); int length = 0; ...
Main.java:3: error: cannot find symbol private final static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol private final static Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u937328402|p03658|0
u937328402|p03658|0
codenet
Compile Error
1,431
v2_s381502161
s381502161
s381502161
p03659
p03659
u012071778
u012071778
1,531,193,811
2018-07-10T03:36:51
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] a = new int[N]; long[] sum = new long[N + 1]; long ans = 1000000000L; for (int i = 0; i < N; i++){ a[i] = scanner.nextLong(); ...
Main.java:11: error: incompatible types: possible lossy conversion from long to int a[i] = scanner.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012071778|p03659|0
u012071778|p03659|0
codenet
Compile Error
557
v2_s116822290
s116822290
s116822290
p03659
p03659
u293494345
u293494345
1,500,175,796
2017-07-16T03:29:56
Main.java
#include <iostream> #include <vector> #include <numeric> #include <climits> using namespace std; int main() { int n; cin >> n; vector<int> v; for (int i=0; i<n; ++i) { int a; cin >> a; v.push_back(a); } long long snuke_ = accumulate(v.begin(), v.end(), 0); long long raccoon = 0; long long res = ULLONG_M...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <vector> ^ Main.java:3: error: illegal character: '#' #include <numeric> ^ Main.java:4: error: illegal character: '#' #include <climits> ^ Main.java:9: error: not a statement cin >> n; ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293494345|p03659|0
u293494345|p03659|0
codenet
Compile Error
465
v2_s542366818
s542366818
s542366818
p03659
p03659
u293494345
u293494345
1,500,175,871
2017-07-16T03:31:11
Main.java
#include <iostream> #include <vector> #include <numeric> #include <climits> using namespace std; int main() { int n; cin >> n; vector<int> v; for (int i=0; i<n; ++i) { int a; cin >> a; v.push_back(a); } unsigned long long snuke_ = accumulate(v.begin(), v.end(), 0); unsigned long long raccoon = 0; unsign...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <vector> ^ Main.java:3: error: illegal character: '#' #include <numeric> ^ Main.java:4: error: illegal character: '#' #include <climits> ^ Main.java:9: error: not a statement cin >> n; ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293494345|p03659|0
u293494345|p03659|0
codenet
Compile Error
492
v2_s231243803
s231243803
s231243803
p03659
p03659
u334656323
u334656323
1,529,000,997
2018-06-14T18:29:57
Main.java
import java.awt.Point; import java.util.ArrayDeque; import java.util.Scanner; public class Main{ static final Scanner sc=new Scanner(System.in); public static void main(String[]args){ int N=sc.nextInt(); long[]a=new long[N]; for(int i=0;i<N;i++){ a[i]=sc.nextLong(); ...
Main.java:19: error: integer number too large long min=100000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03659|0
u334656323|p03659|0
codenet
Compile Error
784
v2_s310427869
s310427869
s310427869
p03659
p03659
u396441153
u396441153
1,500,251,852
2017-07-17T00:37:32
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual soluti...
Main.java:66: error: reached end of file while parsing public int nextInt() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u396441153|p03659|0
u396441153|p03659|0
codenet
Compile Error
2,015
v2_s407173293
s407173293
s407173293
p03659
p03659
u487433273
u487433273
1,577,398,918
2019-12-26T22:21:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] a =new long[N]; long[] sumar = new long[N]; long sum =0; for(int i=0;i<N;i++) { a[i]=sc.nextLong(); sum += a[i]; sumar[i]= sum; ...
Main.java:17: error: integer number too large long ans =100000000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03659|0
u487433273|p03659|0
codenet
Compile Error
488
v2_s260414551
s260414551
s260414551
p03659
p03659
u521293705
u521293705
1,559,343,340
2019-05-31T22:55:40
Main.java
mport java.util.*; public class Main{ public static void main(String args[]){ // スキャナーの宣言 Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); long[] a = new long[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); } int i = ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521293705|p03659|0
u521293705|p03659|0
codenet
Compile Error
705
v2_s717545501
s717545501
s717545501
p03659
p03659
u521293705
u521293705
1,559,343,373
2019-05-31T22:56:13
ABC067.java
Import java.util.*; public class ABC067{ public static void main(String args[]){ // スキャナーの宣言 Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); long[] a = new long[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); } int i...
ABC067.java:1: error: class, interface, enum, or record expected Import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521293705|p03659|0
u521293705|p03659|0
codenet
Compile Error
708
v2_s316444978
s316444978
s316444978
p03659
p03659
u547167033
u547167033
1,568,235,654
2019-09-11T21:00:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; long[] s = new long[n]; for(int i = 0;i < n;i++)a[i]=sc.nextInt(); for(int i = 0;i < n;i++){ for(int j = 0;j < i;j+...
Main.java:12: error: integer number too large long min = 10000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03659|0
u547167033|p03659|0
codenet
Compile Error
485
v2_s803419732
s803419732
s803419732
p03659
p03659
u574367244
u574367244
1,500,175,134
2017-07-16T03:18:54
Main.java
import java.io.*; class Main{ public static void main(String arg[]) throws IOException{ String message; int n=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); message = br.readLine(); String num[] = message.split(" "); message = br.readLine(); String nagasa[] = message.split("...
Main.java:15: error: not a statement long long int all = 0; ^ Main.java:15: error: ';' expected long long int all = 0; ^ Main.java:15: error: not a statement long long int all = 0; ^ Main.java:15: error: ';' expected long long int all = 0; ^ Main.java:21: error: not a statement long ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574367244|p03659|0
u574367244|p03659|0
codenet
Compile Error
825
v2_s364588768
s364588768
s364588768
p03659
p03659
u574367244
u574367244
1,500,175,222
2017-07-16T03:20:22
Main.java
import java.io.*; class Main{ public static void main(String arg[]) throws IOException{ String message; int n=0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); message = br.readLine(); String num[] = message.split(" "); message = br.readLine(); String nagasa[] = message.split("...
Main.java:15: error: not a statement long int all = 0; ^ Main.java:15: error: ';' expected long int all = 0; ^ Main.java:21: error: not a statement long int akun = 0; ^ Main.java:21: error: ';' expected long int akun = 0; ^ Main.java:22: error: not a statement long int bkun = 0; ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574367244|p03659|0
u574367244|p03659|0
codenet
Compile Error
806
v2_s850463780
s850463780
s850463780
p03659
p03659
u855192343
u855192343
1,500,178,735
2017-07-16T04:18:55
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top * * @author zhangyong */ public class Main { public static void main(String[] ar...
Main.java:36: error: integer number too large long x = 0, min = 1000000000000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u855192343|p03659|0
u855192343|p03659|0
codenet
Compile Error
1,256
v2_s266284492
s266284492
s266284492
p03659
p03659
u861095163
u861095163
1,576,471,956
2019-12-16T04:52:36
Main.java
public class Main { final static long MOD07 = 1_000_000_007; final static long MOD09 = 1_000_000_009; public static void main(String[] args) { final FastScanner fs = new FastScanner(); int N = fs.nextInt(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i...
Main.java:40: error: cannot find symbol static void forAllBit(int n, Consumer<List<Boolean>> func) { ^ symbol: class Consumer location: class Main Main.java:40: error: cannot find symbol static void forAllBit(int n, Consumer<List<Boolean>> func) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861095163|p03659|0
u861095163|p03659|0
codenet
Compile Error
11,844
v2_s416688805
s416688805
s416688805
p03659
p03659
u861095163
u861095163
1,576,471,972
2019-12-16T04:52:52
Main.java
java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.function.BiFunction; import jav...
Main.java:1: error: class, interface, enum, or record expected java.io.IOException; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.PrintWriter; ^ Main.java:4: error: class, interface, enum, or r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861095163|p03659|0
u861095163|p03659|0
codenet
Compile Error
12,227
v2_s265314549
s265314549
s265314549
p03659
p03659
u874996917
u874996917
1,531,792,792
2018-07-17T01:59:52
Main.java
import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Main main = new Main(); main.run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] A=new int[N]; long sum=0; for (int i = 0; i < N; i++) { long buf=s...
Main.java:16: error: incompatible types: int[] cannot be converted to long[] long[] A=new int[N]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874996917|p03659|0
u874996917|p03659|0
codenet
Compile Error
2,511
v2_s567050180
s567050180
s567050180
p03659
p03659
u902576227
u902576227
1,543,954,947
2018-12-04T20:22:27
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayList; import java.util.List; import java.util.Collections; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] ar = new long[n]; long sum = 0; long ...
Main.java:14: error: integer number too large long abs = 1000000000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p03659|0
u902576227|p03659|0
codenet
Compile Error
705
v2_s525949632
s525949632
s525949632
p03659
p03659
u937328402
u937328402
1,500,168,692
2017-07-16T01:31:32
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private final static Scanner sc = new Scanner(System.in); /** * 本処理を実行します。 */ public static void execute() { int n = nextInt(); List<Integer> a = nextInts(n); int size = a.si...
Main.java:79: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u937328402|p03659|0
u937328402|p03659|0
codenet
Compile Error
2,024
v2_s098800017
s098800017
s098800017
p03659
p03659
u964623614
u964623614
1,500,170,011
2017-07-16T01:53:31
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner=new Scanner(System.in); int n=scanner.nextInt(); int[] l=new int[n]; int[] snuke=new int[n]; for(int i=0;i<n;i++){ ...
Main.java:20: error: ';' expected int sub=0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964623614|p03659|0
u964623614|p03659|0
codenet
Compile Error
937
v2_s228776207
s228776207
s228776207
p03660
p03660
u112523623
u112523623
1,501,868,564
2017-08-04T17:42:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<Integer, Set<Integer>> graph = new HashMap<>(n); for (int i = 1; i <= n; i++) { graph.put(i, new HashSet<>()); } ...
Main.java:21: error: Deque is abstract; cannot be instantiated Deque<List<Integer>> queue = new Deque<>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112523623|p03660|1
u112523623|p03660|1
codenet
Compile Error
1,525
v2_s190505705
s190505705
s190505705
p03660
p03660
u764011970
u764011970
1,534,436,754
2018-08-16T16:25:54
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { static int n; static List<List<Integer>> list; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); list = new ArrayList<>(n); for(int i = 0;...
Main.java:38: error: illegal start of expression static int[] dfs(int s, int p, int[] ret) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764011970|p03660|0
u764011970|p03660|0
codenet
Compile Error
1,079
v2_s486060617
s486060617
s486060617
p03661
p03661
u772031871
u772031871
1,500,446,045
2017-07-19T06:34:05
Main.java
public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] arr=new int[n]; for (int i = 0; i < arr.length; i++) { arr[i]=sc.nextInt(); } int min=Integer.MAX_VALUE; int x=arr[0];int y=arr[n-1]; int r=n-1; int l=0; if(arr.length==2...
Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u772031871|p03661|0
u772031871|p03661|0
codenet
Compile Error
594
v2_s828938695
s828938695
s828938695
p03661
p03661
u772031871
u772031871
1,500,446,847
2017-07-19T06:47:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] arr=new int[n]; int sum=0; for (int i = 0; i < arr.length; i++) { arr[i]=sc.nextInt(); sum+=arr[i]; } int temp=0; int min=Integer.MAX_VALUE; ...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u772031871|p03661|0
u772031871|p03661|0
codenet
Compile Error
461
v2_s958453882
s958453882
s958453882
p03661
p03661
u772031871
u772031871
1,500,447,264
2017-07-19T06:54:24
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] arr=new int[n]; int sum=0; for (int i = 0; i < arr.length; i++) { arr[i]=sc.nextInt(); sum+=arr[i]; } int temp=0; int min=Integer.MAX_VALUE; ...
Main.java:20: error: ')' or ',' expected min=Math.min(min, Math.abs((sum-temp)-temp); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u772031871|p03661|0
u772031871|p03661|0
codenet
Compile Error
468
v2_s247727664
s247727664
s247727664
p03661
p03661
u870585895
u870585895
1,500,170,941
2017-07-16T02:09:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] a = new int[N]; int sum = 0; a[0] = scanner.nextInt(); for(int i = 1; i < N; ...
Main.java:32: error: cannot find symbol System.out.println(calc); ^ symbol: variable calc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870585895|p03661|0
u870585895|p03661|0
codenet
Compile Error
835
v2_s758560853
s758560853
s758560853
p03661
p03661
u870585895
u870585895
1,500,171,341
2017-07-16T02:15:41
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] a = new int[N]; long y = 0; a[0] = scanner.nextInt(); for(int i = 1; i < N; i...
Main.java:20: error: incompatible types: possible lossy conversion from long to int int min = Math.abs(x - y); ^ Main.java:24: error: incompatible types: possible lossy conversion from long to int int calc = Math.abs(x - y); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870585895|p03661|0
u870585895|p03661|0
codenet
Compile Error
721
v2_s306257017
s306257017
s306257017
p03661
p03661
u870585895
u870585895
1,500,172,401
2017-07-16T02:33:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); long[] a = new int[N]; long y = 0; a[0] = scanner.nextInt(); for(int i = 1; i < N; ...
Main.java:10: error: incompatible types: int[] cannot be converted to long[] long[] a = new int[N]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870585895|p03661|0
u870585895|p03661|0
codenet
Compile Error
724
v2_s388966947
s388966947
s388966947
p03661
p03661
u885998211
u885998211
1,500,172,980
2017-07-16T02:43:00
Main.java
This is an interactive task.
Main.java:1: error: class, interface, enum, or record expected This is an interactive task. ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u885998211|p03661|0
u885998211|p03661|0
codenet
Compile Error
28
v2_s938270981
s938270981
s938270981
p03662
p03662
u241874341
u241874341
1,554,947,480
2019-04-11T01:51:20
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.function.Consumer; import java.util.stream.IntStream; import static java.util.stream.Collectors.toList; public class Main { private static final Scanner scanner = new Scanner(System.in); priv...
Main.java:42: error: package AbstractMap does not exist List<AbstractMap.SimpleEntry<Integer, Integer>> que = new ArrayList<>(); ^ Main.java:43: error: package AbstractMap does not exist que.add(new AbstractMap.SimpleEntry<>(0, 0)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241874341|p03662|0
u241874341|p03662|0
codenet
Compile Error
4,106
v2_s002323965
s002323965
s002323965
p03662
p03662
u653981267
u653981267
1,500,171,409
2017-07-16T02:16:49
Main.java
import java.util.*; public class Main { static boolean[] memo; static int[] choice; static ArrayList[] edge; static int N; static int[] wa; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); edge = new ArrayList[N + 1]; memo = new boolean[N + 1];...
Main.java:46: error: array required, but ArrayList<Integer> found int u = road[i]; ^ Main.java:47: error: cannot find symbol senten += sum[u]; ^ symbol: variable sum location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03662|0
u653981267|p03662|0
codenet
Compile Error
2,069
v2_s985947057
s985947057
s985947057
p03662
p03662
u981808900
u981808900
1,557,984,405
2019-05-16T05:26:45
Main.java
import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int n = scanner.nextInt(); List<Integer>[] edge = new ArrayList[n]; for (int i = 0; i < n; i++) { edge[i] = new ArrayList<>(); } for...
Main.java:28: error: cannot find symbol Utils.println(i, j, deque); ^ symbol: variable Utils location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03662|0
u981808900|p03662|0
codenet
Compile Error
1,708
v2_s395159440
s395159440
s395159440
p03665
p03665
u335784901
u335784901
1,499,649,906
2017-07-10T01:25:06
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; import java.util.HashMap; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStre...
Main.java:32: error: incompatible types: int[] cannot be converted to int a = new int[n]; ^ Main.java:34: error: array required, but int found a[i] = in.nextInt(); ^ Main.java:54: error: array required, but int found if ((a[index] % 2) == 1) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u335784901|p03665|0
u335784901|p03665|0
codenet
Compile Error
1,854
v2_s632598168
s632598168
s632598168
p03665
p03665
u475695911
u475695911
1,499,655,532
2017-07-10T02:58:52
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int bagNumber = scan.nextInt(); int remainder = scan.nextInt(); int[] intArray = new int[bagNumber]; int counter = 0; for (int i =0;i<bagNumber;i++){ intArray[i] = scan.nextInt(); }...
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u475695911|p03665|0
u475695911|p03665|0
codenet
Compile Error
628
v2_s884733623
s884733623
s884733623
p03665
p03665
u507706381
u507706381
1,573,884,454
2019-11-16T06:07:34
Main.java
import java.util.*; public class Main { pubkic static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int P = sc.necrInt(); int odd = 0; for (int i = 0; i < N; i ++) { if (sc.nextInt()%2 == 1) odd++; } long oddComb = 0; for (int i = 1; ...
Main.java:4: error: <identifier> expected pubkic static void main(String[] args) { ^ Main.java:19: error: ')' or ',' expected ? oddComb : (1L<<N)-oddComb; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03665|0
u507706381|p03665|0
codenet
Compile Error
641
v2_s003986590
s003986590
s003986590
p03665
p03665
u507706381
u507706381
1,573,884,493
2019-11-16T06:08:13
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int P = sc.necrInt(); int odd = 0; for (int i = 0; i < N; i ++) { if (sc.nextInt()%2 == 1) odd++; } long oddComb = 0; for (int i = 1; ...
Main.java:7: error: cannot find symbol int P = sc.necrInt(); ^ symbol: method necrInt() location: variable sc of type Scanner Main.java:18: error: cannot find symbol System.out.println(p == 1 ^ symbol: variable p location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03665|0
u507706381|p03665|0
codenet
Compile Error
642
v2_s449232917
s449232917
s449232917
p03665
p03665
u562209634
u562209634
1,539,711,560
2018-10-16T17:39:20
Main.java
import java.io.*; import java.util.*; public class Main { private void compute(){ Scanner scanner = new Scanner (System.in); int n = scanner.nextInt(); int p = scanner.nextInt(); int e, o; for (int i=0;i<n;i++) { if (scanner.nextInt() % 2 == 0) e++; else o++; } ...
Main.java:33: error: <identifier> expected private static long co(int n, k) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u562209634|p03665|0
u562209634|p03665|0
codenet
Compile Error
785
v2_s897765042
s897765042
s897765042
p03665
p03665
u562209634
u562209634
1,539,711,609
2018-10-16T17:40:09
Main.java
import java.io.*; import java.util.*; public class Main { private void compute(){ Scanner scanner = new Scanner (System.in); int n = scanner.nextInt(); int p = scanner.nextInt(); int e, o; for (int i=0;i<n;i++) { if (scanner.nextInt() % 2 == 0) e++; else o++; } ...
Main.java:13: error: variable e might not have been initialized e++; ^ Main.java:15: error: variable o might not have been initialized o++; ^ Main.java:19: error: variable o might not have been initialized rtn *= o; ^ Main.java:23: error: variable o might not have been...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u562209634|p03665|0
u562209634|p03665|0
codenet
Compile Error
789
v2_s434331872
s434331872
s434331872
p03665
p03665
u660444966
u660444966
1,588,115,094
2020-04-28T23:04:54
Math.java
import java.math.BigDecimal; import java.util.*; public class Math { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int p = sc.nextInt(); int o = 0, e = 0; for (int i = 0; i < n; i++) { int x = sc.nextInt(); ...
Math.java:33: error: cannot find symbol for (int i = 0; i < Math.min(r, n-r); i++) { ^ symbol: method min(int,int) location: class Math Math.java:36: error: cannot find symbol for (int i = 1; i <= Math.min(r, n-r); i++) { ^ symbol:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660444966|p03665|0
u660444966|p03665|0
codenet
Compile Error
1,123
v2_s091795899
s091795899
s091795899
p03665
p03665
u711620077
u711620077
1,589,051,793
2020-05-09T19:16:33
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int p = sc.nextInt(); int odd = 0; for (int i = 0; i < n; i++) { if (sc.nextInt() % 2 == 1...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03665|0
u711620077|p03665|0
codenet
Compile Error
552
v2_s245340263
s245340263
s245340263
p03665
p03665
u943059397
u943059397
1,499,655,260
2017-07-10T02:54:20
Main.java
import java.util.*; public class Main { // 変数宣言 static int N; static int P; static int[] biscuits; // main public static void main(String[] args) { // 準備 Scanner sc = new Scanner(System.in); // ロード String[] line = sc.nextLine().split(" "); N = Integer.parseInt(line[0]); P = Intege...
Main.java:37: error: incompatible types: boolean cannot be converted to int return (P == 0); ^ Main.java:43: error: bad operand types for binary operator '+' match += (P == (total[i] % 2)); ^ first type: int second type: boolean Main.java:76: error: variable combnN is alread...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u943059397|p03665|0
u943059397|p03665|0
codenet
Compile Error
3,133
v2_s157019264
s157019264
s157019264
p03666
p03666
u675503966
u675503966
1,499,653,072
2017-07-10T02:17:52
Main.java
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.io.OutputStream; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.InputStreamReader; impor...
Main.java:52: error: illegal start of expression if() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03666|0
u675503966|p03666|0
codenet
Compile Error
3,272
v2_s113027754
s113027754
s113027754
p03668
p03668
u653981267
u653981267
1,499,793,060
2017-07-11T17:11:00
Main.java
import java.util.*; public class Main { static ArrayList[] edge; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); edge = new ArrayList[N + 1]; for(int i = 1; i < N + 1; i++) { edge[i] = new ArrayList<Integer>(); } for(int i = 0; i ...
Main.java:33: error: missing return statement } ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03668|0
u653981267|p03668|0
codenet
Compile Error
781
v2_s773602634
s773602634
s773602634
p03671
p03671
u024824950
u024824950
1,555,024,760
2019-04-11T23:19:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int[] a = new int[3]; for(int = i; i<3; i++) a[i] = sc.nextInt(); Arrays.sort(a); System.out.println(a[0]+a[1]); } }
Main.java:7: error: not a statement for(int = i; i<3; i++) a[i] = sc.nextInt(); ^ Main.java:7: error: ';' expected for(int = i; i<3; i++) a[i] = sc.nextInt(); ^ Main.java:7: error: illegal start of expression for(int = i; i<3; i++) a[i] = sc.nextInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03671|0
u024824950|p03671|0
codenet
Compile Error
281
v2_s260532596
s260532596
s260532596
p03671
p03671
u024824950
u024824950
1,555,024,836
2019-04-11T23:20:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int[] a = new int[3]; for(int i= 0; i<3; i++) a[i] = sc.nextInt(); Arrays.sort(a); System.out.println(a[0]+a[1]); } }
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03671|0
u024824950|p03671|0
codenet
Compile Error
282
v2_s086774207
s086774207
s086774207
p03671
p03671
u024824950
u024824950
1,555,085,160
2019-04-12T16:06:00
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); } if(n%2 == 0){ for(int i =...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03671|1
u024824950|p03671|1
codenet
Compile Error
716
v2_s580389945
s580389945
s580389945
p03671
p03671
u039774704
u039774704
1,498,957,571
2017-07-02T01:06:11
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ new A().start(); } void start(){ Scanner in = new Scanner(System.in); int[] a = new int[3]; for(int i = 0; i < 3; i++){ a[i] = in.nextInt(); } Array...
Main.java:9: error: cannot find symbol new A().start(); ^ symbol: class A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039774704|p03671|0
u039774704|p03671|0
codenet
Compile Error
416
v2_s812014416
s812014416
s812014416
p03671
p03671
u141829355
u141829355
1,511,664,405
2017-11-26T02:46:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in =new Scanner(System.in); int a =in.nextInt(); int b =in.nextInt(); int c =in.nextInt(); int d =a+b; int e =a+c; int f =b+c; if(d>=e) { if(e>=f) { System.out.println(...
Main.java:34: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u141829355|p03671|0
u141829355|p03671|0
codenet
Compile Error
578
v2_s738151598
s738151598
s738151598
p03671
p03671
u241973797
u241973797
1,499,872,919
2017-07-12T15:21:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); scan.close(); int p = (a + b); int q = (a + c); int r = (b + c); if(p < q && p < r){ Sy...
Main.java:29: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241973797|p03671|0
u241973797|p03671|0
codenet
Compile Error
527
v2_s060346358
s060346358
s060346358
p03671
p03671
u241973797
u241973797
1,499,872,963
2017-07-12T15:22:43
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); scan.close(); int p = (a + b); int q = (a + c); int r = (b + c); if(p < q && p < r){ Sy...
Main.java:25: error: bad operand types for binary operator '&&' else if(r = p && r = q){ ^ first type: int second type: int Main.java:25: error: incompatible types: int cannot be converted to boolean else if(r = p && r = q){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241973797|p03671|0
u241973797|p03671|0
codenet
Compile Error
528
v2_s046252521
s046252521
s046252521
p03671
p03671
u289660449
u289660449
1,498,963,373
2017-07-02T02:42:53
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ //B問題 Scanner scan = new Scanner(System.in); //文字列格納用 String S; S = scan.next(); while(S.length() >= 2){ //1文字削除 if(S != null && S.length() > 0){ S = S.sub...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289660449|p03671|0
u289660449|p03671|0
codenet
Compile Error
691
v2_s265959444
s265959444
s265959444
p03671
p03671
u344871126
u344871126
1,499,736,808
2017-07-11T01:33:28
Main.java
Loading subst-jis...done import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int sum = 0; int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if (a >= b && a >= c) { ...
Main.java:1: error: class, interface, enum, or record expected Loading subst-jis...done ^ Main.java:3: error: class, interface, enum, or record expected import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u344871126|p03671|0
u344871126|p03671|0
codenet
Compile Error
498
v2_s135887818
s135887818
s135887818
p03671
p03671
u367866606
u367866606
1,498,959,077
2017-07-02T01:31:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int a,b,c,rtn; Scanner sc=new scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a>b){ if(a>c)rtn=b+c; else rtn=a+b; }else{ if(b>c)rtn=a+c; else rtn=a+b } System.out.println(rtn); } }
Main.java:14: error: ';' expected else rtn=a+b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367866606|p03671|0
u367866606|p03671|0
codenet
Compile Error
282
v2_s795113024
s795113024
s795113024
p03671
p03671
u367866606
u367866606
1,498,959,130
2017-07-02T01:32:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int a,b,c,rtn; Scanner sc=new scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a>b){ if(a>c)rtn=b+c; else rtn=a+b; }else{ if(b>c)rtn=a+c; else rtn=a+b; } System.out.println(rtn); } }
Main.java:5: error: cannot find symbol Scanner sc=new scanner(System.in); ^ symbol: class scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367866606|p03671|0
u367866606|p03671|0
codenet
Compile Error
283
v2_s645526008
s645526008
s645526008
p03671
p03671
u367866606
u367866606
1,498,959,243
2017-07-02T01:34:03
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int a,b,c,rtn; Scanner sc=new scanner(System.in); a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a>b){ if(a>c)rtn=b+c; else rtn=a+b; }else{ if(b>c)rtn=a+c; else rtn=a+b; } System.out.println(rtn); } }
Main.java:5: error: cannot find symbol Scanner sc=new scanner(System.in); ^ symbol: class scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367866606|p03671|0
u367866606|p03671|0
codenet
Compile Error
289
v2_s291478726
s291478726
s291478726
p03671
p03671
u384476909
u384476909
1,498,957,526
2017-07-02T01:05:26
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if (a > b && a > c) { System.out.println(b + c); } else if (b > a && b > c) { System.out.println(a + c); } else ...
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
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u384476909|p03671|0
u384476909|p03671|0
codenet
Compile Error
360
v2_s212035311
s212035311
s212035311
p03671
p03671
u450832845
u450832845
1,508,618,353
2017-10-21T20:39:13
Main.java
import java.util.Scanner; import java.util.Stack; class Main { public static void main(String[] args) { new Main().compute(); } void compute() { Scanner sc = new Scanner(System.in); int[] a = new int[3]; for (int i = 0; i < 3; i++) { a[i] = sc.nextInt(); ...
Main.java:16: error: cannot find symbol Arrays.sort(a); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u450832845|p03671|0
u450832845|p03671|0
codenet
Compile Error
397
v2_s976460777
s976460777
s976460777
p03671
p03671
u554269352
u554269352
1,549,084,796
2019-02-02T05:19:56
Main.java
package main import "fmt" func main() { var a, b, c int fmt.Scan(&a, &b, &c) s := []int{a+b, b+c, c+a} min := s[0] for _, i := range s { if i < min { min = i } } fmt.Println(min) }
Main.java:1: error: ';' expected package main ^ Main.java:3: error: <identifier> expected import "fmt" ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u554269352|p03671|0
u554269352|p03671|0
codenet
Compile Error
197
v2_s210133207
s210133207
s210133207
p03671
p03671
u570244972
u570244972
1,500,088,664
2017-07-15T03:17:44
Main.java
package ans_20170701; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int ans = 0; // 最安値の合計 if(a <= b){ ans = a; }else{ ans = b; } if(b ...
Main.java:29: error: ';' expected System.out.println(ans)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570244972|p03671|0
u570244972|p03671|0
codenet
Compile Error
457
v2_s570905482
s570905482
s570905482
p03671
p03671
u641361090
u641361090
1,591,886,599
2020-06-11T14:43:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); Integer A = scanner.nextInt(); Integer B = scanner.nextInt(); Integer C = scanner.nextInt(); Integer res1 = A + B; Integer res2 = A + ...
Main.java:25: error: cannot find symbol System.out.println(res3S); ^ symbol: variable res3S location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u641361090|p03671|0
u641361090|p03671|0
codenet
Compile Error
619
v2_s802510354
s802510354
s802510354
p03671
p03671
u646483356
u646483356
1,547,008,734
2019-01-09T04:38:54
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int x = Math.max(a,b); int y = Math.max(x,c) int z = a+b+c; ...
Main.java:11: error: ';' expected int y = Math.max(x,c) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03671|0
u646483356|p03671|0
codenet
Compile Error
360
v2_s093946905
s093946905
s093946905
p03671
p03671
u655729056
u655729056
1,583,818,011
2020-03-10T05:26:51
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); int sum = a+ b ; if(sum < a+c){ sum = a+c; } if(sum < b+c){ ...
Main.java:15: error: ';' expected sum = b + c: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03671|0
u655729056|p03671|0
codenet
Compile Error
373
v2_s918578523
s918578523
s918578523
p03671
p03671
u686751625
u686751625
1,586,811,834
2020-04-13T21:03:54
Main.java
import java.util.*; public class Main{ public static void main(String ...string){ Scanner sc = new Scanner(System.in); System.out.println(Math.max(a+b,Math.max(a+c,c+b))); } }
Main.java:5: error: cannot find symbol System.out.println(Math.max(a+b,Math.max(a+c,c+b))); ^ symbol: variable a location: class Main Main.java:5: error: cannot find symbol System.out.println(Math.max(a+b,Math.max(a+c,c+b))); ^ symbol: va...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686751625|p03671|0
u686751625|p03671|0
codenet
Compile Error
189
v2_s381347224
s381347224
s381347224
p03671
p03671
u767551173
u767551173
1,500,137,219
2017-07-15T16:46:59
Main.java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; class Main { public static void main(String[] args) { int a = new int[3]; for (int i = 0; i < 3; i++) { int a[i] = sc.nextInt(); } Arrays.sort(a); System.out.println(a[0] + a[1]); ...
Main.java:11: error: ']' expected int a[i] = sc.nextInt(); ^ Main.java:11: error: ';' expected int a[i] = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u767551173|p03671|2
u767551173|p03671|2
codenet
Compile Error
331
v2_s369330478
s369330478
s369330478
p03671
p03671
u767551173
u767551173
1,500,137,258
2017-07-15T16:47:38
Main.java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; class Main { public static void main(String[] args) { int a = new int[3]; for (int i = 0; i < 3; i++) { a[i] = sc.nextInt(); } Arrays.sort(a); System.out.println(a[0] + a[1]); ...
Main.java:9: error: incompatible types: int[] cannot be converted to int int a = new int[3]; ^ Main.java:11: error: array required, but int found a[i] = sc.nextInt(); ^ Main.java:11: error: cannot find symbol a[i] = sc.nextInt(); ^ symbol: variable sc locati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u767551173|p03671|2
u767551173|p03671|2
codenet
Compile Error
327