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_s540405279
s540405279
s540405279
p02640
p02640
u867625642
u867625642
1,592,372,191
2020-06-17T05:36:31
Crane_and_Turtle.java
public class Crane_and_Turtle { public static void main(String[] args) { Scanner input = new Scanner(System.in); int a[] = new int[2]; for (int i = 0; i < a.length; i++) a[i] = input.nextInt(); if (!(a[1] >= 2 * a[0] && a[1] <= 4 * a[0] && a[1]%2==0)) { System.out.println("No"); return; } in...
Crane_and_Turtle.java:5: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Crane_and_Turtle Crane_and_Turtle.java:5: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class C...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u867625642|p02640|1
u867625642|p02640|0
codenet
Compile Error
463
v2_s116177992
s116177992
s116177992
p02640
p02640
u886450127
u886450127
1,592,183,664
2020-06-15T01:14:24
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if(4 * x >= y && y % 2 == 0){ System.out.printlnl("YES"); }else{ System.out.println("NO"); } } }
Main.java:9: error: cannot find symbol System.out.printlnl("YES"); ^ symbol: method printlnl(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02640|0
u886450127|p02640|0
codenet
Compile Error
319
v2_s684612160
s684612160
s684612160
p02640
p02640
u901705471
u901705471
1,592,258,714
2020-06-15T22:05:14
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); Boolean ans = false; for(int i=0; i<X; i++){ if(Y == 2*X + 4*(X-1)) ans = true } i...
Main.java:11: error: ';' expected ans = true ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u901705471|p02640|0
u901705471|p02640|0
codenet
Compile Error
421
v2_s222751675
s222751675
s222751675
p02641
p02641
u004932113
u004932113
1,592,188,682
2020-06-15T02:38:02
Main.java
import java.util*; class Main{ public static void main(String[] args){ static void swap(int[] a,int idx1, int idx2) { int t = a[idx1]; a[idx1] = a[idx2]; a[idx2] = t; } static void quicksort(int[] a, int left, int right) { int pl = left; int pr = right; int x = a[(pl + pr)/2]; do { while(a[pl]...
Main.java:1: error: ';' expected import java.util*; ^ Main.java:5: error: illegal start of expression static void swap(int[] a,int idx1, int idx2) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02641|0
u004932113|p02641|0
codenet
Compile Error
1,187
v2_s726593738
s726593738
s726593738
p02641
p02641
u004932113
u004932113
1,592,188,711
2020-06-15T02:38:31
Main.java
import java.util.*; class Main{ public static void main(String[] args){ static void swap(int[] a,int idx1, int idx2) { int t = a[idx1]; a[idx1] = a[idx2]; a[idx2] = t; } static void quicksort(int[] a, int left, int right) { int pl = left; int pr = right; int x = a[(pl + pr)/2]; do { while(a[pl...
Main.java:5: error: illegal start of expression static void swap(int[] a,int idx1, int idx2) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02641|0
u004932113|p02641|0
codenet
Compile Error
1,189
v2_s516307738
s516307738
s516307738
p02641
p02641
u083824251
u083824251
1,592,427,199
2020-06-17T20:53:19
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int n=sc.nextInt(); //数字列の長さ ArrayList<String>array=new ArrayList<>(); for(int i=0;i<n;i++) { array.add(s...
Main.java:49: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u083824251|p02641|0
u083824251|p02641|0
codenet
Compile Error
839
v2_s992977558
s992977558
s992977558
p02641
p02641
u089230684
u089230684
1,594,010,589
2020-07-06T04:43:09
Main.java
[9:11 pm, 05/07/2020] Siddharth Sharma 2 No: import java.util.*; public class Main{ public static void main(String[] args) { // write your code here. Scanner scn=new Scanner (System.in); int x=scn.nextInt(); int n=scn.nextInt(); int []arr=new int[n]; boolean temp=false; for(int i=0;i<n;i++){ arr[i]=scn.nextInt()...
Main.java:1: error: class, interface, enum, or record expected [9:11 pm, 05/07/2020] Siddharth Sharma 2 No: import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02641|0
u089230684|p02641|0
codenet
Compile Error
1,142
v2_s324683214
s324683214
s324683214
p02641
p02641
u089960279
u089960279
1,592,184,615
2020-06-15T01:30:15
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int n=sc.nextInt(); Set<Integer> set =new Set<>(); for(int i=0;i<n;i++) set.add(sc.nextInt()); int ans=0; for(int i=x;;i++) { if(!set.contains(i+1)) { ans=...
Main.java:19: error: ';' expected {ans=i-1 ^ Main.java:20: error: ';' expected break} ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089960279|p02641|0
u089960279|p02641|0
codenet
Compile Error
434
v2_s478850500
s478850500
s478850500
p02641
p02641
u114053864
u114053864
1,592,880,627
2020-06-23T02:50:27
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int n = scan.nextInt(); int [] a = new int[101]; for (int i=0;i<102;i++){ a[i] = i-1 } for (int j=0;j<n;j++){ int t = scan.nextInt(); ...
Main.java:10: error: ';' expected a[i] = i-1 ^ Main.java:24: error: ';' expected abs = -abs ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114053864|p02641|0
u114053864|p02641|0
codenet
Compile Error
646
v2_s684208339
s684208339
s684208339
p02641
p02641
u263492023
u263492023
1,592,189,966
2020-06-15T02:59:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ans = 101; int x = sc.nextInt(); int n = sc.nextInt(); int[] p = new int[n]; for(int i=0;i<n;i++){ p[i] = sc.nextInt(); } for(int i=0;i<101;i++){ boolean flag = false...
Main.java:6: error: cannot find symbol ans = 101; ^ symbol: variable ans location: class Main Main.java:18: error: no suitable method found for abs(int,int) if(!(flag) && Math.abs(x,i)<Math.abs(x,ans)){ ^ method Math.abs(int) is not applicable (actual and formal argument li...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u263492023|p02641|0
u263492023|p02641|0
codenet
Compile Error
463
v2_s626018458
s626018458
s626018458
p02641
p02641
u263492023
u263492023
1,592,189,994
2020-06-15T02:59:54
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ans = 101; int x = sc.nextInt(); int n = sc.nextInt(); int[] p = new int[n]; for(int i=0;i<n;i++){ p[i] = sc.nextInt(); } for(int i=0;i<101;i++){ boolean flag = false...
Main.java:6: error: cannot find symbol ans = 101; ^ symbol: variable ans location: class Main Main.java:18: error: no suitable method found for abs(int,int) if(!(flag) && Math.abs(x,i)<Math.abs(x,ans)){ ^ method Math.abs(int) is not applicable (actual and formal argument li...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u263492023|p02641|0
u263492023|p02641|0
codenet
Compile Error
494
v2_s441067530
s441067530
s441067530
p02641
p02641
u301915908
u301915908
1,592,688,558
2020-06-20T21:29:18
Main.java
java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number = sc.nextInt(); int numlength = sc.nextInt(); int[] numbers = new int[numlength]; int n = 0; int m = 0; for(int i=0;i<numlength;i++) { numbers[i] = sc.nextInt(); } ...
Main.java:1: error: class, interface, enum, or record expected java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301915908|p02641|0
u301915908|p02641|0
codenet
Compile Error
823
v2_s461946528
s461946528
s461946528
p02641
p02641
u325545467
u325545467
1,592,191,168
2020-06-15T03:19:28
Main.java
import java.util.*; import java.lang.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int k=sc.nextInt(); int n=sc.nextInt(); if(n==0) System.out.println(k); else { ArrayList<Integer> al=new ArrayList<Integer>(); int diff=100; ...
Main.java:32: error: cannot find symbol ans=min-1; ^ symbol: variable ans location: class Main Main.java:37: error: cannot find symbol ans=min+1; ^ symbol: variable ans location: class Main Main.java:43: error: cannot find symbol System.out.println(ans); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325545467|p02641|0
u325545467|p02641|0
codenet
Compile Error
840
v2_s122991416
s122991416
s122991416
p02641
p02641
u325545467
u325545467
1,592,191,710
2020-06-15T03:28:30
Main.java
import java.util.*; import java.lang.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int k=sc.nextInt(); int n=sc.nextInt(); if(n==0) System.out.println(k); else { HashSet<Integer> s=new HashSet<Integer>(); for(int i=0;i<n;i++) ...
Main.java:24: error: cannot find symbol if(!s.contains(x-d)) ^ symbol: variable x location: class Main Main.java:26: error: cannot find symbol System.out.println(x-d); ^ symbol: variable x location: class Main Main.java:29: error: cannot ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325545467|p02641|0
u325545467|p02641|0
codenet
Compile Error
696
v2_s305366914
s305366914
s305366914
p02641
p02641
u331337510
u331337510
1,592,295,954
2020-06-16T08:25:54
Main.java
import java.util.Scanner; import java.util.List; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int i=sc.nextInt(); int j=sc.nextInt(); int arr[]=new int[j]; List<Integer> li1=new ArrayList<Integer>(); if(j==0) { System.out.println(i); retur...
Main.java:10: error: cannot find symbol List<Integer> li1=new ArrayList<Integer>(); ^ symbol: class ArrayList location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u331337510|p02641|0
u331337510|p02641|0
codenet
Compile Error
821
v2_s812644621
s812644621
s812644621
p02641
p02641
u353919145
u353919145
1,594,007,696
2020-07-06T03:54:56
Main.java
import java.util.*; public class Main(String[] args){ public static void main(){ int x,n; Scanner scn = new Scanner(System.in); x = scn.nextInt(); n = scn.nextInt(); int[] a = new int[n]; Hashmap<Integer,Boolean> map = new Hashmap<>(); for(int i=0;i<...
Main.java:2: error: '{' expected public class Main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02641|0
u353919145|p02641|0
codenet
Compile Error
828
v2_s358011420
s358011420
s358011420
p02641
p02641
u353919145
u353919145
1,594,007,820
2020-07-06T03:57:00
Main.java
import java.util.*; public class Main(String args[]){ public static void main(){ int x,n; Scanner scn = new Scanner(System.in); x = scn.nextInt(); n = scn.nextInt(); int[] a = new int[n]; Hashmap<Integer,Boolean> map = new Hashmap<>(); for(int i=0;i<...
Main.java:2: error: '{' expected public class Main(String args[]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02641|0
u353919145|p02641|0
codenet
Compile Error
828
v2_s462666521
s462666521
s462666521
p02641
p02641
u443223063
u443223063
1,592,439,090
2020-06-18T00:11:30
Main.java
import java.util.*; public class Main{ public static void main(Strin[] args){ Scanner sc=new Scanner(System.in); LinkedList<Integer> l=new LinkedList<>(); int x=sc.nextInt(); int n=sc.nextInt(); for(int i=0;i<n;i++) { l.add(sc.nextInt()); } for(int i=0;true;i++) { if(!l...
Main.java:3: error: cannot find symbol public static void main(Strin[] args){ ^ symbol: class Strin location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u443223063|p02641|0
u443223063|p02641|0
codenet
Compile Error
494
v2_s541878186
s541878186
s541878186
p02641
p02641
u471346428
u471346428
1,592,191,272
2020-06-15T03:21:12
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); int X = scanner.nextInt(); int N = scanner.nextInt(); ArrayList<Integer> list = new ArrayList<>(); int answer1 = 0; int answer2 = 0; int k = 1; in...
Main.java:10: error: cannot find symbol ArrayList<Integer> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:10: error: cannot find symbol ArrayList<Integer> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main 2 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u471346428|p02641|0
u471346428|p02641|0
codenet
Compile Error
1,030
v2_s423457794
s423457794
s423457794
p02641
p02641
u486466217
u486466217
1,592,183,878
2020-06-15T01:17:58
Main.java
import java.util.*; import java.lang.Math.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力 if(n==0){ System.out.println(X); }else{ int X = sc.nextInt(); int n = sc.nextInt(); int cannotuse[]=new int[100]; ...
Main.java:7: error: cannot find symbol if(n==0){ ^ symbol: variable n location: class Main Main.java:8: error: cannot find symbol System.out.println(X); ^ symbol: variable X location: class Main Main.java:14: error: cannot find symbol cannnotuse[sc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02641|0
u486466217|p02641|0
codenet
Compile Error
692
v2_s029921002
s029921002
s029921002
p02641
p02641
u486466217
u486466217
1,592,183,998
2020-06-15T01:19:58
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 X = sc.nextInt(); int n = sc.nextInt(); if(n==0){ System.out.println(X); }else{ int cannnotuse[]=new int[100...
Main.java:14: error: cannot find symbol cannnotuse[sc.nextInt-1]=1; ^ symbol: variable nextInt location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02641|0
u486466217|p02641|0
codenet
Compile Error
699
v2_s493581997
s493581997
s493581997
p02641
p02641
u486466217
u486466217
1,592,184,713
2020-06-15T01:31:53
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 x=sc.nextInt(); int n=sc.nextInt(); int bigans=x; int smlans=x; for(int i=0;i<n;i++){ int nx=sc.nextInt(); ...
Main.java:17: error: cannot find symbol smlans=nm-1; ^ symbol: variable nm location: class Main Main.java:20: error: cannot find symbol if(Math.abs(smlans)<Math.ans(bigans)){ ^ symbol: method ans(int) location: class Math 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02641|0
u486466217|p02641|0
codenet
Compile Error
602
v2_s507871636
s507871636
s507871636
p02641
p02641
u520480375
u520480375
1,592,186,825
2020-06-15T02:07:05
Main.java
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner (System.in); int x = sc.nextInt(); int n = sc.nextInt(); int[] array = new int[n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } ...
Main.java:35: error: > or ',' expected if (i =< x) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02641|0
u520480375|p02641|0
codenet
Compile Error
1,506
v2_s567056897
s567056897
s567056897
p02641
p02641
u520480375
u520480375
1,592,186,861
2020-06-15T02:07:41
Main.java
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner (System.in); int x = sc.nextInt(); int n = sc.nextInt(); int[] array = new int[n]; for (int i = 0; i < n; i++) { array[i] = sc.nextInt(); } ...
Main.java:35: error: > or ',' expected if (i =< x) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02641|0
u520480375|p02641|0
codenet
Compile Error
1,506
v2_s375485418
s375485418
s375485418
p02641
p02641
u523115706
u523115706
1,595,780,244
2020-07-26T16:17:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int N = scan.nextInt(); int Y = X; int i = 1 while (i <= N) { int p_i = scan.nextInt(); if (p_i == X || p_i == Y) { ...
Main.java:12: error: ';' expected int i = 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02641|0
u523115706|p02641|0
codenet
Compile Error
418
v2_s620926026
s620926026
s620926026
p02641
p02641
u547671064
u547671064
1,592,186,224
2020-06-15T01:57:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int X =sc.nextInt(); int N =sc.nextInt(); int P[] =new int[N]; int x =1000; int q;int r; for(int i=0;i<N;i++){ P[i]=-X+sc.nextInt();} Arrays.sort(P); for(int j=0...
Main.java:14: error: cannot find symbol if(P[i]<0){q =-P[i];} ^ symbol: variable i location: class Main Main.java:14: error: cannot find symbol if(P[i]<0){q =-P[i];} ^ symbol: variable i location: class Main Main.java:15: error: cannot find symbol else{q=P...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02641|0
u547671064|p02641|0
codenet
Compile Error
486
v2_s583749465
s583749465
s583749465
p02641
p02641
u563853779
u563853779
1,592,185,525
2020-06-15T01:45:25
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { static List<Integer> list = new ArrayList<Integer>(); static int x = 0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); x = sc.nextInt(); int n = sc.nextIn...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563853779|p02641|0
u563853779|p02641|0
codenet
Compile Error
552
v2_s968457562
s968457562
s968457562
p02641
p02641
u565219356
u565219356
1,592,191,189
2020-06-15T03:19:49
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); List<Integer> list = new ArrayList<>(); int ans = x; for (int i = 0; i < n; i++) { list.add(sc.nextInt()); } for (int dif = 0; dif <= n; dif++) { //x...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:9: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u565219356|p02641|0
u565219356|p02641|0
codenet
Compile Error
568
v2_s897836850
s897836850
s897836850
p02641
p02641
u580126681
u580126681
1,592,184,250
2020-06-15T01:24:10
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); int p[] = new int(n); for(int i = 0; i < n; i++){ p[i] = sc.nextInt(); } ...
Main.java:10: error: '[' expected int p[] = new int(n); ^ Main.java:10: error: ']' expected int p[] = new int(n); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u580126681|p02641|0
u580126681|p02641|0
codenet
Compile Error
699
v2_s943516473
s943516473
s943516473
p02641
p02641
u580126681
u580126681
1,592,184,647
2020-06-15T01:30:47
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); int p[] = new int[n]; for(int i = 0; i < n; i++){ p[i] = sc.nextInt(); } ...
Main.java:21: error: incompatible types: inference variable T has incompatible bounds List<Integer> list = Arrays.asList(p); ^ equality constraints: Integer lower bounds: int[] where T is a type-variable: T extends Object declared in method <T>asList(T...) M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u580126681|p02641|0
u580126681|p02641|0
codenet
Compile Error
818
v2_s697331085
s697331085
s697331085
p02641
p02641
u580126681
u580126681
1,592,184,729
2020-06-15T01:32:09
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); Integer p[] = new int[n]; for(int i = 0; i < n; i++){ p[i] = sc.nextInt(); } ...
Main.java:10: error: incompatible types: int[] cannot be converted to Integer[] Integer p[] = new int[n]; ^ Main.java:27: error: cannot find symbol if(!p.contains(r)){ ^ symbol: method contains(int) location: variable p of type Integer[] Main.java:34: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u580126681|p02641|0
u580126681|p02641|0
codenet
Compile Error
824
v2_s043720787
s043720787
s043720787
p02641
p02641
u580126681
u580126681
1,592,184,745
2020-06-15T01:32:25
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); Integer p[] = new int[n]; for(int i = 0; i < n; i++){ p[i] = sc.nextInt(); } ...
Main.java:10: error: incompatible types: int[] cannot be converted to Integer[] Integer p[] = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u580126681|p02641|0
u580126681|p02641|0
codenet
Compile Error
830
v2_s938837214
s938837214
s938837214
p02641
p02641
u618579766
u618579766
1,592,253,822
2020-06-15T20:43:42
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int n=sc.nextInt(); int flag=0; ArrayList<Integer> a=new ArrayList<Integer>(); ArrayList<Integer> a1=new ArrayList<Integer>(); for(int i=0;i<n;i++) { ...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618579766|p02641|1
u618579766|p02641|1
codenet
Compile Error
790
v2_s664891870
s664891870
s664891870
p02641
p02641
u659156129
u659156129
1,598,027,163
2020-08-21T16:26:03
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int x = scn.nextInt(); int n = scn.nextInt(); int[] p = new int[n]; for(int i=0; i<n; i++){ p[i] = scn.nextInt(); } int ans = x; int num = x; ...
Main.java:26: error: cannot find symbol if(Math.abs(ans-a)>=Math.abs(num-a)) { ^ symbol: variable a location: class Main Main.java:26: error: cannot find symbol if(Math.abs(ans-a)>=Math.abs(num-a)) { ^ symbol: variable a location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02641|0
u659156129|p02641|0
codenet
Compile Error
669
v2_s084674698
s084674698
s084674698
p02641
p02641
u679322570
u679322570
1,592,185,266
2020-06-15T01:41:06
Main.java
import java.util.Arrays; import java.util.Scanner; import java.util.HashMap; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int a = scn.nextInt(); int b = scn.nextInt(); if(b==0){ System.out.println(a); HashMap<Integer,Integer> map = new Hash...
Main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679322570|p02641|0
u679322570|p02641|0
codenet
Compile Error
712
v2_s485971582
s485971582
s485971582
p02641
p02641
u703828724
u703828724
1,592,185,939
2020-06-15T01:52:19
Main.java
#include<iostream> #include<bits/stdc++.h> using namespace std; #define pi 3.1415926535898 #define ll long long #define int long long typedef std::pair<long long,long long> pll; typedef std::pair<int,int> pii; typedef std::vector<int> vi; typedef std::vector<long long> vll; typedef double db; const ll mod=1e9+7; ll po...
Main.java:2: error: illegal character: '#' #include<iostream> ^ Main.java:3: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:5: error: illegal character: '#' #define pi 3.1415926535898 ^ Main.java:5: error: class, interface, enum, or record expected #define pi 3.1415926535898 ^ Main.java:6: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u703828724|p02641|0
u703828724|p02641|0
codenet
Compile Error
1,044
v2_s888258846
s888258846
s888258846
p02641
p02641
u736076905
u736076905
1,592,756,223
2020-06-21T16:17:03
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner in = new Scanner(System.in); int x = in.nextInt(); int n = in.nextInt(); int[] arr = new int[101]; for (int i = 0; i < n; i++){ arr[in.nextInt()] = 1; } int val1 = -1; int val2 = -...
Main.java:26: error: cannot find symbol System.out.println(Math.min(arr1, arr2)); ^ symbol: variable arr1 location: class Main Main.java:26: error: cannot find symbol System.out.println(Math.min(arr1, arr2)); ^ symbol: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736076905|p02641|0
u736076905|p02641|0
codenet
Compile Error
614
v2_s459435855
s459435855
s459435855
p02641
p02641
u762019716
u762019716
1,592,184,459
2020-06-15T01:27:39
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.function.IntToDoubleFunction; import org.junit.experimental.theories.FromDataPoints; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(S...
Main.java:8: error: package org.junit.experimental.theories does not exist import org.junit.experimental.theories.FromDataPoints; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762019716|p02641|0
u762019716|p02641|0
codenet
Compile Error
2,939
v2_s636787929
s636787929
s636787929
p02641
p02641
u762019716
u762019716
1,592,184,487
2020-06-15T01:28:07
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.function.IntToDoubleFunction; import org.junit.experimental.theories.FromDataPoints; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(S...
Main.java:8: error: package org.junit.experimental.theories does not exist import org.junit.experimental.theories.FromDataPoints; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762019716|p02641|0
u762019716|p02641|0
codenet
Compile Error
2,939
v2_s163312628
s163312628
s163312628
p02641
p02641
u813895735
u813895735
1,598,160,714
2020-08-23T05:31:54
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int n = sc.nextInt(); ArrayList<Integer> pList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { pList.add(sc.nextInt()); } // Arrays.sor...
Main.java:18: error: method contains in class ArrayList<E> cannot be applied to given types; if (pList.contains()) { ^ required: Object found: no arguments reason: actual and formal argument lists differ in length where E is a type-variable: E extends Object declared in class ArrayLi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02641|0
u813895735|p02641|0
codenet
Compile Error
614
v2_s419014161
s419014161
s419014161
p02641
p02641
u816631826
u816631826
1,594,007,864
2020-07-06T03:57:44
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int x,n; Scanner scn = new Scanner(System.in); x = scn.nextInt(); n = scn.nextInt(); int[] a = new int[n]; Hashmap<Integer,Boolean> map = new Hashmap<>(); for(int i=0;i<n;...
Main.java:9: error: cannot find symbol Hashmap<Integer,Boolean> map = new Hashmap<>(); ^ symbol: class Hashmap location: class Main Main.java:9: error: cannot find symbol Hashmap<Integer,Boolean> map = new Hashmap<>(); ^ symbol: class Hash...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02641|0
u816631826|p02641|0
codenet
Compile Error
826
v2_s636431194
s636431194
s636431194
p02641
p02641
u826386440
u826386440
1,592,253,990
2020-06-15T20:46:30
Main.java
packagesample; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.Arrays; import java.util.HashSet; import java.util.InputMismatchException; /** * @author Mubtasim Shahriar */ public class Main { public ...
Main.java:1: error: class, interface, enum, or record expected packagesample; ^ Main.java:4: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:5: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:6: error: class, interface, enum, or record ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u826386440|p02641|0
u826386440|p02641|0
codenet
Compile Error
6,199
v2_s693699904
s693699904
s693699904
p02641
p02641
u854155653
u854155653
1,592,183,931
2020-06-15T01:18:51
Main.java
import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.u...
Main.java:233: error: illegal start of type for(int i=0;i<n;i++) p.add(sc.nextInt()); ^ Main.java:233: error: > or ',' expected for(int i=0;i<n;i++) p.add(sc.nextInt()); ^ Main.java:233: error: <identifier> expected for(int i=0;i<n;i++) p.add(sc.nextInt()); ^ Main.java:233: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u854155653|p02641|0
u854155653|p02641|0
codenet
Compile Error
5,674
v2_s151377616
s151377616
s151377616
p02641
p02641
u863370423
u863370423
1,594,246,783
2020-07-08T22:19:43
Main.java
import java.io.*; import java.util.Scanner; import sun.text.normalizer.NormalizerBase.QuickCheckResult; class main{ static boolean check(int q, int N, int arr[]) { for (int a = 0; a<N; a++) { if (arr[a] == q) { return true; } } ...
Main.java:5: error: package sun.text.normalizer.NormalizerBase does not exist import sun.text.normalizer.NormalizerBase.QuickCheckResult; ^ Main.java:30: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal Boolean res = new Boolean(f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02641|1
u863370423|p02641|1
codenet
Compile Error
1,384
v2_s910501103
s910501103
s910501103
p02641
p02641
u924711195
u924711195
1,595,030,214
2020-07-17T23:56:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int xx = x; boolean[] p = new boolean[100]; Arrays.fill(p,false); for(int i = 0;i < scan.nextInt();i++){ p[scan.nextInt()] = true; } boolea...
Main.java:8: error: cannot find symbol Arrays.fill(p,false); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924711195|p02641|0
u924711195|p02641|0
codenet
Compile Error
456
v2_s517110780
s517110780
s517110780
p02641
p02641
u936996545
u936996545
1,592,185,443
2020-06-15T01:44:03
Main.java
public class Main { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X,N; X=sc.nextInt(); N=sc.nextInt(); int syoki_hairetu[] = new int[101]; for(int i=0;i<=100;i++) { syoki_hairetu[i]=i; } int p[]=new int[N]; for(int i=0;i<N;i++) { ...
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); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u936996545|p02641|0
u936996545|p02641|0
codenet
Compile Error
606
v2_s147348730
s147348730
s147348730
p02642
p02642
u074720991
u074720991
1,592,189,497
2020-06-15T02:51:37
Main.java
import java.util.Scanner; import java.util.Set; import java.util.HashSet; import java.util.TreeSet; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Set distinctSet = new TreeSet(); for (int i = 0; i < n; i++) { distinctSet...
Main.java:19: error: incompatible types: Object cannot be converted to int for (int m : distinctSet) { ^ 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
u074720991|p02642|0
u074720991|p02642|0
codenet
Compile Error
870
v2_s704296083
s704296083
s704296083
p02642
p02642
u224772751
u224772751
1,592,186,906
2020-06-15T02:08:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt();//整数の数 int cnt = 0; boolean flag = false; List<Integer> list = new ArrayList<>(); for (int i = 0; i < a; i++) { list.add(sc.nextInt()); } ...
Main.java:26: error: ';' expected int c = list.get(j) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u224772751|p02642|0
u224772751|p02642|0
codenet
Compile Error
664
v2_s365669922
s365669922
s365669922
p02642
p02642
u224772751
u224772751
1,592,188,189
2020-06-15T02:29:49
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt();//整数の数 int cnt = 0; List<Integer> list = new ArrayList<>(); for (int i = 0; i < a; i++) { list.add(sc.nextInt()); } Collections.sort(list); ...
Main.java:20: error: cannot find symbol flag = false; ^ symbol: variable flag location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u224772751|p02642|0
u224772751|p02642|0
codenet
Compile Error
636
v2_s393689416
s393689416
s393689416
p02642
p02642
u247775641
u247775641
1,592,515,718
2020-06-18T21:28:38
Main.java
import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { // printTestValue(); // abc170_d(); abc169_b(); } public static void abc169_...
Main.java:46: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u247775641|p02642|4
u247775641|p02642|2
codenet
Compile Error
1,239
v2_s204413509
s204413509
s204413509
p02642
p02642
u276850118
u276850118
1,595,466,670
2020-07-23T01:11:10
Main.java
import java.io.*; import java.util.Arrays; import java.util.ArrayList; import java.util.StringTokenizer; public class Main{ public static final int SIZE = 1000001; public static void main(String [] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWrite...
Main.java:57: error: class Pair is public, should be declared in a file named Pair.java public class Pair{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276850118|p02642|0
u276850118|p02642|0
codenet
Compile Error
1,613
v2_s879007674
s879007674
s879007674
p02642
p02642
u277279760
u277279760
1,592,187,982
2020-06-15T02:26:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); List<Integer> A = new ArrayList<>(); for(int loop=0; loop<N; loop++) { int scan = scanner.nextInt(); boolean...
Main.java:16: error: incompatible types: int cannot be converted to Collection<?> A.removeAll( temp ); ^ 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
u277279760|p02642|0
u277279760|p02642|0
codenet
Compile Error
1,053
v2_s566847200
s566847200
s566847200
p02642
p02642
u324739185
u324739185
1,592,188,785
2020-06-15T02:39:45
Main.java
import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); List<Long> a = new ArrayList<>(); ...
Main.java:26: error: ')' or ',' expected long jlen = (long) Math.floor(Math.sqrt(aLong); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324739185|p02642|0
u324739185|p02642|0
codenet
Compile Error
1,345
v2_s899387666
s899387666
s899387666
p02642
p02642
u324739185
u324739185
1,592,188,816
2020-06-15T02:40:16
Main.java
import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; import java.util.function.Function; import java.util.stream.Collectors; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); List<Long> a = new ArrayList<>(); ...
Main.java:26: error: ')' or ',' expected long jlen = (long) Math.floor(Math.sqrt(aLong); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324739185|p02642|0
u324739185|p02642|0
codenet
Compile Error
1,335
v2_s056450084
s056450084
s056450084
p02642
p02642
u479049927
u479049927
1,592,508,901
2020-06-18T19:35:01
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); var N = scanner.nextInt(); var A = new int[N]; var isP = new boolean[N]; for(int i=0; i<N; i++) { A[i] = scanner.nextInt(); isP[i] = true; ...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u479049927|p02642|1
u479049927|p02642|0
codenet
Compile Error
707
v2_s877069022
s877069022
s877069022
p02642
p02642
u510246663
u510246663
1,592,186,992
2020-06-15T02:09:52
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } int count=0; int xcount=0; for(int j=0;j<n;j++){ for...
Main.java:14: error: cannot find symbol if(a[i]%a[j]!=0) ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u510246663|p02642|0
u510246663|p02642|0
codenet
Compile Error
523
v2_s823603045
s823603045
s823603045
p02642
p02642
u587100042
u587100042
1,592,186,990
2020-06-15T02:09:50
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),ans=0; int[] a=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } Arrays.sort(a); for(int i=0;i<n;i++){ if(i==0){ if(a[0]<a[1]){ ...
Main.java:31: error: cannot find symbol System.out.pirntln(ans); ^ symbol: method pirntln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02642|0
u587100042|p02642|0
codenet
Compile Error
595
v2_s388848010
s388848010
s388848010
p02642
p02642
u599968009
u599968009
1,592,186,234
2020-06-15T01:57:14
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; for(int i=0; i<n;i++) { a[i] = sc.nextInt(); } int c = 0; for(int i=0; i<n; i++) { boolean flg = false; for(int j=0; j<n; j++) { if(i == j ) c...
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
u599968009|p02642|0
u599968009|p02642|0
codenet
Compile Error
455
v2_s062205119
s062205119
s062205119
p02642
p02642
u601109825
u601109825
1,592,224,567
2020-06-15T12:36:07
Main.java
import java.util.*; public class Main { private static List<Integer> getStrings(Scanner sc, int num) { List<Integer> stringList = new ArrayList<>(); while(num>0) { int nextInt = sc.nextInt(); stringList.add(nextInt); num--; } return stringList; } public static void main(String[] args) { Scanner...
Main.java:39: error: not a statement Integer ^ Main.java:39: error: ';' expected Integer ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u601109825|p02642|1
u601109825|p02642|1
codenet
Compile Error
1,720
v2_s673725516
s673725516
s673725516
p02642
p02642
u660444966
u660444966
1,592,185,725
2020-06-15T01:48:45
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } boolean[] used = new boolean[1_000_001]; Arrays.sort...
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:11: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660444966|p02642|0
u660444966|p02642|0
codenet
Compile Error
1,825
v2_s705546369
s705546369
s705546369
p02642
p02642
u672402312
u672402312
1,592,188,849
2020-06-15T02:40:49
Main.java
import java.util.*; public class Main { public static void sort(int array[], int left, int right){ if(left <= right){ int p = array[(left + right) >>> 1]; int l = left; int r = right; while(l <= r){ while (array[l] < p){ l+...
Main.java:63: error: '.class' expected if(int j = 2; j * j < a[i]; j++){ ^ Main.java:63: error: not a statement if(int j = 2; j * j < a[i]; j++){ ^ Main.java:63: error: ';' expected if(int j = 2; j * j < a[i]; j++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u672402312|p02642|0
u672402312|p02642|0
codenet
Compile Error
2,489
v2_s272153218
s272153218
s272153218
p02642
p02642
u732424566
u732424566
1,594,455,065
2020-07-11T08:11:05
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ FastReader sc = new FastReader(); int n = sc.nextInt(); int[] nums = new int[n]; for (int i = 0; i < n; i++){ nums[i] = sc.nextInt(); ...
Main.java:18: error: incompatible types: int cannot be converted to boolean if (nums[i] % nums[j]) good = false; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u732424566|p02642|0
u732424566|p02642|0
codenet
Compile Error
1,506
v2_s395641343
s395641343
s395641343
p02642
p02642
u763296413
u763296413
1,592,184,843
2020-06-15T01:34:03
Main.java
import sun.reflect.generics.tree.Tree; import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.util.*; public class Main { static Input in = new Input(System.in); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { int N =...
Main.java:1: error: package sun.reflect.generics.tree is not visible import sun.reflect.generics.tree.Tree; ^ (package sun.reflect.generics.tree is declared in module java.base, which does not export it) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u763296413|p02642|0
u763296413|p02642|0
codenet
Compile Error
2,314
v2_s725937869
s725937869
s725937869
p02642
p02642
u813895735
u813895735
1,598,162,633
2020-08-23T06:03:53
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { pList.add(sc.nextInt()); } int cnt = n; for (int i=0; i<n...
Main.java:10: error: cannot find symbol pList.add(sc.nextInt()); ^ symbol: variable pList location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
519
v2_s171680503
s171680503
s171680503
p02642
p02642
u813895735
u813895735
1,598,166,157
2020-08-23T07:02:37
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Arrays.sort(aList...
Main.java:27: error: illegal start of expression if ( i!=j && ( % aList.get(j) == 0) ) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
812
v2_s207917981
s207917981
s207917981
p02642
p02642
u813895735
u813895735
1,598,166,337
2020-08-23T07:05:37
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Arrays.sort(aList...
Main.java:14: error: no suitable method found for sort(ArrayList<Integer>) Arrays.sort(aList); ^ method Arrays.sort(int[]) is not applicable (argument mismatch; ArrayList<Integer> cannot be converted to int[]) method Arrays.sort(long[]) is not applicable (argument mismatch; ArrayList<I...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
833
v2_s014957655
s014957655
s014957655
p02642
p02642
u813895735
u813895735
1,598,166,651
2020-08-23T07:10: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(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Collections.sort(...
Main.java:19: error: cannot find symbol if (map.contains(ai)) { ^ symbol: method contains(int) location: variable map of type HashMap<Integer,Boolean> Main.java:21: error: cannot find symbol c--; ^ symbol: variable c location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
846
v2_s627910787
s627910787
s627910787
p02642
p02642
u813895735
u813895735
1,598,166,755
2020-08-23T07:12:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Collections.sort(...
Main.java:19: error: cannot find symbol if (map.contains(ai)) { ^ symbol: method contains(Integer) location: variable map of type HashMap<Integer,Boolean> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
856
v2_s522529055
s522529055
s522529055
p02642
p02642
u813895735
u813895735
1,598,167,092
2020-08-23T07:18:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Collections.sort(...
Main.java:19: error: cannot find symbol if (map.contains(ai)) { ^ symbol: method contains(Integer) location: variable map of type HashMap<Integer,Boolean> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
856
v2_s220223182
s220223182
s220223182
p02642
p02642
u813895735
u813895735
1,598,167,715
2020-08-23T07:28:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> aList = new ArrayList<Integer>(); for (int i=0; i<n; i++) { aList.add(sc.nextInt()); } int cnt = n; Collections.sort(...
Main.java:19: error: cannot find symbol if (map.contains(ai)) { ^ symbol: method contains(Integer) location: variable map of type HashMap<Integer,Boolean> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02642|0
u813895735|p02642|0
codenet
Compile Error
856
v2_s223203116
s223203116
s223203116
p02642
p02642
u830501843
u830501843
1,592,886,260
2020-06-23T04:24:20
Main.java
public class Main { public static void main(String[] args) { var sc = new java.util.Scanner(System.in); var n = sc.nextInt(); var a = new Integer[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } Arrays.sort(a,Collections.reverseOrder()); var cal = new Boolean[a[0]+1]; for(int i=0;i<cal.leng...
Main.java:9: error: cannot find symbol Arrays.sort(a,Collections.reverseOrder()); ^ symbol: variable Arrays location: class Main Main.java:9: error: cannot find symbol Arrays.sort(a,Collections.reverseOrder()); ^ symbol: variable Collections location: class Main Main.java:27: error: ca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u830501843|p02642|1
u830501843|p02642|1
codenet
Compile Error
632
v2_s581531970
s581531970
s581531970
p02642
p02642
u899530879
u899530879
1,592,188,939
2020-06-15T02:42:19
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList<Integer> a = new ArrayList<Integer>(); ArrayList<Integer> ans = new ArrayList<Integer>(); for(int i=0; i<n; i++) { int tmp = sc.nextInt(); a.add(t...
Main.java:32: error: ')' expected if((a.get(i)/2 > a.get(w)) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899530879|p02642|0
u899530879|p02642|0
codenet
Compile Error
931
v2_s085072303
s085072303
s085072303
p02642
p02642
u909323623
u909323623
1,592,188,430
2020-06-15T02:33:50
Main.java
import java.util.Scanner; import java.util.HashSet; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); HashSet<Integer> a = new HashSet<>(); HashSet<Integer> doubleList = new HashSet<>(); int n = sc.nextInt(); int maxValue = 0; for(int i=0;i<n;i++){ boolean addabl...
Main.java:25: error: variable i is already defined in method main(String[]) for(int i=0;i<maxValue;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u909323623|p02642|0
u909323623|p02642|0
codenet
Compile Error
1,354
v2_s537841905
s537841905
s537841905
p02644
p02644
u061996193
u061996193
1,592,188,782
2020-06-15T02:39:42
Main.java
import java.util.*; public class Main { static final long MOD = 998244353; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int K = sc.nextInt(); int x1 = sc.nextInt()-1; int y1 = sc.nextInt()-1; int x2 = sc.nextInt()-1; int ...
Main.java:71: error: bad operand types for binary operator '<' System.out.println(best[y2][x2]<Long.MAX_VALUE ? best[y2][x2] : -1); ^ first type: long[] second type: long 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u061996193|p02644|0
u061996193|p02644|0
codenet
Compile Error
1,651
v2_s730078083
s730078083
s730078083
p02644
p02644
u228818634
u228818634
1,592,189,116
2020-06-15T02:45:16
Main.java
import java.io.*; import java.util.*; public class Main implements Runnable { boolean oj = true; Reader scn; PrintWriter out; String INPUT = ""; void solve() { int n = scn.nextInt(), m = scn.nextInt(), k = scn.nextInt(); int x = scn.nextInt() - 1, y = scn.nextInt() - 1; int dx = scn.nextInt() - 1, dy = sc...
Main.java:95: error: cannot find symbol if(dp[dx][dy] == Integer) { ^ symbol: variable Integer location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228818634|p02644|0
u228818634|p02644|0
codenet
Compile Error
8,252
v2_s071177908
s071177908
s071177908
p02644
p02644
u276152693
u276152693
1,595,774,443
2020-07-26T14:40:43
Main.java
import java.util.*; import java.io.*; public class Main { public Main(FastScanner in, PrintWriter out) { int H = in.nextInt(); int W = in.nextInt(); int K = in.nextInt(); int[] st = new int[]{in.nextInt() - 1, in.nextInt() - 1}; int[] target = new int[]{in.nextInt() - 1, i...
Main.java:39: error: cannot find symbol Arrays.fill(dist, INF); ^ symbol: variable INF location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276152693|p02644|1
u276152693|p02644|0
codenet
Compile Error
5,236
v2_s460331982
s460331982
s460331982
p02644
p02644
u537747009
u537747009
1,592,192,163
2020-06-15T03:36:03
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.PriorityQueue; import java.util.InputMismatchException; import java.io.IOException; import java.util.AbstractCollection; import java.util.Comparator; import java.io....
Main.java:21: error: incompatible types: void cannot be converted to Thread Thread thread = new Thread(null, new TaskAdapter(), "KharYusuf", 1 << 27).start(); ^ Note: Main.java uses unchecked or unsafe operations. Note: Recom...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537747009|p02644|0
u537747009|p02644|0
codenet
Compile Error
7,687
v2_s929304224
s929304224
s929304224
p02644
p02644
u570498748
u570498748
1,594,222,312
2020-07-08T15:31:52
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; 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.LinkedList; import java.util.Priorit...
Main.java:154: error: cannot find symbol return dist>o.dist?1:(dist==o.dist)?0:-1; ^ symbol: variable dist location: class Pair Main.java:154: error: cannot find symbol return dist>o.dist?1:(dist==o.dist)?0:-1; ^ symbol: variable dist location: variable o of type Pair Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570498748|p02644|0
u570498748|p02644|0
codenet
Compile Error
5,306
v2_s023892343
s023892343
s023892343
p02645
p02645
u211311468
u211311468
1,592,103,637
2020-06-14T03:00:37
Main.java
public static void Nickname(String[] args) { String S = "takashi"; System.out.println(S.substring(0, 3)); S = "naohiro"; System.out.println(S.substring(0, 3)); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void Nickname(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211311468|p02645|0
u211311468|p02645|0
codenet
Compile Error
193
v2_s086152687
s086152687
s086152687
p02645
p02645
u211311468
u211311468
1,592,103,816
2020-06-14T03:03:36
Main.java
public static void Nickname(String[] args) { String S = "takashi"; System.out.println(S.substring(0, 3)); S = "naohiro"; System.out.println(S.substring(0, 3)); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void Nickname(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211311468|p02645|0
u211311468|p02645|0
codenet
Compile Error
193
v2_s218321837
s218321837
s218321837
p02645
p02645
u314653672
u314653672
1,592,097,102
2020-06-14T01:11:42
Main.java
inport java.util.*; class Main{ public static void main(String[] args){ String sc = new Scanner(System.in); System.out.println(sc.substring(0,3)) } }
Main.java:1: error: class, interface, enum, or record expected inport java.util.*; ^ Main.java:5: error: ';' expected System.out.println(sc.substring(0,3)) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314653672|p02645|0
u314653672|p02645|0
codenet
Compile Error
166
v2_s803016706
s803016706
s803016706
p02645
p02645
u327771827
u327771827
1,592,101,347
2020-06-14T02:22:27
Main.java
import java.util.*; import java.util.Random; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 名前の入力 String s = sc.next(); // 名前のサイズ(−3)を取得 int sLength = s.length() - 3; // 文字列取得の開始位置を指定 Random rando...
Main.java:14: error: incompatible types: char cannot be converted to String String s1 = s.charAt(start); ^ Main.java:15: error: incompatible types: char cannot be converted to String String s2 = s.charAt(start + 1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327771827|p02645|0
u327771827|p02645|0
codenet
Compile Error
720
v2_s839793811
s839793811
s839793811
p02645
p02645
u401158939
u401158939
1,592,100,131
2020-06-14T02:02:11
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); for(i = 0;i < 3;i++)System.out.println(s.charAt(i); } }
Main.java:7: error: ')' or ',' expected for(i = 0;i < 3;i++)System.out.println(s.charAt(i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401158939|p02645|0
u401158939|p02645|0
codenet
Compile Error
263
v2_s868897455
s868897455
s868897455
p02645
p02645
u401158939
u401158939
1,592,100,153
2020-06-14T02:02:33
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); for(i = 0;i < 3;i++)System.out.println(s.charAt(i)); } }
Main.java:7: error: cannot find symbol for(i = 0;i < 3;i++)System.out.println(s.charAt(i)); ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i = 0;i < 3;i++)System.out.println(s.charAt(i)); ^ symbol: variable i location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401158939|p02645|0
u401158939|p02645|0
codenet
Compile Error
264
v2_s444106699
s444106699
s444106699
p02645
p02645
u427069631
u427069631
1,592,172,524
2020-06-14T22:08:44
Main.java
import java.util.Scanner; public class Main { Scanner Scan = scan.nextLine(); String S = scan.nextLine(); System.out.println(S.substring(0, 3)); }
Main.java:5: error: <identifier> expected System.out.println(S.substring(0, 3)); ^ Main.java:5: error: <identifier> expected System.out.println(S.substring(0, 3)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427069631|p02645|0
u427069631|p02645|0
codenet
Compile Error
158
v2_s534796218
s534796218
s534796218
p02645
p02645
u427069631
u427069631
1,592,172,584
2020-06-14T22:09:44
Main.java
import java.util.Scanner; public class Main { Scanner Scan = new scan.nextLine(); String S = scan.nextLine(); System.out.println(S.substring(0, 3)); }
Main.java:5: error: <identifier> expected System.out.println(S.substring(0, 3)); ^ Main.java:5: error: <identifier> expected System.out.println(S.substring(0, 3)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427069631|p02645|0
u427069631|p02645|0
codenet
Compile Error
162
v2_s760642991
s760642991
s760642991
p02645
p02645
u427069631
u427069631
1,592,172,841
2020-06-14T22:14:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner Scan = new scan.nextLine(); String S = scan.nextLine(); System.out.println(S.substring(0, 3)); } }
Main.java:4: error: package scan does not exist Scanner Scan = new scan.nextLine(); ^ Main.java:5: error: cannot find symbol String S = scan.nextLine(); ^ symbol: variable scan location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427069631|p02645|0
u427069631|p02645|0
codenet
Compile Error
208
v2_s017553648
s017553648
s017553648
p02645
p02645
u427069631
u427069631
1,592,172,899
2020-06-14T22:14:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner Scan = new Scanner(System.in); String S = scan.nextLine(); System.out.println(S.substring(0, 3)); } }
Main.java:5: error: cannot find symbol String S = scan.nextLine(); ^ symbol: variable scan location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427069631|p02645|0
u427069631|p02645|0
codenet
Compile Error
211
v2_s582873087
s582873087
s582873087
p02645
p02645
u486466217
u486466217
1,592,096,510
2020-06-14T01:01:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力 String name = sc.nextString(); System.out.println(name.subString(0,2)); } }
Main.java:6: error: cannot find symbol String name = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner Main.java:7: error: cannot find symbol System.out.println(name.subString(0,2)); ^ symbol: method subString(int,in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02645|0
u486466217|p02645|0
codenet
Compile Error
250
v2_s929538803
s929538803
s929538803
p02645
p02645
u553057904
u553057904
1,592,096,823
2020-06-14T01:07:03
Main.java
class Nickname { public static void main(String args[]) { return args[0].substring(0, 3); } }
Main.java:5: error: incompatible types: unexpected return value return args[0].substring(0, 3); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553057904|p02645|0
u553057904|p02645|0
codenet
Compile Error
103
v2_s197150086
s197150086
s197150086
p02645
p02645
u583294876
u583294876
1,599,590,463
2020-09-08T18:41:03
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = sc.nextLine(); String name = sc.nextLine(); for(int i = 0;i < 3;i++){ System.out.println(name.charAt(i)); } } }
Main.java:5: error: incompatible types: String cannot be converted to Scanner Scanner sc = sc.nextLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583294876|p02645|0
u583294876|p02645|0
codenet
Compile Error
231
v2_s394509079
s394509079
s394509079
p02645
p02645
u608332609
u608332609
1,592,097,210
2020-06-14T01:13:30
Main.java
import java.util.Scanner; public static void main(String args[]){ 入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); String str = scan.next(); String name = str System.out.printLn(name.substring(0,3); }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]){ ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: ';' expected Scanner scan = new Scanner(System.in); ^ Main.java:9: error: ';' expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
299
v2_s101414501
s101414501
s101414501
p02645
p02645
u608332609
u608332609
1,592,097,550
2020-06-14T01:19:10
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ 入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); String str = scan.next(); String name = str System.out.printLn(name.substring(0,3); } } ...
Main.java:9: error: ';' expected Scanner scan = new Scanner(System.in); ^ Main.java:12: error: ';' expected String name = str ^ Main.java:13: error: ')' or ',' expected System.out.printLn(name.substring(0,3); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
372
v2_s055922291
s055922291
s055922291
p02645
p02645
u608332609
u608332609
1,592,097,621
2020-06-14T01:20:21
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ 入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); String str = scan.next(); String name = str; System.out.printLn(name.substring(0,3)); } }
Main.java:9: error: ';' expected Scanner scan = new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
345
v2_s863370563
s863370563
s863370563
p02645
p02645
u608332609
u608332609
1,592,097,744
2020-06-14T01:22:24
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ //入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); String str = scan.next(); String name = str; System.out.printLn(name.substring(0,3)); } }
Main.java:13: error: cannot find symbol System.out.printLn(name.substring(0,3)); ^ symbol: method printLn(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
347
v2_s675971588
s675971588
s675971588
p02645
p02645
u608332609
u608332609
1,592,099,363
2020-06-14T01:49:23
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ //入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int n = scan.nextInt(); //n秒後にAがBを追い越す、または同地点にいるか if(a * n <= b * s ){ System.out....
Main.java:15: error: cannot find symbol if(a * n <= b * s ){ ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
456
v2_s985220605
s985220605
s985220605
p02645
p02645
u608332609
u608332609
1,592,101,370
2020-06-14T02:22:50
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ //入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); int A = scan.nextInt(); //Aのいる座標 int B = scan.nextInt(); //Bがいる座標 int T = scan.nextInt(); //秒数 int V = scan.nextInt(); //Aの秒速 int W = s...
Main.java:31: error: incompatible types: int cannot be converted to boolean }else if(A = B){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
865
v2_s072456147
s072456147
s072456147
p02645
p02645
u608332609
u608332609
1,592,101,717
2020-06-14T02:28:37
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ //入力するためのオブジェクトを生成 Scanner scan = new Scanner(System.in); int A = scan.nextInt(); //Aのいる座標 int B = scan.nextInt(); //Bがいる座標 int T = scan.nextInt(); //秒数 int V = scan.nextInt(); //Aの秒速 int W = s...
Main.java:17: error: illegal character: '\u3000' if(A < B){?// AB??????????? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02645|0
u608332609|p02645|0
codenet
Compile Error
1,020
v2_s609449554
s609449554
s609449554
p02645
p02645
u622095001
u622095001
1,592,097,703
2020-06-14T01:21:43
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String strS = sc.next(); String outputS = strS.substring(0,2); System.out.println(outputS); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u622095001|p02645|0
u622095001|p02645|0
codenet
Compile Error
245
v2_s422288257
s422288257
s422288257
p02645
p02645
u834431693
u834431693
1,593,742,827
2020-07-03T02:20:27
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); System.out.println(S.subString(0,3)); } }
Main.java:8: error: cannot find symbol System.out.println(S.subString(0,3)); ^ symbol: method subString(int,int) location: variable S of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p02645|0
u834431693|p02645|0
codenet
Compile Error
196