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_s416604950
s416604950
s416604950
p02934
p02934
u800067314
u800067314
1,568,924,751
2019-09-19T20:25:51
Main.java
import java.Util.*; public class Main{ public void main(String[] args){ Scanner sc = new Scanner(System.in); List<int> nums = new ArrayList<>(); double a = 0; int i = 0; while(sc.hasNext()){ nums.add(sc.nextInt()); } for(int num : nums){ if(i == 0){ i++; ...
Main.java:1: error: package java.Util does not exist import java.Util.*; ^ Main.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800067314|p02934|0
u800067314|p02934|0
codenet
Compile Error
420
v2_s691917224
s691917224
s691917224
p02934
p02934
u800067314
u800067314
1,568,924,835
2019-09-19T20:27:15
Main.java
import java.util.*; public class Main{ public void main(String[] args){ Scanner sc = new Scanner(System.in); List<int> nums = new ArrayList<>(); double a = 0; int i = 0; while(sc.hasNext()){ nums.add(sc.nextInt()); } for(int num : nums){ if(i == 0){ i++;...
Main.java:8: error: unexpected type List<int> nums = new ArrayList<>(); ^ required: reference found: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800067314|p02934|0
u800067314|p02934|0
codenet
Compile Error
422
v2_s209364439
s209364439
s209364439
p02934
p02934
u800067314
u800067314
1,568,924,905
2019-09-19T20:28:25
Main.java
import java.util.*; public class Main{ public void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<int> nums = new ArrayList<int>(); double a = 0; int i = 0; while(sc.hasNext()){ nums.add(sc.nextInt()); } for(int num : nums){ if(i == 0){ ...
Main.java:8: error: unexpected type ArrayList<int> nums = new ArrayList<int>(); ^ required: reference found: int Main.java:8: error: unexpected type ArrayList<int> nums = new ArrayList<int>(); ^ required: reference found: int 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800067314|p02934|0
u800067314|p02934|0
codenet
Compile Error
430
v2_s197307082
s197307082
s197307082
p02934
p02934
u800067314
u800067314
1,568,924,941
2019-09-19T20:29:01
Main.java
import java.util.*; public class Main{ public void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<> nums = new ArrayList<>(); double a = 0; int i = 0; while(sc.hasNext()){ nums.add(sc.nextInt()); } for(int num : nums){ if(i == 0){ i+...
Main.java:8: error: illegal start of type ArrayList<> nums = new ArrayList<>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800067314|p02934|0
u800067314|p02934|0
codenet
Compile Error
424
v2_s550615550
s550615550
s550615550
p02934
p02934
u818640918
u818640918
1,566,177,072
2019-08-19T01:11: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 S1 = 0; int S2 = 1; for(i=0;i<N;i++){ int f = sc.nextInt(); S1=S1+f; S2=S2*f; } System.out.println("S2/S1"); } }
Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02934|0
u818640918|p02934|0
codenet
Compile Error
249
v2_s687231563
s687231563
s687231563
p02934
p02934
u818640918
u818640918
1,566,178,187
2019-08-19T01:29:47
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int S1 = 0; int S2 = 1; for(int i=0;i<N;i++){ int f = sc.nextInt(); S1=S1+f; S2=S2*f; } flort t = S2/S1; System.out.println("t"); } }
Main.java:13: error: cannot find symbol flort t = S2/S1; ^ symbol: class flort location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02934|0
u818640918|p02934|0
codenet
Compile Error
267
v2_s081835642
s081835642
s081835642
p02934
p02934
u818640918
u818640918
1,566,178,996
2019-08-19T01:43:16
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int f = 0; Float a[]=new Float[N]; for(i=0;i<N;i++){ f=sc.nextInt(); a[i]=1/f; } float sum = java.util.Arrays.stream(a).sum(); float T = 1/sum; System.out.println(T); } }
Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i=0;i<N;i++){ ^ symbol: variable i lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02934|0
u818640918|p02934|0
codenet
Compile Error
303
v2_s563530840
s563530840
s563530840
p02934
p02934
u818640918
u818640918
1,566,179,305
2019-08-19T01:48:25
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float N = sc.nextInt(); float f = 0; flort s=0; Float a[]=new Float[N]; for(int i=0;i<N;i++){ f=sc.nextInt(); a[i]=1/f; } for(int i=0;i<N;i++){ s=s+a[i]; } float T = 1/s; System.out.println(T); } }
Main.java:7: error: cannot find symbol flort s=0; ^ symbol: class flort location: class Main Main.java:8: error: incompatible types: possible lossy conversion from float to int Float a[]=new Float[N]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02934|0
u818640918|p02934|0
codenet
Compile Error
308
v2_s552595442
s552595442
s552595442
p02934
p02934
u868996139
u868996139
1,567,876,512
2019-09-07T17: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(); dobule sum = 0; String line = sc.nextLine(); String[] ar = line.split(" "); double[] mot = new double[n]; for(int i = 0; i<n; i++){ mot[i] = 1/Double.pa...
Main.java:7: error: cannot find symbol dobule sum = 0; ^ symbol: class dobule location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02934|0
u868996139|p02934|0
codenet
Compile Error
399
v2_s959139574
s959139574
s959139574
p02934
p02934
u868996139
u868996139
1,567,883,647
2019-09-07T19:14:07
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); double[] numbers = new double[n]; double sum = 0; while(stdIn.nextLine != null){ for(int i = 0; i<n; i++){ numbers[i] = 1.0/nextInt(); ...
Main.java:16: error: not a statement stdIn.close; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02934|0
u868996139|p02934|0
codenet
Compile Error
409
v2_s059368480
s059368480
s059368480
p02934
p02934
u868996139
u868996139
1,567,883,726
2019-09-07T19:15:26
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); double[] numbers = new double[n]; double sum = 0; while(stdIn.nextLine != null){ for(int i = 0; i<n; i++){ numbers[i] = 1.0/nextInt(); ...
Main.java:9: error: cannot find symbol while(stdIn.nextLine != null){ ^ symbol: variable nextLine location: variable stdIn of type Scanner Main.java:11: error: cannot find symbol numbers[i] = 1.0/nextInt(); ^ symbol: method nextInt() location: class Main 2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02934|0
u868996139|p02934|0
codenet
Compile Error
412
v2_s283895975
s283895975
s283895975
p02934
p02934
u871313203
u871313203
1,592,524,387
2020-06-18T23:53:07
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double b = 0; for (int i = 0; i < n; i++) { double a = sc.nextDouble(); b += 1 / a; } System.out.println(1 / 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
u871313203|p02934|0
u871313203|p02934|0
codenet
Compile Error
251
v2_s850301641
s850301641
s850301641
p02935
p02935
u033645522
u033645522
1,568,142,926
2019-09-10T19:15:26
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } double sum=(a[0]+a[1])/2.0; Arrays.sort(A); for(int i=2;i<n;i++){ sum+=(sum+a[i]...
Main.java:13: error: ';' expected sum+=(sum+a[i])/2.0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033645522|p02935|0
u033645522|p02935|0
codenet
Compile Error
368
v2_s495334052
s495334052
s495334052
p02935
p02935
u033645522
u033645522
1,568,142,980
2019-09-10T19:16:20
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } double sum=(a[0]+a[1])/2.0; Arrays.sort(A); for(int i=2;i<n;i++){ sum+=(sum+a[i]...
Main.java:11: error: cannot find symbol Arrays.sort(A); ^ symbol: variable A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033645522|p02935|0
u033645522|p02935|0
codenet
Compile Error
368
v2_s134866328
s134866328
s134866328
p02935
p02935
u089230684
u089230684
1,571,365,685
2019-10-18T02:28:05
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); ArrayList<Integer> v = new ArrayList<Integer>(); double sum = 0, max = 0; for (int i=0; i<a; i++) { ...
Main.java:18: error: cannot find symbol sum += (v.at(i) + v.at(j)) / 2.0; ^ symbol: method at(int) location: variable v of type ArrayList<Integer> Main.java:18: error: cannot find symbol sum += (v.at(i) + v.at(j)) / 2.0; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02935|0
u089230684|p02935|0
codenet
Compile Error
633
v2_s791229665
s791229665
s791229665
p02935
p02935
u192042624
u192042624
1,566,349,473
2019-08-21T01:04:33
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double[] v= new double[N]; double ans=0; for(int i=0;i<N;i++){ v[i] = sc.nextDouble(); } //ここでvの中身を昇順にソート Arrays.sort(v); //答えを求める ans = v[0] for(int j=1;j<N-1;j++){ ...
Main.java:19: error: ';' expected ans = v[0] ^ Main.java:21: error: ';' expected ans=(ans+v[i+1])/2 ^ Main.java:25: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192042624|p02935|0
u192042624|p02935|0
codenet
Compile Error
387
v2_s710851930
s710851930
s710851930
p02935
p02935
u241752770
u241752770
1,566,180,245
2019-08-19T02:04:05
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(); float a[] = new Float[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextFloat(); } float tmp = 0; for(i = 0;...
Main.java:6: error: incompatible types: Float[] cannot be converted to float[] float a[] = new Float[n]; ^ Main.java:11: error: cannot find symbol for(i = 0; i < n; i++){ ^ symbol: variable i location: class Main Main.java:11: error: cannot find symbol for(i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241752770|p02935|0
u241752770|p02935|0
codenet
Compile Error
707
v2_s168911769
s168911769
s168911769
p02935
p02935
u296383300
u296383300
1,592,423,850
2020-06-17T19:57:30
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 []v = new int[N]; for(int i=0; i<N; i++) { v[i] = sc.nextInt(); } //vを昇順に並び替える Arrays.sort(v); //answerにvの最小値を入れる double answer = v[0]; ...
Main.java:17: error: illegal character: '\u3000' ?//??????????????????? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u296383300|p02935|0
u296383300|p02935|0
codenet
Compile Error
585
v2_s130176031
s130176031
s130176031
p02935
p02935
u323806158
u323806158
1,566,668,793
2019-08-24T17:46:33
Main.java
class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] v = new int[N]; for (int i = 0; i < N; i++) { v[i] = sc.nextInt(); } Arrays.sort(v); double x = (v[0] + v[1]) / 2; for (int...
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 Main.java:9: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323806158|p02935|0
u323806158|p02935|0
codenet
Compile Error
421
v2_s836017258
s836017258
s836017258
p02935
p02935
u369712616
u369712616
1,584,760,844
2020-03-21T03:20:44
Main.java
import java.util.Arrays; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] indegrients = new int[n]; for(int i = 0; i < n; i++){ indegrients[i] = Integer.parseInt(i); } Arrays.sort(indegrients); ...
Main.java:12: error: not a statement for(int = 0; i < n - 1; i++){ ^ Main.java:12: error: ';' expected for(int = 0; i < n - 1; i++){ ^ Main.java:12: error: illegal start of expression for(int = 0; i < n - 1; i++){ ^ Main.java:12: error: not a statement for(int = 0; i < n -...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02935|0
u369712616|p02935|0
codenet
Compile Error
479
v2_s354909530
s354909530
s354909530
p02935
p02935
u369712616
u369712616
1,584,760,895
2020-03-21T03:21:35
Main.java
import java.util.Arrays; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] indegrients = new int[n]; for(int i = 0; i < n; i++){ indegrients[i] = Integer.parseInt(i); } Arrays.sort(indegrients); ...
Main.java:9: error: incompatible types: int cannot be converted to String indegrients[i] = Integer.parseInt(i); ^ 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
u369712616|p02935|0
u369712616|p02935|0
codenet
Compile Error
481
v2_s536233573
s536233573
s536233573
p02935
p02935
u577115580
u577115580
1,566,834,157
2019-08-26T15:42:37
Main.java
public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n=scan.nextInt(); float array[]=new float[2*n-1]; for(int i=0;i<n;i++){ array[i]=scan.nextInt(); } for(int i=0;i<n-1;i++){ Arrays.sort(arr...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577115580|p02935|0
u577115580|p02935|0
codenet
Compile Error
495
v2_s592891124
s592891124
s592891124
p02935
p02935
u577115580
u577115580
1,566,838,978
2019-08-26T17:02:58
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); float array[] = new float[2 * n - 1]; for (int i = 0; i < n; i++) { array[i] = scan.nextInt(); } if (n == 1) { System.out.print(array[n-1]); } else { for (int i = 0; i < n ...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:13: error: cannot find sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577115580|p02935|0
u577115580|p02935|0
codenet
Compile Error
499
v2_s562869978
s562869978
s562869978
p02935
p02935
u607135645
u607135645
1,566,428,276
2019-08-21T22:57:56
Main.java
class Main { public static void main(String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double[] v = new double[n]; for (int i = 0; i < n; i++) { v[i] = sc.nextDouble(); } Arrays.sort(v); for (int...
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 Main.java:9: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u607135645|p02935|0
u607135645|p02935|0
codenet
Compile Error
469
v2_s439772467
s439772467
s439772467
p02935
p02935
u626353997
u626353997
1,570,840,982
2019-10-12T00:43:02
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double[] stf = new double[n]; for(int i = 0;i < n;i++){ stf[i] = sc.nextDouble(); } Arrays.sort(stf); fo...
Main.java:16: error: illegal character: '\' stf[i+1] = (stf[i]+stf[i+1])\2.0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02935|0
u626353997|p02935|0
codenet
Compile Error
457
v2_s712348055
s712348055
s712348055
p02935
p02935
u683530136
u683530136
1,566,180,760
2019-08-19T02:12:40
Main.java
import java.util.*; import java.util.Collections; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力 int a = sc.nextInt();  ArrayList<Integer> list = new ArrayList<>(); double result = 0; for (int i = 0; i < a; i++){ list.add(sc.nextIn...
Main.java:8: error: illegal character: '\u3000' ?ArrayList<Integer> list = new ArrayList<>(); ^ Main.java:20: error: illegal character: '\u3000' ?System.out.println(result); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02935|0
u683530136|p02935|0
codenet
Compile Error
523
v2_s754263620
s754263620
s754263620
p02935
p02935
u760238629
u760238629
1,566,177,913
2019-08-19T01:25:13
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(Syatem.in); int n = sc.nextInt(); double v[] = new double[n]; double temp; for(int i = 0; i < n; i++){ v[i] = sc.nextDouble(); } for(int j = 0; j < n-1; j++){ ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(Syatem.in); ^ symbol: variable Syatem location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760238629|p02935|0
u760238629|p02935|0
codenet
Compile Error
604
v2_s754068401
s754068401
s754068401
p02935
p02935
u760718569
u760718569
1,573,195,056
2019-11-08T06:37:36
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int[] b = new int[a]; for(i = 0;i < b.length;i++){ b[i] = sc.nextInt(); } Arrays.sort(b); double c = (double)(b[0] ...
Main.java:8: error: cannot find symbol for(i = 0;i < b.length;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i = 0;i < b.length;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i = 0;i < b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02935|0
u760718569|p02935|0
codenet
Compile Error
442
v2_s439007517
s439007517
s439007517
p02935
p02935
u785708446
u785708446
1,566,344,215
2019-08-20T23:36:55
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Double> list = new ArrayList<Double>(); list.add(sc.nextInt()); for(int i=1;i<n;i++){ double a = (double)(sc.nextInt()); for(...
Main.java:7: error: incompatible types: int cannot be converted to Double list.add(sc.nextInt()); ^ Main.java:22: error: incompatible types: Double cannot be converted to int int a = list.get(0); ^ Main.java:23: error: incompatible types: Double canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785708446|p02935|0
u785708446|p02935|0
codenet
Compile Error
811
v2_s833037189
s833037189
s833037189
p02935
p02935
u785708446
u785708446
1,566,344,243
2019-08-20T23:37:23
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Double> list = new ArrayList<Double>(); list.add(sc.nextInt()); for(int i=1;i<n;i++){ double a = (double)(sc.nextInt()); for(...
Main.java:7: error: incompatible types: int cannot be converted to Double list.add(sc.nextInt()); ^ 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
u785708446|p02935|0
u785708446|p02935|0
codenet
Compile Error
817
v2_s947240705
s947240705
s947240705
p02935
p02935
u818640918
u818640918
1,566,177,862
2019-08-19T01:24:22
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer U[] = new Integer[N]; for(int i=0;i<N;i++){ U[i] = sc.nextInt(); } flort f = U[0]; Arrays.sort(u); for(int i=1;i<N;i++){ f=f+U[i]; f=f/2; } System.out.println("f"); } }
Main.java:10: error: cannot find symbol flort f = U[0]; ^ symbol: class flort location: class Main Main.java:11: error: cannot find symbol Arrays.sort(u); ^ symbol: variable u location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02935|0
u818640918|p02935|0
codenet
Compile Error
309
v2_s606030537
s606030537
s606030537
p02935
p02935
u818640918
u818640918
1,566,180,193
2019-08-19T02:03:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Float U[] = new Float[N]; for(int i=0;i<N;i++){ U[i] = sc.nextInt(); } float f = U[0]; Arrays.sort(U); for(int i=1;i<N;i++){ f=f+U[i]; f=f/2; } System.out.println("f"); } }
Main.java:8: error: incompatible types: int cannot be converted to Float U[i] = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02935|0
u818640918|p02935|0
codenet
Compile Error
306
v2_s038375887
s038375887
s038375887
p02935
p02935
u818640918
u818640918
1,566,180,434
2019-08-19T02:07:14
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Double U[] = new Double[N]; for(int i=0;i<N;i++){ int S = sc.nextInt(); U[i] = S; } double f = U[0]; Arrays.sort(U); for(int i=1;i<N;i++){ f=f+U[i]; f=f/2; } System.out.println("f"); } }
Main.java:9: error: incompatible types: int cannot be converted to Double U[i] = S; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02935|0
u818640918|p02935|0
codenet
Compile Error
320
v2_s326969752
s326969752
s326969752
p02935
p02935
u858173617
u858173617
1,567,283,188
2019-08-31T20:26:28
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); FastScanner sc = new FastScanner(); Strategy strategy = new MyStrategy(); ...
Main.java:94: error: illegal start of expression package com.company.ABC138.C; ^ Main.java:94: error: not a statement package com.company.ABC138.C; ^ Main.java:96: error: illegal start of expression import java.io.IOException; ^ Main.java:96: error: not a statem...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858173617|p02935|0
u858173617|p02935|0
codenet
Compile Error
6,386
v2_s611764012
s611764012
s611764012
p02935
p02935
u863370423
u863370423
1,571,365,652
2019-10-18T02:27:32
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); ArrayList<Integer> v = new ArrayList<Integer>(); double sum = 0, max = 0; for (int i=0; i<a; i++) { ...
Main.java:18: error: cannot find symbol sum += (v.at(i) + v.at(j)) / 2.0; ^ symbol: method at(int) location: variable v of type ArrayList<Integer> Main.java:18: error: cannot find symbol sum += (v.at(i) + v.at(j)) / 2.0; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02935|0
u863370423|p02935|0
codenet
Compile Error
601
v2_s842982863
s842982863
s842982863
p02936
p02936
u015679112
u015679112
1,578,632,934
2020-01-10T05:08:54
Main.java
// https://atcoder.jp/contests/abc138/submissions/9369775 import java.util.*; public class Main { public static ArrayList[] edge; public static long[] point; public static boolean[] visit; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next())...
Main.java:32: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class Main Main.java:32: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015679112|p02936|0
u015679112|p02936|0
codenet
Compile Error
1,274
v2_s692111750
s692111750
s692111750
p02936
p02936
u052212445
u052212445
1,566,177,919
2019-08-19T01:25:19
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.util.InputMismatchException; import java.util.HashMap; import java.io.IOException; import java.util.ArrayList; import java.util.List; i...
Main.java:38: error: array required, but boolean found if (!marked[i]) ^ Main.java:39: error: array required, but int found dfs(g, arr[i], i); ^ Main.java:44: error: array required, but boolean found marked[s] = tru...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052212445|p02936|0
u052212445|p02936|0
codenet
Compile Error
5,345
v2_s411262340
s411262340
s411262340
p02936
p02936
u082512804
u082512804
1,566,182,345
2019-08-19T02:39:05
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int Q = scanner.nextInt(); Map<Integer, List<Integer>> adja = new HashMap<>(); Set<Integer> tree = new HashSet<>(); for(...
Main.java:35: error: ';' expected oper.put(nextnode, oper.get(nextnode) + oper.get(node)) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p02936|0
u082512804|p02936|0
codenet
Compile Error
1,385
v2_s955848489
s955848489
s955848489
p02936
p02936
u087831989
u087831989
1,566,185,748
2019-08-19T03:35:48
Main.java
import java.util.*; import java.io.*; public class Main { static Scanner sc = new Scanner(); static List<List<Integer>> tree; static int[] score; public static void main(String[] args) { // Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); tr...
Main.java:63: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u087831989|p02936|0
u087831989|p02936|0
codenet
Compile Error
1,680
v2_s030882904
s030882904
s030882904
p02936
p02936
u196501792
u196501792
1,566,181,544
2019-08-19T02:25:44
Main.java
import java.util.*; import java.io.*; public class Main { static int[] sum = new int[200000]; public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tokenizer1 = new StringTokenizer(br.readLine()); int ...
Main.java:27: error: not a statement i ^ Main.java:27: error: ';' expected i ^ Main.java:44: error: illegal start of expression private LinkedList<Integer> adj[]; ^ Main.java:45: error: <identifier> expected adj = new LinkedList[v]; ^ Main.java:46: error: illegal start of type ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u196501792|p02936|0
u196501792|p02936|0
codenet
Compile Error
2,131
v2_s906357415
s906357415
s906357415
p02936
p02936
u196501792
u196501792
1,566,181,623
2019-08-19T02:27:03
Main.java
import java.util.*; import java.io.*; public class Main { static int[] sum = new int[200000]; public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tokenizer1 = new StringTokenizer(br.readLine()); int ...
Main.java:21: error: variable c1 is already defined in method main(String[]) int c1 = Integer.parseInt(tokenizer2.nextToken()); ^ Main.java:22: error: variable c2 is already defined in method main(String[]) int c2 = Integer.parseInt(tokenizer2.nextToken()); ^ Main.java:31: error: variab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u196501792|p02936|0
u196501792|p02936|0
codenet
Compile Error
2,123
v2_s367205141
s367205141
s367205141
p02936
p02936
u196501792
u196501792
1,566,181,708
2019-08-19T02:28:28
Main.java
import java.util.*; import java.io.*; public class Main { static int[] sum = new int[200000]; public static void main(String args[])throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tokenizer1 = new StringTokenizer(br.readLine()); int ...
Main.java:21: error: variable c1 is already defined in method main(String[]) int c1 = Integer.parseInt(tokenizer2.nextToken()); ^ Main.java:22: error: variable c2 is already defined in method main(String[]) int c2 = Integer.parseInt(tokenizer2.nextToken()); ^ Main.java:45: error: cannot...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u196501792|p02936|0
u196501792|p02936|0
codenet
Compile Error
2,115
v2_s553050062
s553050062
s553050062
p02936
p02936
u210827208
u210827208
1,597,211,671
2020-08-12T05:54:31
Main.java
n,q=map(int,input().split()) X=[[] for _ in range(n)] for i in range(n-1): a,b=map(int,input().split()) X[a-1].append(b-1) C=[0]*n def dfs(p,x): C[p]+=x for i in X[p]: dfs(i,x) for i in range(q): p,x=map(int,input().split()) dfs(p-1,x) print(*C)
Main.java:1: error: class, interface, enum, or record expected n,q=map(int,input().split()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u210827208|p02936|0
u210827208|p02936|0
codenet
Compile Error
282
v2_s769124422
s769124422
s769124422
p02936
p02936
u225162167
u225162167
1,566,264,175
2019-08-20T01:22:55
Main.java
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import ja...
Main.java:18: error: package wow does not exist import wow.l; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u225162167|p02936|0
u225162167|p02936|0
codenet
Compile Error
4,709
v2_s576524387
s576524387
s576524387
p02936
p02936
u225162167
u225162167
1,566,264,340
2019-08-20T01:25:40
Main.java
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Map.Entry; public class Main { static public class SegmentTree { // 1-based DS, OOP int N; //the number of element...
Main.java:105: error: cannot find symbol static LinkedList<Integer>adj[]; ^ symbol: class LinkedList location: class Main Main.java:147: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class MScanner Main.java:121: error: cannot find symbol adj=new Link...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u225162167|p02936|0
u225162167|p02936|0
codenet
Compile Error
4,412
v2_s503541206
s503541206
s503541206
p02936
p02936
u253726906
u253726906
1,566,183,457
2019-08-19T02:57:37
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; 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 Q=stdIn.nextInt(); int ans[]=new int[N]; ArrayList<ArrayList<...
Main.java:45: error: ';' expected for(int i=0;i<tree.get(b).size()i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u253726906|p02936|0
u253726906|p02936|0
codenet
Compile Error
1,366
v2_s084135546
s084135546
s084135546
p02936
p02936
u263333739
u263333739
1,593,794,781
2020-07-03T16:46:21
Main.java
import java.math.*; import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { FastScanner I = new FastScanner(); //Input OutPut O = new OutPut(); //Output int N = I.nextInt(); int Q = I.nextInt(); ArrayList<Integer>[] graph = new ArrayList[N+1]; long[] dp = ne...
Main.java:74: error: cannot find symbol BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class FastScanner Main.java:89: error: cannot find symbol PrintWriter w = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u263333739|p02936|0
u263333739|p02936|0
codenet
Compile Error
3,105
v2_s195943995
s195943995
s195943995
p02936
p02936
u323748756
u323748756
1,586,650,403
2020-04-12T00:13:23
Main.java
#include <bits/stdc++.h> using namespace std; using ll = long long; #define int long long #define LOG(variable) cout << #variable":\t" << (variable) << endl #define LOGCON(i, container) for(int (i) = 0; (i) < (container).size(); ++(i)) cout << (i) << ":\t" << (container)[(i)] << endl #define REP(i, n) for (int i = 0;...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. using ll = long long; ^ (use --enable-preview to enable unname...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323748756|p02936|0
u323748756|p02936|0
codenet
Compile Error
2,921
v2_s170205469
s170205469
s170205469
p02936
p02936
u347452770
u347452770
1,567,019,362
2019-08-28T19:09:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int q = scan.nextInt(); HashMap<Integer, Integer> ls = new HashMap<>(); for(int i = 0; i < n; i ++){ int pare = scan.nextInt(); ...
Main.java:26: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02936|0
u347452770|p02936|0
codenet
Compile Error
719
v2_s593812346
s593812346
s593812346
p02936
p02936
u347452770
u347452770
1,567,019,419
2019-08-28T19:10:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int q = scan.nextInt(); HashMap<Integer, Integer> ls = new HashMap<>(); for(int i = 0; i < n; i ++){ int pare = scan.nextInt(); ...
Main.java:12: error: cannot find symbol ls.add(chir, pare); ^ symbol: method add(int,int) location: variable ls of type HashMap<Integer,Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02936|0
u347452770|p02936|0
codenet
Compile Error
720
v2_s881186556
s881186556
s881186556
p02936
p02936
u409962311
u409962311
1,566,182,081
2019-08-19T02:34:41
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); ////////////////////////////////////////////////////// int n = sc.nextInt(); int q = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i=1;i<n;i+...
Main.java:47: error: cannot find symbol for(int j=1;j<numNo0[p[i]];j++){ ^ symbol: variable numNo0 location: class Main Main.java:48: error: cannot find symbol counter[partTree[p[i]][j]]+=x[i]; ^ symbol: variable counter location: class Main Main.java:48: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u409962311|p02936|0
u409962311|p02936|0
codenet
Compile Error
1,509
v2_s311586052
s311586052
s311586052
p02936
p02936
u409962311
u409962311
1,567,731,549
2019-09-06T00:59: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 q = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i=1;i<n;i+...
Main.java:50: error: incompatible types: possible lossy conversion from long to int counter[partTree[p[i]][j]]+=x[i]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u409962311|p02936|1
u409962311|p02936|1
codenet
Compile Error
1,511
v2_s634353532
s634353532
s634353532
p02936
p02936
u489316980
u489316980
1,576,702,203
2019-12-18T20:50:03
Main.java
import java.util.*; public class Main{ static int[] ans; static Map<Integer, Integer> map; public static void main(String[]args){ Scanner sc = new Scanner(System.in); String[] S = sc.nextLine().split(" "); int N = Integer.parseInt(S[0]); int Q = Integer.parseInt(S[1]); long[] par = new l...
Main.java:31: error: incompatible types: possible lossy conversion from long to int ans[i] += ans[par[i]]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489316980|p02936|1
u489316980|p02936|1
codenet
Compile Error
929
v2_s946903758
s946903758
s946903758
p02936
p02936
u497436519
u497436519
1,566,431,964
2019-08-21T23:59:24
Main.java
import java.util.*; import java.io.*; public class Main { private static void solve() { int n = nextInt(); int q = nextInt(); Map<Integer, List<Integer>> map = new HashMap<>(); for (int i = 0; i < n; i++) { int a = nextInt() - 1; int b = nextInt() - 1; map.comput...
Main.java:84: error: ';' expected return Integer.parseInt(next())a; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497436519|p02936|0
u497436519|p02936|0
codenet
Compile Error
2,111
v2_s543514048
s543514048
s543514048
p02936
p02936
u517219904
u517219904
1,566,177,959
2019-08-19T01:25:59
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Queue; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(), Q = scn.nextInt(); GraphWay[] GW = new GraphWay[N]; int[] C = new int[N]; for...
Main.java:96: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517219904|p02936|0
u517219904|p02936|0
codenet
Compile Error
1,851
v2_s433759897
s433759897
s433759897
p02936
p02936
u552730117
u552730117
1,566,183,664
2019-08-19T03:01:04
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int q = Integer.parseInt(sc.next()); Tree tree[] = ...
Main.java:9: error: cannot find symbol int n = Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main Main.java:10: error: cannot find symbol int q = Integer.parseInt(sc.next()); ^ symbol: variable sc location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552730117|p02936|0
u552730117|p02936|0
codenet
Compile Error
1,223
v2_s684541006
s684541006
s684541006
p02936
p02936
u577115580
u577115580
1,566,850,603
2019-08-26T20:16:43
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int q = scan.nextInt(); Tree tree = new Tree(n); for (int i = 0; i < n - 1; i++) { tree.array_a(i, scan.nextInt(), scan.nextInt()); } for(int i=0;i<q;i++){ tree.report(scan.ne...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577115580|p02936|0
u577115580|p02936|0
codenet
Compile Error
806
v2_s766507389
s766507389
s766507389
p02936
p02936
u591589288
u591589288
1,566,186,505
2019-08-19T03:48:25
Main.java
import sys from operator import itemgetter n,q = [ int(x) for x in sys.stdin.readline().strip().split() ] edge= [ [] for _ in range(n-1) ] for i in range(n-1): edge[i] = [ int(x)-1 for x in sys.stdin.readline().strip().split() ] edge.sort( key=itemgetter(0) ) c= [ 0 for _ in range(n) ] for i in range(q): p,x= ...
Main.java:1: error: '.' expected import sys ^ Main.java:2: error: ';' expected from operator import itemgetter ^ Main.java:2: error: '.' expected from operator import itemgetter ^ Main.java:4: error: ';' expected n,q = [ int(x) for x in sys.stdin.readline().strip().split() ]...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591589288|p02936|0
u591589288|p02936|0
codenet
Compile Error
435
v2_s728010480
s728010480
s728010480
p02936
p02936
u632953742
u632953742
1,576,364,249
2019-12-14T22:57:29
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Scanner; class Main{ static final int MOD = 1000000007; static ArrayList<TreeNode> tree; static HashSet<Integer> set; static int[] ans; public static void main(String[] args) { Scanner sc = new Scanner(System.in)...
Main.java:10: error: cannot find symbol static ArrayList<TreeNode> tree; ^ symbol: class TreeNode location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632953742|p02936|2
u632953742|p02936|1
codenet
Compile Error
1,162
v2_s411286198
s411286198
s411286198
p02936
p02936
u653981267
u653981267
1,578,665,981
2020-01-10T14:19:41
Main.java
import java.util.*; public class Main { public static ArrayList[] edge; public static long[] point; public static boolean[] visit; public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); point = new long[n]; edge =...
Main.java:56: error: class FastScanner is public, should be declared in a file named FastScanner.java public class FastScanner { ^ Main.java:57: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FastScanner Main.java:9: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02936|4
u653981267|p02936|2
codenet
Compile Error
3,286
v2_s969824648
s969824648
s969824648
p02936
p02936
u653981267
u653981267
1,578,666,379
2020-01-10T14:26:19
Main.java
import java.util.*; public class Main { public static ArrayList[] edge; public static long[] point; public static boolean[] visit; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); point = new long[n]; edge = new Arr...
Main.java:39: error: cannot find symbol sb.add(point[i] + " "); ^ symbol: method add(String) location: variable sb of type StringBuilder Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02936|4
u653981267|p02936|2
codenet
Compile Error
1,246
v2_s528335213
s528335213
s528335213
p02936
p02936
u653981267
u653981267
1,578,666,412
2020-01-10T14:26:52
Main.java
import java.util.*; public class Main { public static ArrayList[] edge; public static long[] point; public static boolean[] visit; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); point = new long[n]; edge = new Arr...
Main.java:39: error: cannot find symbol sb.apend(point[i] + " "); ^ symbol: method apend(String) location: variable sb of type StringBuilder Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02936|4
u653981267|p02936|2
codenet
Compile Error
1,248
v2_s079926581
s079926581
s079926581
p02936
p02936
u682395093
u682395093
1,566,350,620
2019-08-21T01:23:40
Main.java
#include <bits/stdc++.h> #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define REP(i,n) FOR(i,0,n) using namespace std; vector<int> to[200005]; vector<int> ans; void dfs(int v, int p = -1) { for(int u : to[v]) { if(u == p) continue; ans[u] += ans[v]; dfs(u, v); } } int main() { int ...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define FOR(i,a,b) for(int i=(a);i<(b);++i) ^ Main.java:2: error: class, interface, enum, or record expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u682395093|p02936|0
u682395093|p02936|0
codenet
Compile Error
785
v2_s167399028
s167399028
s167399028
p02936
p02936
u689701565
u689701565
1,566,459,247
2019-08-22T07:34:07
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { private static int[][] nodes; private static int[] points; private static Tree tree; private static long startTime = 0; private static int paramN = 0; private static...
Main.java:30: error: cannot find symbol if (index + 1 < nodes.length) { ^ symbol: variable index location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689701565|p02936|2
u689701565|p02936|0
codenet
Compile Error
3,107
v2_s956717877
s956717877
s956717877
p02936
p02936
u689701565
u689701565
1,566,465,145
2019-08-22T09:12:25
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { private static int[] points; private static NeighborList[] neighbors; private static class NeighborList { ArrayList<Integer> nl; public NeighborList() { nl = new ArrayList<Integer>(); } } ...
Main.java:52: error: cannot find symbol for (int i = 0; i < nei.size(); i++) { ^ symbol: variable nei location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689701565|p02936|2
u689701565|p02936|0
codenet
Compile Error
1,840
v2_s295442067
s295442067
s295442067
p02936
p02936
u702582248
u702582248
1,566,184,390
2019-08-19T03:13:10
Main.java
import java.util.ArrayList; import java.util.Scanner; //D public class Main { static int N; static int Q; static IntList[] v; static int[] ans; static int[] parent; public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); N=sc.nextInt(); Q=sc.nextInt(); ...
Main.java:21: error: incompatible types: ArrayList[] cannot be converted to IntList[] v=new ArrayList[N+1]; ^ Main.java:72: error: cannot find symbol array = Arrays.copyOf(array, newSize); ^ symbol: variable Arrays location: class IntList 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702582248|p02936|0
u702582248|p02936|0
codenet
Compile Error
2,181
v2_s810315631
s810315631
s810315631
p02936
p02936
u703108590
u703108590
1,566,964,887
2019-08-28T04:01:27
Main.java
import java.util.*; import Main.Job; import java.io.*; public class Main { private static void solve(){ //Implement solution here. int n = ni(); int[] a = new int[n - 1]; int[] b = new int[n - 1]; long[] c = new long[n]; int q = ni(); List<Edge> e = new ArrayList<>(); for(int i = 0; i < n - 1; i++) ...
Main.java:3: error: package Main does not exist import Main.Job; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u703108590|p02936|0
u703108590|p02936|0
codenet
Compile Error
2,325
v2_s456722622
s456722622
s456722622
p02936
p02936
u711620077
u711620077
1,566,186,537
2019-08-19T03:48: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 q = sc.nextInt(); Parent[] parents = new Parent[n]; parents[n - 1] = new Parent(n); int index = 0; for(int i = 0; i < n - ...
Main.java:43: error: cannot find symbol matster = parents[child - 1].addCount(value, master); ^ symbol: variable matster location: class Parent 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p02936|0
u711620077|p02936|0
codenet
Compile Error
1,361
v2_s384619400
s384619400
s384619400
p02936
p02936
u726872801
u726872801
1,566,235,321
2019-08-19T17:22:01
Main.java
import java.util.*; public class Main { int[] ans; List<Integer>[] tree; void run() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); ans = new int[n]; tree = new List[n]; for (int i = 0; i < n; i++) { tree[i] =...
Main.java:34: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class Main Main.java:34: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u726872801|p02936|1
u726872801|p02936|1
codenet
Compile Error
1,364
v2_s235396924
s235396924
s235396924
p02936
p02936
u745266708
u745266708
1,566,177,816
2019-08-19T01:23:36
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { static class Tree{ List<Tree> children; long add; public Tree() { children = new ArrayList<D.Tree>(); } void propagate(){ for(Tree child : children){ child.add += add; chi...
Main.java:12: error: package D does not exist children = new ArrayList<D.Tree>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u745266708|p02936|0
u745266708|p02936|0
codenet
Compile Error
1,042
v2_s050041535
s050041535
s050041535
p02936
p02936
u798261425
u798261425
1,566,250,373
2019-08-19T21:32:53
Main.java
import java.util.*; import java.lang.*; public class Main{ static Tree tree; static boolean[] visited; public static void main(String[] args) { int n = nextInt(); int q = nextInt(); tree = new Tree(n); for (int i = 0; i < n - 1; i++) { tree.union(nextInt() - 1, nextInt() - 1); } for (int i = 0; i < q...
Main.java:48: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u798261425|p02936|0
u798261425|p02936|0
codenet
Compile Error
1,647
v2_s170738152
s170738152
s170738152
p02936
p02936
u812977645
u812977645
1,566,230,474
2019-08-19T16:01:14
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { ArrayList<edge> edges; ArrayList<ArrayList<Integer>>g_old; ArrayList<ArrayList<Integer>>g; int[] value; int[] map; int[] map2; public D(int n){ edges=new ArrayList<>(); g_old=new ArrayList<>(); ...
Main.java:13: error: invalid method declaration; return type required public D(int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812977645|p02936|0
u812977645|p02936|0
codenet
Compile Error
2,154
v2_s603417085
s603417085
s603417085
p02936
p02936
u812977645
u812977645
1,566,230,676
2019-08-19T16:04:36
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { ArrayList<edge> edges; ArrayList<ArrayList<Integer>>g_old; ArrayList<ArrayList<Integer>>g; int[] value; int[] map; int[] map2; public Main(int n){ edges=new ArrayList<>(); g_old=new ArrayList<>(); ...
Main.java:52: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812977645|p02936|0
u812977645|p02936|0
codenet
Compile Error
1,294
v2_s050676216
s050676216
s050676216
p02936
p02936
u812977645
u812977645
1,566,232,742
2019-08-19T16:39:02
Main.java
public class Main{ int[] map; int[] value; int [] ma; ArrayList<ArrayList<Integer>> ne; public Main(int n){ map=new int[n]; value=new int[n]; ne=new ArrayList<>(); ma=new int[n]; for(int i=0;i<n;i++){ ArrayList<Integer> a=new ArrayList<>(); ...
Main.java:5: error: cannot find symbol ArrayList<ArrayList<Integer>> ne; ^ symbol: class ArrayList location: class Main Main.java:5: error: cannot find symbol ArrayList<ArrayList<Integer>> ne; ^ symbol: class ArrayList location: class Main Main.java:16: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812977645|p02936|0
u812977645|p02936|0
codenet
Compile Error
1,699
v2_s261969681
s261969681
s261969681
p02936
p02936
u858173617
u858173617
1,566,354,457
2019-08-21T02:27:37
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); FastScanner sc = new FastScanner(); int N = sc.nextInt(); int Q = sc.ne...
Main.java:149: error: reached end of file while parsing public double nextDouble() { return Double.parseDouble(next());} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858173617|p02936|0
u858173617|p02936|0
codenet
Compile Error
4,016
v2_s673097416
s673097416
s673097416
p02936
p02936
u858173617
u858173617
1,566,355,451
2019-08-21T02:44:11
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { public static void main(String[] args) { PrintWriter out = new PrintWriter(System.out); FastScanner sc = new FastScanner(); int N = sc.nextInt(); int Q = sc.ne...
Main.java:33: error: incompatible types: possible lossy conversion from long to int int val = next.calculateVal(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858173617|p02936|0
u858173617|p02936|0
codenet
Compile Error
4,020
v2_s849521152
s849521152
s849521152
p02936
p02936
u981866345
u981866345
1,573,623,888
2019-11-13T05:44:48
Node.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Node { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); Node node[] = new Node[n]; // 頂点の作成 for (int i = 0; i < n; i++) { node[i] = new N...
Node.java:80: error: class Node is already defined in package unnamed package static class Node { ^ Node.java:29: error: incompatible types: Node.Node[] cannot be converted to Node[] removeParent(0, node); ^ Node.java:56: error: cannot find symbol node[subRoot].count += count; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981866345|p02936|0
u981866345|p02936|0
codenet
Compile Error
1,939
v2_s875070537
s875070537
s875070537
p02937
p02937
u003018968
u003018968
1,569,443,422
2019-09-25T20:30:22
Main.java
import jav.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int N = s.length(); int M = t.length(); int[] at = new int[26]; Arrays.fill(at, N + 1); for(int i = N - 1; i >= 0; i--){ at[s.c...
Main.java:1: error: package jav.util does not exist import jav.util.*; ^ Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p02937|0
u003018968|p02937|0
codenet
Compile Error
1,002
v2_s213685589
s213685589
s213685589
p02937
p02937
u003018968
u003018968
1,569,443,454
2019-09-25T20:30:54
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int N = s.length(); int M = t.length(); int[] at = new int[26]; Arrays.fill(at, N + 1); for(int i = N - 1; i >= 0; i--){ at[s....
Main.java:21: error: cannot find symbol if(at[t.charAt(i) - 'a'] >= at[t.cahrAt(i + 1) - 'a']){ ^ symbol: method cahrAt(int) location: variable t of type String Main.java:33: error: cannot find symbol ans += at[t.charAt(i) - 'a'] - at[t.cahrAt(i - 1) - 'a']; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p02937|0
u003018968|p02937|0
codenet
Compile Error
1,003
v2_s592489242
s592489242
s592489242
p02937
p02937
u003018968
u003018968
1,569,619,095
2019-09-27T21:18:15
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String _s = sc.next(); char[] t = sc.next().toCharArray(); _s += _s; char[] s = _s.toCharArray(); int N = s.length; int M = t.length; for(...
Main.java:20: error: cannot find symbol que.get(s[i]).add(i); ^ symbol: variable que location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p02937|1
u003018968|p02937|1
codenet
Compile Error
1,468
v2_s876215761
s876215761
s876215761
p02937
p02937
u013734211
u013734211
1,566,561,206
2019-08-23T11:53:26
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.DataInputStream; import java.io.IOException; import java.io.FileInputStream; import java.io.InputStream; /** * Built using CHelper plug-in Actual solution is at the top * * @author MaxHeap...
Main.java:98: error: invalid method declaration; return type required public FastReader(InputStream stream) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013734211|p02937|0
u013734211|p02937|0
codenet
Compile Error
3,502
v2_s415303803
s415303803
s415303803
p02937
p02937
u013734211
u013734211
1,566,561,319
2019-08-23T11:55:19
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.DataInputStream; import java.io.IOException; import java.io.FileInputStream; import java.io.InputStream; /** * Built using CHelper plug-in Actual solution is at the top * * @author MaxHeap...
Main.java:95: error: cannot find symbol BufferedReader reader; ^ symbol: class BufferedReader location: class InputReader Main.java:96: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class InputReader Main.java:99: error: cannot find symbol reader = new B...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013734211|p02937|0
u013734211|p02937|0
codenet
Compile Error
3,503
v2_s418024576
s418024576
s418024576
p02937
p02937
u082512804
u082512804
1,597,407,982
2020-08-14T12:26:22
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; public class Main { void solve() throws IOException { String s = ns(); String t = ns(); for (int i = 0; i < s.length()...
Main.java:30: error: cannot find symbol loclist = map.get(ti); ^ symbol: variable loclist location: class Main Main.java:31: error: cannot find symbol int loc = upperBound(loclist, curloc); ^ symbol: variable loclist location: class Main 2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p02937|1
u082512804|p02937|1
codenet
Compile Error
3,634
v2_s386989610
s386989610
s386989610
p02937
p02937
u097204018
u097204018
1,566,183,817
2019-08-19T03:03:37
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); String s = sc.next(); String t = sc.next(); TreeSet<Integer>[] pos = new TreeSet[26]; for(int i=0; i<26; i++) pos[i] = new TreeSet<Int...
Main.java:30: error: incompatible types: possible lossy conversion from long to int int mmlen = mpos - len * (loop-1); ^ Main.java:48: error: incompatible types: possible lossy conversion from long to int int tpos = ppos + (loop-1) * len; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u097204018|p02937|0
u097204018|p02937|0
codenet
Compile Error
4,458
v2_s787536282
s787536282
s787536282
p02937
p02937
u261161085
u261161085
1,566,328,019
2019-08-20T19:06:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); final String s = scan.next(); final String t = scan.next(); String resultStr = s; boolean isFind = true; String tempT; int count = 1...
Main.java:12: error: ';' expected String[] findString = new String[t.length()] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261161085|p02937|0
u261161085|p02937|0
codenet
Compile Error
1,330
v2_s537743887
s537743887
s537743887
p02937
p02937
u261161085
u261161085
1,566,328,073
2019-08-20T19:07:53
Main.java
public static void main(String[] args){ Scanner scan = new Scanner(System.in); final String s = scan.next(); final String t = scan.next(); String resultStr = s; boolean isFind = true; String tempT; int count = 1; int[] findIndex = new int[t.length()]; ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:39: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261161085|p02937|0
u261161085|p02937|0
codenet
Compile Error
1,281
v2_s085056231
s085056231
s085056231
p02937
p02937
u261161085
u261161085
1,566,328,146
2019-08-20T19:09:06
Main.java
public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); final String s = scan.next(); final String t = scan.next(); String resultStr = s; boolean isFind = true; String tempT; int count = 1; int[] findIndex ...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261161085|p02937|0
u261161085|p02937|0
codenet
Compile Error
1,311
v2_s300905992
s300905992
s300905992
p02937
p02937
u423952743
u423952743
1,567,175,758
2019-08-30T14:35:58
Main.java
mport java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.nextLine().toCharArray(); char[] t = sc.nextLine().toCharArray(); List<List<Integer>> t_idx_list...
Main.java:1: error: class, interface, enum, or record expected mport java.util.ArrayList; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.List; ^ Main.java:4: error: class, interface, enum, or rec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423952743|p02937|1
u423952743|p02937|1
codenet
Compile Error
1,654
v2_s210257880
s210257880
s210257880
p02937
p02937
u572483595
u572483595
1,566,181,048
2019-08-19T02:17:28
Main.java
import java.util.AbstractMap; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; class Main { static final int MOD = 1000000007; static ArrayList<Node> nodeList = new ArrayList<Node>(); public static void main(String[] args) { Scanner sc = ne...
Main.java:10: error: cannot find symbol static ArrayList<Node> nodeList = new ArrayList<Node>(); ^ symbol: class Node location: class Main Main.java:10: error: cannot find symbol static ArrayList<Node> nodeList = new ArrayList<Node>(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572483595|p02937|0
u572483595|p02937|0
codenet
Compile Error
1,602
v2_s369687778
s369687778
s369687778
p02937
p02937
u572483595
u572483595
1,566,268,988
2019-08-20T02:43:08
Main.java
import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Scanner; class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(...
Main.java:63: error: unreported exception Exception; must be caught or declared to be thrown throw new Exception("not found"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572483595|p02937|1
u572483595|p02937|1
codenet
Compile Error
3,176
v2_s122552827
s122552827
s122552827
p02937
p02937
u577115580
u577115580
1,566,926,050
2019-08-27T17:14:10
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int loop = 0; int hantei; int kari = 0; char[] c1 = scan.next().toCharArray(); char[] c2 = scan.next().toCharArray(); scan.close(); for (int i = 0; i < c2.length;) { hantei = 0; for (int j = 0; j <...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577115580|p02937|0
u577115580|p02937|0
codenet
Compile Error
601
v2_s486046484
s486046484
s486046484
p02937
p02937
u602865659
u602865659
1,566,180,634
2019-08-19T02:10:34
Main.java
import jdk.nashorn.api.tree.Tree; import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int mod = s.length(); long ans = 0; TreeSet<Integer>[] index = new TreeSet[26]; for (int...
Main.java:1: error: package jdk.nashorn.api.tree does not exist import jdk.nashorn.api.tree.Tree; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u602865659|p02937|0
u602865659|p02937|0
codenet
Compile Error
1,065
v2_s706707702
s706707702
s706707702
p02937
p02937
u610062988
u610062988
1,569,443,323
2019-09-25T20:28:43
Main.java
import jav.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int N = s.length(); int M = t.length(); int[] at = new int[26]; Arrays.fill(at, N + 1) for(int i = N - 1; i >= 0; i--){ at[s.ch...
Main.java:11: error: ';' expected Arrays.fill(at, N + 1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610062988|p02937|0
u610062988|p02937|0
codenet
Compile Error
1,000
v2_s987633740
s987633740
s987633740
p02937
p02937
u785708446
u785708446
1,566,345,246
2019-08-20T23:54:06
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String t = sc.nextLine(); long count = 0; int zz=0,j=0; for(int i=0;i<t.length();i++){ String tsub = t.substring(i,i+1); f...
Main.java:15: error: cannot find symbol z=0; ^ symbol: variable z location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785708446|p02937|0
u785708446|p02937|0
codenet
Compile Error
723
v2_s217519711
s217519711
s217519711
p02937
p02937
u874282093
u874282093
1,566,592,999
2019-08-23T20:43:19
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); int mod = s.length(); long ans = 0; TreeSet<Integer>[] index = new TreeSet[26]; for (int i = 0; i < 26; i++) { index[i]...
Main.java:42: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874282093|p02937|1
u874282093|p02937|1
codenet
Compile Error
1,021
v2_s592486048
s592486048
s592486048
p02938
p02938
u425248533
u425248533
1,567,623,976
2019-09-04T19:06:16
Main.java
const MOD: usize = 1_000_000_007; fn calc(l: usize, r: usize, shift: usize, x: usize, y: usize, s: usize, dp: &mut [[[[usize; 2]; 2]; 2]; 61]) -> usize { if shift == 0 { return if s == 1 {1} else {0}; } if dp[shift][x][y][s] < MOD { return dp[shift][x][y][s]; } let p = (l >> (shift ...
Main.java:1: error: class, interface, enum, or record expected const MOD: usize = 1_000_000_007; ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. fn calc(l: usize, r: usize, shift: usize, x: usize, y: usize, s: usize, dp: &mut [[[[usize; 2]; 2]; 2]; 61]) -> usize { ^ (use --ena...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u425248533|p02938|0
u425248533|p02938|0
codenet
Compile Error
1,172
v2_s286978430
s286978430
s286978430
p02938
p02938
u688693217
u688693217
1,566,510,895
2019-08-22T21:54:55
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long L = Long.parseLong(sc.next()); long R = Long.parseLong(sc.next()); long count = 0L; for(long x = L; x <= R; x++){ String xBinaryString = Long.toBinaryStrin...
Main.java:11: error: ';' expected String xBinaryString = Long.toBinaryString(x).length() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u688693217|p02938|0
u688693217|p02938|0
codenet
Compile Error
610
v2_s200785984
s200785984
s200785984
p02939
p02939
u293764826
u293764826
1,566,104,505
2019-08-18T05:01:45
Main.java
import java*util*; public class Main(){ public static void main(String[] args){ Scanner input = new Scanner(System.in); String s = input.nextLine(); int cnt = 0; char prev = s.charAt(0); int ans = 0; for(int i = 0 ;i < s.length() ; i++){ if(prev == s.charAt(i)) ...
Main.java:1: error: '.' expected import java*util*; ^ Main.java:1: error: ';' expected import java*util*; ^ Main.java:2: error: '{' expected public class Main(){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293764826|p02939|0
u293764826|p02939|0
codenet
Compile Error
630
v2_s140881824
s140881824
s140881824
p02939
p02939
u293764826
u293764826
1,566,104,545
2019-08-18T05:02:25
Main.java
import java.util.*; public class Main(){ public static void main(String[] args){ Scanner input = new Scanner(System.in); String s = input.nextLine(); int cnt = 0; char prev = s.charAt(0); int ans = 0; for(int i = 0 ;i < s.length() ; i++){ if(prev == s.charAt(i)) ...
Main.java:2: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293764826|p02939|0
u293764826|p02939|0
codenet
Compile Error
631
v2_s286204060
s286204060
s286204060
p02939
p02939
u328760043
u328760043
1,566,093,473
2019-08-18T01:57:53
Main.java
import java.io.*; import java.util.*; class Game { public static void main(String[] args) throws Exception { //try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); OutputStream outputStream = System.out; PrintWriter out = new PrintWriter(outputStream); int i, n, m,...
Main.java:13: error: incompatible types: int cannot be converted to String String str = Integer.parseInt(br.readLine()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u328760043|p02939|0
u328760043|p02939|0
codenet
Compile Error
679