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_s214231605
s214231605
s214231605
p03671
p03671
u768152935
u768152935
1,498,960,917
2017-07-02T02:01:57
atcoder.java
import java.util.Scanner; import java.util.Arrays; public class atcoder { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a[] = new int[3]; for(int i = 0;i < 3; i++) { int a[i] = sc.nextInt(); } Arrays.sort(a); System.out.println(a[0] + a[1]); } }
atcoder.java:12: error: ']' expected int a[i] = sc.nextInt(); ^ atcoder.java:12: error: ';' expected int a[i] = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03671|0
u768152935|p03671|0
codenet
Compile Error
307
v2_s196308433
s196308433
s196308433
p03671
p03671
u768152935
u768152935
1,498,960,989
2017-07-02T02:03:09
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a[] = new int[3]; for(int i = 0;i < 3; i++) { int a[i] = sc.nextInt(); } Arrays.sort(a); System.out.println(a[0] + a[1]); } }
Main.java:12: error: ']' expected int a[i] = sc.nextInt(); ^ Main.java:12: error: ';' expected int a[i] = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03671|0
u768152935|p03671|0
codenet
Compile Error
306
v2_s669958729
s669958729
s669958729
p03671
p03671
u856382746
u856382746
1,499,179,017
2017-07-04T14:36:57
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collection; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String x =...
Main.java:21: error: cannot find symbol Collections.sort(array); ^ symbol: variable Collections location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856382746|p03671|0
u856382746|p03671|0
codenet
Compile Error
684
v2_s012140241
s012140241
s012140241
p03671
p03671
u858163497
u858163497
1,584,907,595
2020-03-22T20:06:35
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintStream out = new PrintStream(System.out); int a. b, c, min; a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); m...
Main.java:9: error: ';' expected int a. b, c, min; ^ Main.java:9: error: not a statement int a. b, c, min; ^ Main.java:9: error: ';' expected int a. b, c, min; ^ Main.java:9: error: not a statement int a. b, c, min; ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858163497|p03671|0
u858163497|p03671|0
codenet
Compile Error
501
v2_s616268378
s616268378
s616268378
p03671
p03671
u858163497
u858163497
1,584,907,632
2020-03-22T20:07:12
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintStream out = new PrintStream(System.out); int a. b, c, min; a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); m...
Main.java:9: error: ';' expected int a. b, c, min; ^ Main.java:9: error: not a statement int a. b, c, min; ^ Main.java:9: error: ';' expected int a. b, c, min; ^ Main.java:9: error: not a statement int a. b, c, min; ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858163497|p03671|0
u858163497|p03671|0
codenet
Compile Error
518
v2_s132915462
s132915462
s132915462
p03671
p03671
u891161439
u891161439
1,521,608,152
2018-03-21T04:55:52
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 = sc.nextInt(); if(a+b <= b+c && a+b <= a+c)System.println(a+b); else if (b+c <= a+b && b+c <= a+c)System.println(b+c); else System.println(a+...
Main.java:8: error: cannot find symbol if(a+b <= b+c && a+b <= a+c)System.println(a+b); ^ symbol: method println(int) location: class System Main.java:9: error: cannot find symbol else if (b+c <= a+b && b+c <= a+c)System.println(b+c); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03671|0
u891161439|p03671|0
codenet
Compile Error
327
v2_s611889380
s611889380
s611889380
p03671
p03671
u981357923
u981357923
1,498,963,326
2017-07-02T02:42:06
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 = sc.nextInt(); int sum = 0; if(a >= b){ if(a >= c) { if(b >= c){ sum = a + b; } else { sum = a + c; } } else...
Main.java:31: error: <identifier> expected System.out.println(sum); ^ Main.java:31: error: <identifier> expected System.out.println(sum); ^ Main.java:34: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981357923|p03671|0
u981357923|p03671|0
codenet
Compile Error
458
v2_s011988672
s011988672
s011988672
p03672
p03672
u074220993
u074220993
1,598,138,645
2020-08-22T23:24:05
Main.java
import java.util.*; class Main { public static int main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); sc.close(); Map<Character,Integer> chars = new LinkedHashMap<>(); for (int i=0; i<s.length(); i++){ if (chars.containsKey(s.char...
Main.java:31: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074220993|p03672|0
u074220993|p03672|0
codenet
Compile Error
979
v2_s292869512
s292869512
s292869512
p03672
p03672
u274962354
u274962354
1,549,763,036
2019-02-10T01:43:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[]srgs) { Scanner scan=new Scanner(System.in); String a=scan.next(); for(int i=1;i!=a.length();i++) { String str=a.substring(0,a.length()-i); if(str.length()%2==1) { continue; } else { String str1=str.substring(0,str.length()/2...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03672|0
u274962354|p03672|0
codenet
Compile Error
467
v2_s606532557
s606532557
s606532557
p03672
p03672
u289660449
u289660449
1,498,963,177
2017-07-02T02:39:37
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ //B問題 Scanner scan = new Scanner(System.in); //文字列格納用 String S; S = scan.next(); while(S.length() >= 2){ //1文字削除 if(S != null && S.length() > 0){ S = S.substring(...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289660449|p03672|0
u289660449|p03672|0
codenet
Compile Error
685
v2_s946935888
s946935888
s946935888
p03672
p03672
u289660449
u289660449
1,498,963,467
2017-07-02T02:44:27
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ //B問題 Scanner scan = new Scanner(System.in); //文字列格納用 String S; S = scan.next(); while(S.length() >= 2){ //1文字削除 if(S != null && S.length() > 0){ S = S.sub...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289660449|p03672|0
u289660449|p03672|0
codenet
Compile Error
693
v2_s776278675
s776278675
s776278675
p03672
p03672
u289660449
u289660449
1,498,963,530
2017-07-02T02:45:30
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ //B問題 Scanner scan = new Scanner(System.in); //文字列格納用 String S; S = scan.next(); while(S.length() >= 2){ //1文字削除 if(S != null && S.length() > 0){ S = S.sub...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289660449|p03672|0
u289660449|p03672|0
codenet
Compile Error
688
v2_s546357166
s546357166
s546357166
p03672
p03672
u297340672
u297340672
1,499,314,199
2017-07-06T04:09:59
Main.java
import java.io.PrintWriter; import java.util.Scanner; public class Main { static Scanner in; static PrintWriter out; static void solve() { String S = in.next(); if (S.length() == 2) { System.out.println(0); return; } for(int i = 0; i < S.length(); i++) { S = S.substring(0, S.length() ...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u297340672|p03672|1
u297340672|p03672|1
codenet
Compile Error
697
v2_s638165403
s638165403
s638165403
p03672
p03672
u351303380
u351303380
1,570,253,992
2019-10-05T05:39:52
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd = new Scanner(System.in); String s = sc.next(); int x = 0; for(int i = s.length()-1 ; i>0 ; i--){ s = s.substring(0,i); String s1 = s.substring(0,i/2); String s2 = s.substring(i/2,i);...
Main.java:6: error: cannot find symbol String s = sc.next(); ^ symbol: variable sc location: class Main Main.java:15: error: cannot find symbol if(s1.epuals(s2)){ ^ symbol: method epuals(String) location: variable s1 of type String 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u351303380|p03672|0
u351303380|p03672|0
codenet
Compile Error
398
v2_s269232723
s269232723
s269232723
p03672
p03672
u351303380
u351303380
1,570,254,074
2019-10-05T05:41:14
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd = new Scanner(System.in); String s = sc.next(); int x = 0; for(int i = s.length()-1 ; i>0 ; i--){ s = s.substring(0,i); String s1 = s.substring(0,i/2); String s2 = s.substring(i/2,i);...
Main.java:6: error: cannot find symbol String s = sc.next(); ^ symbol: variable sc location: class Main Main.java:15: error: cannot find symbol if(s1.epuals(s2)){ ^ symbol: method epuals(String) location: variable s1 of type String 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u351303380|p03672|0
u351303380|p03672|0
codenet
Compile Error
398
v2_s693657951
s693657951
s693657951
p03672
p03672
u471346428
u471346428
1,591,918,372
2020-06-11T23:32:52
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); String S = scanner.nextLine(); int length = S.length(); while(true) { if ((S.length() -1) % 2 == 0) { String sub1 = S.substring(0, S.length() / 2); // System.out.println(...
Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u471346428|p03672|0
u471346428|p03672|0
codenet
Compile Error
705
v2_s554192218
s554192218
s554192218
p03672
p03672
u487433273
u487433273
1,578,423,729
2020-01-07T19:02:09
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(); boolean b = true; boolean dame = false; int ans ; for(int i = 2;i<N;i+=2) { dame = false; for(int k = 0;k<(N-i)/2;k++) { if(...
Main.java:9: error: cannot find symbol for(int i = 2;i<N;i+=2) ^ symbol: variable N location: class Main Main.java:12: error: cannot find symbol for(int k = 0;k<(N-i)/2;k++) ^ symbol: variable N location: class Main Main.java:14: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03672|0
u487433273|p03672|0
codenet
Compile Error
464
v2_s278530287
s278530287
s278530287
p03672
p03672
u487433273
u487433273
1,578,423,764
2020-01-07T19:02:44
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(); int N = c.length; boolean b = true; boolean dame = false; int ans ; for(int i = 2;i<N;i+=2) { dame = false; for(int k = 0;k<(N-i)/2;k...
Main.java:23: error: variable ans might not have been initialized System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03672|0
u487433273|p03672|0
codenet
Compile Error
485
v2_s994296003
s994296003
s994296003
p03672
p03672
u547167033
u547167033
1,566,666,624
2019-08-24T17:10:24
Main.java
import java.util.*; public class Main{ public static void main(Stirng[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); boolean p = true; int n = 0; s = s.substring(0,s.length()-1); while(p){ s = s.substring(0,n-1); n = s.length(); if(n%2==0 &...
Main.java:3: error: cannot find symbol public static void main(Stirng[] args){ ^ symbol: class Stirng location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03672|0
u547167033|p03672|0
codenet
Compile Error
434
v2_s782802707
s782802707
s782802707
p03672
p03672
u568545273
u568545273
1,518,231,026
2018-02-10T02:50:26
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int O = S.length()-1; int ans = 1; char[] C = S.toCharArray(); if (O% 2 == 1) { O = O - 1; ans++; } lavel:f...
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
u568545273|p03672|0
u568545273|p03672|0
codenet
Compile Error
636
v2_s114230436
s114230436
s114230436
p03672
p03672
u587100042
u587100042
1,590,634,635
2020-05-28T02:57:15
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() for(int i=0;i<s.length();i+=2){ String a=s.substring(0,2/n),b=s.substring(2/n,n); if(a.equals(b)){ Systen.out.println(n); ...
Main.java:8: error: ';' expected int n=s.length() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p03672|0
u587100042|p03672|0
codenet
Compile Error
398
v2_s183688031
s183688031
s183688031
p03672
p03672
u587100042
u587100042
1,590,634,663
2020-05-28T02:57:43
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(); for(int i=0;i<s.length();i+=2){ String a=s.substring(0,2/n),b=s.substring(2/n,n); if(a.equals(b)){ Systen.out.println(n); ...
Main.java:12: error: package Systen does not exist Systen.out.println(n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p03672|0
u587100042|p03672|0
codenet
Compile Error
399
v2_s220453303
s220453303
s220453303
p03672
p03672
u603540589
u603540589
1,500,576,022
2017-07-20T18:40:22
Main.java
import java.util.*; import org.apache.tools.ant.taskdefs.Exit; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); isOddString(s.substring(0, s.length() - 1)); } public static void isOddString(String s) { if (s.le...
Main.java:3: error: package org.apache.tools.ant.taskdefs does not exist import org.apache.tools.ant.taskdefs.Exit; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u603540589|p03672|0
u603540589|p03672|0
codenet
Compile Error
606
v2_s796120620
s796120620
s796120620
p03672
p03672
u735985045
u735985045
1,576,605,167
2019-12-17T17:52:47
Main.java
import org.assertj.core.util.Strings; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(execute(sc.nextLine())); } public static int ex...
Main.java:1: error: package org.assertj.core.util does not exist import org.assertj.core.util.Strings; ^ Main.java:28: error: cannot find symbol if (!Strings.isNullOrEmpty(s)) { ^ symbol: variable Strings location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u735985045|p03672|0
u735985045|p03672|0
codenet
Compile Error
1,657
v2_s171630481
s171630481
s171630481
p03672
p03672
u762160119
u762160119
1,556,689,573
2019-05-01T05:46:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int point = str.length()-1; while(point > 0) { String s = str.substring(0,point); point--; if(s.length()%2!=0) co...
Main.java:12: error: cannot find symbol System.out.println(s.length); ^ symbol: variable length location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762160119|p03672|0
u762160119|p03672|0
codenet
Compile Error
540
v2_s408443870
s408443870
s408443870
p03672
p03672
u764060069
u764060069
1,546,898,906
2019-01-07T22:08:26
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String S =scanner.next(); int count = 0; for (int i = 2; i < S.length(); i += 2) { //文字列Sも末尾を、2文字ずつ削除 String s = S.substring(0, S.length()-i); //文字列Sをs1とs2に分割 // String...
Main.java:17: error: cannot find symbol System.out.println("s1:" + s1); ^ symbol: variable s1 location: class Main Main.java:18: error: cannot find symbol System.out.println("s2:" + s2); ^ symbol: variable s2 location: class Main Main.java:21...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764060069|p03672|0
u764060069|p03672|0
codenet
Compile Error
674
v2_s696427527
s696427527
s696427527
p03673
p03673
u013840098
u013840098
1,498,968,827
2017-07-02T04:13:47
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]; int i,j; for(i=0;i<n;i++){ a[i]=sc.nextInt(); } int b[],c[]; ...
Main.java:13: error: not a statement b[]=new int[i]; ^ Main.java:13: error: ';' expected b[]=new int[i]; ^ Main.java:13: error: not a statement b[]=new int[i]; ^ Main.java:14: error: not a statement c[]=new int[i]; ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013840098|p03673|0
u013840098|p03673|0
codenet
Compile Error
614
v2_s166379316
s166379316
s166379316
p03673
p03673
u013840098
u013840098
1,498,968,932
2017-07-02T04:15:32
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]; int i,j; for(i=0;i<n;i++){ a[i]=sc.nextInt(); } int b[],c[]; ...
Main.java:23: error: variable c might not have been initialized System.out.print(c[i]+" "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013840098|p03673|0
u013840098|p03673|0
codenet
Compile Error
610
v2_s529564176
s529564176
s529564176
p03673
p03673
u018679195
u018679195
1,514,228,888
2017-12-25T19:08:08
Main.java
class Pushpush { public static void main(String[] args) { Scanner input = new Scanner(System.in); int count = input.nextInt(); int[] num = new int[count]; for(int i = 0; i < count; i++) { num[i] = input.nextInt(); } Stack<Integer> stack = new Stack<Integer>(); int[] res = new int[count]; res[...
Main.java:4: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Pushpush Main.java:4: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Pushpush Main.java:11: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03673|0
u018679195|p03673|0
codenet
Compile Error
644
v2_s824709148
s824709148
s824709148
p03673
p03673
u024824950
u024824950
1,555,027,218
2019-04-12T00:00:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<String> b = new ArrayList<String>(); for(int i=0; i<n; i++){ a[] = sc.nextInt(); ...
Main.java:11: error: not a statement a[] = sc.nextInt(); ^ Main.java:11: error: ';' expected a[] = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
560
v2_s668434435
s668434435
s668434435
p03673
p03673
u024824950
u024824950
1,555,027,290
2019-04-12T00:01:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<String> b = new ArrayList<String>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt(); ...
Main.java:15: error: array required, but List<String> found b[0] = a[i]; ^ Main.java:16: error: method reverse in class Collections cannot be applied to given types; Collections.reverse(); ^ required: List<?> found: no arguments reason: actual and fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
561
v2_s851024582
s851024582
s851024582
p03673
p03673
u024824950
u024824950
1,555,027,334
2019-04-12T00:02:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<String> b = new ArrayList<String>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt(); ...
Main.java:15: error: array required, but List<String> found b[i] = a[i]; ^ Main.java:16: error: method reverse in class Collections cannot be applied to given types; Collections.reverse(); ^ required: List<?> found: no arguments reason: actual and fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
561
v2_s346870211
s346870211
s346870211
p03673
p03673
u024824950
u024824950
1,555,027,931
2019-04-12T00:12:11
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<String> b = new ArrayList<String>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt()...
Main.java:21: error: '[' expected int s = new int(b.get(i)); ^ Main.java:21: error: ']' expected int s = new int(b.get(i)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
605
v2_s536209290
s536209290
s536209290
p03673
p03673
u024824950
u024824950
1,555,028,010
2019-04-12T00:13:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<String> b = new ArrayList<String>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt()...
Main.java:16: error: incompatible types: int cannot be converted to String b.add(a[i]); ^ Main.java:17: error: method reverse in class Collections cannot be applied to given types; Collections.reverse(); ^ required: List<?> found: no arguments r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
609
v2_s436753292
s436753292
s436753292
p03673
p03673
u024824950
u024824950
1,555,028,158
2019-04-12T00:15:58
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]; List<int> b = new ArrayList<int>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt(); ...
Main.java:21: error: '[' expected inr s = new int(b.get(i)); ^ Main.java:21: error: ']' expected inr s = new int(b.get(i)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
599
v2_s524671208
s524671208
s524671208
p03673
p03673
u024824950
u024824950
1,555,028,200
2019-04-12T00:16:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; List<int> b = new ArrayList<int>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt(); ...
Main.java:21: error: '[' expected int s = new int(b.get(i)); ^ Main.java:21: error: ']' expected int s = new int(b.get(i)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
599
v2_s193488275
s193488275
s193488275
p03673
p03673
u024824950
u024824950
1,555,028,333
2019-04-12T00:18: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(); int[] a = new int[n]; List<int> b = new ArrayList<int>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt(); ...
Main.java:9: error: unexpected type List<int> b = new ArrayList<int>(); ^ required: reference found: int Main.java:9: error: unexpected type List<int> b = new ArrayList<int>(); ^ required: reference found: int Main.java:17: error: method rev...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
590
v2_s762656612
s762656612
s762656612
p03673
p03673
u024824950
u024824950
1,555,028,399
2019-04-12T00:19:59
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]; List<Integer> b = new ArrayList<Integer>(); for(int i=0; i<n; i++){ a[i] = sc.nextInt...
Main.java:17: error: method reverse in class Collections cannot be applied to given types; Collections.reverse(); ^ required: List<?> found: no arguments reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|0
u024824950|p03673|0
codenet
Compile Error
598
v2_s710209839
s710209839
s710209839
p03673
p03673
u024824950
u024824950
1,555,085,171
2019-04-12T16:06:11
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); } if(n%2 == 0){ for(int i =...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03673|1
u024824950|p03673|1
codenet
Compile Error
716
v2_s545383952
s545383952
s545383952
p03673
p03673
u076936237
u076936237
1,498,958,957
2017-07-02T01:29:17
Main.java
for(int i=0;i<n;i++){ System.out.print(queue.poll()); System.out.print(" "); }
Main.java:1: error: class, interface, enum, or record expected for(int i=0;i<n;i++){ ^ Main.java:1: error: class, interface, enum, or record expected for(int i=0;i<n;i++){ ^ Main.java:1: error: class, interface, enum, or record expected for(int i=0;i<n;i++){ ^ Main.java:3: error: class, inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u076936237|p03673|0
u076936237|p03673|0
codenet
Compile Error
100
v2_s330965639
s330965639
s330965639
p03673
p03673
u161835833
u161835833
1,601,043,276
2020-09-25T14:14:36
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(); } for(int i=N-1;i>=0...
Main.java:17: error: cannot find symbol for(int j=n%2;j<N;j+=2){ ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161835833|p03673|0
u161835833|p03673|0
codenet
Compile Error
466
v2_s392756725
s392756725
s392756725
p03673
p03673
u183509493
u183509493
1,543,454,005
2018-11-29T01:13:25
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Collections; public class Main { public static void main(String args[]) throws InterruptedException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> list =...
Main.java:12: error: incompatible types: int cannot be converted to Collection<? extends Integer> List<Integer> list = new LinkedList<Integer>(n); ^ 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
u183509493|p03673|1
u183509493|p03673|0
codenet
Compile Error
826
v2_s273760603
s273760603
s273760603
p03673
p03673
u350931043
u350931043
1,592,524,084
2020-06-18T23:48:04
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.next()); List<int> b = new ArrayList<int>(); int a for(int i = 0; i < n; i++){ a = Integer.parseInt(scan.next()); ...
Main.java:7: error: ';' expected int a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u350931043|p03673|0
u350931043|p03673|0
codenet
Compile Error
657
v2_s555477078
s555477078
s555477078
p03673
p03673
u353919145
u353919145
1,514,228,613
2017-12-25T19:03:33
Main.java
import java.util.Scanner; import java.util.Stack; public static void main(String[] args) { Scanner input = new Scanner(System.in); int count = input.nextInt(); int[] num = new int[count]; for(int i = 0; i < count; i++) { num[i] = input.nextInt(); } Stack<Integer> stack = new Stack<Integer>(); int[]...
Main.java:4: 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
u353919145|p03673|0
u353919145|p03673|0
codenet
Compile Error
675
v2_s015276624
s015276624
s015276624
p03673
p03673
u353919145
u353919145
1,514,258,460
2017-12-26T03:21:00
Main.java
public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int count = input.nextInt(); ArrayList<Integer> list = new ArrayList<>(); boolean flag = count%2==0?false:true; for(int i = 0; i < count; i++) { if(flag) { list.add(input.nextInt()); flag = !...
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 Main.java:6: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03673|1
u353919145|p03673|1
codenet
Compile Error
615
v2_s644685973
s644685973
s644685973
p03673
p03673
u487433273
u487433273
1,577,376,730
2019-12-26T16:12:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] m = new int[N]; int[] ans = new int[]; for(int i=0;i<N;i++) { m[i] = sc.nextInt(); } if(N%2==0) { for(int i =0;i<N/2;i++) ans[i] = m...
Main.java:8: error: array dimension missing int[] ans = new int[]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03673|0
u487433273|p03673|0
codenet
Compile Error
568
v2_s308930483
s308930483
s308930483
p03673
p03673
u659156129
u659156129
1,597,161,753
2020-08-11T16:02:33
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); String[] a = new String[n]; for(int i=0; i<a.length; i++){ a[i] = scn.next(); } ArrayList<string> list = new ArrayList<>(); for(int i...
Main.java:11: error: cannot find symbol ArrayList<string> list = new ArrayList<>(); ^ symbol: class string location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03673|0
u659156129|p03673|0
codenet
Compile Error
544
v2_s988284468
s988284468
s988284468
p03673
p03673
u659156129
u659156129
1,597,161,783
2020-08-11T16:03:03
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); String[] a = new String[n]; for(int i=0; i<a.length; i++){ a[i] = scn.next(); } ArrayList<String> list = new ArrayList<>(); for(int i...
Main.java:14: error: cannot find symbol Collection.reverse(list); ^ symbol: method reverse(ArrayList<String>) location: interface Collection 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03673|0
u659156129|p03673|0
codenet
Compile Error
545
v2_s692232016
s692232016
s692232016
p03673
p03673
u803314854
u803314854
1,543,441,288
2018-11-28T21:41:28
Main.java
import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt();int[]m=new int[n];for(int i=0;i<n;i++)m[i]=sc.nextInt();for(int i=n-1;i>=0;i-=2)System.out.print(m[i]+" ");for(int i=n%2;i<n;i+=2)System.out.print(m[i]+" ");}}
Main.java:1: error: cannot find symbol import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int n=s.nextInt();int[]m=new int[n];for(int i=0;i<n;i++)m[i]=sc.nextInt();for(int i=n-1;i>=0;i-=2)System.out.print(m[i]+" ");for(int i=n%2;i<n;i+=2)System.out.print(m[i]+" ");}...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03673|0
u803314854|p03673|0
codenet
Compile Error
282
v2_s058814948
s058814948
s058814948
p03673
p03673
u863370423
u863370423
1,514,228,391
2017-12-25T18:59:51
Pushpush.java
import java.util.Scanner; import java.util.Stack; public class Pushpush { public static void main(String[] args) { Scanner input = new Scanner(System.in); int count = input.nextInt(); int[] num = new int[count]; for(int i = 0; i < count; i++) { num[i] = input.nextInt(); } Stack<Integer> stack = new ...
Pushpush.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03673|0
u863370423|p03673|0
codenet
Compile Error
699
v2_s311878780
s311878780
s311878780
p03673
p03673
u918497744
u918497744
1,498,967,365
2017-07-02T03:49:25
Main.java
int N=sc.nextInt(); int[]a=new int[N]; for(int i=0;i<N;i++){ a[i]=sc.nextInt(); } Deque<Integer> ad=new ArrayDeque<Integer>(); for(int i=0;i<N;i++){ if(i%2==N%2){ ad.offerLast(a[i]); }else{ ad.offerFirst(a[i]); } } for(Integer num : ad){ System.out.print(num+" "); } System...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int N=sc.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected for(int i=0;i<N;i++){ ^ Main.java:3: error: class, interface, enum, or record expected for(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p03673|0
u918497744|p03673|0
codenet
Compile Error
335
v2_s870582618
s870582618
s870582618
p03674
p03674
u101225820
u101225820
1,498,961,912
2017-07-02T02:18:32
Main.java
import com.sun.xml.internal.fastinfoset.util.CharArray; import java.util.*; /** * Created by DELL on 2017/7/1. */ public class Main { static long fac(int x,int num){ long a=1; for (int i = 0; i <num ; i++) { a*=x-i; a/=(i+1); if(a>1e9+7) a-=1e...
Main.java:1: error: package com.sun.xml.internal.fastinfoset.util does not exist import com.sun.xml.internal.fastinfoset.util.CharArray; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u101225820|p03674|0
u101225820|p03674|0
codenet
Compile Error
921
v2_s726571120
s726571120
s726571120
p03674
p03674
u118250060
u118250060
1,499,353,802
2017-07-06T15:10:02
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { private static final long MOD = 1_000_000_000 + 7; // 反復二乗法を用いる public static long myPow(long a) { long ans = 1L; long x = a; long b = (1_000_000_000 + 5)L; for(int i = 0; i < 32; i++) { if((b & (1L << i)) != 0L) { ans = (ans * ...
Main.java:11: error: ';' expected long b = (1_000_000_000 + 5)L; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u118250060|p03674|1
u118250060|p03674|1
codenet
Compile Error
1,601
v2_s861375841
s861375841
s861375841
p03674
p03674
u118250060
u118250060
1,499,361,101
2017-07-06T17:11:41
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { private static final long MOD = 1_000_000_000 + 7; // 反復二乗法を用いる public static long myPow(long a) { long ans = 1L; long x = a; long b = 1_000_000_000 + 5L; for(int i = 0; i < 64; i++) { if((b & (1L << i)) != 0L) { ans = (ans * x)...
Main.java:31: error: cannot find symbol new Main().run(); ^ symbol: method run() location: class Main Main.java:66: error: method nck in class Main cannot be applied to given types; long comb1 = nck(n + 1, k, fact); ^ required: int,int,long[],long[] found: int,int,long[] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u118250060|p03674|1
u118250060|p03674|1
codenet
Compile Error
1,397
v2_s516149623
s516149623
s516149623
p03674
p03674
u250436918
u250436918
1,498,965,166
2017-07-02T03:12:46
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n + 1]; boolean[] hasOne = new boolean[n + 1]; boolean[] hasTwo = new boolean[n + 1]; for(int i = 0; i < n + 1; i++){ a[i] = sc.nextInt(); h...
Main.java:39: error: incompatible types: long[] cannot be converted to long[][] long[] comb[] = new long[n + 2]; ^ Main.java:40: error: incompatible types: int cannot be converted to long[] comb[0] = 1; ^ Main.java:55: error: incompatible types: int cannot be converted to long[] com...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u250436918|p03674|0
u250436918|p03674|0
codenet
Compile Error
1,582
v2_s699471698
s699471698
s699471698
p03674
p03674
u982630224
u982630224
1,572,962,711
2019-11-05T14:05:11
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; import java.util.*; public class Main { static int mod=1_000_000_007; static...
Main.java:110: error: <identifier> expected out.close(); ^ Main.java:142: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p03674|1
u982630224|p03674|1
codenet
Compile Error
4,539
v2_s997042054
s997042054
s997042054
p03675
p03675
u251318097
u251318097
1,499,644,639
2017-07-09T23:57:19
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 回数 int N = sc.nextInt(); //元になる数列を格納 ArrayList list = new ArrayList(); ArrayList b = new ArrayList(); while (sc.hasNextLine()) { list.add(Integer.parseInt(sc.next()) + " "); ...
Main.java:38: error: incompatible types: unexpected return value return 0; ^ 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
u251318097|p03675|0
u251318097|p03675|0
codenet
Compile Error
829
v2_s234673024
s234673024
s234673024
p03675
p03675
u604068691
u604068691
1,572,046,012
2019-10-25T23:26:52
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ FastScanner sc = new FastScanner(System.in); int N = sc.nextInt(); long[] ans = new long[N+1]; int b = N/2+1; int c = N/2+2; int d = N/2; if( N%2!=0 ){ for( int i=1; i<=N; i++ ){ if( i%2!=0 ){ ...
Main.java:5: error: cannot find symbol FastScanner sc = new FastScanner(System.in); ^ symbol: class FastScanner location: class Main Main.java:5: error: cannot find symbol FastScanner sc = new FastScanner(System.in); ^ symbol: class FastScanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p03675|0
u604068691|p03675|0
codenet
Compile Error
760
v2_s510666313
s510666313
s510666313
p03675
p03675
u653981267
u653981267
1,498,966,272
2017-07-02T03:31: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(); Deque<Integer> dq = new Deque<Integer>(); for(int i = 1; i <= n; i++) { int a = sc.nextInt(); if((n - i) % 2 == 0) { dq.addFirst(a); } ...
Main.java:7: error: Deque is abstract; cannot be instantiated Deque<Integer> dq = new Deque<Integer>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03675|0
u653981267|p03675|0
codenet
Compile Error
450
v2_s558935162
s558935162
s558935162
p03675
p03675
u655729056
u655729056
1,573,687,062
2019-11-13T23:17:42
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int a[]=new a[n]; int b[]=new b[n]; for(int i=0;i<n;i++){ a[i] = sc.nextInt(); for(int j=0;j<=i;j++){ b[i-j] = a[j]; } } ...
Main.java:7: error: cannot find symbol int a[]=new a[n]; ^ symbol: class a location: class Main Main.java:8: error: cannot find symbol int b[]=new b[n]; ^ symbol: class b location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|0
u655729056|p03675|0
codenet
Compile Error
389
v2_s526965327
s526965327
s526965327
p03675
p03675
u655729056
u655729056
1,573,687,576
2019-11-13T23:26:16
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); List<Integer> a = new ArrayList<Integer>(); for(int i=0;i<n;i++){ if(n % 2 == 0){ if(i % 2 == 0){ a.add(0,sc.nextInt()); }els...
Main.java:25: error: incompatible types: List<Integer> cannot be converted to CharSequence System.out.println(String.join(a)); ^ 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
u655729056|p03675|0
u655729056|p03675|0
codenet
Compile Error
553
v2_s364038411
s364038411
s364038411
p03675
p03675
u655729056
u655729056
1,573,687,605
2019-11-13T23:26:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); List<Integer> a = new ArrayList<Integer>(); for(int i=0;i<n;i++){ if(n % 2 == 0){ if(i % 2 == 0){ a.add(0,sc.nextInt()); }els...
Main.java:25: error: empty character literal System.out.println(String.join('',a)); ^ Main.java:25: error: not a statement System.out.println(String.join('',a)); ^ Main.java:25: error: ';' expected System.out.println(String.join('',a))...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|0
u655729056|p03675|0
codenet
Compile Error
556
v2_s336534146
s336534146
s336534146
p03675
p03675
u655729056
u655729056
1,573,687,700
2019-11-13T23:28:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); List<String> a = new ArrayList<String>(); for(int i=0;i<n;i++){ if(n % 2 == 0){ if(i % 2 == 0){ a.add(0,sc.next()); }else{ ...
Main.java:25: error: empty character literal System.out.println(String.join('',a)); ^ Main.java:25: error: not a statement System.out.println(String.join('',a)); ^ Main.java:25: error: ';' expected System.out.println(String.join('',a))...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|0
u655729056|p03675|0
codenet
Compile Error
542
v2_s430660388
s430660388
s430660388
p03675
p03675
u655729056
u655729056
1,573,687,925
2019-11-13T23:32:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); List<Integer> a = new ArrayList<Integer>(); for(int i=0;i<n;i++){ if(n % 2 == 0){ if(i % 2 == 0){ a.add(0,sc.nextInt()); }els...
Main.java:25: error: no suitable method found for join(String,List<Integer>) System.out.println(String.join("",a)); ^ method String.join(CharSequence,CharSequence...) is not applicable (varargs mismatch; List<Integer> cannot be converted to CharSequence) method String.join...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|0
u655729056|p03675|0
codenet
Compile Error
556
v2_s479080953
s479080953
s479080953
p03675
p03675
u655729056
u655729056
1,573,703,624
2019-11-14T03:53:44
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(); } for(int j = n-1;j<0;2*j--){ System.out.print(a[j]); } for(int k ...
Main.java:12: error: not a statement for(int j = n-1;j<0;2*j--){ ^ Main.java:15: error: not a statement for(int k = n-2;k<0;2*k--){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|1
u655729056|p03675|0
codenet
Compile Error
379
v2_s367058046
s367058046
s367058046
p03675
p03675
u655729056
u655729056
1,573,703,950
2019-11-14T03:59:10
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]; StringBuilder ans = new StringBuilder(); String for(int i=0;i<n;i++){ a[i] = sc.nextInt(); } for(int j = n-1;j<0;j-...
Main.java:9: error: not a statement String ^ Main.java:9: error: ';' expected String ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|1
u655729056|p03675|0
codenet
Compile Error
482
v2_s107928362
s107928362
s107928362
p03675
p03675
u655729056
u655729056
1,573,704,101
2019-11-14T04:01:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int a[]=new int[n]; StringBuilder ans = new StringBuilder(); String for(int i=0;i<n;i++){ a[i] = sc.nextInt(); } for(int j = n-1;j<0;j-...
Main.java:9: error: not a statement String ^ Main.java:9: error: ';' expected String ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03675|1
u655729056|p03675|0
codenet
Compile Error
482
v2_s378074729
s378074729
s378074729
p03675
p03675
u843698608
u843698608
1,499,006,345
2017-07-02T14:39:05
void.java
import java.util.*; import java.io.*; public class void Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); Deque<Integer> dq = new Deque<Integer>(); boolean flag = false; for (int i = 0; i < n; i++){ if (!fla...
void.java:4: error: <identifier> expected public class void Main{ ^ void.java:19: error: not a statement int begin = flag ? n - 1 ; 0; ^ void.java:22: error: not a statement for (int i = begin; i += inc; i >= 0 && i <= n - 1){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843698608|p03675|0
u843698608|p03675|0
codenet
Compile Error
712
v2_s414548837
s414548837
s414548837
p03675
p03675
u843698608
u843698608
1,499,006,486
2017-07-02T14:41:26
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); Deque<Integer> dq = new Deque<Integer>(); boolean flag = false; for (int i = 0; i < n; i++){ if (!flag){ ...
Main.java:22: error: not a statement for (int i = begin; i += inc; i >= 0 && i <= n - 1){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843698608|p03675|0
u843698608|p03675|0
codenet
Compile Error
707
v2_s252873303
s252873303
s252873303
p03675
p03675
u843698608
u843698608
1,499,006,577
2017-07-02T14:42:57
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); Deque<Integer> dq = new Deque<Integer>(); boolean flag = false; for (int i = 0; i < n; i++){ if (!flag){ ...
Main.java:9: error: Deque is abstract; cannot be instantiated Deque<Integer> dq = new Deque<Integer>(); ^ Main.java:23: error: cannot find symbol system.out.print(dq.get(i) + " "); ^ symbol: method get(int) location: variable dq of typ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843698608|p03675|0
u843698608|p03675|0
codenet
Compile Error
707
v2_s901742624
s901742624
s901742624
p03675
p03675
u843698608
u843698608
1,499,006,771
2017-07-02T14:46:11
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); Deque<Integer> dq = new LinkedList<>(); boolean flag = false; for (int i = 0; i < n; i++){ if (!flag){ ...
Main.java:23: error: cannot find symbol System.out.print(dq.get(i) + " "); ^ symbol: method get(int) location: variable dq of type Deque<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843698608|p03675|0
u843698608|p03675|0
codenet
Compile Error
705
v2_s119392724
s119392724
s119392724
p03675
p03675
u863370423
u863370423
1,599,482,045
2020-09-07T12:34:05
Main.java
import java.io.*; import java.util.ArrayList; import java.util.Collections; import org.graalvm.compiler.nodes.calc.IntegerDivRemNode; public class Main{ public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<...
Main.java:5: error: package org.graalvm.compiler.nodes.calc does not exist import org.graalvm.compiler.nodes.calc.IntegerDivRemNode; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03675|0
u863370423|p03675|0
codenet
Compile Error
1,036
v2_s018839635
s018839635
s018839635
p03675
p03675
u918497744
u918497744
1,509,065,345
2017-10-27T00:49:05
Main.java
class Main{ public static void main(String[] args){   Scanner sc = new Scanner(System.in); Deque<Integer> q = new ArrayDeque<Integer>(); int n = sc.nextInt(); int a[] = new int[n]; for(int i = 0;i < n;i++){ a[...
Main.java:3: error: illegal character: '\u00a0' ? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p03675|1
u918497744|p03675|1
codenet
Compile Error
935
v2_s439439174
s439439174
s439439174
p03675
p03675
u918497744
u918497744
1,509,065,384
2017-10-27T00:49:44
Main.java
improt java.util.*; class Main{ public static void main(String[] args){   Scanner sc = new Scanner(System.in); Deque<Integer> q = new ArrayDeque<Integer>(); int n = sc.nextInt(); int a[] = new int[n]; for(int i = 0;i <...
Main.java:1: error: class, interface, enum, or record expected improt java.util.*; ^ Main.java:5: error: illegal character: '\u00a0' ? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p03675|1
u918497744|p03675|1
codenet
Compile Error
956
v2_s628137347
s628137347
s628137347
p03675
p03675
u918497744
u918497744
1,509,065,416
2017-10-27T00:50:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){   Scanner sc = new Scanner(System.in); Deque<Integer> q = new ArrayDeque<Integer>(); int n = sc.nextInt(); int a[] = new int[n]; for(int i = 0;i <...
Main.java:5: error: illegal character: '\u00a0' ? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p03675|1
u918497744|p03675|1
codenet
Compile Error
956
v2_s527916749
s527916749
s527916749
p03676
p03676
u324669236
u324669236
1,600,220,292
2020-09-16T01:38:12
Main.java
// copied #include <bits/stdc++.h> using namespace std; typedef long long LL; typedef double DB; typedef unsigned int UI; typedef pair<int, int> PII; const int inf = 0x7f7f7f7f; #define rdi() read<int>() #define rdl() read<LL>() #define rds(a) scanf("%s", a) #define mk(i, j) make_pair(i, j) #define pb push_back #de...
Main.java:2: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:2: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:6: error: class, interface, enum, or record expected typedef long long LL; ^ Main.java:7: error: class, interface, enum, or record expected t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324669236|p03676|0
u324669236|p03676|0
codenet
Compile Error
1,956
v2_s081361372
s081361372
s081361372
p03676
p03676
u460609472
u460609472
1,534,295,521
2018-08-15T01:12:01
Main.java
import java.io._ import java.util.StringTokenizer import scala.collection.mutable import scala.util.Sorting import math.{abs, max, min} import scala.collection.mutable.{ArrayBuffer, ListBuffer} import scala.reflect.ClassTag object Main { val MOD = 1000000007 val out = new PrintWriter(System.out) def solve(): U...
Main.java:1: error: as of release 9, '_' is a keyword, and may not be used as an identifier import java.io._ ^ Main.java:1: error: ';' expected import java.io._ ^ Main.java:2: error: ';' expected import java.util.StringTokenizer ^ Main.java:4: error: ';' ex...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460609472|p03676|0
u460609472|p03676|0
codenet
Compile Error
3,946
v2_s415154608
s415154608
s415154608
p03676
p03676
u653981267
u653981267
1,498,963,123
2017-07-02T02:38:43
Main.java
import java.util.*; public class Main { static long MOD = (long)Math.pow(10, 9) + 7; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long[] kaijou = new long[n + 1]; kaijou[0] = 1; for(int i = 1; i < n + 1; i++) { kaijou[i] = (kaijou[i...
Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] kaijou = new long[n + 1]; ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int int[] suuretu = new int[n + 1]; ^ Main.java:14: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03676|0
u653981267|p03676|0
codenet
Compile Error
1,908
v2_s921212990
s921212990
s921212990
p03676
p03676
u653981267
u653981267
1,498,963,198
2017-07-02T02:39:58
Main.java
import java.util.*; public class Main { static long MOD = (long)Math.pow(10, 9) + 7; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long[] kaijou = new long[n + 1]; kaijou[0] = 1; for(int i = 1; i < n + 1; i++) { kaijou[i] = (kaijou[i...
Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] kaijou = new long[n + 1]; ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int int[] suuretu = new int[n + 1]; ^ Main.java:14: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03676|0
u653981267|p03676|0
codenet
Compile Error
1,914
v2_s199579986
s199579986
s199579986
p03676
p03676
u929167194
u929167194
1,528,222,312
2018-06-05T18:11:52
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args){ solve(); } public static void solve(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n+1]; long etc = (long)Math.pow(10, 9) + 7; for(int...
Main.java:18: error: cannot find symbol ArrayList<Point> list = new ArrayList<Point>(); ^ symbol: class Point location: class Main Main.java:18: error: cannot find symbol ArrayList<Point> list = new ArrayList<Point>(); ^ symbol: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929167194|p03676|1
u929167194|p03676|1
codenet
Compile Error
1,807
v2_s921162138
s921162138
s921162138
p03677
p03677
u318201771
u318201771
1,589,061,283
2020-05-09T21:54:43
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.*; class Parser { private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static final Iterator<String> stringIterator = br.li...
Main.java:190: error: reached end of file while parsing }l ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u318201771|p03677|1
u318201771|p03677|1
codenet
Compile Error
4,877
v2_s791082829
s791082829
s791082829
p03679
p03679
u013840098
u013840098
1,498,552,379
2017-06-27T08:32:59
Main.java
public class Main{
Main.java:1: error: reached end of file while parsing public class Main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013840098|p03679|0
u013840098|p03679|0
codenet
Compile Error
19
v2_s784009588
s784009588
s784009588
p03679
p03679
u013840098
u013840098
1,498,553,003
2017-06-27T08:43:23
Main.java
import java.util.*; public class Main{ public static void main{ int x,a,b; Scanner sc=new Scanner(System.in); x=sc.nextInt(); a=sc.nextInt(); b=sc.nextInt(); if(b-a>0&&b-a<x) System.out.println("safe"); else...
Main.java:3: error: '(' expected public static void main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u013840098|p03679|0
u013840098|p03679|0
codenet
Compile Error
465
v2_s585091372
s585091372
s585091372
p03679
p03679
u024824950
u024824950
1,554,929,988
2019-04-10T20:59:48
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 a = sc.nextInt(); int b = sc.nextInt(); if(a>b) System.out.println("delicious"); else if(a<b && a+x>b) System.out.prin...
Main.java:11: error: package system does not exist else system.out.println("dangerous"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03679|0
u024824950|p03679|0
codenet
Compile Error
386
v2_s771486731
s771486731
s771486731
p03679
p03679
u112129029
u112129029
1,498,356,321
2017-06-25T02:05:21
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 A = sc.nextInt(); int B = sc.nextInt(); String [] S = {"delicious","safe","dangerous"} System.out.println(S[judge(X,A,B)]);...
Main.java:9: error: ';' expected String [] S = {"delicious","safe","dangerous"} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112129029|p03679|0
u112129029|p03679|0
codenet
Compile Error
450
v2_s550105251
s550105251
s550105251
p03679
p03679
u201448587
u201448587
1,499,739,301
2017-07-11T02:15:01
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x = sc.nextInt(); //賞味期限+x+1日でお腹を壊す int a = sc.nextInt(); //賞味期限のa日前に買った int b = sc.nextInt(); //買ってからb日後に食べた if(b - a > 0){ //賞味期限内に食べた System.out.println("del...
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
u201448587|p03679|0
u201448587|p03679|0
codenet
Compile Error
550
v2_s871597263
s871597263
s871597263
p03679
p03679
u289660449
u289660449
1,498,353,961
2017-06-25T01:26:01
Main.java
import java.util.*; public static void Main(String args[]){ Scanner scan = new Scanner(System.in); int x = Integer.parseInt(scan.next());//賞味期限を X 日まで過ぎた食品を食べてもお腹を壊しません int a = Integer.parseInt(scan.next());;//賞味期限の A 日前 int b = Integer.parseInt(scan.next());;//買ってから B 日後 if(a <= b){//賞味期限または期限を過ぎている in...
Main.java:2: 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
u289660449|p03679|0
u289660449|p03679|0
codenet
Compile Error
688
v2_s205650649
s205650649
s205650649
p03679
p03679
u289660449
u289660449
1,498,354,436
2017-06-25T01:33:56
Main.java
public class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int x = Integer.parseInt(scan.next());//賞味期限を X 日まで過ぎた食品を食べてもお腹を壊しません int a = Integer.parseInt(scan.next());//賞味期限の A 日前 int b = Integer.parseInt(scan.next());//買ってから B 日後 if(a <= b){//賞味期限または期限を過ぎている int ...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289660449|p03679|0
u289660449|p03679|0
codenet
Compile Error
689
v2_s191030421
s191030421
s191030421
p03679
p03679
u290689980
u290689980
1,512,516,247
2017-12-05T23:24:07
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); if (b <= a) { System.out.println("delicious"); return; } if (b-a <= x) { ...
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
u290689980|p03679|1
u290689980|p03679|1
codenet
Compile Error
440
v2_s843704029
s843704029
s843704029
p03679
p03679
u300009455
u300009455
1,498,596,887
2017-06-27T20:54:47
Main.java
import java.io.FileInputStream; import java.io.InputStream; import java.util.Scanner; public class Main { static Scanner sc; public static void main(String[] args)throws Exception{ InputStream in = System.in; sc = new Scanner(in); while(true){ int a, b, x; x = sc.nextInt(); a = sc.nextInt(); b = s...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u300009455|p03679|0
u300009455|p03679|0
codenet
Compile Error
557
v2_s373144069
s373144069
s373144069
p03679
p03679
u300009455
u300009455
1,498,597,045
2017-06-27T20:57:25
Main.java
import java.io.FileInputStream; import java.io.InputStream; import java.util.Scanner; public class Main { static Scanner sc; public static void main(String[] args)throws Exception{ InputStream in = System.in; sc = new Scanner(in); while(true){ int a, b, x; x = sc.nextInt(); a = sc.nextInt(); b = s...
Main.java:28: error: illegal start of statement } ^ Main.java:27: error: 'else' without 'if' } else ^ Main.java:30: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u300009455|p03679|0
u300009455|p03679|0
codenet
Compile Error
563
v2_s627046539
s627046539
s627046539
p03679
p03679
u307037394
u307037394
1,500,592,084
2017-07-20T23:08:04
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 b = 1; int c = 0; int d = 0; //回数カウンター //押されたボタ...
Main.java:12: error: illegal character: '\u3000' int d = 0;?//??????? ^ Main.java:16: error: illegal character: '\u3000' d += 1;??//?????? ^ Main.java:16: error: illegal character: '\u3000' d += 1;??//?????? ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u307037394|p03679|0
u307037394|p03679|0
codenet
Compile Error
656
v2_s556746273
s556746273
s556746273
p03679
p03679
u369883202
u369883202
1,498,352,703
2017-06-25T01:05:03
Main.java
public class Main{ public static void main(String[] args){ new Main().solve(); } void solve(){ Scanner sc=new Scanner(System.in); int X=sc.nextInt(); int A=sc.nextInt(); int B=sc.nextInt(); if(A>=B){ System.out.println("delicious"); }else if(B-A<=X){ System.out.println("safe"); }else{ Sys...
Main.java:8: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369883202|p03679|0
u369883202|p03679|0
codenet
Compile Error
360
v2_s366451999
s366451999
s366451999
p03679
p03679
u410363913
u410363913
1,502,241,091
2017-08-09T01:11:31
Main.java
public static void main(String[] args) throws IOException { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] lineArray = br.readLine().split(" ", 0); int d = Integer.parseInt(lineArray[0]); int a = Integer.parseInt(lineArr...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws IOException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410363913|p03679|0
u410363913|p03679|0
codenet
Compile Error
609
v2_s598171527
s598171527
s598171527
p03679
p03679
u410363913
u410363913
1,502,241,209
2017-08-09T01:13:29
Main.java
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] lineArray = br.readLine().split(" ", 0); int d = Integer.parseInt(lineArray[0]); int a = Integer.parseInt(lineArray[1]); int b = Integer.parseInt(lineArray[2]); if (b <= a) { S...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. BufferedReader br = new BufferedReader(new ^ (use --enable-preview to enable unnamed classes) Main.java:8: error: class, interface, enum, or record expected if (b <= a) { ^ Main.java:10: error: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410363913|p03679|0
u410363913|p03679|0
codenet
Compile Error
516
v2_s618788179
s618788179
s618788179
p03679
p03679
u410363913
u410363913
1,502,241,856
2017-08-09T01:24:16
Main.java
public static void main(String[] args) throws IOException { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] lineArray = br.readLine().split(" ", 0); int d = Integer.parseInt(lineArray[0]); int a = Integer.parseInt(lineArray[1...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws IOException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410363913|p03679|0
u410363913|p03679|0
codenet
Compile Error
605
v2_s887282068
s887282068
s887282068
p03679
p03679
u410363913
u410363913
1,502,241,901
2017-08-09T01:25:01
Main.java
public static void main(String[] args) throws IOException { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] lineArray = br.readLine().split(" ", 0); int d = Integer.parseInt(lineArray[0]); int a = Integer.parseInt(lineArray[1...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws IOException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410363913|p03679|0
u410363913|p03679|0
codenet
Compile Error
605
v2_s458218849
s458218849
s458218849
p03679
p03679
u427533942
u427533942
1,498,947,645
2017-07-01T22:20:45
Main.java
public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int A = scan.nextInt(); int B = scan.nextInt(); int delicious = B - A;//(賞味期限を過ぎた日数) if(X+1 < A){ System.out.println("dangerous"); } else if...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427533942|p03679|0
u427533942|p03679|0
codenet
Compile Error
457
v2_s141310249
s141310249
s141310249
p03679
p03679
u427533942
u427533942
1,498,947,677
2017-07-01T22:21:17
Main.java
public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int A = scan.nextInt(); int B = scan.nextInt(); int delicious = B - A;//(賞味期限を過ぎた日数) if(X+1 < A){ System.out.println("dangerous"); } else if...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427533942|p03679|0
u427533942|p03679|0
codenet
Compile Error
457
v2_s324099956
s324099956
s324099956
p03679
p03679
u434662823
u434662823
1,540,955,924
2018-10-31T03:18:44
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int x, a, b; cin >> x >> a >> b; string ans; if(b - a > x) ans = "dangerous"; else if(b - a <= x && b-a > 0) ans = "safe"; else ans = "delicious"; cout << ans; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:5: error: not a statement cin >> x >> a >> b; ^ Main.java:10: error: not a statement cout << ans; ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03679|0
u434662823|p03679|0
codenet
Compile Error
247