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_s121211010
s121211010
s121211010
p04029
p04029
u746225658
u746225658
1,590,015,720
2020-05-20T23:02:00
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println((sc.nextInt()*(sc.nextInt()+1))/2); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u746225658|p04029|0
u746225658|p04029|0
codenet
Compile Error
172
v2_s810081352
s810081352
s810081352
p04029
p04029
u793581296
u793581296
1,599,590,947
2020-09-08T18:49:07
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String `[]args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int [] arr = new int[n]; for(int i=...
Main.java:7: error: illegal character: '`' public static void main(String `[]args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u793581296|p04029|0
u793581296|p04029|0
codenet
Compile Error
837
v2_s460944389
s460944389
s460944389
p04029
p04029
u806768852
u806768852
1,571,166,578
2019-10-15T19:09:38
Main.java
import java.util.*; class Main { public static void main(String[] args){ int total; Scanner sc = Scanner(System.in); int N = sc.nextInt(); for(int i = 1, i <= N, i ++){ total += i; } System.out.println(total); } }
Main.java:9: error: ';' expected for(int i = 1, i <= N, i ++){ ^ Main.java:9: error: illegal start of expression for(int i = 1, i <= N, i ++){ ^ Main.java:9: error: ';' expected for(int i = 1, i <= N, i ++){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04029|0
u806768852|p04029|0
codenet
Compile Error
216
v2_s784665568
s784665568
s784665568
p04029
p04029
u806768852
u806768852
1,571,166,905
2019-10-15T19:15:05
Main.java
import java.util.*; class Main { public static void main(String[] args){ int total; Scanner sc = Scanner(System.in); int N = sc.nextInt(); for(int i = 1; i <= N;i ++){ total += i; } System.out.println(total); } }
Main.java:7: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: method Scanner(InputStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04029|0
u806768852|p04029|0
codenet
Compile Error
215
v2_s411967622
s411967622
s411967622
p04029
p04029
u806768852
u806768852
1,571,167,022
2019-10-15T19:17:02
Main.java
import java.util.*; class Main { public static void main(String[] args){ int total; Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i = 1; i <= N;i ++){ total += i; } System.out.println(total); } }
Main.java:10: error: variable total might not have been initialized total += i; ^ Main.java:12: error: variable total might not have been initialized System.out.println(total); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04029|0
u806768852|p04029|0
codenet
Compile Error
220
v2_s014764622
s014764622
s014764622
p04029
p04029
u816631826
u816631826
1,595,651,385
2020-07-25T04:29:45
candles.java
public class candles { public static void main(String[] args) { import java.util.*; public class reverse { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n=input.nextInt(),sum=0; for(int i=1;i<=n;i++) { sum=sum+i; } ...
candles.java:5: error: illegal start of expression import java.util.*; ^ candles.java:5: error: <identifier> expected import java.util.*; ^ candles.java:5: error: illegal start of expression import java.util.*; ^ candles.java:6: error: illegal start of expression public ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p04029|1
u816631826|p04029|1
codenet
Compile Error
397
v2_s970495563
s970495563
s970495563
p04029
p04029
u830714814
u830714814
1,591,431,283
2020-06-06T08:14:43
Main.java
class Main { public static void main(String[] args) { int a ; Scanner input = new Scanner(System.in); a=input.nextInt(); System.out.println(a*(a+1)/2); } }
Main.java:4: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u830714814|p04029|0
u830714814|p04029|0
codenet
Compile Error
198
v2_s358367247
s358367247
s358367247
p04029
p04029
u858163497
u858163497
1,582,346,843
2020-02-22T04:47:23
ABC043A.java
public class ABC043A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(), sum = 0; for (int i = 0; i < N; i++) { sum += i; } System.out.println(sum); sc.close(); } }
ABC043A.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class ABC043A ABC043A.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class ABC043A 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858163497|p04029|0
u858163497|p04029|0
codenet
Compile Error
294
v2_s993906444
s993906444
s993906444
p04029
p04029
u858266719
u858266719
1,490,859,585
2017-03-30T07:39:45
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n,sum =0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(int i = 1; i <= n; i++){ sum += i; } System.out.println(sum);
Main.java:11: error: reached end of file while parsing System.out.println(sum); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04029|0
u858266719|p04029|0
codenet
Compile Error
276
v2_s560410045
s560410045
s560410045
p04029
p04029
u858266719
u858266719
1,490,859,651
2017-03-30T07:40:51
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n,sum =0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); for(int i = 1; i <= n; i++){ sum += i; } System.out.println(sum); } }
Main.java:6: error: variable sc is already defined in method main(String[]) Scanner sc = new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04029|0
u858266719|p04029|0
codenet
Compile Error
284
v2_s285139099
s285139099
s285139099
p04029
p04029
u863370423
u863370423
1,595,646,674
2020-07-25T03:11:14
main.java
public class main { public static void main(String[] args) { Scanner input = new Scanner (System.in); int Student; System.out.println(" Enter the number of Students"); Student = input.nextInt(); int sum =0; for (int i=0;i<=Student;i++) sum+= i; System.out.println("the number of candies in total is "...
main.java:4: error: cannot find symbol Scanner input = new Scanner (System.in); ^ symbol: class Scanner location: class main main.java:4: error: cannot find symbol Scanner input = new Scanner (System.in); ^ symbol: class Scanner location: class main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p04029|2
u863370423|p04029|2
codenet
Compile Error
341
v2_s386167978
s386167978
s386167978
p04029
p04029
u900855318
u900855318
1,553,082,223
2019-03-20T11:43:43
Main.java
import java.util.*; public class Main { public static void main(String[] args) { int count = new Scanner(System.in).nextInt(); int total = 0; for (int ix = 1; ix <= count; ix++) { total += ix; } System.out.println(ix); } }
Main.java:12: error: cannot find symbol System.out.println(ix); ^ symbol: variable ix location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p04029|1
u900855318|p04029|1
codenet
Compile Error
263
v2_s303205068
s303205068
s303205068
p04029
p04029
u907613785
u907613785
1,574,984,684
2019-11-28T23:44:44
Main.java
public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int ans = 0; for (int i = 1; i <= n; i++) { ans += i; } System.out.println(ans); } }
Main.java:5: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u907613785|p04029|0
u907613785|p04029|0
codenet
Compile Error
282
v2_s607415478
s607415478
s607415478
p04029
p04029
u913110564
u913110564
1,539,114,952
2018-10-09T19:55:52
Main.java
import java.util.*; class Main(){ public static void main(string[] args){ Scanner sc=new Scanner(System.in); int unko=sc.nextInt(); System.out.println(unko*(unko+1)/2); } }
Main.java:3: error: '{' expected class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p04029|0
u913110564|p04029|0
codenet
Compile Error
188
v2_s637847091
s637847091
s637847091
p04029
p04029
u913110564
u913110564
1,539,114,998
2018-10-09T19:56:38
Main.java
import java.util.*; class Main{ public static void main(string[] args){ Scanner sc=new Scanner(System.in); int unko=sc.nextInt(); System.out.println(unko*(unko+1)/2); } }
Main.java:4: error: cannot find symbol public static void main(string[] args){ ^ symbol: class string location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p04029|0
u913110564|p04029|0
codenet
Compile Error
187
v2_s997118500
s997118500
s997118500
p04029
p04029
u927105328
u927105328
1,557,662,394
2019-05-12T11:59:54
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum=0; for(i=1;i>=n;i++){ sum=sum+i; } System.out.println(sum); } }
Main.java:9: error: cannot find symbol for(i=1;i>=n;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=1;i>=n;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=1;i>=n;i++)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u927105328|p04029|0
u927105328|p04029|0
codenet
Compile Error
282
v2_s505537227
s505537227
s505537227
p04029
p04029
u961664977
u961664977
1,517,491,425
2018-02-01T13:23:45
Main.java
public static void main(String[] args) { }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u961664977|p04029|0
u961664977|p04029|0
codenet
Compile Error
43
v2_s157884185
s157884185
s157884185
p04029
p04029
u961664977
u961664977
1,517,491,851
2018-02-01T13:30:51
Main.java
import java.util.Scanner; class Candy { } Copy import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println((n+1) * n/2); } }
Main.java:12: error: class, interface, enum, or record expected Copy ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u961664977|p04029|0
u961664977|p04029|0
codenet
Compile Error
253
v2_s873498999
s873498999
s873498999
p04029
p04029
u961664977
u961664977
1,517,492,174
2018-02-01T13:36:14
Main.java
import java.util.Scanner; class Candy { public static void main(String[] args) { scanner scan = new Scanner(System.in); int n = scan.nextInt(); int sum = 0; for(int i = 0; i < n; i++) { sum += (i + 1); } System.out.println(sum); } }
Main.java:5: error: cannot find symbol scanner scan = new Scanner(System.in); ^ symbol: class scanner location: class Candy 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u961664977|p04029|0
u961664977|p04029|0
codenet
Compile Error
277
v2_s521263191
s521263191
s521263191
p04030
p04030
u113625314
u113625314
1,580,058,922
2020-01-26T17:15:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); ArrayList<String> list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(str.charAt(i) <> B){ l...
Main.java:10: error: illegal start of expression if(str.charAt(i) <> B){ ^ Main.java:13: error: illegal start of expression }else if (j <> 0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04030|0
u113625314|p04030|0
codenet
Compile Error
465
v2_s361572914
s361572914
s361572914
p04030
p04030
u124686284
u124686284
1,471,738,921
2016-08-21T00:22:01
Main.java
import java.util.*; public class Main { public static int sum(int n){ return (1+n)*n/2; } public static String conv(String in){ String result = ""; int i = 1; for (; i < in.length; i++) { if (in.charAt(i) != 'B') { result += in.charAt(i-1); ...
Main.java:12: error: cannot find symbol for (; i < in.length; i++) { ^ symbol: variable length location: variable in of type String Main.java:25: error: cannot find symbol int a = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124686284|p04030|0
u124686284|p04030|0
codenet
Compile Error
598
v2_s604188371
s604188371
s604188371
p04030
p04030
u124686284
u124686284
1,471,739,144
2016-08-21T00:25:44
Main.java
import java.util.*; public class Main { public static int sum(int n){ return (1+n)*n/2; } public static String conv(String in){ String result = ""; int i = 1; for (; i < in.length(); i++) { if (in.charAt(i) != 'B') { result += in.charAt(i-1); ...
Main.java:25: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ Main.java:26: error: incompatible types: int cannot be converted to String System.out.println(conv(a)); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbos...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124686284|p04030|0
u124686284|p04030|0
codenet
Compile Error
594
v2_s535710860
s535710860
s535710860
p04030
p04030
u124686284
u124686284
1,471,739,209
2016-08-21T00:26:49
Main.java
import java.util.*; public class Main { public static int sum(int n){ return (1+n)*n/2; } public static String conv(String in){ String result = ""; int i = 1; for (; i < in.length(); i++) { if (in.charAt(i) != 'B') { result += in.charAt(i-1); ...
Main.java:20: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124686284|p04030|0
u124686284|p04030|0
codenet
Compile Error
601
v2_s590587259
s590587259
s590587259
p04030
p04030
u130409716
u130409716
1,572,637,760
2019-11-01T19:49:20
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); char[] c = s.toCharArray(); StringBuilder sb = new StringBuilder(); for (int i=0; i<c.length; i++) { if (c[i] == '0' | c[i] == '1') { sb.append(c[i]); } else if (c[i...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130409716|p04030|0
u130409716|p04030|0
codenet
Compile Error
427
v2_s829347480
s829347480
s829347480
p04030
p04030
u362825937
u362825937
1,490,945,409
2017-03-31T07:30:09
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner s=new Scanner(System.in); String S=s.next(); boolean f[]=new boolean[S.length()]; int i=0; for(i=0;i<S.length();i++){ f[i]=true; if(S.charAt(i)=='B'){ f[i-1]=false; f[i]=false; } ...
Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p04030|0
u362825937|p04030|0
codenet
Compile Error
415
v2_s300317236
s300317236
s300317236
p04030
p04030
u431125128
u431125128
1,575,024,682
2019-11-29T10:51:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); char[] c=sc.next().toCharArray(); String ans=""; String bef=ans; for(int i=0;i<c.length;i++){ switch(c[i]){ case '0': bef=ans; ans+="0"; br...
Main.java:21: error: empty character literal d[d.length-1]=''; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p04030|1
u431125128|p04030|1
codenet
Compile Error
582
v2_s005024687
s005024687
s005024687
p04030
p04030
u431125128
u431125128
1,575,024,714
2019-11-29T10:51:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); char[] c=sc.next().toCharArray(); String ans=""; String bef=ans; for(int i=0;i<c.length;i++){ switch(c[i]){ case '0': bef=ans; ans+="0"; br...
Main.java:20: error: cannot find symbol char[] d=ans.toCharArrray(); ^ symbol: method toCharArrray() location: variable ans of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p04030|1
u431125128|p04030|1
codenet
Compile Error
583
v2_s086021808
s086021808
s086021808
p04030
p04030
u465212548
u465212548
1,471,137,661
2016-08-14T01:21:01
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner x= new Scanner(System.in); String y = x.next(); char[] z = new char[y.length()]; int c=0; for(int i=0;i<y.length();i++){ if(y.charAt(i)=='B'){ if(c!=0){ c--; z[c] =0; } }else{ z[c] = y.charAt(i); c++; } } ...
Main.java:23: error: illegal start of expression for(int i=0;i<,z.length;i++) ^ Main.java:23: error: not a statement for(int i=0;i<,z.length;i++) ^ Main.java:23: error: ')' expected for(int i=0;i<,z.length;i++) ^ Main.java:23: error: ';' expected for(int i=0;i<,z.len...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465212548|p04030|0
u465212548|p04030|0
codenet
Compile Error
409
v2_s835812959
s835812959
s835812959
p04030
p04030
u465212548
u465212548
1,471,137,696
2016-08-14T01:21:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner x= new Scanner(System.in); String y = x.next(); char[] z = new char[y.length()]; int c=0; for(int i=0;i<y.length();i++){ if(y.charAt(i)=='B'){ if(c!=0){ c--; z[c] =0; } }else{ z[c] = y.charAt(i); c++; } } ...
Main.java:23: error: illegal start of expression for(int i=0;i<,z.length;i++){ ^ Main.java:23: error: not a statement for(int i=0;i<,z.length;i++){ ^ Main.java:23: error: ')' expected for(int i=0;i<,z.length;i++){ ^ Main.java:23: error: ';' expected for(int i=0;i<,z....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465212548|p04030|0
u465212548|p04030|0
codenet
Compile Error
410
v2_s785827052
s785827052
s785827052
p04030
p04030
u465212548
u465212548
1,471,137,734
2016-08-14T01:22:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner x= new Scanner(System.in); String y = x.next(); char[] z = new char[y.length()]; int c=0; for(int i=0;i<y.length();i++){ if(y.charAt(i)=='B'){ if(c!=0){ c--; z[c] =0; } }else{ z[c] = y.charAt(i); c++; } } ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465212548|p04030|0
u465212548|p04030|0
codenet
Compile Error
409
v2_s137209339
s137209339
s137209339
p04030
p04030
u465212548
u465212548
1,471,137,761
2016-08-14T01:22:41
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner x= new Scanner(System.in); String y = x.next(); char[] z = new char[y.length()]; int c=0; for(int i=0;i<y.length();i++){ if(y.charAt(i)=='B'){ if(c!=0){ c--; z[c] =0; } }else{ z[c] = y.charAt(i); c++; } } ...
Main.java:24: error: cannot find symbol o = o+z.charAt(i); ^ symbol: method charAt(int) location: variable z of type char[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465212548|p04030|0
u465212548|p04030|0
codenet
Compile Error
411
v2_s893481384
s893481384
s893481384
p04030
p04030
u493402512
u493402512
1,564,154,337
2019-07-26T15:18:57
Main.java
import java.util.*; class Main{ public static void main(String[] args){ String answer = ""; Scanner scan = new Scanner(System.in); String s = scan.next(); int l = s.length(); String[] moji = new String[]; for(int i = 0;i < l;i++){ moji[i]=s.charAt(i); } for(String mo...
Main.java:9: error: array dimension missing String[] moji = new String[]; ^ Main.java:13: error: illegal character: '\u3000' for(String?moji :moji){ ^ Main.java:13: error: not a statement for(String?moji :moji){ ^ Main.java:13: error: not a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u493402512|p04030|0
u493402512|p04030|0
codenet
Compile Error
742
v2_s118608460
s118608460
s118608460
p04030
p04030
u547671064
u547671064
1,582,662,619
2020-02-25T20:30:19
Main.java
import java.util.*; public class Main{ public static void main (String[] args){ var items = [ System.in ]; var result = items.filter(function( item ) { return !item ===( 1B||0B ); } ); console.log( result ); } }
Main.java:4: error: illegal start of expression var items = [ System.in ]; ^ Main.java:4: error: not a statement var items = [ System.in ]; ^ Main.java:4: error: ';' expected var items = [ System.in ]; ^ Main.java:5: error: ')' or ',' expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p04030|0
u547671064|p04030|0
codenet
Compile Error
267
v2_s957584741
s957584741
s957584741
p04030
p04030
u547671064
u547671064
1,582,662,661
2020-02-25T20:31:01
Main.java
import java.util.*; public class Main{ public static void main (String[] args){ var items = []; var result = items.filter(function( item ) { return !item ==( 1B||0B ); } ); console.log( result ); } }
Main.java:4: error: illegal start of expression var items = []; ^ Main.java:5: error: ')' or ',' expected var result = items.filter(function( item ) { ^ Main.java:6: error: ')' expected return !item ==( 1B||0B ); ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p04030|0
u547671064|p04030|0
codenet
Compile Error
255
v2_s405688791
s405688791
s405688791
p04030
p04030
u547671064
u547671064
1,582,662,726
2020-02-25T20:32:06
Main.java
import java.util.*; public class Main{ public static void main (String[] args){ var items = []; var result = items.filter(function( item ) ){ return !item ==( 1B)||(0B );}; console.log( result ); } }
Main.java:4: error: illegal start of expression var items = []; ^ Main.java:5: error: ';' expected var result = items.filter(function( item ) ){ ^ Main.java:6: error: ')' expected return !item ==( 1B)||(0B );}; ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p04030|0
u547671064|p04030|0
codenet
Compile Error
221
v2_s778456311
s778456311
s778456311
p04030
p04030
u547671064
u547671064
1,582,663,368
2020-02-25T20:42:48
Main.java
import java.util.*; public class Main{ public static void main (String[] args){ String [] arr_1 = new String []; for (String str : arr_1){ System.out println(str);} List<String> list = new ArrayList<String>(Arrays.asList(arr_1)); list.remove(("0B")||("1B")); String[] arr_2 = (String[]) list.toArra...
Main.java:4: error: array dimension missing String [] arr_1 = new String []; ^ Main.java:5: error: ';' expected for (String str : arr_1){ System.out println(str);} ^ Main.java:5: error: not a statement for (String str : arr_1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p04030|0
u547671064|p04030|0
codenet
Compile Error
421
v2_s863252585
s863252585
s863252585
p04030
p04030
u587721314
u587721314
1,566,529,893
2019-08-23T03:11:33
Main.java
import java.util.Scanner; import java.util.LinkedList; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); LinkedList<Character> stack = new LinkedList<>(); String s = sc.next(); String res = ""; for (int i = 0; i < s.length(); i++) { if (s....
Main.java:18: error: ')' or ',' expected stack.push(s.charAt(i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p04030|0
u587721314|p04030|0
codenet
Compile Error
626
v2_s777786032
s777786032
s777786032
p04030
p04030
u592033137
u592033137
1,591,480,950
2020-06-06T22:02:30
Solution.java
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String ans = ""; for (int i=0;i<str.length();i++) { char c = str.charAt(i); if (c=='0') ans = ans+'0'; else if (c=='1') ans = ans+'1';...
Solution.java:26: error: cannot find symbol System.out.print(res); ^ symbol: variable res location: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u592033137|p04030|0
u592033137|p04030|0
codenet
Compile Error
476
v2_s194309305
s194309305
s194309305
p04030
p04030
u659156129
u659156129
1,597,157,053
2020-08-11T14:44:13
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); String[] list = s.split(""); String ans = ""; if(s.length()==1){ ans = s; }else{ for(int i=1; i<s.length(); i++)...
Main.java:18: error: incompatible types: int cannot be converted to String if(list[0].equals("B")) list[0]=2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04030|0
u659156129|p04030|0
codenet
Compile Error
637
v2_s994343252
s994343252
s994343252
p04030
p04030
u728597345
u728597345
1,598,569,867
2020-08-27T23:11:07
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String[] sa = s.split(""); StringBuilder ans = new StringBuilder(); for(int i = 0; i < sa.length; i++){ if(sa[i] == '0' || ...
Main.java:11: error: bad operand types for binary operator '==' if(sa[i] == '0' || sa[i] == '1'){ ^ first type: String second type: char Main.java:11: error: bad operand types for binary operator '==' if(sa[i] == '0' || sa[i] == '1'){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728597345|p04030|0
u728597345|p04030|0
codenet
Compile Error
502
v2_s057069470
s057069470
s057069470
p04030
p04030
u728597345
u728597345
1,598,570,752
2020-08-27T23:25:52
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String[] sa = s.split(""); String ans = ""; for(int i = 0; i < sa.length; i++){ if(sa[i] == "0" || sa[i] == "1"){ ...
Main.java:14: error: cannot find symbol ans.substring(0, end - 1); ^ symbol: variable end location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728597345|p04030|0
u728597345|p04030|0
codenet
Compile Error
467
v2_s492731717
s492731717
s492731717
p04030
p04030
u728597345
u728597345
1,598,570,952
2020-08-27T23:29:12
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String ans = ""; for(int i = 0; i < sa.length; i++){ if(s.charAt(i) == "0" || s.charAt(i) == "1"){ ans += s.charAt(...
Main.java:9: error: cannot find symbol for(int i = 0; i < sa.length; i++){ ^ symbol: variable sa location: class Main Main.java:10: error: bad operand types for binary operator '==' if(s.charAt(i) == "0" || s.charAt(i) == "1"){ ^ first ty...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728597345|p04030|0
u728597345|p04030|0
codenet
Compile Error
459
v2_s232811242
s232811242
s232811242
p04030
p04030
u728597345
u728597345
1,598,571,010
2020-08-27T23:30:10
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); String s = sc.next(); String ans = ""; for(int i = 0; i < s.length; i++){ if(s.charAt(i) == '0' || s.charAt(i) == '1'){ ans += s.charAt(i...
Main.java:9: error: cannot find symbol for(int i = 0; i < s.length; i++){ ^ symbol: variable length location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728597345|p04030|0
u728597345|p04030|0
codenet
Compile Error
458
v2_s413727981
s413727981
s413727981
p04030
p04030
u803314854
u803314854
1,530,469,675
2018-07-01T18:27:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // 自分の得意な言語で // Let's チャレンジ!! ArrayList<String> in=new ArrayList<String>(); Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String s[]=line.split("",0); for(int i=0;i<s.length;i++){ i...
Main.java:25: error: <identifier> expected System.out.println(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p04030|0
u803314854|p04030|0
codenet
Compile Error
577
v2_s988212557
s988212557
s988212557
p04030
p04030
u806768852
u806768852
1,571,428,634
2019-10-18T19:57:14
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); int len = s.length(); String fs; String ls = ""; int lslen = 0; for(int i;i < len;i++){ fs = s.substring(0,1); if(fs.equals("0") || fs.equals("1"...
Main.java:12: error: variable i might not have been initialized for(int i;i < len;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04030|0
u806768852|p04030|0
codenet
Compile Error
556
v2_s790279178
s790279178
s790279178
p04030
p04030
u834431693
u834431693
1,594,174,537
2020-07-08T02:15:37
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String ans = ""; for(int i=0; i<S.length(); i++){ String str = String.valueOf(S.charAt(i)); if(str.equals("0")){ ans += "0"; }else if(str.equa...
Main.java:17: error: cannot find symbol ans = ans.subStrings(0, ans.length()-1); ^ symbol: method subStrings(int,int) location: variable ans of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p04030|0
u834431693|p04030|0
codenet
Compile Error
524
v2_s187189750
s187189750
s187189750
p04030
p04030
u863370423
u863370423
1,595,644,340
2020-07-25T02:32:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); Queue<String> q0 = new LinkedList<>(); Queue<String> q1 = new LinkedList<>(); for (int i = 0; i < s.length(); i++) { ...
Main.java:41: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p04030|2
u863370423|p04030|2
codenet
Compile Error
983
v2_s631896185
s631896185
s631896185
p04030
p04030
u891161439
u891161439
1,521,949,926
2018-03-25T03:52:06
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); while(str.contains("B")){ int idx = str.indexOf("B"); s = (idx > 0 ? s.substring(0,idx-1) : "") + s.substring(idx+1); } System.out.println(s); }}
Main.java:6: error: cannot find symbol while(str.contains("B")){ ^ symbol: variable str location: class Main Main.java:7: error: cannot find symbol int idx = str.indexOf("B"); ^ symbol: variable str location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p04030|0
u891161439|p04030|0
codenet
Compile Error
302
v2_s566488672
s566488672
s566488672
p04030
p04030
u918497744
u918497744
1,476,159,128
2016-10-11T04:12:08
Main.java
public class Main { public static void main(String Args[]){ Scanner sc=new Scanner(System.in); String str = sc.next(); StringBuffer sb1 = new StringBuffer(); char []hoge = str.toCharArray(); for(char ch:ho...
Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p04030|0
u918497744|p04030|0
codenet
Compile Error
709
v2_s053612472
s053612472
s053612472
p04030
p04030
u981269105
u981269105
1,576,777,996
2019-12-19T17:53:16
Main.java
import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader.readLine(); Stack<String> stack = new Stack<String>(); for(int i=0;i<s.length();i++){ if(s.charAt(i)=='0...
Main.java:6: error: cannot find symbol Stack<String> stack = new Stack<String>(); ^ symbol: class Stack location: class Main Main.java:6: error: cannot find symbol Stack<String> stack = new Stack<String>(); ^ symbol: class Stack location: class Main Main.java:16: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981269105|p04030|0
u981269105|p04030|0
codenet
Compile Error
559
v2_s052342627
s052342627
s052342627
p04031
p04031
u035712734
u035712734
1,570,822,814
2019-10-11T19:40:14
Main.java
import java.util.*; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; int min = 0; int max = 0; int sum = 0; int ans = 10000000000000; ...
Main.java:13: error: integer number too large int ans = 10000000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u035712734|p04031|0
u035712734|p04031|0
codenet
Compile Error
896
v2_s674683953
s674683953
s674683953
p04031
p04031
u035712734
u035712734
1,570,822,842
2019-10-11T19:40:42
Main.java
import java.util.*; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; int min = 0; int max = 0; int sum = 0; int ans = 10000000000000; ...
Main.java:13: error: integer number too large int ans = 10000000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u035712734|p04031|0
u035712734|p04031|0
codenet
Compile Error
896
v2_s654835859
s654835859
s654835859
p04031
p04031
u109534827
u109534827
1,598,135,393
2020-08-22T22:29:53
Main.java
import java.util.*; /** * C Main * * @date 2020.08.22 * @author 焼き鮭 <yaki-shake@up-tri.me> */ public class Main { Scanner sc; public static void main(String[] args) { new Main().execute(); } public void execute() { this.sc = new Scanner(System.in); int n = this.sc.nextInt(); int[] a = n...
Main.java:38: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109534827|p04031|0
u109534827|p04031|0
codenet
Compile Error
1,104
v2_s400734331
s400734331
s400734331
p04031
p04031
u162346124
u162346124
1,471,139,224
2016-08-14T01:47:04
Math.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Math { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int inputCount = sc.nextInt(); List<Integer> inputList = new ArrayList<Integer>(); for(int i=0;i<inputCount;i++){ inputList.add(sc...
Math.java:21: error: cannot find symbol int ave = (int)Math.ceil((double)sum/(double)inputCount); ^ symbol: method ceil(double) location: class Math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162346124|p04031|0
u162346124|p04031|0
codenet
Compile Error
646
v2_s429563047
s429563047
s429563047
p04031
p04031
u325206354
u325206354
1,583,001,466
2020-02-29T18:37:46
Main.java
import java.util.*; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a[] = new int[N]; double sum = 0; double ans = 0; double totalAns = 0; for(int i = 0 ;i < N;i++){ a[i] = sc.nextInt(); } for(int i = 0...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325206354|p04031|0
u325206354|p04031|0
codenet
Compile Error
564
v2_s379461913
s379461913
s379461913
p04031
p04031
u325206354
u325206354
1,583,001,506
2020-02-29T18:38:26
Main.java
import java.util.*; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a[] = new int[N]; double sum = 0; double ans = 0; double totalAns = 0; for(int i = 0 ;i < N;i++){ a[i] = sc.nextInt(); } for(int i = 0...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325206354|p04031|0
u325206354|p04031|0
codenet
Compile Error
564
v2_s823989317
s823989317
s823989317
p04031
p04031
u369190981
u369190981
1,570,461,968
2019-10-07T15:26:08
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr ...
Main.java:134: error: cannot find symbol minCount = Math.min(minCount, tmpCost); ^ symbol: variable tmpCost location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p04031|0
u369190981|p04031|0
codenet
Compile Error
3,381
v2_s182459012
s182459012
s182459012
p04031
p04031
u465212548
u465212548
1,471,138,581
2016-08-14T01:36:21
Main.java
import java.util.*; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner x= new Scanner(System.in); int c= x.nextInt(); int[] arr = new int[c]; double a =0; for(int i =0;i<c;i++){ arr[i]=x.nextInt(); a += arr[i]; } int a1 = a/c; int a2 = a1 +1; int r1=0; for(int i =0;i<c;i++)...
Main.java:15: error: incompatible types: possible lossy conversion from double to int int a1 = a/c; ^ Main.java:27: error: cannot find symbol r2 += Math.pow(arr[i]-a2 , 2); ^ symbol: variable r2 location: class Main Main.java:30: error: cannot find symbol System.out.prinln(Math.min(r1,r2)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465212548|p04031|0
u465212548|p04031|0
codenet
Compile Error
459
v2_s552057822
s552057822
s552057822
p04031
p04031
u487433273
u487433273
1,577,397,437
2019-12-26T21:57:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = sc.nextInt(); for(int i=0;i<N;i++) a[i]=sc.nextInt(); int ans=100*100*100; int tmp=0; for(int i=-100;i<100;i++) { tmp=0; for(int k=...
Main.java:7: error: incompatible types: int cannot be converted to int[] int[] a = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p04031|0
u487433273|p04031|0
codenet
Compile Error
440
v2_s751930549
s751930549
s751930549
p04031
p04031
u488934106
u488934106
1,566,442,494
2019-08-22T02:54:54
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int max = 0; int min = 0; int ans = 100; ArrayList<Integer> ary = new ArrayList<Integer>(); for(int i = 0; i < N; i ++) { ary.add(Integer.parseInt(sc....
Main.java:23: error: cannot find symbol ans = Math.min(cost, cost_); ^ symbol: variable cost location: class Main Main.java:23: error: cannot find symbol ans = Math.min(cost, cost_); ^ symbol: variable cost_ location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u488934106|p04031|0
u488934106|p04031|0
codenet
Compile Error
605
v2_s560646411
s560646411
s560646411
p04031
p04031
u653981267
u653981267
1,581,727,044
2020-02-15T00:37:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); } int ans = Integer.MAX_VALUE; for(int t = -100; t <= 100; t++) { ...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p04031|3
u653981267|p04031|3
codenet
Compile Error
483
v2_s396950668
s396950668
s396950668
p04031
p04031
u900855318
u900855318
1,553,082,581
2019-03-20T11:49:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); List<Integer> numbers = new ArrayList<>(); long sum = 0; for (int ix = 0; ix < count; ix++) { int value = scanner.nextInt(); sum ...
Main.java:17: error: incompatible types: possible lossy conversion from long to int int average = sum / numbers.size(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p04031|0
u900855318|p04031|0
codenet
Compile Error
588
v2_s880817172
s880817172
s880817172
p04031
p04031
u900855318
u900855318
1,553,082,777
2019-03-20T11:52:57
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); List<Integer> numbers = new ArrayList<>(); long sum = 0; for (int ix = 0; ix < count; ix++) { int value = scanner.nextInt(); sum += value; number...
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 Main.java:6: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p04031|0
u900855318|p04031|0
codenet
Compile Error
565
v2_s399097892
s399097892
s399097892
p04031
p04031
u912692535
u912692535
1,521,474,800
2018-03-19T15:53:20
Main.java
public class Main { public static void main(String[] args) { Scanner stdin =new Scanner(System.in); int n=stdin.nextInt(); int a[]=new int [n]; int i; for(i=0;i<n;i++){ a[i]=stdin.nextInt(); } int max=-300,min=300; for(i=0;i<n;i++){ if(max<a[i]) max=a[i]; if(min>a[i]) min=a[i]; } i...
Main.java:3: error: cannot find symbol Scanner stdin =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner stdin =new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u912692535|p04031|0
u912692535|p04031|0
codenet
Compile Error
505
v2_s145097435
s145097435
s145097435
p04032
p04032
u551144476
u551144476
1,569,609,387
2019-09-27T18:36: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(); int n = s.length(); char[] a = new char[n]; a = s.toCharArray(); int r = (int)Math.pow(2, m); int k = m / 2 + (m % 2 == 1 ? 1 : 0); for (int...
Main.java:13: error: cannot find symbol int r = (int)Math.pow(2, m); ^ symbol: variable m location: class Main Main.java:14: error: cannot find symbol int k = m / 2 + (m % 2 == 1 ? 1 : 0); ^ symbol: variable m location: class Main Main.java:14: error: cannot ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u551144476|p04032|1
u551144476|p04032|1
codenet
Compile Error
618
v2_s242304926
s242304926
s242304926
p04032
p04032
u728498511
u728498511
1,551,747,138
2019-03-05T00:52:18
Main.java
import java.io.*; import java.lang.*; import java.util.*; public class Main{ public static void main(String args[]){ String S = new Scanner(System.in).nextLine(); for(int i = 0; i < S.length(); i++){ for(int j = i; j < S.length()-i; j++){ String[] s = S.substring(i,j).split(""); Set<Str...
Main.java:12: error: cannot find symbol if((s.count(c) > s.length/2) && s.length > 1){ ^ symbol: method count(String) location: variable s of type String[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728498511|p04032|0
u728498511|p04032|0
codenet
Compile Error
601
v2_s516231543
s516231543
s516231543
p04032
p04032
u746914045
u746914045
1,578,318,670
2020-01-06T13:51:10
Main.java
public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); String n = scn.next(); boolean feka = false; int nigger1=-1; int nigger2=-1; for(int i = 0;i<n.length()-2;i++) { if(n.charAt(i)==n.charAt(i+2)) { feka = true; nigger1=i+1; nigger2=i+3; brea...
Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u746914045|p04032|0
u746914045|p04032|0
codenet
Compile Error
560
v2_s134689097
s134689097
s134689097
p04032
p04032
u986437843
u986437843
1,530,023,926
2018-06-26T14:38:46
Main.java
ddd
Main.java:1: error: reached end of file while parsing ddd ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u986437843|p04032|0
u986437843|p04032|0
codenet
Compile Error
3
v2_s284267416
s284267416
s284267416
p04033
p04033
u001427717
u001427717
1,470,018,565
2016-08-01T02:29:25
Main.java
public class Main { public static void main(String[] args) throws java.io.IOException { // TODO 自動生成されたメソッド・スタブ Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); int result = 0; for (;a <= b; a++) { result = a * (a + 1); if (result == 0) { break; } } if(resul...
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001427717|p04033|0
u001427717|p04033|0
codenet
Compile Error
520
v2_s043994563
s043994563
s043994563
p04033
p04033
u084693263
u084693263
1,470,014,897
2016-08-01T01:28:17
Main.java
import java.util.*; import java.io.*; public class Main { void solve() { String ans = ""; long a = sc.nextLong(); long b = sc.nextLong(); long ans = 1; for (long i = a; i <= b; i++) { ans *= i; } if (ans == 0) { System.out.println("Zero"); } else if (ans < 0) { System.out.println("Negati...
Main.java:11: error: variable ans is already defined in method solve() long ans = 1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u084693263|p04033|0
u084693263|p04033|0
codenet
Compile Error
2,040
v2_s567986204
s567986204
s567986204
p04033
p04033
u097204018
u097204018
1,514,924,718
2018-01-02T20:25:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); if(a <= 0 && b >= 0){ System.out.println("Zero"); }else if(a > 0 (a < 0 && (a-b)%2 == 1)){ ...
Main.java:11: error: ')' expected }else if(a > 0 (a < 0 && (a-b)%2 == 1)){ ^ Main.java:11: error: not a statement }else if(a > 0 (a < 0 && (a-b)%2 == 1)){ ^ Main.java:11: error: ';' expected }else if(a > 0 (a < 0 && (a-b)%2 == 1)){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u097204018|p04033|1
u097204018|p04033|1
codenet
Compile Error
429
v2_s484285815
s484285815
s484285815
p04033
p04033
u126096940
u126096940
1,529,221,814
2018-06-17T07:50:14
RangeProduct.java
public class RangeProduct{ public static void main(String[] args){ int a; int b; int cul = (a*b); if(cul==0){ System.out.println("Zero"); } else if(cul>=0){ System.out.println("Positive"); } else { System.out.println("Negative"); } } }
RangeProduct.java:5: error: variable a might not have been initialized int cul = (a*b); ^ RangeProduct.java:5: error: variable b might not have been initialized int cul = (a*b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126096940|p04033|0
u126096940|p04033|0
codenet
Compile Error
281
v2_s117712433
s117712433
s117712433
p04033
p04033
u230358591
u230358591
1,470,014,277
2016-08-01T01:17:57
Main.java
int a = scan.nextInt(); int b = scan.nextInt(); String ans = ""; if (0 < a) ans = "Positive"; if (a < =0 && 0 <= b) ans = "Zero"; if (b < 0 && (b - a) % 2 == 0) ans = "Negative"; System.out.println(ans);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int a = scan.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected if (0 < a) ^ Main.java:6: error: class, interface, enum, or r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u230358591|p04033|0
u230358591|p04033|0
codenet
Compile Error
297
v2_s002145194
s002145194
s002145194
p04033
p04033
u230358591
u230358591
1,470,014,319
2016-08-01T01:18:39
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n=scan.nextInt(); int m=scan.nextInt(); int a = scan.nextInt(); int b = scan.nextInt(); String ans = ""; if (0 < a) ...
Main.java:15: error: illegal start of expression if (a < =0 && 0 <= b) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u230358591|p04033|0
u230358591|p04033|0
codenet
Compile Error
500
v2_s033915491
s033915491
s033915491
p04033
p04033
u442132542
u442132542
1,492,896,018
2017-04-22T21:20:18
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; public class Main { static void solve(FastScanner sc, PrintWriter out) { long a = sc.nl() long b = sc.nl(); out.println(a * b <= 0 ? "Zero" ...
Main.java:10: error: ';' expected long a = sc.nl() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u442132542|p04033|0
u442132542|p04033|0
codenet
Compile Error
3,476
v2_s043658250
s043658250
s043658250
p04033
p04033
u507706381
u507706381
1,573,277,709
2019-11-09T05:35:09
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if (A == 0 || B == 0 || (A < 0 && B > 0)) { System.out.println("Zero"); } else if ((A > 0 && B > 0) || ((B-A+1)%2 == 0) { S...
Main.java:10: error: ')' expected } else if ((A > 0 && B > 0) || ((B-A+1)%2 == 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p04033|0
u507706381|p04033|0
codenet
Compile Error
427
v2_s739641948
s739641948
s739641948
p04033
p04033
u587100042
u587100042
1,590,327,065
2020-05-24T13:31:05
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a=sc.nextLong(),b=sc.nextLong(),f=1; for(int i=a;i<=b;i++){ f*=i; } if(f>0){ System.out.println("Positive"); }else if(f==0){ System.out.println("Zero"); ...
Main.java:6: error: incompatible types: possible lossy conversion from long to int for(int i=a;i<=b;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p04033|0
u587100042|p04033|0
codenet
Compile Error
378
v2_s816711483
s816711483
s816711483
p04033
p04033
u799831994
u799831994
1,521,600,594
2018-03-21T02:49:54
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int head = sc.nextInt(); int tail = sc.nextInt(); int num = head; for (int i = head +1 ; i <= tail; i++){ num *= i; } if(num < 0){ System.out.println("Negative"); } else (num > 0)...
Main.java:16: error: not a statement } else (num > 0){ ^ Main.java:16: error: ';' expected } else (num > 0){ ^ Main.java:18: error: 'else' without 'if' } else { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799831994|p04033|0
u799831994|p04033|0
codenet
Compile Error
418
v2_s192800733
s192800733
s192800733
p04033
p04033
u799831994
u799831994
1,521,602,413
2018-03-21T03:20:13
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long head = sc.nextlong(); long tail = sc.nextlong(); long num = head; for (long i = head + 1 ; i <= tail; i++){ num *= i; } if(num < 0){ System.out.prlongln("Negative"); } else i...
Main.java:6: error: cannot find symbol long head = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.java:7: error: cannot find symbol long tail = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799831994|p04033|0
u799831994|p04033|0
codenet
Compile Error
430
v2_s485522212
s485522212
s485522212
p04033
p04033
u799831994
u799831994
1,521,602,524
2018-03-21T03:22:04
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long head = sc.nextInt(); long tail = sc.nextInt(); long num = head; for (long i = head + 1 ; i <= tail; i++){ num *= i; } if(num < 0){ System.out.prlongln("Negative"); } else if(...
Main.java:15: error: cannot find symbol System.out.prlongln("Negative"); ^ symbol: method prlongln(String) location: variable out of type PrintStream Main.java:17: error: cannot find symbol System.out.prlongln("Positive"); ^ symbol: method prlongln(String) location: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799831994|p04033|0
u799831994|p04033|0
codenet
Compile Error
428
v2_s248499077
s248499077
s248499077
p04033
p04033
u799831994
u799831994
1,521,604,473
2018-03-21T03:54:33
Main.java
class at1_2016_0731_A{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long head = sc.nextInt(); long tail = sc.nextInt(); long num = head; for (long i = head + 1L ; i <= tail; i++){ num *= i; } int num2 = Long.signum(num); if(num2 == -1){ System.out.println...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class at1_2016_0731_A Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class at1_2016_0731_A 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799831994|p04033|0
u799831994|p04033|0
codenet
Compile Error
463
v2_s890552980
s890552980
s890552980
p04033
p04033
u799831994
u799831994
1,521,604,560
2018-03-21T03:56:00
Main.java
class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long head = sc.nextInt(); long tail = sc.nextInt(); long num = head; for (long i = head + 1L ; i <= tail; i++){ num *= i; } int num2 = Long.signum(num); if(num2 == -1){ System.out.println("Negative"...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799831994|p04033|0
u799831994|p04033|0
codenet
Compile Error
452
v2_s392130082
s392130082
s392130082
p04033
p04033
u863722302
u863722302
1,470,015,720
2016-08-01T01:42:00
Main.java
import java.util.*; public class Main{ public static void main(Strint[] args){ Scanner sc =new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for(int i=0; i<B-A; i++){ A = A*(A+1); } if(A =0){ ...
Main.java:3: error: cannot find symbol public static void main(Strint[] args){ ^ symbol: class Strint location: class Main Main.java:13: error: incompatible types: int cannot be converted to boolean if(A =0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863722302|p04033|0
u863722302|p04033|0
codenet
Compile Error
530
v2_s655349748
s655349748
s655349748
p04033
p04033
u863722302
u863722302
1,470,015,799
2016-08-01T01:43:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); for(int i=0; i<B-A; i++){ A = A*(A+1); } if(A =0){ ...
Main.java:13: error: incompatible types: int cannot be converted to boolean if(A =0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863722302|p04033|0
u863722302|p04033|0
codenet
Compile Error
530
v2_s488692261
s488692261
s488692261
p04033
p04033
u863722302
u863722302
1,470,016,790
2016-08-01T01:59:50
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); Int C = A; for(int i=0; i<B-A; i++){ A = A*(C+1); C++; ...
Main.java:8: error: cannot find symbol Int C = A; ^ symbol: class Int location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863722302|p04033|0
u863722302|p04033|0
codenet
Compile Error
584
v2_s316867991
s316867991
s316867991
p04033
p04033
u863722302
u863722302
1,470,018,045
2016-08-01T02:20:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long A = sc.nextInt()L; long B = sc.nextInt()L; long C = A; for(int i=0; i<B-A; i++){ A = A*(C+1); ...
Main.java:6: error: ';' expected long A = sc.nextInt()L; ^ Main.java:7: error: ';' expected long B = sc.nextInt()L; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863722302|p04033|0
u863722302|p04033|0
codenet
Compile Error
589
v2_s870915130
s870915130
s870915130
p04033
p04033
u863722302
u863722302
1,470,018,234
2016-08-01T02:23:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long A = sc.nextLong()L; long B = sc.nextLong()L; long C = A; for(int i=0; i<B-A; i++){ A = A*(C+1); ...
Main.java:6: error: ';' expected long A = sc.nextLong()L; ^ Main.java:7: error: ';' expected long B = sc.nextLong()L; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863722302|p04033|0
u863722302|p04033|0
codenet
Compile Error
591
v2_s336686740
s336686740
s336686740
p04033
p04033
u871244227
u871244227
1,587,441,014
2020-04-21T03:50:14
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); long a = Long.parseLong(sc.next()); long b = Long.parseLong(sc.next()); String ans = "Positi...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u871244227|p04033|0
u871244227|p04033|0
codenet
Compile Error
542
v2_s455786800
s455786800
s455786800
p04033
p04033
u997005069
u997005069
1,590,114,600
2020-05-22T02:30:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long total = 1; if(a<0 && b>0) { System.out.println("Zero"); } else { for(int i=a; i<b+1; i++) { total...
Main.java:13: error: incompatible types: possible lossy conversion from long to int for(int i=a; i<b+1; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p04033|0
u997005069|p04033|0
codenet
Compile Error
469
v2_s635313335
s635313335
s635313335
p04034
p04034
u377327135
u377327135
1,526,909,613
2018-05-21T13:33:33
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader (is); String input[] = br.readLine().split(" "); //[x][0] = ボールの個数 //...
Main.java:41: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u377327135|p04034|0
u377327135|p04034|0
codenet
Compile Error
1,076
v2_s967839707
s967839707
s967839707
p04034
p04034
u570892808
u570892808
1,574,100,299
2019-11-18T18:04:59
Main.java
Scanner console = new Scanner(System.in); int n = console.nextInt(); //number of boxes int m = console.nextInt(); //number of operations console.nextLine(); int[][] boxInfo = new int[n][2]; //of 2, first is total count, second is 0 if no red, 1 if possible //boxInfo[n][0] gives total balls //boxInfo[n]...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner console = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected console.nextLine(); ^ Main.java:11: error: class, interface, enum, or r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570892808|p04034|2
u570892808|p04034|2
codenet
Compile Error
1,247
v2_s264415739
s264415739
s264415739
p04034
p04034
u570892808
u570892808
1,574,100,363
2019-11-18T18:06:03
Main.java
Scanner console = new Scanner(System.in); int n = console.nextInt(); //number of boxes int m = console.nextInt(); //number of operations console.nextLine(); int[][] boxInfo = new int[n][2]; //of 2, first is total count, second is 0 if no red, 1 if possible //boxInfo[n][0] gives total balls //boxInfo[n]...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner console = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected console.nextLine(); ^ Main.java:11: error: class, interface, enum, or r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570892808|p04034|2
u570892808|p04034|2
codenet
Compile Error
1,247
v2_s495368563
s495368563
s495368563
p04034
p04034
u570892808
u570892808
1,575,033,785
2019-11-29T13:23:05
Main.java
public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int n = console.nextInt(); //number of boxes int m = console.nextInt(); //number of operations console.nextLine(); int[] numBalls = new int[n]; boolean[] couldHaveRed = new boolean[n]; //intialize boxe...
Main.java:4: error: cannot find symbol Scanner console = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner console = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570892808|p04034|3
u570892808|p04034|3
codenet
Compile Error
980
v2_s484181227
s484181227
s484181227
p04034
p04034
u631940730
u631940730
1,598,170,457
2020-08-23T08:14:17
Main.java
import java.io.InputStreamReader; import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { private int red; private final Box[] boxes; private final Step[] steps; private final Set<Integer> positions; public Main(Box[] boxes, Step[] steps){ this.boxes ...
Main.java:33: error: cannot find symbol Main boxAndBall = new BoxAndBall(boxes, steps); ^ symbol: class BoxAndBall location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631940730|p04034|0
u631940730|p04034|0
codenet
Compile Error
2,293
v2_s761728937
s761728937
s761728937
p04039
p04039
u573800593
u573800593
1,479,256,071
2016-11-16T00:27:51
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); String kirai[] = new String[k]; for (int i = 0; i < k; i++) { kirai[i] = sc.next(); } String number[]; number = String.valueOf(n)...
Main.java:3: error: illegal character: '\u3000' public class?Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u573800593|p04039|0
u573800593|p04039|0
codenet
Compile Error
752
v2_s270334176
s270334176
s270334176
p04039
p04039
u573800593
u573800593
1,479,290,362
2016-11-16T09:59:22
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); String kirai[] = new String[k]; for (int i = 0; i < k; i++) { kirai[i] = sc.next(); } String number[]; number = String.valueOf(n)...
Main.java:3: error: illegal character: '\u3000' public class?Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u573800593|p04039|1
u573800593|p04039|1
codenet
Compile Error
1,270
v2_s999208537
s999208537
s999208537
p04039
p04039
u616866689
u616866689
1,497,060,355
2017-06-10T02:05:55
Main.java
//Do what you can't. import java.io.*; import java.util.*; import java.math.BigInteger; public class Main { static long mod = (long)1e9 + 7; public static void main(String[] args) { InputReader in = new InputReader(System.in); PrintWriter w = new PrintWriter(System.out); long n = in.nextLong(); int...
Main.java:28: error: cannot find symbol w.println(rev(s).parseLong()); ^ symbol: method parseLong() location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u616866689|p04039|0
u616866689|p04039|0
codenet
Compile Error
3,459
v2_s222119280
s222119280
s222119280
p04039
p04039
u981861542
u981861542
1,469,405,266
2016-07-25T00:07:46
Main.java
import java.util.*; public class Main { int N, K; boolean[] D; int A; public static boolean isOK() { int a = A; while(A > 0) { if(D[a % 10]) return false; a = a / 10; } return true; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = s...
Main.java:10: error: non-static variable A cannot be referenced from a static context int a = A; ^ Main.java:11: error: non-static variable A cannot be referenced from a static context while(A > 0) { ^ Main.java:12: error: non-static variable D cannot be referenced from a static context ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981861542|p04039|0
u981861542|p04039|0
codenet
Compile Error
532
v2_s029263118
s029263118
s029263118
p04043
p04043
u010415482
u010415482
1,579,832,615
2020-01-24T02:23:35
Main.java
String x = sc.nextLine();
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. String x = sc.nextLine(); ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u010415482|p04043|1
u010415482|p04043|1
codenet
Compile Error
25
v2_s091804845
s091804845
s091804845
p04043
p04043
u010415482
u010415482
1,579,832,635
2020-01-24T02:23:55
Main.java
String x = sc.nextLine();
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. String x = sc.nextLine(); ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u010415482|p04043|1
u010415482|p04043|1
codenet
Compile Error
25