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_s345210866
s345210866
s345210866
p03698
p03698
u222822036
u222822036
1,598,498,454
2020-08-27T03:20:54
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:72: error: incompatible types: ArrayList<String> cannot be converted to ArrayList<Integer> ArrayList<Integer> s = nextCharArray(); ^ Main.java:75: error: incompatible types: Integer cannot be converted to String set.add(s.get(i)); ^ Note: Main.java us...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03698|0
u222822036|p03698|0
codenet
Compile Error
3,058
v2_s841935905
s841935905
s841935905
p03698
p03698
u224040141
u224040141
1,568,127,179
2019-09-10T14:52:59
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); ArraysList<String> a = new ArraysList<String>; for(int i = 0; i < s.length(); i++){ a.add(s.charAt(i)); } Arrays.sort(); int flag = 0; for(int i = 0...
Main.java:7: error: '(' or '[' expected ArraysList<String> a = new ArraysList<String>; ^ Main.java:14: error: illegal start of expression if() ^ Main.java:15: error: reached end of file while parsing ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u224040141|p03698|0
u224040141|p03698|0
codenet
Compile Error
359
v2_s423613066
s423613066
s423613066
p03698
p03698
u322331631
u322331631
1,497,332,368
2017-06-13T05:39:28
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String s = stdIn.next(); char[] charArray = s.toCharArray(); for (int i = 0; i < charArray.length; i++) { for (int j = charArray.length-1; ...
Main.java:27: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u322331631|p03698|0
u322331631|p03698|0
codenet
Compile Error
611
v2_s990306271
s990306271
s990306271
p03698
p03698
u412290310
u412290310
1,564,606,238
2019-07-31T20:50:38
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in);) String s = sc.next(); String ans = "yes"; for (int i = 0; i < s.length(); i++) { for (int j = 0; j < s.length(); j++) { if (s.charAt(i) == s.charAt(j)) { ans = "n...
Main.java:6: error: illegal start of expression Scanner sc = new Scanner(System.in);) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412290310|p03698|0
u412290310|p03698|0
codenet
Compile Error
382
v2_s376806581
s376806581
s376806581
p03698
p03698
u480612744
u480612744
1,531,229,347
2018-07-10T13:29:07
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.*; public class Main { int[] inputArray; public static void main(String[] args) throws IOException { new Main().run(); } void run() { ...
Main.java:21: error: cannot find symbol for(int i=0; i<n; i++){ ^ symbol: variable n location: class Main Main.java:22: error: incompatible types: char cannot be converted to String set.add(array[i]); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get ful...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480612744|p03698|0
u480612744|p03698|0
codenet
Compile Error
588
v2_s354736610
s354736610
s354736610
p03698
p03698
u480612744
u480612744
1,531,229,386
2018-07-10T13:29:46
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.*; public class Main { int[] inputArray; public static void main(String[] args) throws IOException { new Main().run(); } void run() { ...
Main.java:22: error: incompatible types: char cannot be converted to String set.add(array[i]); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480612744|p03698|0
u480612744|p03698|0
codenet
Compile Error
599
v2_s007674830
s007674830
s007674830
p03698
p03698
u487433273
u487433273
1,578,422,831
2020-01-07T18:47:11
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; Arrays.sort(c); for(int i = 1;i<N;i++) { if(c[i]==c[i-1]) { b = false; break; } } String ans; ...
Main.java:8: error: cannot find symbol for(int i = 1;i<N;i++) ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03698|0
u487433273|p03698|0
codenet
Compile Error
393
v2_s736027134
s736027134
s736027134
p03698
p03698
u489316980
u489316980
1,567,994,753
2019-09-09T02:05:53
Main.java
import java.util.*;public class Main{public static void main(String[]a){Scanner sc=new Scanner(System.in);int s=sc.next().length();Set<Character>t=new HashSet<>();for(int i=0;i<s;i++){t.add(S.charAt(i));}System.out.println(t.size()==s?"yes":"no");}}
Main.java:1: error: cannot find symbol import java.util.*;public class Main{public static void main(String[]a){Scanner sc=new Scanner(System.in);int s=sc.next().length();Set<Character>t=new HashSet<>();for(int i=0;i<s;i++){t.add(S.charAt(i));}System.out.println(t.size()==s?"yes":"no");}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489316980|p03698|0
u489316980|p03698|0
codenet
Compile Error
249
v2_s146833496
s146833496
s146833496
p03698
p03698
u547167033
u547167033
1,566,759,178
2019-08-25T18:52:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] array = s.toCharArray(); Arrays.sort(array); int count = 0; for(int i = 1;i < n;i++){ if(arrray[i]==array[i-1])count++; } ...
Main.java:13: error: ';' expected else System.out.println("no") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03698|0
u547167033|p03698|0
codenet
Compile Error
405
v2_s706088520
s706088520
s706088520
p03698
p03698
u547167033
u547167033
1,566,759,210
2019-08-25T18:53:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] array = s.toCharArray(); Arrays.sort(array); int count = 0; for(int i = 1;i < n;i++){ if(arrray[i]==array[i-1])count++; } ...
Main.java:9: error: cannot find symbol for(int i = 1;i < n;i++){ ^ symbol: variable n location: class Main Main.java:10: error: cannot find symbol if(arrray[i]==array[i-1])count++; ^ symbol: variable arrray location: class Main Main.java:12: error: incompatible...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03698|0
u547167033|p03698|0
codenet
Compile Error
407
v2_s929777622
s929777622
s929777622
p03698
p03698
u547167033
u547167033
1,566,759,258
2019-08-25T18:54:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] array = s.toCharArray(); Arrays.sort(array); int count = 0; for(int i = 1;i < s.length();i++){ if(arrray[i]==array[i-1])count++; ...
Main.java:10: error: cannot find symbol if(arrray[i]==array[i-1])count++; ^ symbol: variable arrray location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03698|0
u547167033|p03698|0
codenet
Compile Error
417
v2_s027989066
s027989066
s027989066
p03698
p03698
u578441226
u578441226
1,530,797,621
2018-07-05T13:33: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(); String Sarray[] = S.split(""); String afromZ = "abcdefghijklnmopqrstuvwxyz"; String afromZ_Array[] = afromZ.split(""); ...
Main.java:17: error: cannot find symbol for(int abc = 0;i < afromZ_Array.length;abc++){ ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578441226|p03698|0
u578441226|p03698|0
codenet
Compile Error
1,009
v2_s170539404
s170539404
s170539404
p03698
p03698
u587721314
u587721314
1,567,206,489
2019-08-30T23:08:09
Main.java
import java.util.Scanner; public class Main { public static void Main { Scanner sc = new Scanner(System.in); String s = sc.next(); int[] charCnt = new int[26]; for (char c: s.toCharArray()) { if (charCnt[c - 'a'] != 0) { System.out.println("no"); ...
Main.java:4: error: '(' expected public static void Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p03698|0
u587721314|p03698|0
codenet
Compile Error
432
v2_s429799289
s429799289
s429799289
p03698
p03698
u941274418
u941274418
1,582,254,781
2020-02-21T03:13:01
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); Set<String> visited = new HashSet<>(); for(char c : str.toCharArray()) { if(visited.contains(c)) { System.out.println("...
Main.java:12: error: incompatible types: char cannot be converted to String visited.add(c); ^ 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
u941274418|p03698|0
u941274418|p03698|0
codenet
Compile Error
436
v2_s298592645
s298592645
s298592645
p03699
p03699
u476482490
u476482490
1,583,111,608
2020-03-02T01:13:28
Main.java
import kotlin.collections.unsigned.UArraysKt; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; import java.util.stream.IntStream; public class Main { public static void main(final String[] args) { final Scanner s...
Main.java:2: error: package kotlin.collections.unsigned does not exist import kotlin.collections.unsigned.UArraysKt; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p03699|0
u476482490|p03699|0
codenet
Compile Error
1,005
v2_s240062602
s240062602
s240062602
p03699
p03699
u527007629
u527007629
1,496,855,905
2017-06-07T17:18:25
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] marks = new int[n]; int sum = 0; for(int i=0; i<n; i++){ marks[i] = sc.nextInt(); sum += marks[i]; } Arrays.sort(marks); int k = 0;...
Main.java:21: error: ')' expected while(k<marks.length && marks[k]%10 ==0s) k++; ^ Main.java:21: error: ';' expected while(k<marks.length && marks[k]%10 ==0s) k++; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527007629|p03699|0
u527007629|p03699|0
codenet
Compile Error
520
v2_s219595967
s219595967
s219595967
p03699
p03699
u587100042
u587100042
1,590,473,329
2020-05-26T06:08:49
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),max=0,sum=0; int[] s=new int[n]; for(int i=0;i<n;i++){ s[i]=sc.nextInt(); } for(double i=0;i<(1<<(double)n);i++){ for(int j=0;j<n;j++){ i...
Main.java:12: error: bad operand types for binary operator '<<' for(double i=0;i<(1<<(double)n);i++){ ^ first type: int second type: double Main.java:14: error: bad operand types for binary operator '>>' if((1&i>>j)==1){ ^ first type: double second type: int 2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p03699|0
u587100042|p03699|0
codenet
Compile Error
513
v2_s309604139
s309604139
s309604139
p03699
p03699
u655729056
u655729056
1,583,124,253
2020-03-02T04:44:13
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); Integer n = scan.nextInt(); int[] a = new int[n]; for(int i = 0 ; i < n ; i++){ a[i] = sc.nextInt(); } int sum = 0; for(int i = 0 ; i < n ; i++){ sum += a[i]; } ...
Main.java:9: error: cannot find symbol a[i] = sc.nextInt(); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03699|0
u655729056|p03699|0
codenet
Compile Error
626
v2_s295604108
s295604108
s295604108
p03699
p03699
u787146733
u787146733
1,496,541,842
2017-06-04T02:04:02
Main.java
public class Main { public static void main(String[] args){ Scanner sc= new Scanner(System.in); int N=sc.nextInt(); int sum=0; int[]arry=new int[N]; for(int i=0;i<N;i++) {arry[i]=sc.nextInt();} for(int i=0;i<N;i++) {sum+=arry[i];} if(sum%10==0) { for(int i=0;i<N;i++) { if ((sum-arry[i])%...
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
u787146733|p03699|0
u787146733|p03699|0
codenet
Compile Error
554
v2_s538239344
s538239344
s538239344
p03699
p03699
u787146733
u787146733
1,496,541,862
2017-06-04T02:04:22
Main.java
public class Main { public static void main(String[] args){ Scanner sc= new Scanner(System.in); int N=sc.nextInt(); int sum=0; int[]arry=new int[N]; for(int i=0;i<N;i++) {arry[i]=sc.nextInt();} for(int i=0;i<N;i++) {sum+=arry[i];} if(sum%10==0) { for(int i=0;i<N;i++) { if ((sum-arry[i])%...
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
u787146733|p03699|0
u787146733|p03699|0
codenet
Compile Error
554
v2_s851141665
s851141665
s851141665
p03699
p03699
u811202694
u811202694
1,496,541,608
2017-06-04T02:00:08
Main.java
import com.sun.tools.hat.internal.util.ArraySorter; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int total = 0; int[] ans = new int[n]; for (int ...
Main.java:1: error: package com.sun.tools.hat.internal.util does not exist import com.sun.tools.hat.internal.util.ArraySorter; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u811202694|p03699|0
u811202694|p03699|0
codenet
Compile Error
838
v2_s328610026
s328610026
s328610026
p03699
p03699
u866594486
u866594486
1,591,499,522
2020-06-07T03:12:02
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sum = 0; List<Integer> point = new ArrayList<>(); for (int i = 0; i < N; i++) { int p = sc.nextInt(); sum += p; if (p%10 != 0) { point.add(p); } } if (point.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 Main.java:7: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866594486|p03699|0
u866594486|p03699|0
codenet
Compile Error
465
v2_s565475569
s565475569
s565475569
p03699
p03699
u955811392
u955811392
1,496,541,671
2017-06-04T02:01:11
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int k = 0, n = 0; boolean b = true; n = stdin.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = stdin.nextInt(); k = k + a[i]; ...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u955811392|p03699|0
u955811392|p03699|0
codenet
Compile Error
671
v2_s450840624
s450840624
s450840624
p03700
p03700
u039774704
u039774704
1,496,543,357
2017-06-04T02:29:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ new ABC_4().start(); } int a,b; int[] hp; void start(){ Scanner in = new Scanner(System.in); int n = in.nextInt(); a = in.nextInt(); b = in.nextInt(); hp = new int[n]; ...
Main.java:9: error: cannot find symbol new ABC_4().start(); ^ symbol: class ABC_4 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039774704|p03700|0
u039774704|p03700|0
codenet
Compile Error
1,866
v2_s883063065
s883063065
s883063065
p03700
p03700
u039774704
u039774704
1,496,543,416
2017-06-04T02:30:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ new Main.start(); } int a,b; int[] hp; void start(){ Scanner in = new Scanner(System.in); int n = in.nextInt(); a = in.nextInt(); b = in.nextInt(); hp = new int[n]; ...
Main.java:9: error: cannot find symbol new Main.start(); ^ symbol: class start location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039774704|p03700|0
u039774704|p03700|0
codenet
Compile Error
1,863
v2_s633622110
s633622110
s633622110
p03700
p03700
u059234158
u059234158
1,516,586,320
2018-01-22T01:58:40
Main.java
import java.util.Arrays; import java.util.Iterator; import java.util.PrimitiveIterator; import java.util.Scanner; import java.util.function.BinaryOperator; import java.util.function.IntFunction; import java.util.stream.IntStream; import java.util.stream.Stream; class Main{ private void solve(){ int n=gInt(),a=gInt...
Main.java:132: error: class, interface, enum, or record expected }/ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p03700|0
u059234158|p03700|0
codenet
Compile Error
2,237
v2_s149126052
s149126052
s149126052
p03700
p03700
u181039779
u181039779
1,569,185,957
2019-09-22T20:59:17
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.lang.Character.Subset; import java.math.BigDecimal; import java.text.DecimalFormat; import java.time.temporal.ValueRange; import j...
Main.java:89: error: incompatible types: int[] cannot be converted to long[] H = new int[N]; ^ Main.java:93: error: incompatible types: possible lossy conversion from long to int max = Math.max(max, H[i]); ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u181039779|p03700|1
u181039779|p03700|1
codenet
Compile Error
24,677
v2_s566670769
s566670769
s566670769
p03700
p03700
u266665184
u266665184
1,536,803,068
2018-09-13T01:44:28
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throw...
Main.java:17: error: cannot find symbol TaskX solver = new TaskX(); ^ symbol: class TaskX location: class Main Main.java:17: error: cannot find symbol TaskX solver = new TaskX(); ^ symbol: class TaskX location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266665184|p03700|0
u266665184|p03700|0
codenet
Compile Error
3,208
v2_s290276315
s290276315
s290276315
p03700
p03700
u655729056
u655729056
1,583,212,116
2020-03-03T05:08:36
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a = scan.nextInt(); int b = scan.nextInt(); int[] h = new int[n]; long s = 0; for (int i = 0; i < n; i++) { h[i] = scan.nextInt(...
Main.java:34: error: cannot find symbol long pi = (h - p_maxp_max * B - 1) / (A - B) + 1; ^ symbol: variable p_maxp_max location: class Main Main.java:36: error: cannot find symbol if (p > p_max){ ^ symbol: variable p_max location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03700|0
u655729056|p03700|0
codenet
Compile Error
958
v2_s896061261
s896061261
s896061261
p03700
p03700
u675503966
u675503966
1,496,554,112
2017-06-04T05:28: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(); long A = sc.nextLong(); long B = sc.nextLong(); long h[] = new long[N]; for(int i=0; i<N; i++){ h[i]=sc.nextLong(); } long answer = binarytree(0,Long.MA...
Main.java:35: error: incompatible types: possible lossy conversion from double to long times = times + Y; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03700|0
u675503966|p03700|0
codenet
Compile Error
976
v2_s050127805
s050127805
s050127805
p03700
p03700
u675503966
u675503966
1,496,554,632
2017-06-04T05:37: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(); long A = sc.nextLong(); long B = sc.nextLong(); long h[] = new long[N]; for(int i=0; i<N; i++){ h[i]=sc.nextLong(); } long fin; fin = Long.MAX_VALUE/B...
Main.java:45: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03700|0
u675503966|p03700|0
codenet
Compile Error
1,046
v2_s422012382
s422012382
s422012382
p03700
p03700
u764011970
u764011970
1,534,451,780
2018-08-16T20:36:20
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long a = sc.nextLong(); long b = sc.nextLong(); long[] h = new long[n]; for(int i = 0; i < n; i++) h[i] = sc.nextLong(); long l = 0, ...
Main.java:18: error: illegal character: '\u00d7' if(x[i] - b ? mid <= 0) continue; ^ Main.java:18: error: not a statement if(x[i] - b ? mid <= 0) continue; ^ Main.java:18: error: ';' expected if(x[i] - b ? mid <= 0) continue; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764011970|p03700|0
u764011970|p03700|0
codenet
Compile Error
667
v2_s836886652
s836886652
s836886652
p03700
p03700
u881359256
u881359256
1,579,282,230
2020-01-17T17:30:30
Main.java
import java.util.Scanner; public class Main { static int n, a, b, h[]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); a = sc.nextInt(); b = sc.nextInt(); h = new int[n]; for(int i=0;i<n;i++)h[i] = sc.nextInt(); sc.close(); int l = 0; int r = (int...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881359256|p03700|0
u881359256|p03700|0
codenet
Compile Error
663
v2_s241860987
s241860987
s241860987
p03700
p03700
u982630224
u982630224
1,572,752,587
2019-11-03T03:43:07
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 N; static int A; stat...
Main.java:39: error: incompatible types: possible lossy conversion from long to int if (isOK(mid)) right = mid; ^ 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
u982630224|p03700|0
u982630224|p03700|0
codenet
Compile Error
2,371
v2_s656869452
s656869452
s656869452
p03701
p03701
u635596076
u635596076
1,496,539,932
2017-06-04T01:32:12
C_Bugged.java
public class C_Bugged { public static void main(String[] args) { Scanner sn = new Scanner(System.in); List<Integer> inputList = new ArrayList<Integer>(); while (sn.hasNextLine()) { String str = sn.nextLine(); inputList.add(Integer.parseInt(str)); } int num = inputList.get(0); List<Integer> p...
C_Bugged.java:36: error: cannot find symbol private static int calcMinNumber(List<Integer> list){ ^ symbol: class List location: class C_Bugged C_Bugged.java:3: error: cannot find symbol Scanner sn = new Scanner(System.in); ^ symbol: class Scanner location: class C_Bug...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635596076|p03701|0
u635596076|p03701|0
codenet
Compile Error
800
v2_s876684133
s876684133
s876684133
p03701
p03701
u635596076
u635596076
1,496,540,034
2017-06-04T01:33:54
Main.java
public class Main { public static void main(String[] args) { Scanner sn = new Scanner(System.in); List<Integer> inputList = new ArrayList<Integer>(); while (sn.hasNextLine()) { String str = sn.nextLine(); inputList.add(Integer.parseInt(str)); } int num = inputList.get(0); List<Integer> point...
Main.java:36: error: cannot find symbol private static int calcMinNumber(List<Integer> list){ ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol Scanner sn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635596076|p03701|0
u635596076|p03701|0
codenet
Compile Error
796
v2_s237797255
s237797255
s237797255
p03701
p03701
u655729056
u655729056
1,573,540,914
2019-11-12T06:41:54
Main.java
import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } long[] total =new long[n]; for(int j=0;j<n;j++){ total ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: error: bad operand ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
543
v2_s049001089
s049001089
s049001089
p03701
p03701
u655729056
u655729056
1,573,541,100
2019-11-12T06:45:00
Main.java
import java.io.*; import java.until.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } long[] total =new long[n]; for(int j=0;...
Main.java:2: error: package java.until does not exist import java.until.*; ^ Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
556
v2_s467912175
s467912175
s467912175
p03701
p03701
u655729056
u655729056
1,573,541,160
2019-11-12T06:46:00
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } long[] total =new long[n]; for(int j=0;...
Main.java:18: error: no suitable method found for sort(long[],Comparator<Object>) Arrays.sort(total, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: long ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
556
v2_s408050505
s408050505
s408050505
p03701
p03701
u655729056
u655729056
1,573,541,309
2019-11-12T06:48:29
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } long[] total =new long[n]; for(int j=0;...
Main.java:18: error: no suitable method found for sort(long[],Comparator<Object>) Arrays.sort(total, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: long ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
555
v2_s328692449
s328692449
s328692449
p03701
p03701
u655729056
u655729056
1,573,541,441
2019-11-12T06:50:41
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } int[] total =new int[n]; for(int j=0;j<...
Main.java:20: error: incompatible types: int cannot be converted to boolean for (int k = n-1; k =0; k--) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
526
v2_s723905645
s723905645
s723905645
p03701
p03701
u655729056
u655729056
1,573,541,501
2019-11-12T06:51:41
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } int[] total =new int[n]; for(int j=0;j<...
Main.java:28: error: class, interface, enum, or record expected import java.io.*; ^ Main.java:29: error: class, interface, enum, or record expected import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
1,055
v2_s962339149
s962339149
s962339149
p03701
p03701
u655729056
u655729056
1,573,541,862
2019-11-12T06:57: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[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } int[] total =new int[n]; for(int j=0;j<n;j++){ if(j...
Main.java:15: error: illegal character: '\' if(j = 0 \){ ^ Main.java:17: error: 'else' without 'if' }else{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
607
v2_s216886031
s216886031
s216886031
p03701
p03701
u655729056
u655729056
1,573,542,720
2019-11-12T07:12:00
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[] a1=new int[n]; int ans = 0; for(int i=0;i<n;i++){ a1[i]=sc.nextInt(); } int[] total =new int[n]; int total = 0; for(int j=1;j...
Main.java:14: error: variable total is already defined in method main(String[]) int total = 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03701|0
u655729056|p03701|0
codenet
Compile Error
592
v2_s279612669
s279612669
s279612669
p03701
p03701
u768152935
u768152935
1,497,198,485
2017-06-11T16:28:05
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 S[]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[i]; } ...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
545
v2_s958959965
s958959965
s958959965
p03701
p03701
u768152935
u768152935
1,497,198,525
2017-06-11T16:28:45
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 S[]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[i]; } ...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
535
v2_s453627810
s453627810
s453627810
p03701
p03701
u768152935
u768152935
1,497,198,575
2017-06-11T16:29:35
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 S[]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[i]; } ...
Main.java:17: error: cannot find symbol Arrays.sort(S); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
537
v2_s883396353
s883396353
s883396353
p03701
p03701
u768152935
u768152935
1,497,198,623
2017-06-11T16:30:23
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 S[]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[i]; } ...
Main.java:17: error: '.class' expected Arrays.sort(S[]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
539
v2_s542600500
s542600500
s542600500
p03701
p03701
u768152935
u768152935
1,497,198,865
2017-06-11T16:34:25
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 S[]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[i]; } ...
Main.java:17: error: '.class' expected Arrays.sort(S[]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
570
v2_s616079564
s616079564
s616079564
p03701
p03701
u768152935
u768152935
1,497,199,086
2017-06-11T16:38:06
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 S[] = new int[N]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[...
Main.java:17: error: cannot find symbol Arrays.sort(S); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
579
v2_s272147190
s272147190
s272147190
p03701
p03701
u768152935
u768152935
1,497,199,125
2017-06-11T16:38:45
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 S[] = new int[N]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i < N; i++) { s += S[...
Main.java:17: error: '.class' expected Arrays.sort(S[]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
581
v2_s390528102
s390528102
s390528102
p03701
p03701
u768152935
u768152935
1,497,200,023
2017-06-11T16:53:43
Main.java
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int S[] = new int[N]; for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); } int s = 0; for(int i = 0; i...
Main.java:28: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
621
v2_s614933425
s614933425
s614933425
p03701
p03701
u768152935
u768152935
1,497,201,036
2017-06-11T17:10:36
Main.java
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int S[]; int s = 0; Arrays.sort(S); for(int i = 0; i < N; i++) { S[i] = sc.nextInt(); s += S[i]; } ...
Main.java:11: error: variable S might not have been initialized Arrays.sort(S); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768152935|p03701|0
u768152935|p03701|0
codenet
Compile Error
638
v2_s218528315
s218528315
s218528315
p03701
p03701
u900855318
u900855318
1,553,845,665
2019-03-29T07:47:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); int[] scores = new int[count]; int sum = 0; for (int ix = 0; ix < scores.length; ix++) { scores[ix] = scanner.nextInt(); sum += s...
Main.java:4: error: ';' expected public static void main(String[] args) ^ Main.java:10: error: illegal start of type for (int ix = 0; ix < scores.length; ix++) { ^ Main.java:10: error: > or ',' expected for (int ix = 0; ix < scores.length; ix++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p03701|0
u900855318|p03701|0
codenet
Compile Error
550
v2_s945288205
s945288205
s945288205
p03701
p03701
u918497744
u918497744
1,496,621,539
2017-06-05T00:12:19
Main.java
import java.util.Arrays; import java.util.Scanner;   public class Main{   public static void main(String[] args) { Scanner sc = new Scanner(System.in);   int n = sc.nextInt();   int[] arr = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt...
Main.java:3: error: illegal character: '\u00a0' ? ^ Main.java:5: error: illegal character: '\u00a0' ? ^ Main.java:8: error: illegal character: '\u00a0' ? ^ Main.java:10: error: illegal character: '\u00a0' ? ^ Main.java:17: error: illegal character: '\u00a0' ? ^ Main.java:27: error: illegal character: '\u00a0' ? ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918497744|p03701|0
u918497744|p03701|0
codenet
Compile Error
699
v2_s102919772
s102919772
s102919772
p03702
p03702
u655729056
u655729056
1,573,570,371
2019-11-12T14:52:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int A=sc.nextInt(); int B=sc.nextInt(); int[] h=new int[n]; int ans =0; for(int i=0;i<N;i++){ h[i]=sc.nextInt(); } while(h[N-1] < ...
Main.java:9: error: cannot find symbol int[] h=new int[n]; ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655729056|p03702|0
u655729056|p03702|0
codenet
Compile Error
542
v2_s979687074
s979687074
s979687074
p03702
p03702
u981808900
u981808900
1,557,974,995
2019-05-16T02:49:55
Main.java
import java.util.function.IntPredicate; import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int n = scanner.nextInt(); long a = scanner.nextInt(); long b = scanner.nextInt(); int[] h = new int[n]; ...
Main.java:25: error: cannot find symbol Utils.println(t, count, count <= t); ^ symbol: variable Utils location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03702|0
u981808900|p03702|0
codenet
Compile Error
1,182
v2_s303019885
s303019885
s303019885
p03703
p03703
u238640707
u238640707
1,496,559,627
2017-06-04T07:00:27
Main.java
import java.util.*; import java.io.*; import java.math.*; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main{ static long mod=1000000007; static int dx[]={1,-1,0,0}; static int dy[]={0,0,1,-1}; // static int dx[]={1,-1,0,...
Main.java:47: error: illegal start of expression ans += bit.sum(public void testName() throws Exception { ^ Main.java:49: error: illegal start of type }); ^ Main.java:50: error: <identifier> expected bit.add(t,1); ^ Main.java:50: error: <identifie...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238640707|p03703|0
u238640707|p03703|0
codenet
Compile Error
3,207
v2_s691939199
s691939199
s691939199
p03703
p03703
u324669236
u324669236
1,600,391,300
2020-09-18T01:08:20
Main.java
// copied #include <algorithm> #include <iostream> #include <vector> #include <cstdio> #include <map> using namespace std; typedef long long LL; const int maxn = 2e5 + 100; int n, k; LL a[maxn], c[maxn*4]; map<LL, int> M; vector<LL> V; void Modify(int x, int s){ for(; x <= n; x += x&(-x)) c[x] += s; } LL Query(int ...
Main.java:2: error: illegal character: '#' #include <algorithm> ^ Main.java:3: error: illegal character: '#' #include <iostream> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <cstdio> ^ Main.java:6: error: illegal character: '#' #include <map> ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324669236|p03703|0
u324669236|p03703|0
codenet
Compile Error
962
v2_s695401729
s695401729
s695401729
p03703
p03703
u981808900
u981808900
1,584,816,267
2020-03-21T18:44:27
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.*; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import static com.yu212.Utils.println; class Main { static In in = new In(); sta...
Main.java:9: error: package com.yu212 does not exist import static com.yu212.Utils.println; ^ Main.java:9: error: static import only from classes and interfaces import static com.yu212.Utils.println; ^ Main.java:33: error: cannot find symbol println(pair, segmentTree.get(pair.second))...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03703|0
u981808900|p03703|0
codenet
Compile Error
13,657
v2_s746451191
s746451191
s746451191
p03705
p03705
u093192839
u093192839
1,495,934,996
2017-05-28T01:29:56
Main.java
import java.util; public class Main { public static vaid main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); if(n==0 || a>b){ System.out.print(0); }else if(a<b && n==1){ System.out.print(0); }else if(a==b && n!=1){ ...
Main.java:1: error: cannot find symbol import java.util; ^ symbol: class util location: package java Main.java:4: error: cannot find symbol public static vaid main (String[] args) { ^ symbol: class vaid location: class Main Main.java:5: error: cannot find symbol Scanner sc = new...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03705|0
u093192839|p03705|0
codenet
Compile Error
427
v2_s738280882
s738280882
s738280882
p03705
p03705
u093192839
u093192839
1,495,936,823
2017-05-28T02:00:23
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 = sc.nextInt(); int b = sc.nextInt(); if(n==0 || a>b){ System.out.print(0); }else if(a<b && n==1){ System.out.print(0); }else if(a==b && n!=...
Main.java:24: error: ';' expected int r += (s-i); ^ Main.java:24: error: not a statement int r += (s-i); ^ Main.java:24: error: ';' expected int r += (s-i); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03705|0
u093192839|p03705|0
codenet
Compile Error
574
v2_s387985697
s387985697
s387985697
p03705
p03705
u402189762
u402189762
1,495,935,194
2017-05-28T01:33:14
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N=scan.nextInt(); int A=scan.nextInt(); int B=scan.nextInt(); System.out.println((Math.abs(A-B)+1)*2-1); }
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u402189762|p03705|0
u402189762|p03705|0
codenet
Compile Error
256
v2_s516694810
s516694810
s516694810
p03705
p03705
u468346623
u468346623
1,495,938,974
2017-05-28T02:36:14
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main (String[] args) throws java.lang.Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[] building = br.readLine().toCharArray(); int sum = 0; int length = buildi...
Main.java:22: error: illegal start of type else{ ^ Main.java:35: error: <identifier> expected System.out.println(sum); ^ Main.java:35: error: <identifier> expected System.out.println(sum); ^ Main.java:38: error: class, interface, enum, or record expe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u468346623|p03705|0
u468346623|p03705|0
codenet
Compile Error
990
v2_s749165868
s749165868
s749165868
p03705
p03705
u474492589
u474492589
1,567,511,929
2019-09-03T11:58:49
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); sc.close(); if(A>B || (N == 1 && A!=B) System.out.println(...
Main.java:13: error: ')' expected if(A>B || (N == 1 && A!=B) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03705|0
u474492589|p03705|0
codenet
Compile Error
401
v2_s170053376
s170053376
s170053376
p03705
p03705
u507706381
u507706381
1,573,654,522
2019-11-13T14:15:22
Main.java
import java.util*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(A+(long)B*(N-1)-(long)A*(N-1)-B-1); } }
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03705|0
u507706381|p03705|0
codenet
Compile Error
271
v2_s008740215
s008740215
s008740215
p03705
p03705
u507706381
u507706381
1,573,655,462
2019-11-13T14:31:02
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); if (A > B || (N == 1 && A != B))) { System.out.println(0); } else { System.out.println(A+(long)B*...
Main.java:9: error: illegal start of expression if (A > B || (N == 1 && A != B))) { ^ Main.java:11: error: 'else' without 'if' } else { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03705|0
u507706381|p03705|0
codenet
Compile Error
357
v2_s207518130
s207518130
s207518130
p03705
p03705
u516438812
u516438812
1,505,664,657
2017-09-17T16:10:57
Main.java
<?php class In { private $buf = []; private $count = 0; private $pointer = 0; public function nextLine() { $ret = ''; if($this->hasNext()){ while($this->hasNext()){ $ret .= $this->next(); } }else{ $ret = trim(fgets(STDIN)); } return $ret; } public function next() { if(!$this->hasNext...
Main.java:1: error: class, interface, enum, or record expected <?php ^ Main.java:5: error: <identifier> expected private $buf = []; ^ Main.java:5: error: illegal start of expression private $buf = []; ^ Main.java:6: error: <identifier> expected private $count = 0; ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516438812|p03705|0
u516438812|p03705|0
codenet
Compile Error
1,084
v2_s126609437
s126609437
s126609437
p03705
p03705
u675503966
u675503966
1,495,934,346
2017-05-28T01:19:06
Main.java
mport java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); if(B<A){ System.out.println(0); } else if(N==1){ if(B!=A){ System.out.println(0); } if(B==A){ System....
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03705|0
u675503966|p03705|0
codenet
Compile Error
403
v2_s664326038
s664326038
s664326038
p03705
p03705
u767551173
u767551173
1,496,037,837
2017-05-29T06:03:57
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int A = scanner.nextInt(); int B = scanner.nextInt(); int count = (N - 2)*(B - A) + 1; if (N == 1 && A == B) { System.out.printl...
Main.java:15: error: illegal start of expression if (N == 1 && A !== B) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u767551173|p03705|0
u767551173|p03705|0
codenet
Compile Error
537
v2_s807998824
s807998824
s807998824
p03705
p03705
u801144528
u801144528
1,562,894,820
2019-07-12T01:27:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n, a, b; n = sc.nextLong(); a = sc.nextLong(); b = sc.nextLong(); if (a > b){ System.out.println(0); Syste...
Main.java:21: error: 'else' without 'if' else{ ^ Main.java:30: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u801144528|p03705|0
u801144528|p03705|0
codenet
Compile Error
664
v2_s918253441
s918253441
s918253441
p03705
p03705
u801144528
u801144528
1,562,895,209
2019-07-12T01:33:29
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n, a, b; n = sc.nextLong(); a = sc.nextLong(); b = sc.nextLong(); if (a > b){ System.out.println(0); Syste...
Main.java:21: error: illegal start of type }else{ ^ Main.java:26: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u801144528|p03705|0
u801144528|p03705|0
codenet
Compile Error
550
v2_s909158304
s909158304
s909158304
p03705
p03705
u863370423
u863370423
1,547,867,748
2019-01-19T03:15:48
Main.java
#include<stdio.h> int main() { int n,a,b; scanf("%d %d %d",&n,&a,&b); int min=(a * ( n - 1 ) + b ); int max = a + ( n - 1 ) * b; if(n == 1 && a == b) printf("1"); else if(a > b || ( n == 1 && a != b )) printf("0"); else printf("%d",max - min + 1); return 0...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:6: error: class, interface, enum, or record expected scanf("%d %d %d",&n,&a,&b); ^ Main.java:7: error: unnamed classes are a preview feature and are d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03705|2
u863370423|p03705|2
codenet
Compile Error
329
v2_s521925585
s521925585
s521925585
p03705
p03705
u868098707
u868098707
1,541,144,077
2018-11-02T07:34:37
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.InputMismatchException; import java.util.Iterator; import java.util.LinkedList; import java.util.Map; import java.util.Queue; ...
Main.java:203: error: cannot find symbol new Thread(null, new Solution(),"Solution",1<<26).start(); ^ symbol: class Solution location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868098707|p03705|0
u868098707|p03705|0
codenet
Compile Error
9,475
v2_s852946358
s852946358
s852946358
p03705
p03705
u914173586
u914173586
1,495,933,534
2017-05-28T01:05:34
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class Main { private static FastScanner sc = new FastScanner(); public static void main(String[] args) { long n = sc.nextInt(); long a = sc.nextInt(); long b = sc.nextInt(); if(n == 1) { if(a != b) ...
Main.java:23: error: ';' expected long ans = (b-a)*(n-2)+1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u914173586|p03705|0
u914173586|p03705|0
codenet
Compile Error
1,882
v2_s804592078
s804592078
s804592078
p03708
p03708
u848172161
u848172161
1,495,934,492
2017-05-28T01:21:32
sample.java
import java.util.*; public class sample { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int res if(b >= a){ res = b -a; res = res + res /2; system.out.print(res); } } }
sample.java:9: error: ';' expected int res ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848172161|p03708|0
u848172161|p03708|0
codenet
Compile Error
303
v2_s642585059
s642585059
s642585059
p03708
p03708
u848172161
u848172161
1,495,934,554
2017-05-28T01:22:34
sample.java
import java.util.*; public class sample { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int res if(b >= a){ res = b -a; res = res + res /2; system.out.print(res); } } }
sample.java:9: error: ';' expected int res ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848172161|p03708|0
u848172161|p03708|0
codenet
Compile Error
303
v2_s918607953
s918607953
s918607953
p03708
p03708
u848172161
u848172161
1,495,934,691
2017-05-28T01:24:51
sample.java
import java.util.*; public class sample { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int res; if(b >= a){ res = b -a; res = res + res /2; system.out.print(res); } } }
sample.java:14: error: package system does not exist system.out.print(res); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848172161|p03708|0
u848172161|p03708|0
codenet
Compile Error
304
v2_s408991416
s408991416
s408991416
p03711
p03711
u024824950
u024824950
1,554,841,036
2019-04-09T20:17:16
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int[] a = {0,2,0,1,0,1,0,0,1,0,1,0}; if(a[x-1]==b[y-1]) System.out.println("Yes");else System.out.println...
Main.java:8: error: cannot find symbol if(a[x-1]==b[y-1]) ^ symbol: variable b location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03711|0
u024824950|p03711|0
codenet
Compile Error
335
v2_s227955377
s227955377
s227955377
p03711
p03711
u093192839
u093192839
1,495,938,326
2017-05-28T02:25:26
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String[] a = {1,3,5,7,8,10,12}; String[] b = {4,6,9,11}; if(x==y){ System.out.print("Yes"); }else if(x==2 && y==2){ System.ou...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03711|0
u093192839|p03711|0
codenet
Compile Error
555
v2_s052633323
s052633323
s052633323
p03711
p03711
u093192839
u093192839
1,495,938,404
2017-05-28T02:26:44
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String[] a = {1,3,5,7,8,10,12}; String[] b = {4,6,9,11}; if(x==y){ System.out.print("Yes"); }else if(x==2 && y==2){ System.ou...
Main.java:8: error: incompatible types: int cannot be converted to String String[] a = {1,3,5,7,8,10,12}; ^ Main.java:8: error: incompatible types: int cannot be converted to String String[] a = {1,3,5,7,8,10,12}; ^ Main.java:8: error: incompatible types: int cannot be converted to...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03711|0
u093192839|p03711|0
codenet
Compile Error
559
v2_s149450471
s149450471
s149450471
p03711
p03711
u093192839
u093192839
1,495,938,481
2017-05-28T02:28:01
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int[] a = {1,3,5,7,8,10,12}; int[] b = {4,6,9,11}; if(x==y){ System.out.print("Yes"); }else if(x==2 && y==2){ System.out.prin...
Main.java:14: error: cannot find symbol }else if(a.contains(x)){ ^ symbol: method contains(int) location: variable a of type int[] Main.java:15: error: cannot find symbol if(a.contains(y)){ ^ symbol: method contains(int) location: variable a of type int[] Main.java:18: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03711|0
u093192839|p03711|0
codenet
Compile Error
553
v2_s349971218
s349971218
s349971218
p03711
p03711
u093192839
u093192839
1,495,939,763
2017-05-28T02:49:23
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 x = sc.nextInt(); int y = sc.nextInt(); String[] a = {"1","3","5","7","8","10","12"}; String[] b = {"4","6","9","11"}; if(x==y){ System.out.print("...
Main.java:13: error: bad operand types for binary operator '==' }else if(x=="2" && y=="2"){ ^ first type: int second type: String Main.java:13: error: bad operand types for binary operator '==' }else if(x=="2" && y=="2"){ ^ first type: int second type: String 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03711|0
u093192839|p03711|0
codenet
Compile Error
750
v2_s025993388
s025993388
s025993388
p03711
p03711
u093192839
u093192839
1,495,939,859
2017-05-28T02:50:59
Class2.java
import java.util.Scanner; import java.util.Arrays; public class Class2 { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String x = sc.next(); String y = sc.next(); String x = "1"; String y = "2"; String[] a = {"1","3","5","7","8","10","12"}; String[] b = {"4","6","9","11"...
Class2.java:9: error: variable x is already defined in method main(String[]) String x = "1"; ^ Class2.java:10: error: variable y is already defined in method main(String[]) String y = "2"; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093192839|p03711|0
u093192839|p03711|0
codenet
Compile Error
788
v2_s861537594
s861537594
s861537594
p03711
p03711
u243084871
u243084871
1,565,476,574
2019-08-10T22:36:14
Main.java
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if (x == y && y == 2){ System.out.println("Yes"); } if (x == 4 || x == 6 || x == 9 || x == 11){ if (y == 4 || y == ...
Main.java:16: error: illegal character: '\u3000' if (x ==?4 || x == 6 || x == 9 || x == 11){ ^ Main.java:16: error: not a statement if (x ==?4 || x == 6 || x == 9 || x == 11){ ^ Main.java:16: error: ';' expected if (x ==?4 || x == 6 || x == 9 || x == 11){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u243084871|p03711|0
u243084871|p03711|0
codenet
Compile Error
665
v2_s302667472
s302667472
s302667472
p03711
p03711
u251825204
u251825204
1,593,695,375
2020-07-02T13:09:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if(x>=1 && x<=12 && y>=1 && y<=12){ if((x==1||x==3||x==5||x==7||x==8||x==10||x==12)&&(y==1||y==3||y==5||y==7||y==8||y=...
Main.java:28: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251825204|p03711|0
u251825204|p03711|0
codenet
Compile Error
1,335
v2_s107769316
s107769316
s107769316
p03711
p03711
u345023394
u345023394
1,598,383,848
2020-08-25T19:30:48
Main.java
2 4
Main.java:1: error: class, interface, enum, or record expected 2 4 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345023394|p03711|0
u345023394|p03711|0
codenet
Compile Error
3
v2_s492318252
s492318252
s492318252
p03711
p03711
u367107084
u367107084
1,536,012,645
2018-09-03T22:10:45
Main.java
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); if(x==2||y==2){ System.out.println("No"); }else if((x==4||x==6||x==9||x==11)&&(y==4||y=...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367107084|p03711|0
u367107084|p03711|0
codenet
Compile Error
544
v2_s401524537
s401524537
s401524537
p03711
p03711
u381460455
u381460455
1,590,335,418
2020-05-24T15:50:18
Main.java
import java.util.*; public Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int[] group = new int[12]; group[0] = 0; group[1] = 2; group[2] = 0; group[3] = 1; group[4] = 0; group[5] = 1; group[6] = 0; group[7] = 0; group[8] = 1; group...
Main.java:3: error: class, interface, enum, or record expected public Main { ^ 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) Main.java:29: error: class, interfa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381460455|p03711|0
u381460455|p03711|0
codenet
Compile Error
557
v2_s529117298
s529117298
s529117298
p03711
p03711
u492288342
u492288342
1,549,764,977
2019-02-10T02:16:17
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; #define MOD 1000000007 #define p(x) cout << x << endl; #define el cout << endl; #define rep(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> ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492288342|p03711|0
u492288342|p03711|0
codenet
Compile Error
566
v2_s617358179
s617358179
s617358179
p03711
p03711
u547167033
u547167033
1,566,447,573
2019-08-22T04:19:33
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int[] array1 = {1,3,5,7,8,10,12}; int[] array2 = {4,6,9,11}; if((array1.contains(x)&&array1.contains(y))||(array2.contains(x...
Main.java:9: error: cannot find symbol if((array1.contains(x)&&array1.contains(y))||(array2.contains(x)&&array2.contains(y))) ^ symbol: method contains(int) location: variable array1 of type int[] Main.java:9: error: cannot find symbol if((array1.contains(x)&&array1.contains(y))||(arra...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03711|0
u547167033|p03711|0
codenet
Compile Error
423
v2_s706168807
s706168807
s706168807
p03711
p03711
u578423830
u578423830
1,495,328,725
2017-05-21T01:05:25
Main.java
for (int i : a) { if (i == x) { tmpX = 1; } if (i == y) { tmpY = 1; } }
Main.java:2: error: class, interface, enum, or record expected for (int i : a) { ^ Main.java:5: error: class, interface, enum, or record expected } ^ Main.java:8: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578423830|p03711|0
u578423830|p03711|0
codenet
Compile Error
104
v2_s435477023
s435477023
s435477023
p03711
p03711
u593227551
u593227551
1,495,477,932
2017-05-22T18:32:12
Hoge.java
public class Hoge{ public static void main(String[] args){ int x = Integer.parseInt(args[0]); int x = Integer.parseInt(args[0]); int group1[7] = {1,3,5,7,8,10,12}; int group2[4] = {4,6,9,11}; int x_group; int y_group; for(int i=0;i=7;i++){ if(x == group1[i]){ x_group = 1; }else if(x == group2[i]){ ...
Hoge.java:6: error: ']' expected int group1[7] = {1,3,5,7,8,10,12}; ^ Hoge.java:6: error: not a statement int group1[7] = {1,3,5,7,8,10,12}; ^ Hoge.java:6: error: ';' expected int group1[7] = {1,3,5,7,8,10,12}; ^ Hoge.java:7: error: ']' expected int group2[4] = {4,6,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593227551|p03711|0
u593227551|p03711|0
codenet
Compile Error
606
v2_s148159014
s148159014
s148159014
p03711
p03711
u593227551
u593227551
1,495,477,988
2017-05-22T18:33:08
Hoge.java
public class Hoge{ public static void main(String[] args){ int x = Integer.parseInt(args[0]); int x = Integer.parseInt(args[0]); int group1[10] = {1,3,5,7,8,10,12}; int group2[10] = {4,6,9,11}; int x_group; int y_group; for(int i=0;i=7;i++){ if(x == group1[i]){ x_group = 1; }else if(x == group2[i]){ ...
Hoge.java:6: error: ']' expected int group1[10] = {1,3,5,7,8,10,12}; ^ Hoge.java:6: error: not a statement int group1[10] = {1,3,5,7,8,10,12}; ^ Hoge.java:6: error: ';' expected int group1[10] = {1,3,5,7,8,10,12}; ^ Hoge.java:7: error: ']' expected int group2[10] =...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593227551|p03711|0
u593227551|p03711|0
codenet
Compile Error
608
v2_s294092124
s294092124
s294092124
p03711
p03711
u627349438
u627349438
1,495,530,286
2017-05-23T09:04:46
Main.java
import java.util.*; public class Main { public static void main(String []args) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); Main soln = new Main(); System.out.println((soln.jd(m,n))? 'Yes':'No'); } private boolean jd(int m, int n) { if(m==2 || n==2) return false; ...
Main.java:9: error: unclosed character literal System.out.println((soln.jd(m,n))? 'Yes':'No'); ^ Main.java:9: error: not a statement System.out.println((soln.jd(m,n))? 'Yes':'No'); ^ Main.java:9: error: ';' expected System.out.println((so...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u627349438|p03711|0
u627349438|p03711|0
codenet
Compile Error
457
v2_s230936120
s230936120
s230936120
p03711
p03711
u646483356
u646483356
1,547,269,445
2019-01-12T05:04:05
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if(x==2||y==2){ System.out.print("No"); }else if(x==4||x==6||x==9||x==11){ if(y==4||y==6||y==...
Main.java:17: error: illegal start of expression if(y==1||y==3||y==5||y==7||=y=8||y==10||y==12){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03711|0
u646483356|p03711|0
codenet
Compile Error
608
v2_s952154945
s952154945
s952154945
p03711
p03711
u646483356
u646483356
1,547,269,482
2019-01-12T05:04:42
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if(x==2||y==2){ System.out.print("No"); }else if(x==4||x==6||x==9||x==11){ if(y==4||y==6||y==...
Main.java:17: error: illegal start of expression if(y==1||y==3||y==5||y==7||==y8||y==10||y==12){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03711|0
u646483356|p03711|0
codenet
Compile Error
608
v2_s387819823
s387819823
s387819823
p03711
p03711
u646483356
u646483356
1,547,270,316
2019-01-12T05:18:36
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String s = acababaababa; if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y))) } }
Main.java:10: error: '.class' expected if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y))) ^ Main.java:10: error: not a statement if(s.substring(int x-1,int x).equals(s.substring(int y-1,int y))) ^ Main.java:10: error: ';' expected if(s....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03711|0
u646483356|p03711|0
codenet
Compile Error
303
v2_s371301159
s371301159
s371301159
p03711
p03711
u646483356
u646483356
1,547,270,386
2019-01-12T05:19:46
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String s = acababaababa; if(s.substring(x-1,x).equals(s.substring(y-1,y))) } }
Main.java:12: error: illegal start of statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03711|0
u646483356|p03711|0
codenet
Compile Error
287
v2_s239059908
s239059908
s239059908
p03711
p03711
u646483356
u646483356
1,547,270,961
2019-01-12T05:29:21
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if(x==4||x==6||x==9||x==11 && y==4||y==6||y==9||y==11){ Syste.out.print("Yes"); }else if(y==1||y==3||y==5||y==7||y==8||y==10||y==...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:9: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03711|0
u646483356|p03711|0
codenet
Compile Error
475