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_s928105368
s928105368
s928105368
p03220
p03220
u347452770
u347452770
1,551,999,042
2019-03-07T22:50:42
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); //number of spot int T = scan.nextInt(); //state temperature int A = scan.nextInt(); // temperature that princess wants int...
Main.java:14: error: array dimension missing int[] t = new int[]; //list of temperature ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03220|0
u347452770|p03220|0
codenet
Compile Error
775
v2_s116031883
s116031883
s116031883
p03220
p03220
u347452770
u347452770
1,551,999,101
2019-03-07T22:51:41
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); //number of spot int T = scan.nextInt(); //state temperature int A = scan.nextInt(); // temperature that princess wants in...
Main.java:16: error: incompatible types: possible lossy conversion from double to int t[i] = T - 0.006 * H[i]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03220|0
u347452770|p03220|0
codenet
Compile Error
820
v2_s258623085
s258623085
s258623085
p03220
p03220
u355798276
u355798276
1,541,827,116
2018-11-10T05:18:36
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int t = Integer.parseInt(sc.next()); double a = Double.parseDouble(sc.next...
Main.java:21: error: local variables referenced from a lambda expression must be final or effectively final if (Math.abs(a - ti) < minDiff) { ^ Main.java:23: error: local variables referenced from a lambda expression must be final or effectively final minDiff = Math.ab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u355798276|p03220|0
u355798276|p03220|0
codenet
Compile Error
913
v2_s414591324
s414591324
s414591324
p03220
p03220
u422413213
u422413213
1,541,387,176
2018-11-05T03:06:16
Main.java
import java.util.*; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int[] H = new int[N]; for ( int j = 0; j < N; j++ ) { H[j] = sc.nextInt(); } ...
Main.java:18: error: incompatible types: possible lossy conversion from double to int int tempDiff = Math.abs(H[j] - h); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u422413213|p03220|0
u422413213|p03220|0
codenet
Compile Error
684
v2_s555415116
s555415116
s555415116
p03220
p03220
u487433273
u487433273
1,576,594,945
2019-12-17T15:02:25
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 T = sc.nextInt(); int A = sc.nextInt(); int[] Hi = new int[N]; for(int i =0;i<N;i++) Hi[i] = sc.nextInt(); int ans =0; double min = (double)(T-A); ...
Main.java:16: error: bad operand types for binary operator '*' di = T-Hi*0.006-A; ^ first type: int[] second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03220|0
u487433273|p03220|0
codenet
Compile Error
513
v2_s019145396
s019145396
s019145396
p03220
p03220
u487433273
u487433273
1,576,594,971
2019-12-17T15:02:51
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 T = sc.nextInt(); int A = sc.nextInt(); int[] Hi = new int[N]; for(int i =0;i<N;i++) Hi[i] = sc.nextInt(); int ans =0; double min = (double)(T-A); ...
Main.java:16: error: incompatible types: int[] cannot be converted to double di = T-(double)Hi*0.006-A; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03220|0
u487433273|p03220|0
codenet
Compile Error
521
v2_s417071848
s417071848
s417071848
p03220
p03220
u509421351
u509421351
1,596,253,099
2020-08-01T03:38:19
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int[] H = new int[N]; int a = 10000000; int b = 0; for(int i=0; i<N; i++) { H[i] = sc.nextInt(); } sc.close(); for(int i=0; i<N; ...
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
u509421351|p03220|0
u509421351|p03220|0
codenet
Compile Error
454
v2_s418926588
s418926588
s418926588
p03220
p03220
u528211410
u528211410
1,542,507,074
2018-11-18T02:11:14
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 T = sc.nextInt(); int A = sc.nextInt(); int[] H = new int[N]; double[] temp = new temp[N]; for (int i = 0; i<N; i++){ H[i] = sc.nextInt(); ...
Main.java:10: error: cannot find symbol double[] temp = new temp[N]; ^ symbol: class temp location: class Main Main.java:17: error: incompatible types: possible lossy conversion from double to int int tmp = temp[0]; ^ Main.java:20: error: incompatible types: possi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u528211410|p03220|0
u528211410|p03220|0
codenet
Compile Error
569
v2_s217411379
s217411379
s217411379
p03220
p03220
u528211410
u528211410
1,542,507,117
2018-11-18T02:11: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 T = sc.nextInt(); int A = sc.nextInt(); int[] H = new int[N]; double[] temp = new int[N]; for (int i = 0; i<N; i++){ H[i] = sc.nextInt(); ...
Main.java:10: error: incompatible types: int[] cannot be converted to double[] double[] temp = new int[N]; ^ Main.java:17: error: incompatible types: possible lossy conversion from double to int int tmp = temp[0]; ^ Main.java:20: error: incompatible types: possible lossy co...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u528211410|p03220|0
u528211410|p03220|0
codenet
Compile Error
568
v2_s910671303
s910671303
s910671303
p03220
p03220
u547167033
u547167033
1,566,358,136
2019-08-21T03:28:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc,nextInt(),t=sc.nextInt(),a=sc.nextInt(); int[] h = new int[n]; double[] temp = new double[n]; double min = 1000000; for(int i = 0;i < n;i++){ h[i] = sc....
Main.java:5: error: ';' expected int n=sc,nextInt(),t=sc.nextInt(),a=sc.nextInt(); ^ Main.java:5: error: ';' expected int n=sc,nextInt(),t=sc.nextInt(),a=sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03220|0
u547167033|p03220|0
codenet
Compile Error
530
v2_s675247052
s675247052
s675247052
p03220
p03220
u547167033
u547167033
1,566,358,186
2019-08-21T03:29:46
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 t = sc.nextInt(); int a = sc.nextInt(); int[] h = new int[n]; double[] temp = new double[n]; double min = 1000000; for(int i = 0;i...
Main.java:5: error: ';' expected int n = sc,nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03220|0
u547167033|p03220|0
codenet
Compile Error
559
v2_s343557214
s343557214
s343557214
p03220
p03220
u587842109
u587842109
1,542,076,996
2018-11-13T02:43:16
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int =0;i<N;i++){ int H = sc.nextInt(); if(abs(A-(T-H*0.006) < num) { n...
Main.java:12: error: not a statement for(int =0;i<N;i++){ ^ Main.java:12: error: ';' expected for(int =0;i<N;i++){ ^ Main.java:12: error: illegal start of expression for(int =0;i<N;i++){ ^ Main.java:12: error: not a statement for(int =0;i<N;i++){ ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
423
v2_s652424270
s652424270
s652424270
p03220
p03220
u587842109
u587842109
1,542,077,052
2018-11-13T02:44:12
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); if(abs(A-(T-H*0.006) < num) { ...
Main.java:14: error: ')' expected if(abs(A-(T-H*0.006) < num) ^ Main.java:16: error: ')' or ',' expected num = abs(A-(T-H*0.006); ^ Main.java:22: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
404
v2_s854621216
s854621216
s854621216
p03220
p03220
u587842109
u587842109
1,542,077,628
2018-11-13T02:53:48
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); if(abs(A-(T-H*0.006) < num) { ...
Main.java:14: error: ')' expected if(abs(A-(T-H*0.006) < num) ^ Main.java:16: error: ')' or ',' expected num = abs(A-(T-H*0.006); ^ Main.java:44: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
814
v2_s481588398
s481588398
s481588398
p03220
p03220
u587842109
u587842109
1,542,077,667
2018-11-13T02:54:27
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); if(abs(A-(T-H*0.006) < num) { ...
Main.java:14: error: ')' expected if(abs(A-(T-H*0.006) < num) ^ Main.java:16: error: ')' or ',' expected num = abs(A-(T-H*0.006); ^ Main.java:44: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
814
v2_s562486873
s562486873
s562486873
p03220
p03220
u587842109
u587842109
1,542,077,750
2018-11-13T02:55:50
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); if(abs(A-(T-H*0.006) < num) { ...
Main.java:14: error: ')' expected if(abs(A-(T-H*0.006) < num) ^ Main.java:16: error: ')' or ',' expected num = abs(A-(T-H*0.006); ^ Main.java:46: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
813
v2_s812782902
s812782902
s812782902
p03220
p03220
u587842109
u587842109
1,542,077,806
2018-11-13T02:56:46
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); int a=abs(A-(T-H*0.006)); if(a < num)...
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:14: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
406
v2_s724968845
s724968845
s724968845
p03220
p03220
u587842109
u587842109
1,542,077,853
2018-11-13T02:57: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 T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); int a=abs(A-(T-H*0.006)...
Main.java:16: error: cannot find symbol int a=abs(A-(T-H*0.006)); ^ symbol: method abs(double) location: class Main Main.java:24: error: cannot find symbol System.out.println(i); ^ symbol: variable i location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
427
v2_s257596794
s257596794
s257596794
p03220
p03220
u587842109
u587842109
1,542,078,001
2018-11-13T03:00: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 T=sc.nextInt(); int A=sc.nextInt(); int num=110; int count =0; for(int i=0;i<N;i++){ int H = sc.nextInt(); int a=Math.abs(A-(T-H*0...
Main.java:16: error: incompatible types: possible lossy conversion from double to int int a=Math.abs(A-(T-H*0.006)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|0
u587842109|p03220|0
codenet
Compile Error
436
v2_s361231178
s361231178
s361231178
p03220
p03220
u587842109
u587842109
1,542,773,951
2018-11-21T04:19:11
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 T = sc.nextint(); int A = sc.nextint(); int x = (T - A) / 0.006; int diff = -1; int no = -1; for(int i=0;i<N-1;i++) { ...
Main.java:8: error: cannot find symbol int N = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:9: error: cannot find symbol int T = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:10: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|1
u587842109|p03220|1
codenet
Compile Error
495
v2_s536386796
s536386796
s536386796
p03220
p03220
u587842109
u587842109
1,542,774,017
2018-11-21T04:20:17
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 T = sc.nextInt(); int A = sc.nextInt(); int x = (T - A) / 0.006; int diff = -1; int no = -1; for(int i=0;i<N-1;i++) { ...
Main.java:12: error: incompatible types: possible lossy conversion from double to int int x = (T - A) / 0.006; ^ Main.java:18: error: cannot find symbol int H = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:20: error: cannot ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|1
u587842109|p03220|1
codenet
Compile Error
489
v2_s221487952
s221487952
s221487952
p03220
p03220
u587842109
u587842109
1,542,774,181
2018-11-21T04:23: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 T = sc.nextInt(); int A = sc.nextInt(); int x = (T - A) *1000 / 6; int diff = -1; int no = -1; for(int i=0;i<N-1;i++) ...
Main.java:18: error: cannot find symbol int H = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:20: error: cannot find symbol if (diff == -1 || diff > abs(H-x) ){ ^ symbol: method abs(int) location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|1
u587842109|p03220|1
codenet
Compile Error
492
v2_s328957827
s328957827
s328957827
p03220
p03220
u587842109
u587842109
1,542,774,263
2018-11-21T04:24: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 T = sc.nextInt(); int A = sc.nextInt(); int x = (T - A) *1000 / 6; int diff = -1; int no = -1; for(int i=0;i<N-1;i++) ...
Main.java:21: error: cannot find symbol diff = abs(H-x); ^ symbol: method abs(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03220|1
u587842109|p03220|1
codenet
Compile Error
497
v2_s147978248
s147978248
s147978248
p03220
p03220
u626353997
u626353997
1,566,880,129
2019-08-27T04:28:49
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int t = sc.nextInt(); int a = sc.nextInt(); double min = Double.MAX_VALUE; int ans = 0; for(int i = 1;i <= n;i++){ ...
Main.java:14: error: cannot find symbol min = sa; ^ symbol: variable sa location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03220|0
u626353997|p03220|0
codenet
Compile Error
514
v2_s302227739
s302227739
s302227739
p03220
p03220
u653981267
u653981267
1,541,383,608
2018-11-05T02:06:48
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 t = sc.nextInt(); int a = sc.nextInt(); int ans = 0; int sa = 1000000; for(int i = 0; i < n; i++) { int h = sc.nextInt(); int s = Mat...
Main.java:13: error: incompatible types: possible lossy conversion from double to int int s = Math.abs(a - (t - h * 0.006)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03220|0
u653981267|p03220|0
codenet
Compile Error
454
v2_s776973820
s776973820
s776973820
p03220
p03220
u686751625
u686751625
1,587,598,561
2020-04-22T23:36:01
Main.java
import java.util.*; import java.io.*; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { InputReader in = new InputReader(System.in); int n = in.readInt(); int t = in.readInt(); int a = in.readInt(); double ans = Double.MAX_VALUE;...
Main.java:118: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686751625|p03220|0
u686751625|p03220|0
codenet
Compile Error
2,255
v2_s262154830
s262154830
s262154830
p03220
p03220
u690844139
u690844139
1,587,438,461
2020-04-21T03:07:41
Main.java
import util.java.*; import java.util.Arrays; public class Main{ public static void main{String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; int [] temp = sc.nextInt(); for(int i=0;i<N;i++){ a[i...
Main.java:5: error: '(' expected public static void main{String[] args){ ^ Main.java:5: error: ';' expected public static void main{String[] args){ ^ Main.java:28: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
677
v2_s359730211
s359730211
s359730211
p03220
p03220
u690844139
u690844139
1,587,438,504
2020-04-21T03:08:24
Main.java
import util.java.*; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; int [] temp = sc.nextInt(); for(int i=0;i<N;i++){ a[i...
Main.java:1: error: package util.java does not exist import util.java.*; ^ Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
677
v2_s035516185
s035516185
s035516185
p03220
p03220
u690844139
u690844139
1,587,438,669
2020-04-21T03:11:09
Main.java
import java.util.*; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; int [] temp = new int[N]; for(int i=0;i<N;i++){ a[i] ...
Main.java:14: error: incompatible types: possible lossy conversion from double to int temp[i] = T-a[i]*0.006; ^ Main.java:20: error: cannot find symbol x = Math.abs(A-temp[i]); ^ symbol: variable x location: class Main Main.java:21: error: cannot find symbol if(x<min){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
675
v2_s753401883
s753401883
s753401883
p03220
p03220
u690844139
u690844139
1,587,438,747
2020-04-21T03:12:27
Main.java
import java.util.*; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; float [] temp = new int[N]; for(int i=0;i<N;i++){ a[i...
Main.java:11: error: incompatible types: int[] cannot be converted to float[] float [] temp = new int[N]; ^ Main.java:14: error: incompatible types: possible lossy conversion from double to float temp[i] = T-a[i]*0.006; ^ Main.java:23: error: incompatible types: possible l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
690
v2_s770568882
s770568882
s770568882
p03220
p03220
u690844139
u690844139
1,587,438,794
2020-04-21T03:13:14
Main.java
import java.util.*; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; float [] temp = new float[N]; for(int i=0;i<N;i++){ a...
Main.java:14: error: incompatible types: possible lossy conversion from double to float temp[i] = T-a[i]*0.006; ^ Main.java:23: error: incompatible types: possible lossy conversion from float to int min = x; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
692
v2_s161327395
s161327395
s161327395
p03220
p03220
u690844139
u690844139
1,587,438,950
2020-04-21T03:15:50
Main.java
import java.util.*; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int A = sc.nextInt(); int [] a = new int[N]; float [] temp = new float[N]; for(int i=0;i<N;i++){ a...
Main.java:14: error: incompatible types: possible lossy conversion from double to float temp[i] = (float)T-a[i]*0.006; ^ Main.java:17: error: incompatible types: possible lossy conversion from double to float float min =100.0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p03220|0
u690844139|p03220|0
codenet
Compile Error
703
v2_s980374939
s980374939
s980374939
p03220
p03220
u707723724
u707723724
1,541,387,750
2018-11-05T03:15:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { int place; double tSurf, tA; Scanner sc = new Scanner(System.in); place = sc.nextInt(); tSurf = sc.nextDouble(); tA = sc.nextDouble(); double[] ts = new double[place]; ...
Main.java:21: error: variable min might not have been initialized if(Math.abs(tA - ts[i]) < min){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707723724|p03220|0
u707723724|p03220|0
codenet
Compile Error
750
v2_s150738168
s150738168
s150738168
p03220
p03220
u891161439
u891161439
1,548,445,788
2019-01-25T19:49:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double t = sc.nextDouble(); double a = sc.nextDouble(); double min = 1000000; int ans = 0; for(int i = 0;i < n;i++){ int h = sc.nextInt(); double tmp = t - x*(0.0...
Main.java:12: error: cannot find symbol double tmp = t - x*(0.006); ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03220|0
u891161439|p03220|0
codenet
Compile Error
417
v2_s906136152
s906136152
s906136152
p03220
p03220
u979180589
u979180589
1,577,940,928
2020-01-02T04:55:28
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 T = sc.nextInt(); int A = sc.nextInt(); int[] H = new int [N]; for (int i = 0; i < N; ++i) { H[i] = sc.nextInt(); ...
Main.java:10: error: illegal non-ASCII digit for (int i = ?; i < N; ++i) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979180589|p03220|0
u979180589|p03220|0
codenet
Compile Error
613
v2_s110307749
s110307749
s110307749
p03220
p03220
u992297405
u992297405
1,568,938,087
2019-09-20T00:08:07
Main.java
import java.util.*; import java.lang.Math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int temperature = sc.nextInt(); int average = sc.nextInt(); int result = 1; int resultAbs = Math.abs(ave...
Main.java:11: error: incompatible types: possible lossy conversion from double to int int resultAbs = Math.abs(average - sc.nextInt() * 0.006); ^ Main.java:13: error: incompatible types: possible lossy conversion from double to int int abs = Math.abs(average - sc.next...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992297405|p03220|0
u992297405|p03220|0
codenet
Compile Error
583
v2_s903285848
s903285848
s903285848
p03221
p03221
u008695540
u008695540
1,572,113,294
2019-10-26T18:08:14
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Main implements Comparable<Main>{ private int index; private int prefecture; private int year; private int rank; Main(int index,int prefecture,int year,int rank){ this.index = index...
Main.java:90: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03221|0
u008695540|p03221|0
codenet
Compile Error
1,981
v2_s739058408
s739058408
s739058408
p03221
p03221
u008695540
u008695540
1,572,113,438
2019-10-26T18:10:38
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Main implements Comparable<Main>{ private int index; private int prefecture; private int year; private int rank; ID(int index,int prefecture,int year,int rank){ this.index = index; ...
Main.java:12: error: invalid method declaration; return type required ID(int index,int prefecture,int year,int rank){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03221|0
u008695540|p03221|0
codenet
Compile Error
1,994
v2_s035349712
s035349712
s035349712
p03221
p03221
u008695540
u008695540
1,572,113,502
2019-10-26T18:11:42
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Main implements Comparable<Main>{ private int index; private int prefecture; private int year; private int rank; Main(int index,int prefecture,int year,int rank){ this.index = ind...
Main.java:82: error: cannot find symbol Arrays.sort(IDs, new Comparator<ID>() { ^ symbol: class ID location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03221|0
u008695540|p03221|0
codenet
Compile Error
2,019
v2_s839679380
s839679380
s839679380
p03221
p03221
u015418292
u015418292
1,576,529,668
2019-12-16T20:54:28
Main.java
pimport java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); //県の数 int m = sc.nextInt(); //市の数 Map<Integer,int[]> map = new TreeMap<Integer,int[]>(); fo...
Main.java:1: error: class, interface, enum, or record expected pimport java.util.Map; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.TreeMap; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p03221|0
u015418292|p03221|0
codenet
Compile Error
987
v2_s918559483
s918559483
s918559483
p03221
p03221
u018679195
u018679195
1,543,376,966
2018-11-28T03:49:26
Main.java
ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution:
Main.java:1: error: class, interface, enum, or record expected ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution:ffgghhgvvbbbbttSolution: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03221|0
u018679195|p03221|0
codenet
Compile Error
96
v2_s196792296
s196792296
s196792296
p03221
p03221
u018679195
u018679195
1,543,616,940
2018-11-30T22:29:00
Main.java
public class Main { public static void main(String[] args) throws Exception { // System.setIn(new FileInputStream("D:\\Workspace\\SW\\src\\b\\tt2")); // long start = System.currentTimeMillis(); // strat // B - ID BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer s...
Main.java:11: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:11: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03221|6
u018679195|p03221|3
codenet
Compile Error
1,741
v2_s509087037
s509087037
s509087037
p03221
p03221
u018679195
u018679195
1,543,877,115
2018-12-03T22:45:15
Main.java
public class Main{ static int N,M; static int[][] arr; static boolean[] visited; static int count; public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); N=sc.nextInt(); M=sc.nextInt(); arr=new int[N+1][100]; visited=new boolean[N+1]; int[] orgi...
Main.java:8: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: error: cannot find symbol Map<I...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03221|11
u018679195|p03221|7
codenet
Compile Error
939
v2_s321096373
s321096373
s321096373
p03221
p03221
u018679195
u018679195
1,544,039,805
2018-12-05T19:56:45
Main.java
import java.text.NumberFormat; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner s = new Scanner(System.in); int N; int M; N = s.nextInt(); M = s.nextInt(); int code[][] = new int[M][4]; for(int i=0;i<M;i++) { co...
Main.java:22: error: cannot find symbol Arrays.sort(code,0,M,new Comparator<int[]>() { ^ symbol: class Comparator location: class Main Main.java:53: error: cannot find symbol Arrays.sort(code,0,M,new Comparator<int[]>() { ^ symbol: class Comparator locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03221|18
u018679195|p03221|10
codenet
Compile Error
1,437
v2_s351667740
s351667740
s351667740
p03221
p03221
u018679195
u018679195
1,544,044,853
2018-12-05T21:20:53
Main.java
import java.text.NumberFormat; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner s = new Scanner(System.in); int N; int M; N = s.nextInt(); M = s.nextInt(); int code[][] = new int[M][4]; for(int i=0;i<M;i++) { co...
Main.java:22: error: cannot find symbol Arrays.sort(code,0,M,new Comparator<int[]>() { ^ symbol: class Comparator location: class Main Main.java:48: error: cannot find symbol Arrays.sort(code,0,M,new Comparator<int[]>() { ^ symbol: class Comparator locati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03221|18
u018679195|p03221|10
codenet
Compile Error
1,466
v2_s243557043
s243557043
s243557043
p03221
p03221
u029115008
u029115008
1,548,531,799
2019-01-26T19:43:19
Main.java
import java.util.*; public class Main { long INF = Long.MAX_VALUE; public static void main(String[] args) { new C_ID().solve(); } void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] pc = new int[N + 1]; ...
Main.java:8: error: cannot find symbol new C_ID().solve(); ^ symbol: class C_ID location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029115008|p03221|0
u029115008|p03221|0
codenet
Compile Error
1,454
v2_s392020491
s392020491
s392020491
p03221
p03221
u062736195
u062736195
1,586,354,188
2020-04-08T13:56:28
Main.java
import static java.lang.System.*; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.NoSuchElementException; public class Main{ public static void main(String[] args) { FastScanner sc...
Main.java:140: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03221|1
u062736195|p03221|1
codenet
Compile Error
3,604
v2_s129457845
s129457845
s129457845
p03221
p03221
u076522215
u076522215
1,558,206,707
2019-05-18T19:11:47
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int n = sc.nextInt(); int m = sc.nextInt(); long[] plist = new long[m]; long[] ylist = new long[m]; Map<Long, List<Long>> map = new ...
Main.java:30: error: cannot find symbol String x = String.format("%06d%06d", p, Collections.binarySerach(map.get(p),y)); ^ symbol: method binarySerach(List<Long>,long) location: class Collections 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u076522215|p03221|3
u076522215|p03221|3
codenet
Compile Error
3,484
v2_s985913634
s985913634
s985913634
p03221
p03221
u089230684
u089230684
1,543,454,538
2018-11-29T01:22:18
main.java
public class main { static int N,M; static int[] arr; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); arr = new int[N]; for(int i=0;i<M;i++) { int P = sc.nextInt(); int Y = sc.nextInt(); arr[P-1]++; } for(int i=0;...
main.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class main main.java:8: 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
u089230684|p03221|0
u089230684|p03221|0
codenet
Compile Error
509
v2_s555028363
s555028363
s555028363
p03221
p03221
u089230684
u089230684
1,543,855,899
2018-12-03T16:51:39
Main.java
import java.*; import java.util.Scanner; import java.util.ArrayList; public class Main{ static int N,M; static String[] List; static String[][] city; static String[] Answer; public static void main(String[] args) { // TODO Auto-generated method stub Scanner ss = new Scanner(System.in); N = ss.nextInt(); ...
Main.java:1: error: package java does not exist import java.*; ^ Main.java:26: error: cannot find symbol Maints = new Main(); ^ symbol: variable Maints location: class Main Main.java:27: error: cannot find symbol ts.makesort(city , 1); ^ symbol: variable ts location: class Main Main.java:46: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03221|11
u089230684|p03221|5
codenet
Compile Error
1,798
v2_s474731267
s474731267
s474731267
p03221
p03221
u089230684
u089230684
1,543,862,740
2018-12-03T18:45:40
Main.java
import java.util.Arrays; import java.util.Comparator; 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(); sc.nextLine(); int[][] arr = new int[m][4]; for (int i = 0; i < m; i++) { arr[i][...
Main.java:58: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03221|11
u089230684|p03221|5
codenet
Compile Error
1,336
v2_s104505473
s104505473
s104505473
p03221
p03221
u089230684
u089230684
1,543,879,183
2018-12-03T23:19:43
Main.java
import java.util.LinkedHashMap; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; import java.util.Map.Entry; public class Main { static int N, M; public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc...
Main.java:49: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03221|11
u089230684|p03221|5
codenet
Compile Error
1,317
v2_s503339012
s503339012
s503339012
p03221
p03221
u089230684
u089230684
1,544,039,676
2018-12-05T19:54:36
Main.java
import java.text.NumberFormat; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner s = new Scanner(System.in); int N; int M; N = s.nextInt(); M = s.nextInt(); int code[][] = new int[M][4]; for(int i=0;i<M;i++) { co...
Main.java:22: error: cannot find symbol Arrays.sort(code,0,M,new Comparator<int[]>() { ^ symbol: class Comparator location: class Main Main.java:45: error: cannot find symbol ychange=1; ^ symbol: variable ychange location: class Main Main.java:53: error: cannot find symbol Ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03221|17
u089230684|p03221|8
codenet
Compile Error
1,439
v2_s413924780
s413924780
s413924780
p03221
p03221
u091010228
u091010228
1,556,767,150
2019-05-02T03:19:10
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { private static Scanner sc; public static void main(String[] args) { Main instance = new Main(); sc = instance.new Scanner(); instanc...
Main.java:113: error: reached end of file while parsing fjadlfjalf ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u091010228|p03221|0
u091010228|p03221|0
codenet
Compile Error
2,861
v2_s800623401
s800623401
s800623401
p03221
p03221
u103547002
u103547002
1,541,389,166
2018-11-05T03:39:26
Main.java
import java.util.Scanner; class Main { static void swap(int[][] a, int b, int c){ int t1 = a[b][0]; int t2 = a[b][1]; a[b][0] = a[c][0]; a[b][1] = a[c][1]; a[c][0] = t1; a[c][1] = t2; } static void leftsort(int[][] a, int left, int right){ int pl = left; int pr = right; int x = a[(pl + pr) / 2][0...
Main.java:31: error: <identifier> expected tatic void rightsort(int[][] a, int left, int right){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103547002|p03221|0
u103547002|p03221|0
codenet
Compile Error
2,428
v2_s722042074
s722042074
s722042074
p03221
p03221
u103547002
u103547002
1,541,389,193
2018-11-05T03:39:53
Main.java
import java.util.Scanner; class Main { static void swap(int[][] a, int b, int c){ int t1 = a[b][0]; int t2 = a[b][1]; a[b][0] = a[c][0]; a[b][1] = a[c][1]; a[c][0] = t1; a[c][1] = t2; } static void leftsort(int[][] a, int left, int right){ int pl = left; int pr = right; int x = a[(pl + pr) / 2][0...
Main.java:31: error: <identifier> expected tatic void rightsort(int[][] a, int left, int right){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103547002|p03221|0
u103547002|p03221|0
codenet
Compile Error
2,428
v2_s766979711
s766979711
s766979711
p03221
p03221
u105096556
u105096556
1,541,396,242
2018-11-05T05:37:22
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { int N = 0; int M = 0; Scanner scan = new Scanner(System.in); N = scan.nextInt(); M = scan.nextInt(); int arr[] = new int[M]; long arr2[] = new long[M]; String arr3[] = new String[M]; int f...
Main.java:17: error: cannot find symbol Map<String, Integer> hashmap = new HashMap<String, Integer>(); ^ symbol: class Map location: class Main Main.java:17: error: cannot find symbol Map<String, Integer> hashmap = new HashMap<String, Integer>(); ^ symbol: class Hash...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u105096556|p03221|0
u105096556|p03221|0
codenet
Compile Error
1,990
v2_s939583995
s939583995
s939583995
p03221
p03221
u124208943
u124208943
1,578,985,749
2020-01-14T07:09:09
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(): for(int i = 0; i < prefectureNum; i++){ map.put(i+1, new Array...
Main.java:8: error: ';' expected Map<String, List<String>> map = new HashMap<String, List<String>>(): ^ Main.java:20: error: ')' or ',' expected foreach(String key : map.KeySet()){ ^ Main.java:20: error: ';' expected foreach(Stri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
843
v2_s980319841
s980319841
s980319841
p03221
p03221
u124208943
u124208943
1,578,985,844
2020-01-14T07:10:44
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); for(int i = 0; i < prefectureNum; i++){ map.put(i+1, new Array...
Main.java:20: error: ')' or ',' expected foreach(String key : map.keySet()){ ^ Main.java:20: error: ';' expected foreach(String key : map.keySet()){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
843
v2_s927579738
s927579738
s927579738
p03221
p03221
u124208943
u124208943
1,578,985,887
2020-01-14T07:11:27
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); for(int i = 0; i < prefectureNum; i++){ map.put(i+1, new Array...
Main.java:11: error: incompatible types: int cannot be converted to String map.put(i+1, new ArrayList<String>()); ^ Main.java:19: error: incompatible types: inference variable V has incompatible bounds .sorted(Map.Entry.comparingByValue()); ^ equality constraints: List<String> upper bounds:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
839
v2_s332761872
s332761872
s332761872
p03221
p03221
u124208943
u124208943
1,578,986,048
2020-01-14T07:14:08
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); for(int i = 0; i < prefectureNum; i++){ map.put(String.valueOf...
Main.java:19: error: incompatible types: inference variable V has incompatible bounds .sorted(java.util.Map.Entry.comparingByValue()); ^ equality constraints: List<String> upper bounds: Comparable<? super V> where V,K are type-variables: V extends Comparable<? super V> declared in method <K,V>compar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
872
v2_s327525340
s327525340
s327525340
p03221
p03221
u124208943
u124208943
1,578,986,300
2020-01-14T07:18:20
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); for(int i = 0; i < prefectureNum; i++){ map.put(i+1, new Array...
Main.java:18: error: ')' or ',' expected foreach(String key : map.keySet()){ ^ Main.java:18: error: ';' expected foreach(String key : map.keySet()){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
810
v2_s430034240
s430034240
s430034240
p03221
p03221
u124208943
u124208943
1,578,986,329
2020-01-14T07:18:49
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); for(int i = 0; i < prefectureNum; i++){ map.put(i+1, new Array...
Main.java:11: error: incompatible types: int cannot be converted to String map.put(i+1, new ArrayList<String>()); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
806
v2_s008944008
s008944008
s008944008
p03221
p03221
u124208943
u124208943
1,578,990,196
2020-01-14T08:23:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = sc.nextInt(); int cityNum = sc.nextInt(); Map<String, List<String>> map = new HashMap<String, List<String>>(); String[][] array = new String[cityNum][2]; for(int i = 0; i < pref...
Main.java:19: error: cannot find symbol for(int i = 0; i < map.get(key).size(); i++){ ^ symbol: variable key location: class Main Main.java:20: error: cannot find symbol Collections.sort(map.get(key)); ^ symbol: variable key location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
952
v2_s995490416
s995490416
s995490416
p03221
p03221
u124208943
u124208943
1,579,002,266
2020-01-14T11:44:26
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = Integer.parseInt(sc.next()); int cityNum = Integer.parseInt(sc.next()); Map<String, List<Integer>> map = new HashMap<String, List<Integer>>(); String[][] array = new String[cityN...
Main.java:29: error: cannot find symbol while((map.get(key).get(i)).size < 6){ ^ symbol: variable size location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
1,371
v2_s252846859
s252846859
s252846859
p03221
p03221
u124208943
u124208943
1,579,002,293
2020-01-14T11:44:53
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = Integer.parseInt(sc.next()); int cityNum = Integer.parseInt(sc.next()); Map<String, List<Integer>> map = new HashMap<String, List<Integer>>(); String[][] array = new String[cityN...
Main.java:29: error: cannot find symbol while(map.get(key).get(i).size < 6){ ^ symbol: variable size location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
1,369
v2_s652025840
s652025840
s652025840
p03221
p03221
u124208943
u124208943
1,579,002,328
2020-01-14T11:45:28
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = Integer.parseInt(sc.next()); int cityNum = Integer.parseInt(sc.next()); Map<String, List<Integer>> map = new HashMap<String, List<Integer>>(); String[][] array = new String[cityN...
Main.java:29: error: cannot find symbol while(map.get(key).get(i).length() < 6){ ^ symbol: method length() location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
1,373
v2_s266795826
s266795826
s266795826
p03221
p03221
u124208943
u124208943
1,579,002,426
2020-01-14T11:47:06
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = Integer.parseInt(sc.next()); int cityNum = Integer.parseInt(sc.next()); Map<String, List<Integer>> map = new HashMap<String, List<Integer>>(); String[][] array = new String[cityN...
Main.java:29: error: cannot find symbol while(map.get(key).get(i).length() < 6){ ^ symbol: method length() location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
1,373
v2_s901241076
s901241076
s901241076
p03221
p03221
u124208943
u124208943
1,579,002,455
2020-01-14T11:47:35
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int prefectureNum = Integer.parseInt(sc.next()); int cityNum = Integer.parseInt(sc.next()); Map<String, List<Integer>> map = new HashMap<String, List<Integer>>(); String[][] array = new String[cityN...
Main.java:29: error: cannot find symbol while(map.get(key).get(i).length < 6){ ^ symbol: variable length location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p03221|0
u124208943|p03221|0
codenet
Compile Error
1,371
v2_s568770602
s568770602
s568770602
p03221
p03221
u137087473
u137087473
1,544,677,869
2018-12-13T05:11: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 array[][] = new int[m][4];//pr, year, index, old for(int i = 0; i < m; i ++) { array[i][0] = sc.nextInt(); array[i][1] = sc.nextInt(); ...
Main.java:14: error: cannot find symbol Comp comp = new Comp(); ^ symbol: class Comp location: class Main Main.java:14: error: cannot find symbol Comp comp = new Comp(); ^ symbol: class Comp location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137087473|p03221|0
u137087473|p03221|0
codenet
Compile Error
1,157
v2_s695946931
s695946931
s695946931
p03221
p03221
u268262648
u268262648
1,541,428,446
2018-11-05T14:34:06
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); Map<Integer,List<City>> map = new HashMap<...
Main.java:60: error: class City is public, should be declared in a file named City.java public class City { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u268262648|p03221|0
u268262648|p03221|0
codenet
Compile Error
1,397
v2_s195738536
s195738536
s195738536
p03221
p03221
u268262648
u268262648
1,541,428,570
2018-11-05T14:36:10
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); Map<Integer,List<City>> map = new HashMap<...
Main.java:18: error: non-static variable this cannot be referenced from a static context map.get(p).add(new City(p,y,i)); ^ Main.java:21: error: non-static variable this cannot be referenced from a static context list.add(new City(p,y,i)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u268262648|p03221|0
u268262648|p03221|0
codenet
Compile Error
1,403
v2_s947926982
s947926982
s947926982
p03221
p03221
u300527426
u300527426
1,541,389,474
2018-11-05T03:44:34
Main.java
mport java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); int[] pList = new int[m]; int[] yList = new i...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Map; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.TreeMap; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u300527426|p03221|0
u300527426|p03221|0
codenet
Compile Error
775
v2_s469710763
s469710763
s469710763
p03221
p03221
u334624175
u334624175
1,541,389,204
2018-11-05T03:40:04
Main.java
import java.util.*; import java.awt.*; 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[m]; int[] y = new int[m]; int[][] cop = new int[2][m]; for ...
Main.java:39: error: ')' expected for (int j = 0; j < 5 - (num[y[i]-1]1)/10; j++) { ^ Main.java:39: error: illegal start of expression for (int j = 0; j < 5 - (num[y[i]-1]1)/10; j++) { ^ Main.java:3...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334624175|p03221|0
u334624175|p03221|0
codenet
Compile Error
1,260
v2_s422254174
s422254174
s422254174
p03221
p03221
u353919145
u353919145
1,543,724,491
2018-12-02T04:21:31
Main.java
public static long[] city; public static int M; public static void main(String[] args) throws Exception { // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String str = bf.readLine(); String[] str1 = str.split(" "); M = Integer.parseInt(str1[1]); ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static long[] city; ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03221|8
u353919145|p03221|5
codenet
Compile Error
1,691
v2_s297807065
s297807065
s297807065
p03221
p03221
u353919145
u353919145
1,543,807,061
2018-12-03T03:17:41
Main.java
public class Main { private static int N;//辖区数 private static int M;//城市数 private static int area[];//辖区数组 private static int city[];//城市数组 private static ArrayList<Integer> p[]; private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nex...
Main.java:8: error: cannot find symbol private static ArrayList<Integer> p[]; ^ symbol: class ArrayList location: class Main Main.java:9: error: cannot find symbol private static Scanner sc; ^ symbol: class Scanner location: class Main Main.java:12: error: cannot find symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03221|11
u353919145|p03221|7
codenet
Compile Error
817
v2_s148190260
s148190260
s148190260
p03221
p03221
u353919145
u353919145
1,543,940,592
2018-12-04T16:23:12
Main.java
public class Main { static int N, M; static int[][] TABLE; static int[] PRECITY; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); TABLE = new int[M][2]; for (int i = 0; i < M; i++) { TABLE[i][0] = sc.nextInt(); TABLE[i][1] = sc.nextI...
Main.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:35: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03221|14
u353919145|p03221|9
codenet
Compile Error
1,405
v2_s945609146
s945609146
s945609146
p03221
p03221
u353919145
u353919145
1,543,980,082
2018-12-05T03:21:22
Main.java
import java.io.File; import java.io.FileInputStream; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in...
Main.java:41: error: incompatible types: Object cannot be converted to int System.out.println(format(valAry[i][0])+format(mapList.get(valAry[i][0]-1).get(valAry[i][1]))); ^ Note: Main.java uses unchecked or unsafe operations. Note: Reco...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03221|17
u353919145|p03221|9
codenet
Compile Error
1,436
v2_s228156063
s228156063
s228156063
p03221
p03221
u476482490
u476482490
1,541,390,539
2018-11-05T04:02:19
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner = new Scanner(System.in); int p = scanner.nextInt() + 1; int counter = scanner.nextInt(); int[] aArray = new int[counter]; int[] bArray = new int[counter]; ArrayList<Integer>[] arrayLists =...
Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p03221|0
u476482490|p03221|0
codenet
Compile Error
1,171
v2_s489365607
s489365607
s489365607
p03221
p03221
u476482490
u476482490
1,541,390,577
2018-11-05T04:02:57
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scanner = new Scanner(System.in); int p = scanner.nextInt() + 1; int counter = scanner.nextInt(); int[] aArray = new int[counter]; int[] bArray = new int[counter]; ArrayList<Integer>[] arrayLists =...
Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p03221|0
u476482490|p03221|0
codenet
Compile Error
1,171
v2_s536625128
s536625128
s536625128
p03221
p03221
u578441226
u578441226
1,549,507,202
2019-02-07T02:40:02
Main.java
import java.util.Map; import java.util.TreeMap; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Map<Integer,int[]> sortup = new TreeMap<>(); int N = sc.nextInt(); int M = sc.nextInt(); int[] P = new int[N]; int[] ans = new int...
Main.java:24: error: incompatible types: String cannot be converted to int ans[c[1]] = String.format("%06d%06d",c[0],++P[c[0]-1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578441226|p03221|0
u578441226|p03221|0
codenet
Compile Error
745
v2_s438799674
s438799674
s438799674
p03221
p03221
u578441226
u578441226
1,549,507,219
2019-02-07T02:40:19
Main.java
import java.util.Map; import java.util.TreeMap; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Map<Integer,int[]> sortup = new TreeMap<>(); int N = sc.nextInt(); int M = sc.nextInt(); int[] P = new int[N]; int[] ans = new int...
Main.java:23: error: incompatible types: String cannot be converted to int ans[c[1]] = String.format("%06d%06d",c[0],++P[c[0]-1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578441226|p03221|0
u578441226|p03221|0
codenet
Compile Error
714
v2_s445264712
s445264712
s445264712
p03221
p03221
u587842109
u587842109
1,542,866,193
2018-11-22T05:56:33
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); HashMap<Integer, Arraylist<Integer>> h = new HashMap<Integer,Arraylist<Integer>>(); Hashmap<Integer,Integer> hm = new HashMap<Integer,I...
Main.java:57: error: bad initializer for for-loop for(an:ans) ^ Main.java:65: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03221|0
u587842109|p03221|0
codenet
Compile Error
1,262
v2_s389714798
s389714798
s389714798
p03221
p03221
u587842109
u587842109
1,542,866,276
2018-11-22T05:57:56
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); HashMap<Integer, Arraylist<Integer>> h = new HashMap<Integer,Arraylist<Integer>>(); Hashmap<Integer,Integer> hm = new HashMap<Integer,...
Main.java:11: error: cannot find symbol HashMap<Integer, Arraylist<Integer>> h = new HashMap<Integer,Arraylist<Integer>>(); ^ symbol: class Arraylist location: class Main Main.java:11: error: cannot find symbol HashMap<Integer, Arraylist<Integer>> h = new HashMap<Integer,Arraylist<Int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03221|0
u587842109|p03221|0
codenet
Compile Error
1,229
v2_s741436601
s741436601
s741436601
p03221
p03221
u587842109
u587842109
1,542,866,428
2018-11-22T06:00:28
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); HashMap<Integer, ArrayList<Integer>> h = new HashMap<Integer,ArrayList<Integer>>(); Hashmap<Integer,Integer> hm = new HashMap<Integer,...
Main.java:12: error: cannot find symbol Hashmap<Integer,Integer> hm = new HashMap<Integer,Integer>(); ^ symbol: class Hashmap location: class Main Main.java:19: error: cannot find symbol if(!h.containkey(P)) ^ symbol: method containkey(int) location: variable h of type HashMap<Integ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03221|0
u587842109|p03221|0
codenet
Compile Error
1,229
v2_s589231554
s589231554
s589231554
p03221
p03221
u587842109
u587842109
1,542,866,535
2018-11-22T06:02:15
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); HashMap<Integer, ArrayList<Integer>> h = new HashMap<Integer,ArrayList<Integer>>(); Hashmap<Integer,Integer> hm = new HashMap<Integer,...
Main.java:12: error: cannot find symbol Hashmap<Integer,Integer> hm = new HashMap<Integer,Integer>(); ^ symbol: class Hashmap location: class Main Main.java:30: error: cannot find symbol Collection.sort(h.keySet()); ^ symbol: method sort(Set<Integer>) location: interface Collec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03221|0
u587842109|p03221|0
codenet
Compile Error
1,234
v2_s270029924
s270029924
s270029924
p03221
p03221
u587842109
u587842109
1,542,866,614
2018-11-22T06:03:34
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); HashMap<Integer, ArrayList<Integer>> h = new HashMap<Integer,ArrayList<Integer>>(); HashMap<Integer,Integer> hm = new HashMap<Integer,...
Main.java:30: error: no suitable method found for sort(Set<Integer>) Collections.sort(h.keySet()); ^ method Collections.<T#1>sort(List<T#1>) is not applicable (cannot infer type-variable(s) T#1 (argument mismatch; Set<Integer> cannot be converted to List<T#1>)) method Collec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03221|0
u587842109|p03221|0
codenet
Compile Error
1,235
v2_s983258723
s983258723
s983258723
p03221
p03221
u626217867
u626217867
1,559,670,616
2019-06-04T17:50:16
Main.java
import javafx.util.Pair; 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(); Map<Integer, List<Long>> dic = new HashMap<>(); List<Pair<Integer, Long>> toi = new ArrayList<>(); for (int i = 0; i<...
Main.java:1: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:12: error: cannot find symbol List<Pair<Integer, Long>> toi = new ArrayList<>(); ^ symbol: class Pair location: class Main Main.java:16: error: cannot find symbol toi.add(new Pair<>(x, y)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626217867|p03221|0
u626217867|p03221|0
codenet
Compile Error
1,134
v2_s692059918
s692059918
s692059918
p03221
p03221
u653981267
u653981267
1,586,115,589
2020-04-05T19:39:49
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[] year = new ArrayList[n]; for(int i = 0; i < n; i++) { year[i] = new ArrayList<Integer>(); } int[] p = new int...
Main.java:23: error: incompatible types: Object cannot be converted to Integer map.put(year[i].get(j), j + 1); ^ Main.java:29: error: incompatible types: int cannot be converted to String String ans1 = p[i]; ^ Note: Main.java uses unchecked or unsafe operati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03221|1
u653981267|p03221|1
codenet
Compile Error
1,140
v2_s316939306
s316939306
s316939306
p03221
p03221
u762160119
u762160119
1,561,609,993
2019-06-27T04:33:13
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 m = Integer.parseInt(sc.next()); Shi[] shi = new Shi[m]; for(int i = 0; i<m; i++) { shi[i] = new Shi(Integer.par...
Main.java:9: error: incompatible types: int cannot be converted to String shi[i] = new Shi(Integer.parseInt(sc.next()), Integer.parseInt(sc.nextInt()), i); ^ Note: Some messages have been simplified; recompile with -Xdiags:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762160119|p03221|1
u762160119|p03221|1
codenet
Compile Error
927
v2_s330935943
s330935943
s330935943
p03221
p03221
u820451342
u820451342
1,551,565,049
2019-03-02T22:17:29
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt();  Map<Integer...
Main.java:15: error: illegal character: '\u3000' ?Map<Integer, ArrayList<Integer>> map = new TreeMap<Integer, ArrayList<Integer>>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u820451342|p03221|0
u820451342|p03221|0
codenet
Compile Error
802
v2_s527083830
s527083830
s527083830
p03221
p03221
u863370423
u863370423
1,543,511,081
2018-11-29T17:04:41
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { static int N; static int M; static int [][] city; public static void main(String args[]) throws Exception { System.setIn(new FileInputStream( Scanner sc =...
Main.java:15: error: ')' or ',' expected Scanner sc = new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03221|0
u863370423|p03221|0
codenet
Compile Error
1,211
v2_s713030288
s713030288
s713030288
p03221
p03221
u863370423
u863370423
1,543,862,715
2018-12-03T18:45:15
MainB.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class MainB { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); sc.nextLine(); int[][] arr = new int[m][4]; for (int i = 0; i < m; i++) { arr[i]...
MainB.java:58: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03221|10
u863370423|p03221|5
codenet
Compile Error
1,337
v2_s929086768
s929086768
s929086768
p03221
p03221
u868975661
u868975661
1,541,385,662
2018-11-05T02:41:02
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(); HashMap<Integer, int[]> map = new HashMap<>(); ArrayList<Pair> list = new ArrayList<>(); for(int i = 0; i < n; i++) { ...
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
u868975661|p03221|0
u868975661|p03221|0
codenet
Compile Error
1,305
v2_s362445000
s362445000
s362445000
p03221
p03221
u912599273
u912599273
1,553,640,257
2019-03-26T22:44:17
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(); HashMap<Integer, Integer[]> map = new HashMap<>(); int[][] data = new int[m][4]; for(int i = 0; i < m; i++) { data[i][0] = i; data[i][1] =...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u912599273|p03221|0
u912599273|p03221|0
codenet
Compile Error
725
v2_s149553629
s149553629
s149553629
p03221
p03221
u913110564
u913110564
1,542,031,259
2018-11-12T14:00:59
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { FastScanner sc = new FastScanner(); int N=sc.nextInt(); int M=sc.nextInt(); int[] kosu=new int[100001]; long[][] aa=new long[M][3]; for(int i=0; i<=100000; i++) { kosu[i]=0; } for(int i=0; i<M; i++) { long a=sc.nextLon...
Main.java:64: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class Main.FastScanner Main.java:4: error: non-static variable this cannot be referenced from a static context FastScanner sc = new FastScanner(); ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03221|1
u913110564|p03221|1
codenet
Compile Error
3,468
v2_s580304979
s580304979
s580304979
p03221
p03221
u913110564
u913110564
1,542,031,386
2018-11-12T14:03:06
Main.java
import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import java.util.PriorityQueue; import java.util.Queue; class Main{ public static void main...
Main.java:14: error: non-static variable this cannot be referenced from a static context FastScanner sc = new FastScanner(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03221|1
u913110564|p03221|1
codenet
Compile Error
3,726
v2_s589471026
s589471026
s589471026
p03221
p03221
u913110564
u913110564
1,542,031,482
2018-11-12T14:04:42
Main.java
import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import java.util.PriorityQueue; import java.util.Queue; class Main{ public static void main...
Main.java:96: error: non-static method hasNextByte() cannot be referenced from a static context if (hasNextByte()) return buffer[ptr++]; ^ Main.java:96: error: non-static variable buffer cannot be referenced from a static context if (hasNextByte()) return buffer[ptr++]; ^ Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03221|1
u913110564|p03221|1
codenet
Compile Error
3,782
v2_s444723970
s444723970
s444723970
p03221
p03221
u913110564
u913110564
1,542,031,544
2018-11-12T14:05:44
Main.java
import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import java.util.PriorityQueue; import java.util.Queue; class Main{ public static void main...
Main.java:82: error: non-static variable ptr cannot be referenced from a static context if (ptr < buflen) return true; ^ Main.java:82: error: non-static variable buflen cannot be referenced from a static context if (ptr < buflen) return true; ^ Main.java:84: error: non-static variable ptr cannot b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03221|1
u913110564|p03221|1
codenet
Compile Error
3,789
v2_s000732322
s000732322
s000732322
p03221
p03221
u951672936
u951672936
1,551,932,838
2019-03-07T04:27:18
Main.java
import java.util.*; public class Main { static FastScanner sc = new FastScanner(); public static void main(String[] args) { int N = sc.nextInt(); //県の数 int M = sc.nextInt(); //市の数 LinkedList<Integer[]>[] prefectures = new LinkedList[N]; //[0] 市の番号 [1] 年 for (int i = 0; i < N; i++) { prefe...
Main.java:63: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FastScanner Main.java:74: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class FastScanner Note: Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951672936|p03221|0
u951672936|p03221|0
codenet
Compile Error
3,197