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_s118965101
s118965101
s118965101
p02718
p02718
u232720627
u232720627
1,586,054,745
2020-04-05T02:45:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int m = sc.nextInt(); int[] shohin = new int[num]; int sum = 0; int sumFlg = 0; if(m == 0){ System...
Main.java:30: error: ')' expected if ((sum % (4 * m) == 0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u232720627|p02718|0
u232720627|p02718|0
codenet
Compile Error
1,175
v2_s439181193
s439181193
s439181193
p02718
p02718
u241752770
u241752770
1,587,657,309
2020-04-23T15:55:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); List<Integer> list = new ArrayList(); int n = s.nextInt(); int m = s.nextInt(); int sum = 0; boolean coosable = true; for(int i = 0; i < n; i++){ int value = s.nextInt()...
Main.java:18: error: '.class' expected if(list.get(i) < Math.ceil(double(sum / (4 * m)))){ ^ Main.java:18: error: ';' expected if(list.get(i) < Math.ceil(double(sum / (4 * m)))){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241752770|p02718|0
u241752770|p02718|0
codenet
Compile Error
671
v2_s512467736
s512467736
s512467736
p02718
p02718
u271651326
u271651326
1,586,050,571
2020-04-05T01:36:11
Main.java
import java.util.Scanner; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int a[] = new int[x]; int sum = 0; int i = 0; while(i<x-1){ a[i] = ...
Main.java:20: error: cannot find symbol System.out.print(aa); ^ symbol: variable aa location: class Main Main.java:22: error: cannot find symbol System.out.print(bb); ^ symbol: variable bb location: class Main Main.java:23: error: cannot find symbol if(a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271651326|p02718|0
u271651326|p02718|0
codenet
Compile Error
634
v2_s597908864
s597908864
s597908864
p02718
p02718
u271651326
u271651326
1,586,050,649
2020-04-05T01:37:29
Main.java
import java.util.Scanner; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); int a[] = new int[x]; int sum = 0; int i = 0; while(i<x-1){ a[i] = ...
Main.java:20: error: cannot find symbol System.out.print(aa); ^ symbol: variable aa location: class Main Main.java:22: error: cannot find symbol System.out.print(bb); ^ symbol: variable bb location: class Main Main.java:23: error: cannot find symbol if(a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271651326|p02718|0
u271651326|p02718|0
codenet
Compile Error
634
v2_s849506746
s849506746
s849506746
p02718
p02718
u292902179
u292902179
1,586,049,923
2020-04-05T01:25:23
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int kind=scan.nextInt(); int cho=scan.nextInt(); PriorityQueue in=new PriorityQueue(); int full=0; for(int a=0; a<kind; a++){ int input=scan.nextInt(); full+=input; ...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02718|0
u292902179|p02718|0
codenet
Compile Error
532
v2_s546354191
s546354191
s546354191
p02718
p02718
u303058371
u303058371
1,591,118,883
2020-06-02T17:28:03
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M, sum = 0, cnt = 0; N = sc.nextInt(); M = sc.nextInt(); int[] Arr = new int[N]; for (int i = 0; i < N; i++) { Arr[i] = sc.nextInt(); sum += Arr[i]; } for(int i = 0; i<N; i++) { if(Arr[i...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u303058371|p02718|0
u303058371|p02718|0
codenet
Compile Error
400
v2_s716141830
s716141830
s716141830
p02718
p02718
u303058371
u303058371
1,591,120,045
2020-06-02T17:47:25
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { long N, M; Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); long[] a = new long[(int)N]; long check = 0; for(int i = 0 ; i < N ; i++) { ...
Main.java:20: error: incompatible types: possible lossy conversion from long to int count += (a[N-1] >= check) ? 1 : 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303058371|p02718|0
u303058371|p02718|0
codenet
Compile Error
608
v2_s797689926
s797689926
s797689926
p02718
p02718
u312964891
u312964891
1,586,049,334
2020-04-05T01:15:34
solution.java
import java.util.*; import java.io.*; public class solution { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); int tests; int n; int m; int l; int sum=0; int[] A = new int[n]; n = sc.ne...
solution.java:13: error: variable n might not have been initialized int[] A = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u312964891|p02718|0
u312964891|p02718|0
codenet
Compile Error
744
v2_s809649139
s809649139
s809649139
p02718
p02718
u312964891
u312964891
1,586,049,470
2020-04-05T01:17:50
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); int tests; int n; int m; int l; int sum=0; int[] A = new int[n]; n = sc.nextIn...
Main.java:13: error: variable n might not have been initialized int[] A = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u312964891|p02718|0
u312964891|p02718|0
codenet
Compile Error
741
v2_s046190862
s046190862
s046190862
p02718
p02718
u346307762
u346307762
1,586,048,853
2020-04-05T01:07:33
Main.java
import java.io.*; import java.math.*; import java.util.*; import java.util.stream.*; class Main { static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static final PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) throws IOException { ...
Main.java:17: error: cannot find symbol int[] nums = new int[num]; ^ symbol: variable num location: class Main Main.java:18: error: cannot find symbol for(int i = 0; i < num; i++) { ^ symbol: variable num location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u346307762|p02718|0
u346307762|p02718|0
codenet
Compile Error
869
v2_s040633344
s040633344
s040633344
p02718
p02718
u406588655
u406588655
1,586,049,522
2020-04-05T01:18:42
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 m = sc.nextInt(); int[] a = new int[n]; int sum=0; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); sum+=a[i]; } quick_sort(a,0,...
Main.java:14: error: incompatible types: possible lossy conversion from double to int int border = Math.ceil(sum/(4*m)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u406588655|p02718|0
u406588655|p02718|0
codenet
Compile Error
1,069
v2_s480998354
s480998354
s480998354
p02718
p02718
u431137907
u431137907
1,599,093,218
2020-09-03T00:33: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(); //N種類の商品 int M = sc.nextInt(); //M個を選ぶ int[] A = new int[N]; //得票数 int sum = 0; //総投票数 int cnt = 0; //許容選択数 String S = ""; //空 for(in...
Main.java:17: error: illegal start of expression if(A[i]*4*M) >= sum){ ^ Main.java:17: error: ';' expected if(A[i]*4*M) >= sum){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431137907|p02718|0
u431137907|p02718|0
codenet
Compile Error
654
v2_s743009195
s743009195
s743009195
p02718
p02718
u444495139
u444495139
1,589,729,321
2020-05-17T15:28:41
Main.java
import java.util.Scanner; public class Main { public static void main(String [] args) { Scanner scan = new Scanner(System.in); boolean result= false; int items= scan.nextInt(); int popItems= scan.nextInt(); int[] votes= new int[items]; int count=0; for(int i=0; i<items; i++) { votes[i]= scan.nextInt(...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u444495139|p02718|0
u444495139|p02718|0
codenet
Compile Error
664
v2_s502658214
s502658214
s502658214
p02718
p02718
u457499508
u457499508
1,586,050,020
2020-04-05T01:27: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 m=sc.nextInt(); int a[]=new int[n]; int total=0; for (int i=0;i<n;i++) { a[i]=sc.nextInt(); total+=a[i]; } int count=0; // int h=...
Main.java:18: error: cannot find symbol System.out.println(h); ^ symbol: variable h location: class Main Main.java:21: error: cannot find symbol if (a[i]<h) { ^ symbol: variable h location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457499508|p02718|0
u457499508|p02718|0
codenet
Compile Error
566
v2_s370953060
s370953060
s370953060
p02718
p02718
u471125004
u471125004
1,586,051,461
2020-04-05T01:51:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int c[] = new int[n]; int count=0; for(int i=0;i<n;i++){ c[i] = scan.nextInt(); ...
Main.java:21: error: 'else' without 'if' else{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u471125004|p02718|0
u471125004|p02718|0
codenet
Compile Error
631
v2_s070216486
s070216486
s070216486
p02718
p02718
u520480375
u520480375
1,587,053,793
2020-04-16T16:16:33
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); //総商品数 int m = sc.nextInt(); //選びたい商品数 int[] param = new int[n]; long sum1 = 0; //総得票数 int sum2 = 0; //選ぶことができる商品数 //全ての商品の票数を入力する for(i...
Main.java:23: error: incompatible types: possible lossy conversion from long to int if( (param[i] =(sum1/(4*m))) || (param[i] >(sum1/(4*m)))){ ^ Main.java:23: error: bad operand types for binary operator '||' if( (param[i] =(sum1/(4*m))) || (param[i] >(sum1/(4*m)))){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02718|0
u520480375|p02718|0
codenet
Compile Error
844
v2_s045958956
s045958956
s045958956
p02718
p02718
u520480375
u520480375
1,590,416,112
2020-05-25T14:15:12
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int p = 4 * m; int[] item = new int[n]; int sum = 0; for (int i =0; i < n; i++) { item[i] = sc.nextInt(); sum ...
Main.java:20: error: ';' expected int point = sum / p ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02718|1
u520480375|p02718|1
codenet
Compile Error
604
v2_s360311463
s360311463
s360311463
p02718
p02718
u534918612
u534918612
1,586,054,416
2020-04-05T02:40:16
Main.java
importjava.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); m=s.nextInt(); n=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a; } Arrays..sort(a); int cnt=0; for(int i...
Main.java:1: error: class, interface, enum, or record expected importjava.util.*; ^ Main.java:14: error: illegal '.' Arrays..sort(a); ^ Main.java:14: error: not a statement Arrays..sort(a); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
471
v2_s161447224
s161447224
s161447224
p02718
p02718
u534918612
u534918612
1,586,054,494
2020-04-05T02:41:34
Main.java
importjava.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); m=s.nextInt(); n=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a; } Arrays.sort(a); int cnt=0; for(int i=...
Main.java:1: error: class, interface, enum, or record expected importjava.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
470
v2_s131027319
s131027319
s131027319
p02718
p02718
u534918612
u534918612
1,586,054,598
2020-04-05T02:43:18
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); m=s.nextInt(); n=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a; } Arrays..sort(a); int cnt=0; for(int ...
Main.java:14: error: illegal '.' Arrays..sort(a); ^ Main.java:14: error: not a statement Arrays..sort(a); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
472
v2_s639103759
s639103759
s639103759
p02718
p02718
u534918612
u534918612
1,586,054,641
2020-04-05T02:44:01
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); m=s.nextInt(); n=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a; } Arrays.sort(a); int cnt=0; for(int i...
Main.java:12: error: bad operand types for binary operator '+' sum+=a; ^ first type: int second type: int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
471
v2_s657806731
s657806731
s657806731
p02718
p02718
u534918612
u534918612
1,586,054,775
2020-04-05T02:46:15
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); m=s.nextInt(); n=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a; } Arrays.sort(a); int cnt=0; for(int i...
Main.java:12: error: bad operand types for binary operator '+' sum+=a; ^ first type: int second type: int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
473
v2_s902886191
s902886191
s902886191
p02718
p02718
u534918612
u534918612
1,586,056,930
2020-04-05T03:22:10
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int m,n; Scanner s=new Scanner(System.in); n=s.nextInt(); m=s.nextInt(); int[] a=new int[n]; int sum=0; for(int i=0;i<=n;i++){ a[i]=s.nextInt(); sum+=a[i]; } Array.sort(a); for(int ...
Main.java:14: error: cannot find symbol Array.sort(a); ^ symbol: variable Array location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02718|0
u534918612|p02718|0
codenet
Compile Error
517
v2_s211610270
s211610270
s211610270
p02718
p02718
u547671064
u547671064
1,586,049,128
2020-04-05T01:12:08
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 M =sc.nextInt(); int A[] =new int[N]; int B[] =new int[N+1]; B[0] =0; for(int i=0;i<N;i++){ A[i] =sc.nextInt(); B[i+1]=B[i]+A[i]; } ...
Main.java:14: error: cannot find symbol C =B[N]/M/4; ^ symbol: variable C location: class Main Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(A, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not appl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02718|0
u547671064|p02718|0
codenet
Compile Error
470
v2_s833969699
s833969699
s833969699
p02718
p02718
u547671064
u547671064
1,586,049,429
2020-04-05T01:17:09
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 M =sc.nextInt(); int A[] =new int[N]; int B[] =new int[N+1]; B[0] =0; for(int i=0;i<N;i++){ A[i] =sc.nextInt(); B[i+1]=B[i]+A[i]; } ...
Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(A, 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 upper ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02718|0
u547671064|p02718|0
codenet
Compile Error
475
v2_s315622242
s315622242
s315622242
p02718
p02718
u547671064
u547671064
1,586,050,180
2020-04-05T01:29:40
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 M =sc.nextInt(); Integer A[] =new Integer[N]; long B[] =new long[N+1]; B[0] =0; for(int i=0;i<N;i++){ A[i] =sc.nextInt(); B[i+1]=B[i]+A[i...
Main.java:14: error: ';' expected int C =B[N]/M/4 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02718|0
u547671064|p02718|0
codenet
Compile Error
484
v2_s945496163
s945496163
s945496163
p02718
p02718
u578245611
u578245611
1,590,442,004
2020-05-25T21:26:44
Main.java
import java.util. ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> a = new ArrayList<>(); while(sc.hasNext()== true ){ a.add(sc.nextInt()); } int sumo = 0; f...
Main.java:41: error: class, interface, enum, or record expected import java.lang.Math; ^ Main.java:42: error: class, interface, enum, or record expected import java.util.Collections; ^ Main.java:43: error: class, interface, enum, or record expected import java.util. ArrayList; ^ Main.java:44: error: class, interface, e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578245611|p02718|0
u578245611|p02718|0
codenet
Compile Error
1,927
v2_s836064113
s836064113
s836064113
p02718
p02718
u608550402
u608550402
1,586,132,930
2020-04-06T00:28:50
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 m = sc.nextInt(); int count = 0; int all = 0; String yon = ""; double d = 0.0; int[] array = new int[n]; fo...
Main.java:31: error: ';' expected d = all/(4*m) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608550402|p02718|0
u608550402|p02718|0
codenet
Compile Error
692
v2_s273924354
s273924354
s273924354
p02718
p02718
u610146401
u610146401
1,596,491,289
2020-08-03T21:48:09
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 M=sc.nextInt(); System.out.println(); int A[]=new int[N]; int cnt=0; int total=0; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); ...
Main.java:16: error: cannot find symbol if(A[i]>=total/4*M){ ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610146401|p02718|0
u610146401|p02718|0
codenet
Compile Error
561
v2_s430054546
s430054546
s430054546
p02718
p02718
u610146401
u610146401
1,596,493,578
2020-08-03T22: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 M=sc.nextInt(); System.out.println(); int A[]=new int[N]; int cnt=0; int total=0; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); ...
Main.java:16: error: '.class' expected if(A[j]>=double(total/(4*M))){ ^ Main.java:16: error: ';' expected if(A[j]>=double(total/(4*M))){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610146401|p02718|0
u610146401|p02718|0
codenet
Compile Error
571
v2_s298830809
s298830809
s298830809
p02718
p02718
u610146401
u610146401
1,596,493,730
2020-08-03T22:28:50
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 M=sc.nextInt(); System.out.println(); int A[]=new int[N]; int cnt=0; int total=0; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); ...
Main.java:16: error: '.class' expected if(A[j]>=float(total/(4*M))){ ^ Main.java:16: error: ';' expected if(A[j]>=float(total/(4*M))){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610146401|p02718|0
u610146401|p02718|0
codenet
Compile Error
570
v2_s958774166
s958774166
s958774166
p02718
p02718
u610795346
u610795346
1,586,049,417
2020-04-05T01:16:57
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); List<Integer> items = new ArrayList<>(); int votes = 0; for (int i = 0; i < n; i++) { int vote = in....
Main.java:20: error: incompatible types: unexpected return value if (check > condition && ++checkCount >= m) return true; ^ Main.java:22: error: incompatible types: unexpected return value return false; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610795346|p02718|0
u610795346|p02718|0
codenet
Compile Error
643
v2_s267821095
s267821095
s267821095
p02718
p02718
u618325650
u618325650
1,586,090,451
2020-04-05T12:40:51
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double n=sc.nextInt(),m=sc.nextInt(),sum=0; int[] a=new int[n]; for(int i=0;i<n;i++) { a[i]=sc.nextInt(); sum+=a[i]; } double f=sum/(4*m); boolean flag=true; ...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int[] a=new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618325650|p02718|0
u618325650|p02718|0
codenet
Compile Error
498
v2_s952323520
s952323520
s952323520
p02718
p02718
u630566616
u630566616
1,586,282,592
2020-04-07T18:03:12
Main.java
import java.util.*; public class Main{  public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int[] a =new int[n]; int sum = 0 ; for(int i = 0;i < n; i++){ a[i] = sc.nextInt(); sum += a[i]; } double...
Main.java:4: error: illegal character: '\u3000' ?public static void main(String[] args){ ^ Main.java:17: error: ')' expected for(int i =0; i <n; i++({ ^ Main.java:17: error: illegal start of expression for(int i =0; i <n; i++({ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u630566616|p02718|0
u630566616|p02718|0
codenet
Compile Error
577
v2_s748469906
s748469906
s748469906
p02718
p02718
u635104822
u635104822
1,586,049,241
2020-04-05T01:14:01
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i,p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { if...
Main.java:23: error: ';' expected System.out.println("Yes") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
480
v2_s977278302
s977278302
s977278302
p02718
p02718
u635104822
u635104822
1,586,049,910
2020-04-05T01:25:10
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { ...
Main.java:17: error: '.class' expected if(A[i]>=int((Math.round((p/(4.0*M))))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
508
v2_s265006593
s265006593
s265006593
p02718
p02718
u635104822
u635104822
1,586,049,955
2020-04-05T01:25:55
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { ...
Main.java:18: error: '.class' expected if(A[i]>=int((Math.round((p/(4.0*M))))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
509
v2_s490861802
s490861802
s490861802
p02718
p02718
u635104822
u635104822
1,586,050,128
2020-04-05T01:28:48
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { ...
Main.java:17: error: '.class' expected if(A[i]>=int(Math.round((p/(4.0*M)))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
506
v2_s386591087
s386591087
s386591087
p02718
p02718
u635104822
u635104822
1,586,050,293
2020-04-05T01:31:33
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { ...
Main.java:17: error: '.class' expected if(A[i]>=int(Math.round((p/(4.0*M))))); ^ Main.java:17: error: ';' expected if(A[i]>=int(Math.round((p/(4.0*M))))); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
507
v2_s477150775
s477150775
s477150775
p02718
p02718
u635104822
u635104822
1,586,050,335
2020-04-05T01:32:15
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } for(i=0;i<N;i++) { ...
Main.java:17: error: '.class' expected if(A[i]>=int(Math.round((p/(4.0*M))))) ^ Main.java:17: error: ';' expected if(A[i]>=int(Math.round((p/(4.0*M))))) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
506
v2_s999890998
s999890998
s999890998
p02718
p02718
u635104822
u635104822
1,586,050,886
2020-04-05T01:41:26
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int N=in.nextInt(); int M=in.nextInt();int A[]=new int [N]; int i;long p=0,m=0; for(i=0;i<N;i++) { A[i]=in.nextInt(); p=p+A[i]; } int y=int(Math.round((p/(4...
Main.java:15: error: '.class' expected int y=int(Math.round((p/(4.0*M))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02718|0
u635104822|p02718|0
codenet
Compile Error
518
v2_s524301863
s524301863
s524301863
p02718
p02718
u643406936
u643406936
1,586,227,555
2020-04-07T02:45:55
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] p = new int[n]; int sotoku = 0; int pop = 0; int comp = 0; for (int i = 0; i < n; i ++){ p[i] = sc.nextInt(); sotoku = sotoku + p[i]; } if (sot...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u643406936|p02718|0
u643406936|p02718|0
codenet
Compile Error
585
v2_s309441912
s309441912
s309441912
p02718
p02718
u661594854
u661594854
1,587,312,386
2020-04-19T16:06:26
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 M = sc.nextInt(); Integer A[]= new Integer[N]; int sum = 0; for(int i=0;i<N;i++){ A[i] = sc.nextInt(); ...
Main.java:26: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u661594854|p02718|0
u661594854|p02718|0
codenet
Compile Error
560
v2_s610379302
s610379302
s610379302
p02718
p02718
u699628455
u699628455
1,587,866,674
2020-04-26T02:04:34
Main.java
import java.util.*; class Main{ static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int N = sc.nextInt(); int M = sc.nextInt(); int a[] = new int[N]; int sum = 0; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); sum = sum+a[...
Main.java:13: error: cannot find symbol Arrays.list(a); ^ symbol: method list(int[]) location: class Arrays 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02718|0
u699628455|p02718|0
codenet
Compile Error
648
v2_s022843615
s022843615
s022843615
p02718
p02718
u699628455
u699628455
1,587,866,934
2020-04-26T02:08:54
Main.java
import java.util.*; class Main{ static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int N = sc.nextInt(); int M = sc.nextInt(); int[] a = new int[N]; int sum = 0; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); sum = sum+a[...
Main.java:13: error: cannot find symbol Arrays.list(a); ^ symbol: method list(int[]) location: class Arrays Main.java:14: error: cannot find symbol Collections.reverse(num1); ^ symbol: variable num1 location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02718|0
u699628455|p02718|0
codenet
Compile Error
682
v2_s185204255
s185204255
s185204255
p02718
p02718
u707562002
u707562002
1,586,050,748
2020-04-05T01:39:08
Main.java
import util.java.Scanner(); public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); int[] a = scn.nextInt(); int sum += a[]; scn.close(); if(a[]<sum/4*M){ System.out.println("No"); }els...
Main.java:1: error: ';' expected import util.java.Scanner(); ^ Main.java:8: error: ';' expected int sum += a[]; ^ Main.java:8: error: not a statement int sum += a[]; ^ Main.java:10: error: '.class' expected if(a[]<sum/4*M){ ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
368
v2_s313039066
s313039066
s313039066
p02718
p02718
u707562002
u707562002
1,586,050,860
2020-04-05T01:41:00
Main.java
import util.java.Scanner(); public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); int[] a = scn.nextInt(); int sum = sum+a[]; scn.close(); if(a[]<sum/4*M){ System.out.println("No"); ...
Main.java:1: error: ';' expected import util.java.Scanner(); ^ Main.java:8: error: '.class' expected int sum = sum+a[]; ^ Main.java:10: error: '.class' expected if(a[]<sum/4*M){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
373
v2_s825867834
s825867834
s825867834
p02718
p02718
u707562002
u707562002
1,586,050,946
2020-04-05T01:42:26
Main.java
import util.java.Scanner(); public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); int[] a = scn.nextInt(); int sum = 0; int sum = sum+a[]; scn.close(); if(a[]<sum/4*M){ System.out....
Main.java:1: error: ';' expected import util.java.Scanner(); ^ Main.java:9: error: '.class' expected int sum = sum+a[]; ^ Main.java:11: error: '.class' expected if(a[]<sum/4*M){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
392
v2_s100587587
s100587587
s100587587
p02718
p02718
u707562002
u707562002
1,586,051,009
2020-04-05T01:43:29
Main.java
import util.java.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); int[] a = scn.nextInt(); int sum = 0; int sum = sum+a[]; scn.close(); if(a[]<sum/4*M){ System.out.pr...
Main.java:9: error: '.class' expected int sum = sum+a[]; ^ Main.java:11: error: '.class' expected if(a[]<sum/4*M){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
390
v2_s810332460
s810332460
s810332460
p02718
p02718
u707562002
u707562002
1,586,051,069
2020-04-05T01:44:29
Main.java
import util.java.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); int[] a = scn.nextInt(); int sum = 0; int sum = sum+a[].class; scn.close(); if(a[].class<sum/4*M){ S...
Main.java:1: error: cannot find symbol import util.java.Scanner; ^ symbol: class Scanner location: package util.java Main.java:4: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Sc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
402
v2_s333554586
s333554586
s333554586
p02718
p02718
u707562002
u707562002
1,586,051,245
2020-04-05T01:47:25
Main.java
import util.java.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); while(i=0){ int a[i] = scn.nextInt(); int sum = 0; int sum = sum+a[i]; i += 1; } scn.close(...
Main.java:8: error: ']' expected int a[i] = scn.nextInt(); ^ Main.java:8: error: ';' expected int a[i] = scn.nextInt(); ^ Main.java:14: error: '.class' expected if(a[]<sum/4*M){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
432
v2_s556577000
s556577000
s556577000
p02718
p02718
u707562002
u707562002
1,586,051,325
2020-04-05T01:48:45
Main.java
import util.java.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); while(i=0){ int a[i] = scn.nextInt(); int sum = 0; int sum = sum+a[i]; i += 1; } scn.close(...
Main.java:8: error: ']' expected int a[i] = scn.nextInt(); ^ Main.java:8: error: ';' expected int a[i] = scn.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
450
v2_s646880124
s646880124
s646880124
p02718
p02718
u707562002
u707562002
1,586,051,360
2020-04-05T01:49:20
Main.java
import util.java.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); while(i=0){ int a[i-1] = scn.nextInt(); int sum = 0; int sum = sum+a[i-1]; i += 1; } scn.cl...
Main.java:8: error: ']' expected int a[i-1] = scn.nextInt(); ^ Main.java:8: error: not a statement int a[i-1] = scn.nextInt(); ^ Main.java:8: error: ';' expected int a[i-1] = scn.nextInt(); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02718|0
u707562002|p02718|0
codenet
Compile Error
456
v2_s046067097
s046067097
s046067097
p02718
p02718
u731661484
u731661484
1,594,680,777
2020-07-13T22:52:57
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 M = sc.nextInt(); int[] a = new int[N]; int sum = 0; for (int i = 0; i < N; i++) { a[i] = sc.nextInt(); ...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u731661484|p02718|0
u731661484|p02718|0
codenet
Compile Error
618
v2_s293771289
s293771289
s293771289
p02718
p02718
u788459797
u788459797
1,586,049,987
2020-04-05T01:26:27
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 m=sc.nextInt(); float sel=0.0; ArrayList<Integer> a=new ArrayList<>(); long sum=0; int flag=0; for(int i=0;i<n;i++){ int t=sc.nextInt(); ...
Main.java:7: error: incompatible types: possible lossy conversion from double to float float sel=0.0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u788459797|p02718|0
u788459797|p02718|0
codenet
Compile Error
657
v2_s037266122
s037266122
s037266122
p02718
p02718
u788993652
u788993652
1,592,247,670
2020-06-15T19:01:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner stdIn= new Scanner(System.in); int N = stdIn.nextInt(); int M = stdIn.nextInt(); int [] a=new int[N]; int sum=0; for(int i=0;i<N;i++){ a[i]=stdI...
Main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u788993652|p02718|0
u788993652|p02718|0
codenet
Compile Error
928
v2_s848623136
s848623136
s848623136
p02718
p02718
u795783760
u795783760
1,587,444,176
2020-04-21T04:42:56
Main.java
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); double n ; int m; n = sc.nextInt(); m = sc.nextInt(); double[] A = new int[n]; int i , counter,sum; counter = 0; sum = 0; for(i=0; i < n ;i++){ A[i] = sc.ne...
Main.java:9: error: incompatible types: possible lossy conversion from double to int double[] A = new int[n]; ^ Main.java:9: error: incompatible types: int[] cannot be converted to double[] double[] A = new int[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795783760|p02718|0
u795783760|p02718|0
codenet
Compile Error
610
v2_s862447859
s862447859
s862447859
p02718
p02718
u839277937
u839277937
1,586,306,583
2020-04-08T00:43:03
Main.java
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { static void createSgmt(int[] a, int[] s, int l, int h, int p){ if(l == h){ s[p] = a[l]; return; } int mid = (l + h)/2; ...
Main.java:74: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(a, 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 upper ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u839277937|p02718|0
u839277937|p02718|0
codenet
Compile Error
2,286
v2_s554982278
s554982278
s554982278
p02718
p02718
u845571316
u845571316
1,586,055,560
2020-04-05T02:59:20
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 m = sc.nextInt(); int total = 0; int counter = 0; int[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); toa...
Main.java:14: error: cannot find symbol toatl += a[i]; ^ symbol: variable toatl location: class Main Main.java:16: error: cannot find symbol float p = toatl / (4 * m); ^ symbol: variable toatl location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u845571316|p02718|0
u845571316|p02718|0
codenet
Compile Error
583
v2_s112806256
s112806256
s112806256
p02718
p02718
u850830779
u850830779
1,593,787,388
2020-07-03T14:43:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int a[] = new int[N]; for(int i=0;i<N;i++){ a[i]...
Main.java:28: error: not a statement System,out.println("Yes"); ^ Main.java:28: error: ';' expected System,out.println("Yes"); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u850830779|p02718|0
u850830779|p02718|0
codenet
Compile Error
734
v2_s583903102
s583903102
s583903102
p02718
p02718
u860874998
u860874998
1,589,255,984
2020-05-12T03:59:44
Main.java
//164B(Atcoder) import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int M = sc.nextInt(); int A[] = new int[N]; int sum=0; int count=0; for(int i=0;i<N;i++){ int A[i]...
Main.java:14: error: ']' expected int A[i]=sc.nextInt(); ^ Main.java:14: error: ';' expected int A[i]=sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02718|0
u860874998|p02718|0
codenet
Compile Error
639
v2_s104478529
s104478529
s104478529
p02718
p02718
u860874998
u860874998
1,589,256,069
2020-05-12T04:01:09
Main.java
//164B(Atcoder) import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int M = sc.nextInt(); int A[] = new int[N]; int sum=0; int count=0; for(int i=0;i<N;i++){ A[i]=sc....
Main.java:18: error: variable i might not have been initialized for(int i;i<N;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02718|0
u860874998|p02718|0
codenet
Compile Error
635
v2_s438242174
s438242174
s438242174
p02718
p02718
u860874998
u860874998
1,589,256,139
2020-05-12T04:02:19
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 M = sc.nextInt(); int A[] = new int[N]; int sum=0; int count=0; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); ...
Main.java:17: error: variable i might not have been initialized for(int i;i<N;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02718|0
u860874998|p02718|0
codenet
Compile Error
618
v2_s499224071
s499224071
s499224071
p02718
p02718
u868996139
u868996139
1,586,490,050
2020-04-10T03:40:50
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int sum = 0; int count = 0; int[] pop = new int[n]; for(int i = 0; i < n; i++){ pop[i] = scan...
Main.java:16: error: cannot find symbol Arrays.sort(pop, Collections.reverseOrder()); ^ symbol: variable Collections location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02718|0
u868996139|p02718|0
codenet
Compile Error
672
v2_s641903327
s641903327
s641903327
p02718
p02718
u868996139
u868996139
1,586,490,654
2020-04-10T03:50:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int sum = 0; int count = 0; int[] pop = new int[n]; for(int i = 0; i < n; i++){ pop[i] = scan.nextInt(); sum += ...
Main.java:31: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02718|0
u868996139|p02718|0
codenet
Compile Error
634
v2_s185679420
s185679420
s185679420
p02718
p02718
u870981361
u870981361
1,586,049,782
2020-04-05T01:23:02
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 M = sc.nextInt(); ArrayList<Integer> A = new ArrayList<Integer>(); int sum = 0; for (int i = 1; i < N ; i++) { int x = sc.nextInt(); A.add(...
Main.java:12: error: illegal character: '\u3000' sum = sum +?x; ^ Main.java:12: error: not a statement sum = sum +?x; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02718|0
u870981361|p02718|0
codenet
Compile Error
661
v2_s292040738
s292040738
s292040738
p02718
p02718
u900560792
u900560792
1,587,571,140
2020-04-22T15:59:00
Main.java
9:03:24 PM: Executing task 'Main.main()'... > Task :compileJava > Task :processResources NO-SOURCE > Task :classes 10 3 100 99 1 2 3 4 7 18 19 22 > Task :Main.main() No BUILD SUCCESSFUL in 2s 2 actionable tasks: 2 executed 9:03:27 PM: Task execution finished 'Main.main()'.
Main.java:1: error: class, interface, enum, or record expected 9:03:24 PM: Executing task 'Main.main()'... ^ Main.java:1: error: unclosed character literal 9:03:24 PM: Executing task 'Main.main()'... ^ Main.java:1: error: unclosed character literal 9:03:24 PM: Executing task 'Main.main()'... ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900560792|p02718|0
u900560792|p02718|0
codenet
Compile Error
277
v2_s866127745
s866127745
s866127745
p02718
p02718
u924562676
u924562676
1,587,278,637
2020-04-19T06:43:57
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) throws java.lang.Exception { BufferedReader br = new BufferedReader(new InputStreamReader((System.in))); StringTokenizer st = new StringTokenizer(br.readLine()); int n = Inte...
Main.java:19: error: '.class' expected int necessaryVotes = Math.ceil(double)total / (4 * m)); ^ Main.java:19: error: ';' expected int necessaryVotes = Math.ceil(double)total / (4 * m)); ^ Main.java:19: error: not...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924562676|p02718|0
u924562676|p02718|0
codenet
Compile Error
1,038
v2_s985463553
s985463553
s985463553
p02718
p02718
u925101523
u925101523
1,587,858,062
2020-04-25T23:41:02
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 M = sc.nextInt(); int[] A = new int[N]; int total = 0; for(int i=0; i<N; i++){ A[i] = sc.nextInt(); t...
Main.java:2: error: illegal character: '\u3000' public class?Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u925101523|p02718|0
u925101523|p02718|0
codenet
Compile Error
637
v2_s213790990
s213790990
s213790990
p02718
p02718
u930301908
u930301908
1,586,049,759
2020-04-05T01:22:39
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(); ArrayList<int> intList = new ArrayList<int>(); for (int x=0; x<=a; x++) { intList.add(sc.nextInt()); }...
Main.java:8: error: unexpected type ArrayList<int> intList = new ArrayList<int>(); ^ required: reference found: int Main.java:8: error: unexpected type ArrayList<int> intList = new ArrayList<int>(); ^ required: reference found: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u930301908|p02718|0
u930301908|p02718|0
codenet
Compile Error
500
v2_s515831035
s515831035
s515831035
p02718
p02718
u930301908
u930301908
1,586,049,797
2020-04-05T01:23:17
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(); ArrayList<Integer> intList = new ArrayList<Integer>(); for (int x=0; x<=a; x++) { intList.add(sc.nextInt()); ...
Main.java:13: error: array required, but ArrayList<Integer> found if(intList[b] > 4 * a) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u930301908|p02718|0
u930301908|p02718|0
codenet
Compile Error
508
v2_s056904744
s056904744
s056904744
p02718
p02718
u930301908
u930301908
1,586,051,100
2020-04-05T01:45:00
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(); ArrayList<Integer> intList = new ArrayList<Integer>(); instList.add(sc.nextInt()); // for (int x = 0; x <= a; x+...
Main.java:9: error: cannot find symbol instList.add(sc.nextInt()); ^ symbol: variable instList location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u930301908|p02718|0
u930301908|p02718|0
codenet
Compile Error
616
v2_s324924781
s324924781
s324924781
p02718
p02718
u930301908
u930301908
1,586,051,213
2020-04-05T01:46:53
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(); ArrayList<Integer> intList = new ArrayList<Integer>(); instList.add(new Integer(sc.nextInt())); // for (int x = ...
Main.java:9: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal instList.add(new Integer(sc.nextInt())); ^ Main.java:9: error: cannot find symbol instList.add(new Integer(sc.nextInt())); ^ symbol: variable instList location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u930301908|p02718|0
u930301908|p02718|0
codenet
Compile Error
629
v2_s835583177
s835583177
s835583177
p02718
p02718
u930301908
u930301908
1,586,051,287
2020-04-05T01:48:07
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); ArrayList<Integer> intList = new ArrayList<Integer>(); for (int x = 0; x <= a; x++) { intList.add(new Integer(sc.nextInt())); ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u930301908|p02718|0
u930301908|p02718|0
codenet
Compile Error
564
v2_s594602930
s594602930
s594602930
p02718
p02718
u950337243
u950337243
1,586,055,091
2020-04-05T02:51:31
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String nums = sc.nextLine(); String num[] = nums.split(" "); int N = Integer.parseInt(num[0]); int M = Integer.parseInt(num[1]); String inputs = sc.nextLine(); String input[] = inputs.spli...
Main.java:24: error: cannot find symbol popular = (sum % (4 * M) == 0)?popular1:popular+1; ^ symbol: variable popular1 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u950337243|p02718|0
u950337243|p02718|0
codenet
Compile Error
822
v2_s077014814
s077014814
s077014814
p02718
p02718
u969270038
u969270038
1,587,853,338
2020-04-25T22:22:18
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int M = stdIn.nextInt(); int sum_M =0; int[] A = new int[N]; int sum = 0; for (int...
Main.java:20: error: illegal start of expression if((long)A[N-M] +> (long)(sum/(4*M)) ){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u969270038|p02718|0
u969270038|p02718|0
codenet
Compile Error
602
v2_s060124386
s060124386
s060124386
p02718
p02718
u969270038
u969270038
1,587,853,644
2020-04-25T22:27:24
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int M = stdIn.nextInt(); int sum_M =0; int[] A = new int[N]; int sum = 0; for (int...
Main.java:22: error: ')' expected if((AAA < BBB ){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u969270038|p02718|0
u969270038|p02718|0
codenet
Compile Error
654
v2_s504206575
s504206575
s504206575
p02718
p02718
u969270038
u969270038
1,587,853,817
2020-04-25T22:30:17
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int M = stdIn.nextInt(); int sum_M =0; int[] A = new int[N]; int sum = 0; for (int...
Main.java:22: error: cannot find symbol System.out.println("\n"+AAA+"\n"+BBB+"\n"+(AAA-BBB)); ^ symbol: variable AAA location: class Main Main.java:22: error: cannot find symbol System.out.println("\n"+AAA+"\n"+BBB+"\n"+(AAA-BBB)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u969270038|p02718|0
u969270038|p02718|0
codenet
Compile Error
719
v2_s578280071
s578280071
s578280071
p02718
p02718
u969270038
u969270038
1,587,853,853
2020-04-25T22:30:53
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt(); int M = stdIn.nextInt(); int sum_M =0; int[] A = new int[N]; int sum = 0; for (int...
Main.java:23: error: cannot find symbol if(AAA < BBB ){ ^ symbol: variable AAA location: class Main Main.java:23: error: cannot find symbol if(AAA < BBB ){ ^ symbol: variable BBB location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u969270038|p02718|0
u969270038|p02718|0
codenet
Compile Error
721
v2_s435584026
s435584026
s435584026
p02718
p02718
u990109804
u990109804
1,586,406,664
2020-04-09T04:31:04
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int suma=0; String populares=0; int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[n]; for(int i=0;i<=n;i++) { a[i]= sc.nextInt(); ...
Main.java:6: error: incompatible types: int cannot be converted to String String populares=0; ^ Main.java:21: error: cannot find symbol pupulares++; ^ symbol: variable pupulares location: class Main Main.java:24: error: bad operand types for binary operator '...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990109804|p02718|0
u990109804|p02718|0
codenet
Compile Error
658
v2_s976502951
s976502951
s976502951
p02718
p02718
u990109804
u990109804
1,586,406,717
2020-04-09T04:31:57
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int suma=0; int populares=0; int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[n]; for(int i=0;i<=n;i++) { a[i]= sc.nextInt(); ...
Main.java:21: error: cannot find symbol pupulares++; ^ symbol: variable pupulares location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990109804|p02718|0
u990109804|p02718|0
codenet
Compile Error
656
v2_s410531531
s410531531
s410531531
p02718
p02718
u990109804
u990109804
1,586,406,770
2020-04-09T04:32:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int suma=0; int populares=0; int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[n]; for(int i=0;i<=n;i++) { a[i]= sc.nextInt(); ...
Main.java:21: error: cannot find symbol pupulares+=1; ^ symbol: variable pupulares location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990109804|p02718|0
u990109804|p02718|0
codenet
Compile Error
657
v2_s197368272
s197368272
s197368272
p02718
p02718
u990109804
u990109804
1,586,407,923
2020-04-09T04:52:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int suma=0; int populares=0; int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[n]; for(int i=0;i<n;i++) { a[i]= sc.nextInt(); ...
Main.java:15: error: '.class' expected for(int j: a[]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990109804|p02718|0
u990109804|p02718|0
codenet
Compile Error
632
v2_s317305292
s317305292
s317305292
p02719
p02719
u063042452
u063042452
1,591,725,972
2020-06-09T18:06:12
Main.java
public static void Main(args[]){ result=N%K if(result==0){ System.out.println(result); }else{ if(result<=N){ System.out.print(result); }else{ System.out.print(N); } } }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void Main(args[]){ ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected public static void Main(args[]){ ^ Main.java:2: error: ';' ex...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u063042452|p02719|0
u063042452|p02719|0
codenet
Compile Error
221
v2_s506167946
s506167946
s506167946
p02719
p02719
u080519705
u080519705
1,588,862,818
2020-05-07T14:46:58
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); Long N = input.nextLong(); Long K = input.nextLong(); long ans; if (N % K == 0) { ans = 0; } else { ans = ((N % K) ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u080519705|p02719|0
u080519705|p02719|0
codenet
Compile Error
410
v2_s209872315
s209872315
s209872315
p02719
p02719
u080519705
u080519705
1,588,862,862
2020-05-07T14:47:42
Main.java
public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); Long N = input.nextLong(); Long K = input.nextLong(); long ans; if (N % K == 0) { ans = 0; } else { ans = ((N % K) <= (K / 2)) ? (N % K) : (K ...
Main.java:3: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u080519705|p02719|0
u080519705|p02719|0
codenet
Compile Error
383
v2_s923181476
s923181476
s923181476
p02719
p02719
u201966856
u201966856
1,592,927,348
2020-06-23T15:49:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //入力表示 long N = sc.nextLong(); long K = sc.nextLong(); long a = N % K; System.out.println(Math.min(a, K - a));
Main.java:15: error: reached end of file while parsing System.out.println(Math.min(a, K - a)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u201966856|p02719|0
u201966856|p02719|0
codenet
Compile Error
316
v2_s673892032
s673892032
s673892032
p02719
p02719
u207845630
u207845630
1,586,050,422
2020-04-05T01:33:42
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); long ans = N; if(N > M){ N = N - (K * (N / K)); for(int i = 0;i < 2;i++){ N = Math.abs(N - K); if(N < ans){ ans = N; } ...
Main.java:8: error: cannot find symbol if(N > M){ ^ symbol: variable M location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02719|0
u207845630|p02719|0
codenet
Compile Error
357
v2_s249337989
s249337989
s249337989
p02719
p02719
u271651326
u271651326
1,586,052,898
2020-04-05T02:14:58
Main.java
import java.util.Scanner; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long x = scanner.nextLong(); long y = scanner.nextLong(); if(x<y){ int d = Math.abs(x-y); if(x>d){ System.out.print(d); ...
Main.java:11: error: incompatible types: possible lossy conversion from long to int int d = Math.abs(x-y); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271651326|p02719|0
u271651326|p02719|0
codenet
Compile Error
634
v2_s091867936
s091867936
s091867936
p02719
p02719
u291402523
u291402523
1,586,053,559
2020-04-05T02:25:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); long N=scan.nextLong(); long K=scan.nextLong(); if(N==0||N%K==0) { System.out.println("0"); } else { List<Long> list=new ArrayList<Long>(); boolean flag=false,fla...
Main.java:16: error: cannot find symbol List<Long> list=new ArrayList<Long>(); ^ symbol: class List location: class Main Main.java:16: error: cannot find symbol List<Long> list=new ArrayList<Long>(); ^ symbol: class ArrayList location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u291402523|p02719|0
u291402523|p02719|0
codenet
Compile Error
728
v2_s660304545
s660304545
s660304545
p02719
p02719
u378599173
u378599173
1,586,050,217
2020-04-05T01:30:17
Main.java
import java.util.*; public class Main { public static void main(final String[] args) { final Scanner sc = new Scanner(System.in); String S = sc.next(); BigInteger N = new BigInteger(S); S = sc.next(); BigInteger K = new BigInteger(S); sc.close(); BigInteger ...
Main.java:7: error: cannot find symbol BigInteger N = new BigInteger(S); ^ symbol: class BigInteger location: class Main Main.java:7: error: cannot find symbol BigInteger N = new BigInteger(S); ^ symbol: class BigInteger location: class Main Main.java:9: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u378599173|p02719|0
u378599173|p02719|0
codenet
Compile Error
798
v2_s159176072
s159176072
s159176072
p02719
p02719
u394325049
u394325049
1,586,054,061
2020-04-05T02:34:21
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { try{ Scanner sc=new Scanner(System.in...
Main.java:17: error: unclosed string literal System.out.println("0); ^ Main.java:18: error: 'else' without 'if' else ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u394325049|p02719|0
u394325049|p02719|0
codenet
Compile Error
661
v2_s410738045
s410738045
s410738045
p02719
p02719
u397604928
u397604928
1,586,051,053
2020-04-05T01:44:13
Main.java
public class Main { public static void main(String[] args) { //コード Scanner sc = new Scanner(System.in); double N = sc.nextInt(); double K = sc.nextInt(); double a = N%K; double b = K - a; if(a<=b){ System.out.println(a); } else { System.out.println(b); ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: 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
u397604928|p02719|0
u397604928|p02719|0
codenet
Compile Error
341
v2_s787406481
s787406481
s787406481
p02719
p02719
u397604928
u397604928
1,586,051,155
2020-04-05T01:45:55
Main.java
public class Main { public static void main(String[] args) { //コード Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long K = sc.nextInt(); long a = N%K; long b = K - a; if(a<=b){ System.out.println(a); } else { System.out.println(b); } ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: 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
u397604928|p02719|0
u397604928|p02719|0
codenet
Compile Error
333
v2_s620147533
s620147533
s620147533
p02719
p02719
u435051977
u435051977
1,586,802,486
2020-04-13T18:28:06
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); long N = stdIn.nextLong(); long K = stdIn.nextLong(); long sub; while(true) { sub = Math.abs(N - K); if(N < sub) { break; }else { N = sub; } } } System.o...
Main.java:19: error: <identifier> expected System.out.println(N); ^ Main.java:19: error: <identifier> expected System.out.println(N); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u435051977|p02719|0
u435051977|p02719|0
codenet
Compile Error
336
v2_s059940723
s059940723
s059940723
p02719
p02719
u452955775
u452955775
1,586,128,291
2020-04-05T23:11:31
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); long n=scanner.nextLong(); long k=scanner.nextLong(); long a=n%k; long b=k-a; if(a>b)a=b; System.out.println(a); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452955775|p02719|0
u452955775|p02719|0
codenet
Compile Error
253
v2_s132598754
s132598754
s132598754
p02719
p02719
u469281291
u469281291
1,586,055,500
2020-04-05T02:58:20
Main.java
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long k = sc.nextLong(); long tmp = 0; if (n > k) tmp = Math.abs(n % k); else...
Main.java:18: error: break outside switch or loop break; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u469281291|p02719|0
u469281291|p02719|0
codenet
Compile Error
518
v2_s385434419
s385434419
s385434419
p02719
p02719
u499839875
u499839875
1,586,050,896
2020-04-05T01:41:36
Main.java
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner a = new Scanner(System.in); long k = a.nextLong(); long n = a.nextLong(); if(n == 0){ System.out.print(k); break; } while(k>=0){ if(n...
Main.java:10: error: break outside switch or loop break; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499839875|p02719|0
u499839875|p02719|0
codenet
Compile Error
595
v2_s792050817
s792050817
s792050817
p02719
p02719
u499839875
u499839875
1,586,055,185
2020-04-05T02:53:05
Main.java
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner a = new Scanner(System.in); long x = a.nextLong(); long y = a.nextLong(); long z = x%y; System.out.println(Math.min(z,Math.abs(y-z)));
Main.java:9: error: reached end of file while parsing System.out.println(Math.min(z,Math.abs(y-z))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499839875|p02719|0
u499839875|p02719|0
codenet
Compile Error
269
v2_s645401575
s645401575
s645401575
p02719
p02719
u547671064
u547671064
1,586,049,400
2020-04-05T01:16:40
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 C =N%K; int D =K/2; if(C<=K/2){System.out.println(C);} else{System.out.println(K-C);} } }
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02719|0
u547671064|p02719|0
codenet
Compile Error
281