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_s158478080
s158478080
s158478080
p03107
p03107
u068098242
u068098242
1,551,776,707
2019-03-05T09:05:07
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int zer = 0, one = 0, len = s.length(); for (int i = 0; i < len; i++) if (s.charAt(i) == '0') cnt++; one = len-cnt; ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03107|0
u068098242|p03107|0
codenet
Compile Error
398
v2_s961697391
s961697391
s961697391
p03107
p03107
u068098242
u068098242
1,551,776,772
2019-03-05T09:06:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.next(); int zer = 0, one = 0, len = s.length(); for (int i = 0; i < len; i++) if (s.charAt(i) == '0') cnt++; one = len-cnt; ...
Main.java:12: error: cannot find symbol cnt++; ^ symbol: variable cnt location: class Main Main.java:13: error: cannot find symbol one = len-cnt; ^ symbol: variable cnt location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03107|0
u068098242|p03107|0
codenet
Compile Error
400
v2_s780649174
s780649174
s780649174
p03107
p03107
u218740431
u218740431
1,589,136,128
2020-05-10T18:42:08
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String s = sc.next(); int ans = 0; int zero = 0; int one = 0; for(int i=0;i<s.length();i++){if(s.charAt(i)=='0'){zero++;} else{one++;}} ans=Math.min(zero,one)*2; Syst...
Main.java:4: error: cannot find symbol String s = sc.next(); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03107|0
u218740431|p03107|0
codenet
Compile Error
346
v2_s919028819
s919028819
s919028819
p03107
p03107
u218740431
u218740431
1,589,136,221
2020-05-10T18:43:41
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String s = sc.next(); int ans = 0; int zero = 0; int one = 0; for(int i=0;i<s.length();i++){if(s.charAt(i)=='0'){zero++;} else{one++;} } ...
Main.java:4: error: cannot find symbol String s = sc.next(); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03107|0
u218740431|p03107|0
codenet
Compile Error
384
v2_s687486900
s687486900
s687486900
p03107
p03107
u226272113
u226272113
1,574,275,891
2019-11-20T18:51:31
Main.java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); String a=sc.next();; int n=a.length(); int d[]=new int[n]; int b=0,c=0; for(int i=0;i<n;i++) { d[i]=a.charAt(i)-48; if(d[i]==1)b++; else c++; } c*=2;b*=2; if(c<=b) System.out.print(c); else System.out.print(b); }
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
u226272113|p03107|0
u226272113|p03107|0
codenet
Compile Error
320
v2_s107872018
s107872018
s107872018
p03107
p03107
u226873514
u226873514
1,551,644,830
2019-03-03T20:27:10
Main.java
public class Main { public static void main(String... args) { // 入力 Scanner sc = new Scanner(System.in); String s = sc.next(); int n = 0; while(true) { int size = s.length(); s = s.replaceAll("01", ""); if (s.length() < size) { ...
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
u226873514|p03107|0
u226873514|p03107|0
codenet
Compile Error
691
v2_s999591754
s999591754
s999591754
p03107
p03107
u266624656
u266624656
1,555,853,066
2019-04-21T13:24:26
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(); int count = 0; String s1; String s2; boolean frag=true; while(frag){ if(N=<1){ break; } if(N==2)...
Main.java:12: error: illegal start of type if(N=<1){ ^ Main.java:12: error: ';' expected if(N=<1){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03107|0
u266624656|p03107|0
codenet
Compile Error
827
v2_s817211927
s817211927
s817211927
p03107
p03107
u266624656
u266624656
1,555,853,441
2019-04-21T13:30:41
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(); int count = 0; String s1; String s2; boolean frag=true; while(frag){ if(N =< 1){ break; } if(N =...
Main.java:12: error: illegal start of type if(N =< 1){ ^ Main.java:12: error: ';' expected if(N =< 1){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03107|0
u266624656|p03107|0
codenet
Compile Error
831
v2_s507435898
s507435898
s507435898
p03107
p03107
u266624656
u266624656
1,555,854,196
2019-04-21T13:43:16
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(); int count = 0; String s1; String s2; boolean frag=true; while(frag){ frag = false; if(N <= 1){ break; ...
Main.java:33: error: cannot find symbol frag = ture; ^ symbol: variable ture location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03107|0
u266624656|p03107|0
codenet
Compile Error
858
v2_s374250432
s374250432
s374250432
p03107
p03107
u313111801
u313111801
1,595,268,367
2020-07-20T18:06:07
Main.java
S=input() one=S.count("1") zero=S.count("0") ans=min(one,zero)*2 print(ans)
Main.java:1: error: class, interface, enum, or record expected S=input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03107|0
u313111801|p03107|0
codenet
Compile Error
76
v2_s418722602
s418722602
s418722602
p03107
p03107
u389834932
u389834932
1,586,073,301
2020-04-05T07:55:01
Main.java
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> int main(void){ char string[100001]; scanf("%s",string); long i=0,j=0,k; long count=0; int flag=-1; while(flag!=count){ //printf("(%d,%d)\n",flag,count); i=0; flag=count; while(string[i+1]!='...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:4: error: illegal character: '...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u389834932|p03107|0
u389834932|p03107|0
codenet
Compile Error
1,440
v2_s204091292
s204091292
s204091292
p03107
p03107
u440190560
u440190560
1,552,119,085
2019-03-09T08:11:25
CUnification.java
public class CUnification { public static void main(String[] args) throws Exception { try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ String S = i.readLine(); int a = S.length(); Long r = S.chars().parallel().filter(c -> c=='0').count(); Long b = a - r; ...
CUnification.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ ^ symbol: class BufferedReader location: class CUnification CUnification.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440190560|p03107|0
u440190560|p03107|0
codenet
Compile Error
379
v2_s815642823
s815642823
s815642823
p03107
p03107
u440190560
u440190560
1,552,119,111
2019-03-09T08:11:51
Main.java
public class Main { public static void main(String[] args) throws Exception { try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ String S = i.readLine(); int a = S.length(); Long r = S.chars().parallel().filter(c -> c=='0').count(); Long b = a - r; Sys...
Main.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440190560|p03107|0
u440190560|p03107|0
codenet
Compile Error
371
v2_s425705170
s425705170
s425705170
p03107
p03107
u492288342
u492288342
1,556,461,390
2019-04-28T14:23:10
Main.java
#include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <string> #include <algorithm> #include <vector> #include <set> #include <map> #include <list> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; #define rep(i, n) for (int i = 0; i < (int)(n); i+...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cstdio> ^ Main.java:3: error: illegal character: '#' #include <cstdlib> ^ Main.java:4: error: illegal character: '#' #include <cmath> ^ Main.java:5: error: illegal character: '#' #include <string> ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492288342|p03107|0
u492288342|p03107|0
codenet
Compile Error
871
v2_s381219127
s381219127
s381219127
p03107
p03107
u604068691
u604068691
1,574,551,512
2019-11-23T23:25:12
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N = S.length(); int a = 0,b = 0; for( int i=0; i<N; i++ ){ if( S.charAti(i)=='0' ){ a++; }else{ b++; } } System.out.println(M...
Main.java:11: error: cannot find symbol if( S.charAti(i)=='0' ){ ^ symbol: method charAti(int) location: variable S of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p03107|0
u604068691|p03107|0
codenet
Compile Error
342
v2_s499567865
s499567865
s499567865
p03107
p03107
u632953742
u632953742
1,566,481,071
2019-08-22T13:37:51
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //文字の入力 String ss = sc.next(); int ans = 0; Stack stack = new Stack(); for(int i = 0;i < ss.length();i++){ if(stack.isEmpty()){ stack.push(ss.charAt(i)); }else{ if(stack...
Main.java:10: error: cannot find symbol Stack stack = new Stack(); ^ symbol: class Stack location: class Main Main.java:10: error: cannot find symbol Stack stack = new Stack(); ^ symbol: class Stack location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632953742|p03107|0
u632953742|p03107|0
codenet
Compile Error
533
v2_s661673027
s661673027
s661673027
p03107
p03107
u632953742
u632953742
1,566,481,092
2019-08-22T13:38:12
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //文字の入力 String ss = sc.next(); int ans = 0; Stack stack = new Stack(); for(int i = 0;i < ss.length();i++){ if(stack.isEmpty()){ stack.push(ss.charAt(i)); }else{ if(stack...
Main.java:10: error: cannot find symbol Stack stack = new Stack(); ^ symbol: class Stack location: class Main Main.java:10: error: cannot find symbol Stack stack = new Stack(); ^ symbol: class Stack location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632953742|p03107|0
u632953742|p03107|0
codenet
Compile Error
533
v2_s082327521
s082327521
s082327521
p03107
p03107
u632953742
u632953742
1,566,481,140
2019-08-22T13:39:00
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //文字の入力 String ss = sc.next(); int ans = 0; MyStack<Character> stack = new MyStack<Character>(); for(int i = 0;i < ss.length();i++){ if(stack.isEmpty()){ stack.push(ss.charAt(i...
Main.java:10: error: cannot find symbol MyStack<Character> stack = new MyStack<Character>(); ^ symbol: class MyStack location: class Main Main.java:10: error: cannot find symbol MyStack<Character> stack = new MyStack<Character>(); ^ symbol: class MyStack location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632953742|p03107|0
u632953742|p03107|0
codenet
Compile Error
559
v2_s228533963
s228533963
s228533963
p03107
p03107
u647999897
u647999897
1,565,567,061
2019-08-11T23:44:21
Main.java
import java.util.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); char[] S = scn.nextLine().toCharArray(); LinkedList<Character> Slist = new LinkedList<>(); for (Character ch : S) { Slist.add(ch); } int count = 0;...
Main.java:36: error: duplicate class: Main public class Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u647999897|p03107|0
u647999897|p03107|0
codenet
Compile Error
1,139
v2_s991455586
s991455586
s991455586
p03107
p03107
u659156129
u659156129
1,596,620,763
2020-08-05T09:46:03
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(""); int[] a = new int[s.length()]; for(int i=0; i<s.length(); i++){ a[i] = (int)list[i]; } ...
Main.java:10: error: incompatible types: String cannot be converted to int a[i] = (int)list[i]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03107|0
u659156129|p03107|0
codenet
Compile Error
585
v2_s748497908
s748497908
s748497908
p03107
p03107
u666880357
u666880357
1,595,957,409
2020-07-28T17:30:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scaneer sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int countRed = 0; int countBlue = 0; for(int i = 0; i < S.length[]; i++){ if('0' == S[i]){ ...
Main.java:10: error: '.class' expected for(int i = 0; i < S.length[]; i++){ ^ Main.java:15: error: '.class' expected for(int i = 0; i < S.length[]; i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u666880357|p03107|0
u666880357|p03107|0
codenet
Compile Error
554
v2_s992682696
s992682696
s992682696
p03107
p03107
u666880357
u666880357
1,595,957,472
2020-07-28T17:31:12
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scaneer sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int countRed = 0; int countBlue = 0; for(int i = 0; i < S.length; i++){ if('0' == S[i]){ ...
Main.java:5: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class Main Main.java:21: error: package system does not exist system.out.println(Math.min(countRed,countBlue)*2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u666880357|p03107|0
u666880357|p03107|0
codenet
Compile Error
550
v2_s513557678
s513557678
s513557678
p03107
p03107
u666880357
u666880357
1,595,957,519
2020-07-28T17:31:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scaneer sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int countRed = 0; int countBlue = 0; for(int i = 0; i < S.length(); i++){ if('0' == S[i]){ ...
Main.java:5: error: cannot find symbol Scaneer sc = new Scanner(System.in); ^ symbol: class Scaneer location: class Main Main.java:10: error: cannot find symbol for(int i = 0; i < S.length(); i++){ ^ symbol: method length() location: variable S of type char[] Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u666880357|p03107|0
u666880357|p03107|0
codenet
Compile Error
554
v2_s030884085
s030884085
s030884085
p03107
p03107
u666880357
u666880357
1,595,957,619
2020-07-28T17:33:39
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int countRed = 0; int countBlue = 0; for(int i = 0; i < S.length(); i++){ if('0' == S[i]){ ...
Main.java:10: error: cannot find symbol for(int i = 0; i < S.length(); i++){ ^ symbol: method length() location: variable S of type char[] Main.java:15: error: cannot find symbol for(int i = 0; i < S.length(); i++){ ^ symbol: method lengt...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u666880357|p03107|0
u666880357|p03107|0
codenet
Compile Error
554
v2_s817357079
s817357079
s817357079
p03107
p03107
u666880357
u666880357
1,595,957,693
2020-07-28T17:34:53
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] S = sc.next().toCharArray(); int countRed = 0; int countBlue = 0; for(int i = 0; i < S.length; i++){ if('0' == S[i]){ ...
Main.java:21: error: package system does not exist system.out.println(Math.min(countRed,countBlue)*2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u666880357|p03107|0
u666880357|p03107|0
codenet
Compile Error
550
v2_s824729461
s824729461
s824729461
p03107
p03107
u676749446
u676749446
1,589,575,378
2020-05-15T20:42:58
Main.java
import java.io.*; import java.util.*; class Main{ static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { char[] s = new Scanner(System.in).next().toCharArra...
Main.java:18: error: cannot find symbol saori.close(); ^ symbol: variable saori location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676749446|p03107|0
u676749446|p03107|0
codenet
Compile Error
2,544
v2_s348714307
s348714307
s348714307
p03107
p03107
u740667034
u740667034
1,551,644,788
2019-03-03T20:26:28
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); String str=scan.next(); int count=0; int dount=0; for(int i=0;i<str.length;i++){ if(str[i].equals("0")){ count++; }else{ dount++; } } count=M...
Main.java:8: error: cannot find symbol for(int i=0;i<str.length;i++){ ^ symbol: variable length location: variable str of type String Main.java:9: error: array required, but String found if(str[i].equals("0")){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03107|0
u740667034|p03107|0
codenet
Compile Error
381
v2_s249769958
s249769958
s249769958
p03107
p03107
u803314854
u803314854
1,551,653,817
2019-03-03T22:56:57
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String po=sc.next(); int length=po.length(); String p=po.replace("1",""); po=po.replace("0",""); System.out.println(Math.min(p.length),po.length))*2); } }
Main.java:9: error: ';' expected System.out.println(Math.min(p.length),po.length))*2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03107|0
u803314854|p03107|0
codenet
Compile Error
278
v2_s167661530
s167661530
s167661530
p03107
p03107
u803314854
u803314854
1,551,653,877
2019-03-03T22:57:57
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String po=sc.next(); int length=po.length(); String p=po.replace("1",""); po=po.replace("0",""); System.out.println(Math.min(p.length()),po.length()))*2); } }
Main.java:9: error: ';' expected System.out.println(Math.min(p.length()),po.length()))*2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03107|0
u803314854|p03107|0
codenet
Compile Error
282
v2_s760522132
s760522132
s760522132
p03107
p03107
u849266650
u849266650
1,551,648,120
2019-03-03T21:22:00
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String word = sc.next(); String[] words = word.split(""); int num0 = 0; int num1 = 0; for (int n = 0; n < words.length; n++) { if (words[n].equals("0")) { ...
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
u849266650|p03107|0
u849266650|p03107|0
codenet
Compile Error
666
v2_s902918546
s902918546
s902918546
p03107
p03107
u941274418
u941274418
1,585,257,691
2020-03-26T21:21:31
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 oneCnt = 0; int zeroCnt = 0; for(char c : s.toString()) if(c == '0') zeroCnt++; else oneCnt++; System.out.println(Math....
Main.java:10: error: for-each not applicable to expression type for(char c : s.toString()) ^ required: array or java.lang.Iterable found: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p03107|0
u941274418|p03107|0
codenet
Compile Error
352
v2_s233821557
s233821557
s233821557
p03107
p03107
u980960666
u980960666
1,551,698,938
2019-03-04T11:28:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Sccaner sc = new Scanner(); String s = sc.next(); int cnt0 = 0; int cnt1 = 0; for(int i=0; i<s.length(); i++){ if( s.charAt(i) == '0') ++cnt0; else ++cnt1; } System.out.println(Math.min(cnt0, cnt1))...
Main.java:5: error: cannot find symbol Sccaner sc = new Scanner(); ^ symbol: class Sccaner location: class Main Main.java:5: error: no suitable constructor found for Scanner(no arguments) Sccaner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980960666|p03107|0
u980960666|p03107|0
codenet
Compile Error
327
v2_s448350232
s448350232
s448350232
p03108
p03108
u059234158
u059234158
1,551,715,857
2019-03-04T16:10:57
Main.java
object Main{ def main(A:Array[String]){ val s = new java.util.Scanner(System.in) val n,m=s.nextInt val u=new UF(n) val a=Seq.fill(m)((s.nextInt-1,s.nextInt-1)).reverse.map(o=>{ if(u.isConnected(o _1,o _2)) 0 else{ val t=u.groupSize(o _1)*u.groupSize(o _2) u.connect(o _1,o _2) t } })....
Main.java:1: error: class, interface, enum, or record expected object Main{ ^ Main.java:19: error: '{' expected class UF(n:Int){ ^ Main.java:20: error: ';' expected val a = Array.fill(n)(-1) ^ Main.java:21: error: <identifier> expected def root(t:Int):Int = ^ Main.java:22: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p03108|0
u059234158|p03108|0
codenet
Compile Error
835
v2_s567729610
s567729610
s567729610
p03108
p03108
u068098242
u068098242
1,551,779,607
2019-03-05T09:53:27
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int[] l = new int[m]; int[] r = new int[m]; for (int i = m-1; i >= 0; i--) { l[i] = in.nextInt(); r[i] = in.nextI...
Main.java:59: error: cannot find symbol s--; ^ symbol: variable s location: class DSU 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03108|0
u068098242|p03108|0
codenet
Compile Error
1,383
v2_s760233744
s760233744
s760233744
p03108
p03108
u068098242
u068098242
1,551,779,693
2019-03-05T09:54:53
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int[] l = new int[m]; int[] r = new int[m]; for (int i = m-1; i >= 0; i--) { l[i] = in.nextInt()-1; r[i] = in.nex...
Main.java:59: error: cannot find symbol s--; ^ symbol: variable s location: class DSU 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03108|0
u068098242|p03108|0
codenet
Compile Error
1,387
v2_s909088537
s909088537
s909088537
p03108
p03108
u149419355
u149419355
1,551,649,264
2019-03-03T21:41:04
Main.java
class Bridge { int start, end; public Bridge(int start, int end) { this.start = start; this.end = end; } public Set<Integer> toSet() { Set<Integer> s = new HashSet<>(); s.add(this.start); s.add(this.end); return s; } } public class Main { public...
Main.java:9: error: cannot find symbol public Set<Integer> toSet() { ^ symbol: class Set location: class Bridge Main.java:10: error: cannot find symbol Set<Integer> s = new HashSet<>(); ^ symbol: class Set location: class Bridge Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u149419355|p03108|0
u149419355|p03108|0
codenet
Compile Error
1,935
v2_s549924464
s549924464
s549924464
p03108
p03108
u149419355
u149419355
1,551,649,308
2019-03-03T21:41:48
Main.java
class Bridge { int start, end; public Bridge(int start, int end) { this.start = start; this.end = end; } public Set<Integer> toSet() { Set<Integer> s = new HashSet<>(); s.add(this.start); s.add(this.end); return s; } } public class Main { public...
Main.java:9: error: cannot find symbol public Set<Integer> toSet() { ^ symbol: class Set location: class Bridge Main.java:10: error: cannot find symbol Set<Integer> s = new HashSet<>(); ^ symbol: class Set location: class Bridge Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u149419355|p03108|0
u149419355|p03108|0
codenet
Compile Error
1,935
v2_s106088177
s106088177
s106088177
p03108
p03108
u233586402
u233586402
1,551,711,985
2019-03-04T15:06:25
Main.java
import java.util.*; import com.sun.swing.internal.plaf.basic.resources.basic; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[m]; int b[] = new int[m]; fo...
Main.java:3: error: package com.sun.swing.internal.plaf.basic.resources is not visible import com.sun.swing.internal.plaf.basic.resources.basic; ^ (package com.sun.swing.internal.plaf.basic.resources is declared in module java.desktop, which does not export it) Main.java:41: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233586402|p03108|0
u233586402|p03108|0
codenet
Compile Error
2,825
v2_s199981770
s199981770
s199981770
p03108
p03108
u233586402
u233586402
1,551,712,030
2019-03-04T15:07:10
Main.java
import java.util.*; import com.sun.swing.internal.plaf.basic.resources.basic; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int a[] = new int[m]; int b[] = new int[m]; fo...
Main.java:3: error: package com.sun.swing.internal.plaf.basic.resources is not visible import com.sun.swing.internal.plaf.basic.resources.basic; ^ (package com.sun.swing.internal.plaf.basic.resources is declared in module java.desktop, which does not export it) Main.java:60: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233586402|p03108|0
u233586402|p03108|0
codenet
Compile Error
2,825
v2_s411291701
s411291701
s411291701
p03108
p03108
u245815044
u245815044
1,587,055,075
2020-04-16T16:37:55
Main.java
import java.util.Scanner; public class Main { static int n,m; static int[] a, b; static int[] par; //parent of an element static int[] rank; //rank of an element static long[] size; static long score = 0; static void union(int a, int b) { //when union-ing 2 different elements, the root of one of the two e...
Main.java:20: error: incompatible types: possible lossy conversion from long to int int sa = size[ra]; ^ Main.java:58: error: incompatible types: int[] cannot be converted to long[] size = new int[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u245815044|p03108|0
u245815044|p03108|0
codenet
Compile Error
2,323
v2_s444504180
s444504180
s444504180
p03108
p03108
u245815044
u245815044
1,587,055,092
2020-04-16T16:38:12
Main.java
import java.util.Scanner; public class Main { static int n,m; static int[] a, b; static int[] par; //parent of an element static int[] rank; //rank of an element static long[] size; static long score = 0; static void union(int a, int b) { //when union-ing 2 different elements, the root of one of the two e...
Main.java:20: error: incompatible types: possible lossy conversion from long to int int sa = size[ra]; ^ Main.java:58: error: incompatible types: int[] cannot be converted to long[] size = new int[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u245815044|p03108|0
u245815044|p03108|0
codenet
Compile Error
2,323
v2_s728217779
s728217779
s728217779
p03108
p03108
u245815044
u245815044
1,587,055,113
2020-04-16T16:38:33
Main.java
import java.util.Scanner; public class Main { static int n,m; static int[] a, b; static int[] par; //parent of an element static int[] rank; //rank of an element static long[] size; static long score = 0; static void union(int a, int b) { //when union-ing 2 different elements, the root of one of the two e...
Main.java:20: error: incompatible types: possible lossy conversion from long to int int sa = size[ra]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u245815044|p03108|0
u245815044|p03108|0
codenet
Compile Error
2,324
v2_s915600504
s915600504
s915600504
p03108
p03108
u264547643
u264547643
1,576,286,669
2019-12-14T01:24:29
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.InputStream; /** * Built using CHel...
Main.java:44: error: array required, but int found long temp2 = (long) d.csize[d.find(a[i][0])] * (long) d.csize[d.find(a[i][1])]; ^ Main.java:44: error: array required, but int found long temp2 = (long) d.csize[d.find(a[i][0])] * (long) d.csize...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264547643|p03108|0
u264547643|p03108|0
codenet
Compile Error
3,954
v2_s156426384
s156426384
s156426384
p03108
p03108
u264547643
u264547643
1,576,286,781
2019-12-14T01:26:21
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.InputStream; /** * Built using CHel...
Main.java:44: error: array required, but int found long temp2 = (long) d.csize[d.find(a[i][0])] * (long) d.csize[d.find(a[i][1])]; ^ Main.java:44: error: array required, but int found long temp2 = (long) d.csize[d.find(a[i][0])] * (long) d.csize...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264547643|p03108|0
u264547643|p03108|0
codenet
Compile Error
3,968
v2_s056912558
s056912558
s056912558
p03108
p03108
u273816974
u273816974
1,559,144,950
2019-05-29T15:49:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); UnionFind uf = new UnionFind(n); int[][] xy = new int[m][2];...
Main.java:42: error: incompatible types: possible lossy conversion from long to int for (int a : answer) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03108|0
u273816974|p03108|0
codenet
Compile Error
2,381
v2_s765934883
s765934883
s765934883
p03108
p03108
u273816974
u273816974
1,559,145,167
2019-05-29T15:52:47
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); UnionFind uf = new UnionFind(n); int[][] xy = new int[m][2];...
Main.java:35: error: incompatible types: possible lossy conversion from long to int int sizex = size[rx]; ^ Main.java:36: error: incompatible types: possible lossy conversion from long to int int sizey = size[ry]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03108|0
u273816974|p03108|0
codenet
Compile Error
2,384
v2_s307311987
s307311987
s307311987
p03108
p03108
u393868719
u393868719
1,566,932,250
2019-08-27T18:57:30
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputS...
Main.java:39: error: cannot find symbol if(!unionfind.u.same(id1, id2)){ ^ symbol: variable u location: class unionfind Main.java:40: error: cannot find symbol ans -= unionfind.u.size(id1) * unionfind.u.size(id2); ^ symbol: v...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u393868719|p03108|0
u393868719|p03108|0
codenet
Compile Error
2,471
v2_s782766226
s782766226
s782766226
p03108
p03108
u434662823
u434662823
1,551,695,657
2019-03-04T10:34:17
Main.java
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), m = sc.nextInt(); int[] a = new int[m], b = new int[m]; long[] ans = new long[m]; ans[m-1] = n * (n-1) / 2; UnionFindTree tree = n...
Main.java:20: error: '.class' expected ans[i-1] = ans[i] - (long((long)(tree.sizeOf(a[i])) * (long)(tree.sizeOf(b[i]))); ^ Main.java:20: error: not a statement ans[i-1] = ans[i] - (long((long)(tree.sizeOf(a[i])) * (long)(tree.sizeOf(b[i]))); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03108|0
u434662823|p03108|0
codenet
Compile Error
2,049
v2_s774630973
s774630973
s774630973
p03108
p03108
u451080461
u451080461
1,551,653,042
2019-03-03T22:44:02
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { Main d = new Main(); long[] answer = d.solve(); int M = answer.length; for (int i = 0; i < M; i++) { ...
Main.java:29: error: ')' or ',' expected long current_answer = new BigInteger(Integer.toString(N)).multiply(new BigInteger(Integer.toString(N - 1)).divide(new BigInteger("2")).longValue(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451080461|p03108|0
u451080461|p03108|0
codenet
Compile Error
3,028
v2_s830569459
s830569459
s830569459
p03108
p03108
u504228740
u504228740
1,551,705,988
2019-03-04T13:26:28
Main.java
import java.util.Scanner; import java.awt.Point; public class Main{ static boolean r; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Point[] g=new Point[m]; int[] ans=new int[m]; ans[m-1]=(n*(n-1))/2; for(int i = 0; i<m; i++){ ...
Main.java:55: error: cannot find symbol r=ture; ^ symbol: variable ture location: class Unionfind 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p03108|1
u504228740|p03108|1
codenet
Compile Error
1,392
v2_s323108733
s323108733
s323108733
p03108
p03108
u552255052
u552255052
1,552,541,878
2019-03-14T05:37:58
Main.java
static class pair{ int a,b; public pair(int o, int s){ a = o; b = s; } } static int[] parent; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int totalpair...
Main.java:8: error: unnamed classes are a preview feature and are disabled by default. static int[] parent; ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552255052|p03108|0
u552255052|p03108|0
codenet
Compile Error
1,673
v2_s170413607
s170413607
s170413607
p03108
p03108
u752146501
u752146501
1,551,685,233
2019-03-04T07:40:33
DDecayedBridges.java
package main.java.tasks; import FastIO.FastScanner; import java.io.PrintWriter; public class DDecayedBridges { public void solve(int testNumber, FastScanner in, PrintWriter out) { int N = in.nextInt(); int M = in.nextInt(); int[] A = new int[M]; int[] B = new int[M]; for (i...
DDecayedBridges.java:3: error: package FastIO does not exist import FastIO.FastScanner; ^ DDecayedBridges.java:7: error: cannot find symbol public void solve(int testNumber, FastScanner in, PrintWriter out) { ^ symbol: class FastScanner location: class DDecay...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03108|0
u752146501|p03108|0
codenet
Compile Error
2,786
v2_s250168562
s250168562
s250168562
p03108
p03108
u791317953
u791317953
1,600,189,959
2020-09-15T17:12:39
Main.java
import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args){ int n = sc.nextInt(); int m = sc.nextInt(); int[] a=new int[m]; int[] b=new int[m]; long[] ans=new long[m]; Unionfind uf = new Union...
Main.java:10: error: non-static variable this cannot be referenced from a static context Unionfind uf = new Unionfind(n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791317953|p03108|0
u791317953|p03108|0
codenet
Compile Error
1,755
v2_s561936896
s561936896
s561936896
p03108
p03108
u951672936
u951672936
1,561,571,831
2019-06-26T17:57:11
Main.java
/** * Created at 19:15 on 2019-06-26 */ import com.sun.xml.internal.xsom.XSWildcard; import java.io.*; import java.util.*; public class Main implements Runnable { static FastScanner sc = new FastScanner(); static int[] dx = {0, 1, 0, -1}; static int[] dy = {-1, 0, 1, 0}; static long MOD = (long) (1e9 + ...
Main.java:5: error: package com.sun.xml.internal.xsom does not exist import com.sun.xml.internal.xsom.XSWildcard; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951672936|p03108|0
u951672936|p03108|0
codenet
Compile Error
7,687
v2_s345392861
s345392861
s345392861
p03109
p03109
u111225950
u111225950
1,551,039,267
2019-02-24T20:14:27
Main.java
import java.util.Scanner; String tbd= "TBD"; String heisei = "Heisei"; Scanner inputDate = new Scanner(System.in); String[] splitDate = inputDate.split("/", 0); int year = Integer.parseInt(splitDate[0]); int month = Integer.parseInt(splitDate[1]); int day = Integer.parseInt(splitDate[2]); if(year <= 2018) return he...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. String tbd= "TBD"; ^ (use --enable-preview to enable unnamed classes) Main.java:13: error: class, interface, enum, or record expected if(year <= 2018) return heisei; ^ Main.java:14: error: class, interface, enum, or record expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u111225950|p03109|0
u111225950|p03109|0
codenet
Compile Error
395
v2_s117863737
s117863737
s117863737
p03109
p03109
u140306344
u140306344
1,551,038,756
2019-02-24T20:05:56
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new String...
Main.java:17: error: ')' expected if(y>2019 || (y<=2019 && (m>5)){ ^ Main.java:22: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140306344|p03109|0
u140306344|p03109|0
codenet
Compile Error
588
v2_s173594079
s173594079
s173594079
p03109
p03109
u140306344
u140306344
1,551,038,782
2019-02-24T20:06:22
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new String...
Main.java:17: error: ')' expected if(y>2019 || (y<=2019 && (m>5)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140306344|p03109|0
u140306344|p03109|0
codenet
Compile Error
591
v2_s548325547
s548325547
s548325547
p03109
p03109
u202826462
u202826462
1,578,653,153
2020-01-10T10:45:53
Main.java
s = input() if s<= '2019/04/30': print("Heisei") else: print("TBD")
Main.java:1: error: class, interface, enum, or record expected s = input() ^ Main.java:3: error: unclosed character literal if s<= '2019/04/30': ^ Main.java:3: error: unclosed character literal if s<= '2019/04/30': ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202826462|p03109|0
u202826462|p03109|0
codenet
Compile Error
76
v2_s993952555
s993952555
s993952555
p03109
p03109
u209719129
u209719129
1,552,896,267
2019-03-18T08:04:27
Main.java
/** Still TBD * */ object Main extends App { final private val DELIMITER = "/" val input = io.StdIn.readLine.split(DELIMITER) val year = input(0).toInt val month = input(1).toInt val day = input(2).toInt if (year > 2019) println("TBD") else if (year == 2019 && month > 5) println("TBD") else if (yea...
Main.java:4: error: class, interface, enum, or record expected object Main extends App { ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. final private val DELIMITER = "/" ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: ';' expected fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209719129|p03109|0
u209719129|p03109|0
codenet
Compile Error
399
v2_s251808606
s251808606
s251808606
p03109
p03109
u222822036
u222822036
1,567,013,572
2019-08-28T17:32:52
Main.java
function Main(input) { input = new Date(input).getTime(); var check = new Date("2019/04/30").getTime(); console.log((input <= check) ? "Heisei" : "TBD"); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. function Main(input) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected function Main(input) { ^ Main.java:7: error: class, interface, enum, or record expected Main(req...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03109|0
u222822036|p03109|0
codenet
Compile Error
221
v2_s740131926
s740131926
s740131926
p03109
p03109
u240229631
u240229631
1,551,039,121
2019-02-24T20:12:01
Main.java
import java.util.*; import java.text.*; public Class Main{ public static void main(String args[]) { SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); Date heisei = f.parse("2019/04/30"); Date d = f.parse(args[0]); if(d.after(heisei)) { System.out.println("TBD"); } else { Sy...
Main.java:4: error: class, interface, enum, or record expected public Class Main{ ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]) { ^ (use --enable-preview to enable unnamed classes) Main.java:16: error: class, in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u240229631|p03109|0
u240229631|p03109|0
codenet
Compile Error
359
v2_s405055772
s405055772
s405055772
p03109
p03109
u240229631
u240229631
1,551,040,015
2019-02-24T20:26:55
Main.java
import java.util.*; import java.text.*; public class Main{ public static void main(String args[]) { SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); Date heisei = f.parse("2019/04/30"); Date d = f.parse(args[0]); if(d.after(heisei)) { System.out.println("TBD"); } else { S...
Main.java:7: error: unreported exception ParseException; must be caught or declared to be thrown Date heisei = f.parse("2019/04/30"); ^ Main.java:8: error: unreported exception ParseException; must be caught or declared to be thrown Date d = f.parse(args[0]); ^ 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u240229631|p03109|0
u240229631|p03109|0
codenet
Compile Error
360
v2_s639677017
s639677017
s639677017
p03109
p03109
u246907970
u246907970
1,589,921,897
2020-05-19T20:58:17
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = a.substring(5,7); int n = Interger.parseInt(a); i...
Main.java:11: error: cannot find symbol int n = Interger.parseInt(a); ^ symbol: variable Interger location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u246907970|p03109|0
u246907970|p03109|0
codenet
Compile Error
423
v2_s071719527
s071719527
s071719527
p03109
p03109
u266624656
u266624656
1,555,858,414
2019-04-21T14:53:34
Main.java
import java.util.*; import java.text.SimpleDateFormat; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd"); Date d = f.parse(s); Date dh = f.parse("2019/04/30"); if(d.getTi...
Main.java:8: error: unreported exception ParseException; must be caught or declared to be thrown Date d = f.parse(s); ^ Main.java:9: error: unreported exception ParseException; must be caught or declared to be thrown Date dh = f.parse("2019/04/30"); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03109|0
u266624656|p03109|0
codenet
Compile Error
433
v2_s034687678
s034687678
s034687678
p03109
p03109
u273260238
u273260238
1,589,476,120
2020-05-14T17:08:40
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String n = sc.nextInt(); System.out.println(n.substring(3,5)); } }
Main.java:5: error: incompatible types: int cannot be converted to String String n = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273260238|p03109|0
u273260238|p03109|0
codenet
Compile Error
186
v2_s236957994
s236957994
s236957994
p03109
p03109
u273260238
u273260238
1,589,476,155
2020-05-14T17:09:15
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String n = sc.nextString(); System.out.println(n.substring(3,5)); } }
Main.java:5: error: cannot find symbol String n = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273260238|p03109|0
u273260238|p03109|0
codenet
Compile Error
189
v2_s188344856
s188344856
s188344856
p03109
p03109
u304185677
u304185677
1,551,366,647
2019-02-28T15:10:47
StillTBD.java
public class StillTBD { public static void main(String[] args) throws ParseException { Scanner scanner = new Scanner(System.in); String date = scanner.next(); int year = Integer.parseInt(date.substring(0, 4)); int month = Integer.parseInt(date.substring(5, 7)); int day = Integer.parseInt(date.substring(...
StillTBD.java:2: error: cannot find symbol public static void main(String[] args) throws ParseException { ^ symbol: class ParseException location: class StillTBD StillTBD.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u304185677|p03109|1
u304185677|p03109|0
codenet
Compile Error
453
v2_s637252972
s637252972
s637252972
p03109
p03109
u345932819
u345932819
1,551,716,469
2019-03-04T16:21:09
Main.java
package main import ( "fmt" "time" ) const ( yyyymmdd = "2006/01/02" ) func main() { var dateS, res string _, _ = fmt.Scan(&dateS) res = solveA(dateS) fmt.Println(res) } func solveA(dateS string) string { t1, _ := time.Parse(yyyymmdd, dateS) t2, _ := time.Parse(yyyymmdd, "2019/04/30") if t1.Unix() <= t2...
Main.java:1: error: ';' expected package main ^ Main.java:3: error: <identifier> expected import ( ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p03109|1
u345932819|p03109|1
codenet
Compile Error
378
v2_s635029713
s635029713
s635029713
p03109
p03109
u369190981
u369190981
1,551,038,853
2019-02-24T20:07:33
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x =sc.next(); if(x<=2019/04/30)System.out.println("Heisei"); else System.out.println("TBD"); } }
Main.java:6: error: incompatible types: String cannot be converted to int int x =sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
250
v2_s765251194
s765251194
s765251194
p03109
p03109
u369190981
u369190981
1,551,038,887
2019-02-24T20:08:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String x =sc.next(); if(x<=2019/04/30)System.out.println("Heisei"); else System.out.println("TBD"); } }
Main.java:7: error: bad operand types for binary operator '<=' if(x<=2019/04/30)System.out.println("Heisei"); ^ first type: String second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
254
v2_s388219898
s388219898
s388219898
p03109
p03109
u369190981
u369190981
1,551,039,305
2019-02-24T20:15:05
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); try { String x =sc.Int(); SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); Date date = sdFormat.parse(strDate); String...
Main.java:16: error: ';' expected System.out.println("TBD") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
595
v2_s888198472
s888198472
s888198472
p03109
p03109
u369190981
u369190981
1,551,039,328
2019-02-24T20:15:28
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); try { String x =sc.Int(); SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); Date date = sdFormat.parse(strDate); String...
Main.java:8: error: cannot find symbol String x =sc.Int(); ^ symbol: method Int() location: variable sc of type Scanner Main.java:9: error: cannot find symbol SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); ^ symbol: class SimpleDateFormat ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
596
v2_s411558240
s411558240
s411558240
p03109
p03109
u369190981
u369190981
1,551,039,434
2019-02-24T20:17:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); try { String x =sc.next(); SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); Date date = sdFormat.parse(strDate); Strin...
Main.java:9: error: cannot find symbol SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); ^ symbol: class SimpleDateFormat location: class Main Main.java:9: error: cannot find symbol SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
597
v2_s047072167
s047072167
s047072167
p03109
p03109
u369190981
u369190981
1,551,039,562
2019-02-24T20:19:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x =sc.nextInt(); if(x<="2019/04/30")System.out.println("Heisei"); else System.out.println("TBD"); } }
Main.java:7: error: bad operand types for binary operator '<=' if(x<="2019/04/30")System.out.println("Heisei"); ^ first type: int second type: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
255
v2_s297996892
s297996892
s297996892
p03109
p03109
u369190981
u369190981
1,551,039,724
2019-02-24T20:22:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String x =sc.nextInt(); if(x<="2019/04/30")System.out.println("Heisei"); else System.out.println("TBD"); } }
Main.java:6: error: incompatible types: int cannot be converted to String String x =sc.nextInt(); ^ Main.java:7: error: bad operand types for binary operator '<=' if(x<="2019/04/30")System.out.println("Heisei"); ^ first type: String second type: String 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03109|0
u369190981|p03109|0
codenet
Compile Error
258
v2_s251113476
s251113476
s251113476
p03109
p03109
u389979392
u389979392
1,552,251,824
2019-03-10T21:03:44
Main.java
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; public static void main(String[] args) throws ParseException { Scanner sc=new Scanner(System.in); String S=sc.next(); SimpleDateFormat s=new SimpleDateFormat("yyyy/mm/dd"); Date date1=s.parse(S); Date date=s.parse("2019/04/30"...
Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws ParseException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u389979392|p03109|0
u389979392|p03109|0
codenet
Compile Error
445
v2_s591183515
s591183515
s591183515
p03109
p03109
u431125128
u431125128
1,573,037,686
2019-11-06T10:54:46
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final String S=sc.next(); String[] s=S.split("/"); int y=Integer.parseInt(s[0]); int m=Integer.parseInt(s[1]); int d=Integer.parseInt(s[2]); boolean flg=false; if(y<...
Main.java:22: error: cannot find symbol System.out.prinln("TBD"); ^ symbol: method prinln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p03109|0
u431125128|p03109|0
codenet
Compile Error
510
v2_s515792832
s515792832
s515792832
p03109
p03109
u463844166
u463844166
1,578,489,657
2020-01-08T13:20:57
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String[] data = new String[2]; data[0] = "2019/04/30"; data[1] = sc.nextLine(); Arrays.sore(data); if (data[1].equals("2019/04/30")) { System.out.println("Heisei"); ...
Main.java:10: error: cannot find symbol Arrays.sore(data); ^ symbol: method sore(String[]) location: class Arrays 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463844166|p03109|0
u463844166|p03109|0
codenet
Compile Error
376
v2_s008057247
s008057247
s008057247
p03109
p03109
u480694630
u480694630
1,551,053,506
2019-02-25T00:11:46
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); Date formatDate = sdf.parse(sdate); if(formatDate <= 2019/04/30){ Syste...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
415
v2_s174243625
s174243625
s174243625
p03109
p03109
u480694630
u480694630
1,551,053,624
2019-02-25T00:13:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); Date formatDate = sdf.parse(sdate); if(formatDate <= 2019...
Main.java:9: error: cannot find symbol SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); ^ symbol: class SimpleDateFormat location: class Main Main.java:9: error: cannot find symbol SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); ^ symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
438
v2_s829199017
s829199017
s829199017
p03109
p03109
u480694630
u480694630
1,551,053,790
2019-02-25T00:16:30
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); Date formatDate = sdf.parse(sdate); i...
Main.java:14: error: illegal character: '\uff08' if(formatDate.before?2019/04/30?){ ^ Main.java:14: error: illegal character: '\uff09' if(formatDate.before?2019/04/30?){ ^ Main.java:16: error: 'else' without 'if' }else{ ^ 3 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
467
v2_s609781706
s609781706
s609781706
p03109
p03109
u480694630
u480694630
1,551,054,051
2019-02-25T00:20:51
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); Date formatDate = sdf.parse(sdate); Dat...
Main.java:15: error: ')' expected if(formatDate.before(heiseiDate){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
542
v2_s679372099
s679372099
s679372099
p03109
p03109
u480694630
u480694630
1,551,054,078
2019-02-25T00:21:18
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); Date formatDate = sdf.parse(sdate); Dat...
Main.java:10: error: cannot find symbol SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); ^ symbol: class SimpleDateFormat location: class Main Main.java:10: error: cannot find symbol SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); ^ sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
543
v2_s379516438
s379516438
s379516438
p03109
p03109
u480694630
u480694630
1,551,055,088
2019-02-25T00:38:08
datetest.java
import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class datetest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); ...
datetest.java:13: error: unreported exception ParseException; must be caught or declared to be thrown Date formatDate = sdf.parse(sdate); ^ datetest.java:14: error: unreported exception ParseException; must be caught or declared to be thrown Date heiseiDate = sdf....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
568
v2_s760015407
s760015407
s760015407
p03109
p03109
u480694630
u480694630
1,551,055,160
2019-02-25T00:39:20
Main.java
import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String sdate = sc.next(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy/mm/dd"); D...
Main.java:13: error: unreported exception ParseException; must be caught or declared to be thrown Date formatDate = sdf.parse(sdate); ^ Main.java:14: error: unreported exception ParseException; must be caught or declared to be thrown Date heiseiDate = sdf.parse("2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
564
v2_s592250715
s592250715
s592250715
p03109
p03109
u480694630
u480694630
1,551,055,434
2019-02-25T00:43:54
Main.java
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class Main { public static void main(String[] args) { Date formatDate; Date heiseiDate; Scanner sc = new Scanner(System.in); String sdate = sc.ne...
Main.java:25: error: variable formatDate might not have been initialized if(formatDate.before(heiseiDate)){ ^ Main.java:25: error: variable heiseiDate might not have been initialized if(formatDate.before(heiseiDate)){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480694630|p03109|0
u480694630|p03109|0
codenet
Compile Error
770
v2_s779149306
s779149306
s779149306
p03109
p03109
u547167033
u547167033
1,561,294,604
2019-06-23T12:56:44
Main.java
import java.util.*; import java.time.*; import java.time.format.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd"); LocalDate d = LocalDate.parse...
Main.java:8: error: cannot find symbol DateTimeFormatter = ^ symbol: variable DateTimeFormatter location: class Main Main.java:11: error: cannot find symbol LocalDate.parse(str,f); ^ symbol: variable f location: class Main Main.java:13: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03109|0
u547167033|p03109|0
codenet
Compile Error
504
v2_s535163342
s535163342
s535163342
p03109
p03109
u563853779
u563853779
1,552,581,080
2019-03-14T16:31:20
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Scanner; public void Main() throws IOException { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); ...
Main.java:8: error: unnamed classes are a preview feature and are disabled by default. public void Main() throws IOException { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563853779|p03109|1
u563853779|p03109|1
codenet
Compile Error
703
v2_s364706467
s364706467
s364706467
p03109
p03109
u568382716
u568382716
1,565,276,579
2019-08-08T15:02:59
StillTBD.java
public class StillTBD { public static void main(String[] args) { String s; String k="2019/04/30"; Scanner input = new Scanner(System.in); s = input.nextLine(); if(s == null ? k == null : s.equals(k)) { System.out.println("Heisei"); } else ...
StillTBD.java:6: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class StillTBD StillTBD.java:6: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568382716|p03109|0
u568382716|p03109|0
codenet
Compile Error
396
v2_s661681222
s661681222
s661681222
p03109
p03109
u568382716
u568382716
1,565,276,852
2019-08-08T15:07:32
StillTBD.java
import java.util.Scanner; public class StillTBD.java { public static void main(String[] args) { String s; String k="2019/04/30"; Scanner input = new Scanner(System.in); s = input.nextLine(); if(s == null ? k == null : s.equals(k)) { System.out.println("H...
StillTBD.java:3: error: '{' expected public class StillTBD.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568382716|p03109|0
u568382716|p03109|0
codenet
Compile Error
427
v2_s430758045
s430758045
s430758045
p03109
p03109
u568382716
u568382716
1,566,768,320
2019-08-25T21:25:20
Main.java
import java.util.*; import java.text.SimpleDateFormat; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd"); try { Date date = format.parse(sc.next()); Date last = format.par...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568382716|p03109|1
u568382716|p03109|1
codenet
Compile Error
453
v2_s429381714
s429381714
s429381714
p03109
p03109
u568382716
u568382716
1,566,768,352
2019-08-25T21:25:52
Main.java
import java.util.*; import java.text.SimpleDateFormat; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd"); try { Date date = format.parse(sc.next()); Date last = format.par...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568382716|p03109|1
u568382716|p03109|1
codenet
Compile Error
462
v2_s666301630
s666301630
s666301630
p03109
p03109
u584924463
u584924463
1,551,042,103
2019-02-24T21:01:43
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int year = Integer.parseInt(S.substring(0,4)); int month = Integer.parseInt(S.substring(5,7)); int day = Integer.parseInt(S.substring(8,10)); if(yea...
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
u584924463|p03109|0
u584924463|p03109|0
codenet
Compile Error
636
v2_s782140849
s782140849
s782140849
p03109
p03109
u602677143
u602677143
1,562,154,257
2019-07-03T11:44:17
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); List<String> sl = new ArrayList<String>(Arrays.asList(s.split("/"))); if(Integer.parseInt(sl.get(0)) < 2019) { System.out.println("Heisei"); }else if(Integer.p...
Main.java:13: error: ')' or ',' expected System.out.println("Heisei"e; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u602677143|p03109|0
u602677143|p03109|0
codenet
Compile Error
452
v2_s826582805
s826582805
s826582805
p03109
p03109
u626353997
u626353997
1,558,114,570
2019-05-17T17:36:10
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = (char)sc.next().charAt(6); int month = Integer.parseInt(s); if(month > 4){ System.out.println("TBD"); }else{ System.out.pri...
Main.java:5: error: incompatible types: char cannot be converted to String String s = (char)sc.next().charAt(6); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03109|0
u626353997|p03109|0
codenet
Compile Error
353
v2_s229537687
s229537687
s229537687
p03109
p03109
u626353997
u626353997
1,558,267,098
2019-05-19T11:58:18
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char s = sc.next().charAt(6); int month = Integer.parseCharacter(s); if(month > 4){ System.out.println("TBD"); }else{ System.out.print...
Main.java:6: error: cannot find symbol int month = Integer.parseCharacter(s); ^ symbol: method parseCharacter(char) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03109|1
u626353997|p03109|1
codenet
Compile Error
351
v2_s369082012
s369082012
s369082012
p03109
p03109
u648912196
u648912196
1,551,039,409
2019-02-24T20:16:49
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double x; if(x<=16.825){ System.out.println("Heisei"); } else{ System.out.println("TBD"); } } }
Main.java:7: error: variable x might not have been initialized if(x<=16.825){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648912196|p03109|0
u648912196|p03109|0
codenet
Compile Error
245
v2_s532330769
s532330769
s532330769
p03109
p03109
u701556667
u701556667
1,551,295,726
2019-02-27T19:28:46
Main.java
String S; if(S < 2019/4/30) { System.out.println("Heisei") }else { System.out.println("TBD") }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. String S; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected if(S < 2019/4/30) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u701556667|p03109|0
u701556667|p03109|0
codenet
Compile Error
98
v2_s729941112
s729941112
s729941112
p03109
p03109
u701556667
u701556667
1,551,295,856
2019-02-27T19:30:56
Main.java
class main(){ String S; if(S < 2019/4/30) { System.out.println("Heisei") }else { System.out.println("TBD") } }
Main.java:1: error: '{' expected class main(){ ^ Main.java:4: error: illegal start of type if(S < 2019/4/30) ^ Main.java:4: error: illegal start of type if(S < 2019/4/30) ^ Main.java:6: error: ';' expected System.out.println("Heisei") ^ Main.java:7: error: illegal start ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u701556667|p03109|0
u701556667|p03109|0
codenet
Compile Error
115
v2_s098497329
s098497329
s098497329
p03109
p03109
u701556667
u701556667
1,551,296,012
2019-02-27T19:33:32
Main.java
class main1{ public Main(){ String S; if(S < 2019/4/30) { System.out.println("Heisei"); }else { System.out.println("TBD"); } } }
Main.java:2: error: invalid method declaration; return type required public Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u701556667|p03109|0
u701556667|p03109|0
codenet
Compile Error
134