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_s523257478
s523257478
s523257478
p02778
p02778
u866891215
u866891215
1,581,278,685
2020-02-09T20:04:45
Main.java
import java.util.*; class Main{ public class void man(String[] args){ Scanner sc=new Scanner(System.in); String ss=sc.next(); for(int i=0;i<ss.length;i++){ System.out.print('x'); } } }
Main.java:4: error: <identifier> expected public class void man(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866891215|p02778|0
u866891215|p02778|0
codenet
Compile Error
216
v2_s163621201
s163621201
s163621201
p02778
p02778
u866891215
u866891215
1,581,279,516
2020-02-09T20:18:36
Main.java
import java.util.*; class Main{ public static void man(String[] args){ Scanner sc=new Scanner(System.in); String ss=sc.next(); for(int i=0;i<ss.length;i++){ System.out.print('x'); } } }
Main.java:8: error: cannot find symbol for(int i=0;i<ss.length;i++){ ^ symbol: variable length location: variable ss of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866891215|p02778|0
u866891215|p02778|0
codenet
Compile Error
218
v2_s650460042
s650460042
s650460042
p02778
p02778
u890640807
u890640807
1,581,885,924
2020-02-16T20:45:24
MissYou.java
public class MissYou{ public void static main(String[]args){ char[]boxes; for(int i=0;i<args[0].length;i++){ boxes[i] = x; system.out.print(boxes[i]); } } }
MissYou.java:2: error: <identifier> expected public void static main(String[]args){ ^ MissYou.java:2: error: '(' expected public void static main(String[]args){ ^ MissYou.java:2: error: invalid method declaration; return type required public void static main(String[]args){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u890640807|p02778|0
u890640807|p02778|0
codenet
Compile Error
189
v2_s063816598
s063816598
s063816598
p02778
p02778
u952491523
u952491523
1,581,278,619
2020-02-09T20:03:39
Main.java
l = len(input()) for i in range(l): print('x', end='') print()
Main.java:1: error: class, interface, enum, or record expected l = len(input()) ^ Main.java:4: error: empty character literal print('x', end='') ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u952491523|p02778|0
u952491523|p02778|0
codenet
Compile Error
68
v2_s144153296
s144153296
s144153296
p02779
p02779
u030791900
u030791900
1,581,281,958
2020-02-09T20:59:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); ...
Main.java:20: error: cannot find symbol int len = PerseInt(inputLen); ^ symbol: method PerseInt(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030791900|p02779|0
u030791900|p02779|0
codenet
Compile Error
921
v2_s757281591
s757281591
s757281591
p02779
p02779
u030791900
u030791900
1,581,282,023
2020-02-09T21:00:23
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); ...
Main.java:20: error: cannot find symbol int len = Integer.PerseInt(inputLen); ^ symbol: method PerseInt(String) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030791900|p02779|0
u030791900|p02779|0
codenet
Compile Error
929
v2_s159038426
s159038426
s159038426
p02779
p02779
u030791900
u030791900
1,581,282,073
2020-02-09T21:01:13
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); ...
Main.java:20: error: cannot find symbol int len = Integer.perseInt(inputLen); ^ symbol: method perseInt(String) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030791900|p02779|0
u030791900|p02779|0
codenet
Compile Error
929
v2_s554661687
s554661687
s554661687
p02779
p02779
u055158604
u055158604
1,583,590,296
2020-03-07T14:11:36
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { static boolean flg = false; private static final String YES = "YES"; private static final String NO = "NO"; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int digits = scan...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u055158604|p02779|0
u055158604|p02779|0
codenet
Compile Error
809
v2_s941482499
s941482499
s941482499
p02779
p02779
u062736195
u062736195
1,582,130,963
2020-02-19T16:49: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(); long[] A = new long[N]; boolean hantei = true; for(int i=0; i<N; i++){ A[i] = sc.nextLong(); for(int j=0; j<i; j++){ if(A[i] == A[j]){ ...
Main.java:18: error: cannot find symbol if(Hantei == true) System.out.println("YES"); ^ symbol: variable Hantei location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02779|0
u062736195|p02779|0
codenet
Compile Error
509
v2_s341786772
s341786772
s341786772
p02779
p02779
u062736195
u062736195
1,582,131,602
2020-02-19T17:00:02
Main.java
import java.util.Scanner; import java.util.Set; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Set<Long> set = new HashSet<Long>(); boolean hantei = true; for(int i=0; i<N; i++){ int bSize = set.size(); Long A = s...
Main.java:15: error: not a statement boolean = false; ^ Main.java:15: error: ';' expected boolean = false; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02779|0
u062736195|p02779|0
codenet
Compile Error
518
v2_s869163546
s869163546
s869163546
p02779
p02779
u062736195
u062736195
1,582,131,625
2020-02-19T17:00:25
Main.java
import java.util.Scanner; import java.util.Set; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Set<Long> set = new HashSet<Long>(); boolean hantei = true; for(int i=0; i<N; i++){ int bSize = set.size(); Long A = s...
Main.java:7: error: cannot find symbol Set<Long> set = new HashSet<Long>(); ^ symbol: class HashSet location: class Main Main.java:13: error: cannot find symbol size.add(A); ^ symbol: variable size location: class Main Main.java:14: error: cannot find symbol if(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02779|0
u062736195|p02779|0
codenet
Compile Error
517
v2_s199436126
s199436126
s199436126
p02779
p02779
u062736195
u062736195
1,582,131,657
2020-02-19T17:00:57
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Set<Long> set = new HashSet<Long>(); boolean hantei = true; for(int i=0; i<N; i++){ int bSize = set.size(); Long A...
Main.java:7: error: cannot find symbol Set<Long> set = new HashSet<Long>(); ^ symbol: class Set location: class Main Main.java:13: error: cannot find symbol size.add(A); ^ symbol: variable size location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02779|0
u062736195|p02779|0
codenet
Compile Error
521
v2_s059397512
s059397512
s059397512
p02779
p02779
u062736195
u062736195
1,582,131,686
2020-02-19T17:01:26
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); HashSet<Long> set = new HashSet<Long>(); boolean hantei = true; for(int i=0; i<N; i++){ int bSize = set.size(); Lo...
Main.java:13: error: cannot find symbol size.add(A); ^ symbol: variable size location: class Main Main.java:14: error: cannot find symbol if(set.size == bSize) ^ symbol: variable size location: variable set of type HashSet<Long> 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02779|0
u062736195|p02779|0
codenet
Compile Error
525
v2_s305906194
s305906194
s305906194
p02779
p02779
u095200025
u095200025
1,581,388,085
2020-02-11T02:28:05
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = Integer.parseInt(sc.next()); int array = new int[num]; String ans = "YES"; for (int i = 0; i < num; i++){ array[i] = Integer.parseInt(sc.next()); } Arrays.sort(array); for (int i...
Main.java:6: error: incompatible types: int[] cannot be converted to int int array = new int[num]; ^ Main.java:9: error: array required, but int found array[i] = Integer.parseInt(sc.next()); ^ Main.java:11: error: no suitable method found for sort(int) Arrays.sort(array); ^ method...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u095200025|p02779|2
u095200025|p02779|1
codenet
Compile Error
429
v2_s781196233
s781196233
s781196233
p02779
p02779
u110115790
u110115790
1,585,791,897
2020-04-02T01:44:57
Main.java
import java.util.Arrays; import java.util.Comparator; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //ここから4行配列として数列を受け取る Integer a[] = new Integer[N]; for(int i = 0; i < N; i++){ a[i] = sc.nextInt(); } //配列を降順に...
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); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110115790|p02779|0
u110115790|p02779|0
codenet
Compile Error
590
v2_s320439080
s320439080
s320439080
p02779
p02779
u110115790
u110115790
1,585,794,063
2020-04-02T02:21:03
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //ここから4行配列として数列を受け取る long a[] = new long[N]; for(int i = 0; i < N; i++){ a[i] = sc.nextInt(); } //配列を降順に並び替える Arrays.sort(a, Comparator.reve...
Main.java:13: error: no suitable method found for sort(long[],Comparator<T#1>) Arrays.sort(a, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: long upper bo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110115790|p02779|0
u110115790|p02779|0
codenet
Compile Error
561
v2_s924678809
s924678809
s924678809
p02779
p02779
u162241493
u162241493
1,584,213,641
2020-03-14T19:20:41
Main.java
import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); String anser = "YES"; HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); for (int i = 0; i < N; i++) { map.p...
Main.java:20: error: bad operand types for binary operator '!=' while(a != null){ ^ first type: int second type: <null> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162241493|p02779|0
u162241493|p02779|0
codenet
Compile Error
610
v2_s264723651
s264723651
s264723651
p02779
p02779
u173574510
u173574510
1,581,961,649
2020-02-17T17:47:29
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.StringTokenizer; //System.out.println(); public class Main implements Runnable { //クラス名はMain public static void main(String[] args) { Thread.s...
Main.java:20: error: '(' or '[' expected ArrayList<Long> a = new ArrayList<Long>; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u173574510|p02779|0
u173574510|p02779|0
codenet
Compile Error
2,082
v2_s656988366
s656988366
s656988366
p02779
p02779
u176003399
u176003399
1,593,552,455
2020-06-30T21:27:35
Main.java
import java.util.*; class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); String ans = "No"; Set<Integer> A = new HashSet<>(); for(int i = 0; i < N; i++){ A.add(sc.nextInt()); } if(A.size() = N){ ans = "Yes"; } ...
Main.java:12: error: unexpected type if(A.size() = N){ ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176003399|p02779|0
u176003399|p02779|0
codenet
Compile Error
369
v2_s270837273
s270837273
s270837273
p02779
p02779
u176590289
u176590289
1,581,279,522
2020-02-09T20:18:42
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Long> c = new ArrayList<>(); for(int i=0;i<n;i++){ long a = sc.nextLong(); if(c.contains(a)){ System.out.println("NO"); return;...
Main.java:8: error: cannot find symbol List<Long> c = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:8: error: cannot find symbol List<Long> c = new ArrayList<>(); ^ symbol: class ArrayList location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176590289|p02779|0
u176590289|p02779|0
codenet
Compile Error
401
v2_s539077993
s539077993
s539077993
p02779
p02779
u200965229
u200965229
1,599,640,809
2020-09-09T08:40:09
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean[] a = new boolean[1_000_000_001]; for (int i = 0; i < n; i++) { //重複があるかジャッジ int k = sc.nextInt(); if(a[k]) { System.out.println("NO"); return; } //重複ない場合の処理...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200965229|p02779|0
u200965229|p02779|0
codenet
Compile Error
415
v2_s620791470
s620791470
s620791470
p02779
p02779
u308571599
u308571599
1,581,280,534
2020-02-09T20:35:34
Main.java
package main import ( "bufio" "fmt" "math" "math/rand" "os" "strconv" "sync" ) const ( MX_INT int64 = math.MaxInt64 MN_INT int64 = math.MinInt64 ) func main() { n := ScanInt64() a := ScanInt64Slice(n) //sort.Slice(a, func(i, j int) bool { return a[i] < a[j] }) a = quicksort(a) found := false fmt.Pri...
Main.java:1: error: ';' expected package main ^ Main.java:3: error: <identifier> expected import ( ^ Main.java:27: error: class, interface, enum, or record expected for i := int64(1); i < n; i++ { ^ Main.java:27: error: class, interface, enum, or record expected for i := int64(1)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u308571599|p02779|0
u308571599|p02779|0
codenet
Compile Error
2,556
v2_s177489740
s177489740
s177489740
p02779
p02779
u362459533
u362459533
1,581,280,123
2020-02-09T20:28:43
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); String[] data = (sc.nextLine()).split(" "); boolean ans = false; for(int i=0; i<n; i++){ ...
Main.java:24: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:49: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362459533|p02779|0
u362459533|p02779|0
codenet
Compile Error
1,287
v2_s653906613
s653906613
s653906613
p02779
p02779
u378599173
u378599173
1,582,073,027
2020-02-19T00:43:47
Main.java
public static void main(final String[] args){ final Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); ArrayList<Integer> number = new ArrayList<Integer>(); boolean res = false; int num; point:for (int i = 0; i < n; i++) { num = sc.next...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(final String[] args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u378599173|p02779|0
u378599173|p02779|0
codenet
Compile Error
625
v2_s825131503
s825131503
s825131503
p02779
p02779
u387720785
u387720785
1,584,739,088
2020-03-20T21:18:08
Main.java
#include <stdio.h> #include <math.h> #include <iostream> #include <algorithm> #include <vector> #include <numeric> #include <string> #include <map> using namespace std; typedef long long int lli; #define urept(soeji, start, n) for (int soeji = start; soeji < n; soeji++) #define drept(soeji, start, n) for (int soeji = s...
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 <math.h> ^ Main.java:3: error: illegal character: '#' #include <iostream> ^ Main.java:4: error: illegal charact...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387720785|p02779|0
u387720785|p02779|0
codenet
Compile Error
774
v2_s877805392
s877805392
s877805392
p02779
p02779
u431125128
u431125128
1,581,278,912
2020-02-09T20:08: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=new Long[n]; for(int i=0;i<n;i++){ a[i]=sc.nextLong(); } Arrays.sort(a); boolean flg=true; for(int i=1;i<n;i++){ if(a[i]!=a[i-1]){...
Main.java:7: error: incompatible types: Long[] cannot be converted to long[] long[] a=new Long[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02779|0
u431125128|p02779|0
codenet
Compile Error
469
v2_s980891663
s980891663
s980891663
p02779
p02779
u442039299
u442039299
1,581,279,965
2020-02-09T20:26:05
Main.java
ort java.util.*; import java.util.Comparator; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); String o="YES"; int[] a=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); for(in...
Main.java:1: error: class, interface, enum, or record expected ort java.util.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Comparator; ^ Main.java:23: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:24: error: class, interface, enum, or record exp...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u442039299|p02779|0
u442039299|p02779|0
codenet
Compile Error
1,094
v2_s548479608
s548479608
s548479608
p02779
p02779
u497359350
u497359350
1,587,652,097
2020-04-23T14:28:17
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] an = new long[n]; String answer = "YES"; for (int i = 0; i < n; i++) { an[i] = sc.nextInt(); } for (int i = 0; i < n; i++) { for (int j = 0; j < ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497359350|p02779|0
u497359350|p02779|0
codenet
Compile Error
460
v2_s752927290
s752927290
s752927290
p02779
p02779
u532667821
u532667821
1,595,667,114
2020-07-25T08:51:54
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); HashSet<Long> list = new HashSet<Long> for(int i = 0; i <= N; i++){ list.add(scan...
Main.java:11: error: '(' or '[' expected for(int i = 0; i <= N; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02779|0
u532667821|p02779|0
codenet
Compile Error
492
v2_s345618800
s345618800
s345618800
p02779
p02779
u532667821
u532667821
1,595,667,176
2020-07-25T08:52:56
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); HashSet<Long> list = new HashSet<Long> for(int i = 0; i < N; i++){ list.add(scann...
Main.java:11: error: '(' or '[' expected for(int i = 0; i < N; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02779|0
u532667821|p02779|0
codenet
Compile Error
491
v2_s860237471
s860237471
s860237471
p02779
p02779
u532667821
u532667821
1,595,667,407
2020-07-25T08:56:47
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); HashSet<Long> list = new HashSet<Long> for(int i = 0; i < N; i++){ list.add(scann...
Main.java:11: error: '(' or '[' expected for(int i = 0; i < N; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02779|0
u532667821|p02779|0
codenet
Compile Error
491
v2_s264405676
s264405676
s264405676
p02779
p02779
u532667821
u532667821
1,595,667,502
2020-07-25T08:58:22
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); HashSet<Long> list = new HashSet<Long> for(int i = 0; i < N; i++){ list.add(scann...
Main.java:11: error: '(' or '[' expected for(int i = 0; i < N; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02779|0
u532667821|p02779|0
codenet
Compile Error
491
v2_s254087417
s254087417
s254087417
p02779
p02779
u532667821
u532667821
1,595,668,080
2020-07-25T09:08:00
Main.java
import java.util.Scanner; import java.util.HashSet; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); HashSet<Long> list = new HashSet<Long>; for(int i = 0; i < N; i++) { list.add(scanner.nex...
Main.java:9: error: '(' or '[' expected HashSet<Long> list = new HashSet<Long>; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02779|0
u532667821|p02779|0
codenet
Compile Error
485
v2_s676993155
s676993155
s676993155
p02779
p02779
u546418037
u546418037
1,581,447,080
2020-02-11T18:51:20
Main.java
/*package whatever //do not write package name here */ // Working program with FastReader import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.io.*; public class Main { static class FastReader ...
Main.java:9: error: package java.util.io does not exist import java.util.io.*; ^ Main.java:73: error: cannot find symbol HashMap<Long,Long> map = new HashMap<Long,Long>(); ^ symbol: class HashMap location: class Main Main.java:73: error: cannot find symbol HashMap<Long,Long> map = new HashMa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546418037|p02779|1
u546418037|p02779|1
codenet
Compile Error
1,513
v2_s062686717
s062686717
s062686717
p02779
p02779
u557342108
u557342108
1,581,280,759
2020-02-09T20:39:19
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { boolean ans=true; Scanner sc=new Scanner(System.in); int size=sc.nextInt(); int elements[]=new int[ size]; for(int i=0;i<size;i++) { elements[i]=sc.nextInt(); ...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u557342108|p02779|0
u557342108|p02779|0
codenet
Compile Error
680
v2_s543065349
s543065349
s543065349
p02779
p02779
u578775554
u578775554
1,586,980,691
2020-04-15T19:58:11
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean chk = true; HashMap<Integer,Integer> map = new HashMap<Integer,Integer>(); ...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578775554|p02779|0
u578775554|p02779|0
codenet
Compile Error
647
v2_s568463797
s568463797
s568463797
p02779
p02779
u587100042
u587100042
1,590,353,486
2020-05-24T20:51:26
Main.java
import java.util.*; import org.apache.commons.lang3.StringUtils; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),f=0; long[] a=new long[n]; for(int i=0;i<n;i++){ a[i]=sc.nextLong(); } Arrays.sort(a); for(int i=...
Main.java:2: error: package org.apache.commons.lang3 does not exist import org.apache.commons.lang3.StringUtils; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02779|0
u587100042|p02779|0
codenet
Compile Error
472
v2_s049016269
s049016269
s049016269
p02779
p02779
u724021453
u724021453
1,581,279,994
2020-02-09T20:26:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<String> list = new ArrayList<>(); for (int i = 0; i < n; i++) { list.add(sc.next()); } boolean flag = false; ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u724021453|p02779|0
u724021453|p02779|0
codenet
Compile Error
713
v2_s817816529
s817816529
s817816529
p02779
p02779
u848823302
u848823302
1,594,841,181
2020-07-15T19:26:21
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<String>(); while(sc.hasNext()) { list.put(sc.nextInt()); } for (int i = list.length() - 1; i < 0; i--) { int a = list.remove...
Main.java:11: error: cannot find symbol list.put(sc.nextInt()); ^ symbol: method put(int) location: variable list of type List Main.java:14: error: cannot find symbol for (int i = list.length() - 1; i < 0; i--) { ^ symbol: method length() location: variable list of t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848823302|p02779|0
u848823302|p02779|0
codenet
Compile Error
486
v2_s143425496
s143425496
s143425496
p02779
p02779
u848823302
u848823302
1,594,841,211
2020-07-15T19:26:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<String>(); while(sc.hasNext()) { list.add(sc.nextInt()); } for (int i = list.length() - 1; i < 0; i--) { int a = list.remove...
Main.java:14: error: cannot find symbol for (int i = list.length() - 1; i < 0; i--) { ^ symbol: method length() location: variable list of type List Main.java:15: error: incompatible types: Object cannot be converted to int int a = list.remove(i); ^ Note: Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848823302|p02779|0
u848823302|p02779|0
codenet
Compile Error
486
v2_s824156022
s824156022
s824156022
p02779
p02779
u848823302
u848823302
1,594,841,329
2020-07-15T19:28:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<String>(); while(sc.hasNext()) { list.put(sc.nextInt()); } for (int i = list.size() - 1; i < 0; i--) { int a = list.remove(i...
Main.java:11: error: cannot find symbol list.put(sc.nextInt()); ^ symbol: method put(int) location: variable list of type List Main.java:15: error: incompatible types: Object cannot be converted to int int a = list.remove(i); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848823302|p02779|0
u848823302|p02779|0
codenet
Compile Error
484
v2_s894396264
s894396264
s894396264
p02779
p02779
u848823302
u848823302
1,594,841,380
2020-07-15T19:29:40
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<Integer>(); while(sc.hasNext()) { list.add(sc.nextInt()); } for (int i = list.size() - 1; i < 0; i--) { int a = list.remove(...
Main.java:15: error: incompatible types: Object cannot be converted to int int a = list.remove(i); ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u848823302|p02779|0
u848823302|p02779|0
codenet
Compile Error
485
v2_s507036677
s507036677
s507036677
p02779
p02779
u866070271
u866070271
1,581,280,051
2020-02-09T20:27:31
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner scan =new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; for (int i=0;i<n;i++){ a[i] = scan.nextInt(); } String str = a.toString(); for (int i=0;i<...
Main.java:13: error: ')' expected if (str.contains((temp)) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02779|0
u866070271|p02779|0
codenet
Compile Error
549
v2_s348378260
s348378260
s348378260
p02779
p02779
u922540532
u922540532
1,585,919,520
2020-04-03T13:12:00
Main.java
import java.util.*; public class Main { public static void main(String args[]) { int a; Scanner sc=new Scanner(System.in); a=sc.nextInt(); int c=0; int b[]=new int[a]; for(int i=0;i<a;i++) { b[i]=sc.nextInt(); } Arrays.sort(b); for(int j=0;j<a-1;j++) { if(b[j]==b[j+1]) { c=c+1; } } ...
Main.java:25: error: cannot find symbol {System.out.printlna("Yes");} ^ symbol: method printlna(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922540532|p02779|0
u922540532|p02779|0
codenet
Compile Error
404
v2_s127038034
s127038034
s127038034
p02779
p02779
u949301669
u949301669
1,581,557,317
2020-02-13T01:28:37
Main.java
class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int length = scan.nextInt(); int[] arr = new int[length-1]; while(length>0){ arr[length] = scan.nextInt(); length--; } } }
Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u949301669|p02779|0
u949301669|p02779|0
codenet
Compile Error
273
v2_s725489604
s725489604
s725489604
p02779
p02779
u949301669
u949301669
1,581,852,590
2020-02-16T11:29:50
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); HashSet<Integer> hashSet = new HashSet<>(); while (n > 0 ) { int val = sc.nextInt(); if(hashSet.contains( val)) { System....
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u949301669|p02779|2
u949301669|p02779|2
codenet
Compile Error
486
v2_s724786848
s724786848
s724786848
p02779
p02779
u955312788
u955312788
1,581,342,799
2020-02-10T13:53:19
Main.java
Copy Copy import java.util.Scanner; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); int n = sc.nextInt(); int a[] = new int [n]; for(int i=0;i<n;i++) { a[i] = sc.nextInt(); } sc.close(); for(int i=0;i<n;i++) { for(int j=0;j<n;j++)...
Main.java:3: error: class, interface, enum, or record expected Copy ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u955312788|p02779|1
u955312788|p02779|1
codenet
Compile Error
466
v2_s767830598
s767830598
s767830598
p02779
p02779
u955312788
u955312788
1,581,342,899
2020-02-10T13:54:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); int n = sc.nextInt(); int a[] = new int [n]; for(int i=0;i<n;i++) { a[i] = sc.nextInt(); } sc.close(); for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(i==j) con...
Main.java:6: error: cannot find symbol FastScanner sc = new FastScanner(System.in); ^ symbol: class FastScanner location: class Main Main.java:6: error: cannot find symbol FastScanner sc = new FastScanner(System.in); ^ symbol: class FastScanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u955312788|p02779|1
u955312788|p02779|1
codenet
Compile Error
447
v2_s719361791
s719361791
s719361791
p02779
p02779
u955312788
u955312788
1,581,343,130
2020-02-10T13:58:50
Main.java
import java.io.*; public class Main { public static void main(String[] args) { static FastScanner sc = new FastScanner(System.in); int n = sc.nextInt(); int a[] = new int [n]; for(int i=0;i<n;i++) { a[i] = sc.nextInt(); } sc.close(); for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { if(i==j) ...
Main.java:5: error: illegal start of expression static FastScanner sc = new FastScanner(System.in); ^ Main.java:9: error: illegal start of type for(int i=0;i<n;i++) { ^ Main.java:9: error: > or ',' expected for(int i=0;i<n;i++) { ^ Main.java:9: error: <identifier> expected for(int i=0;i<n;i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u955312788|p02779|1
u955312788|p02779|1
codenet
Compile Error
5,312
v2_s474510244
s474510244
s474510244
p02780
p02780
u062736195
u062736195
1,582,132,768
2020-02-19T17:19:28
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] p = new int[N]; for(int i =0; i<N; i++) p[i] = sc.nextInt(); int maxScore = 0; double avgScore = 0; int maxNumb...
Main.java:16: error: cannot find symbol score = p[i] + p[i+1] + p[i+2]; ^ symbol: variable score location: class Main Main.java:17: error: cannot find symbol if(maxScore < score) {maxScore = score; maxNumber = i;} ^ symbol: variable score location: class Main Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02780|0
u062736195|p02780|0
codenet
Compile Error
756
v2_s011171538
s011171538
s011171538
p02780
p02780
u062736195
u062736195
1,582,134,768
2020-02-19T17:52:48
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 N = sc.nextInt(); int K = sc.nextInt(); long[] p = new long[N]; long avg =0; for(int i=0; i<N; i++) p[i] = sc.nextLong(); Arrays.sort(...
Main.java:2: error: ';' expected import java.util Arrays; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02780|0
u062736195|p02780|0
codenet
Compile Error
463
v2_s199062938
s199062938
s199062938
p02780
p02780
u062736195
u062736195
1,582,134,787
2020-02-19T17:53:07
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 N = sc.nextInt(); int K = sc.nextInt(); long[] p = new long[N]; long avg =0; for(int i=0; i<N; i++) p[i] = sc.nextLong(); Arrays.sort(...
Main.java:16: error: incompatible types: possible lossy conversion from double to long long score = (p[N-1-i] + 1) /2.0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02780|0
u062736195|p02780|0
codenet
Compile Error
463
v2_s290929454
s290929454
s290929454
p02780
p02780
u062736195
u062736195
1,582,135,763
2020-02-19T18:09: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 K = sc.nextInt(); //振るダイスの数 int[] p = new int[N]; for(int i =0; i<K-1; i++) p[i] = sc.nextInt(); double maxAverage = 0; double...
Main.java:20: error: ')' expected if(i ==0;{ ^ Main.java:23: error: 'else' without 'if' }else{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02780|0
u062736195|p02780|0
codenet
Compile Error
901
v2_s551290761
s551290761
s551290761
p02780
p02780
u218740431
u218740431
1,581,281,308
2020-02-09T20:48:28
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); double [] in = new double [a]; for(int i=0;i<a;i++){ in[i] = (1+sc.nextInt())/2; ...
Main.java:12: error: incompatible types: int cannot be converted to boolean for(int i=0;i<a-b+1;i++){if(i=0){for(int j=0;j<b;j++){in2[i]+=in[j];} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02780|0
u218740431|p02780|0
codenet
Compile Error
714
v2_s150879178
s150879178
s150879178
p02780
p02780
u292902179
u292902179
1,581,285,254
2020-02-09T21:54:14
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int num=scan.nextInt(); int dice=scan.nextInt(); int in; double par[]=new double[num]; for(int x=0; x<num; x++){ plus=0; in=scan.nextInt(); if(in==1){ par[x]=...
Main.java:11: error: cannot find symbol plus=0; ^ symbol: variable plus location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02780|0
u292902179|p02780|0
codenet
Compile Error
623
v2_s632986103
s632986103
s632986103
p02780
p02780
u578775554
u578775554
1,586,980,700
2020-04-15T19:58:20
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean chk = true; HashMap<Integer,Integer> map = new HashMap<Integer,Integer>(); ...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578775554|p02780|0
u578775554|p02780|0
codenet
Compile Error
647
v2_s067377214
s067377214
s067377214
p02780
p02780
u584010745
u584010745
1,582,379,228
2020-02-22T13:47:08
Main.java
import java.util.*; public class Main { public static void main(String aegs[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) arr[i]=sc.nextInt(); int max=-1; for(int i=0;i<n-k;i++) { int sum=0; ...
Main.java:17: error: ';' expected sum+=arr[j] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584010745|p02780|0
u584010745|p02780|0
codenet
Compile Error
454
v2_s246841453
s246841453
s246841453
p02780
p02780
u584010745
u584010745
1,582,379,412
2020-02-22T13:50:12
Main.java
import java.util.*; public class Main { public static void main(String aegs[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); double arr[]=new double[n]; for(int i=0;i<n;i++) arr[i]=sc.nextDouble(); double max=-1; for(int i=0;i<n-k;i++) { dou...
Main.java:17: error: ';' expected sum+=arr[j] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584010745|p02780|0
u584010745|p02780|0
codenet
Compile Error
470
v2_s763626249
s763626249
s763626249
p02780
p02780
u587100042
u587100042
1,590,354,073
2020-05-24T21:01:13
Main.java
import java.util.*; public class Main{ public static double e(int n){ return (double)(n+1)/(double)2; } public static int sum(int n,int m){ int j=0; for(int i=0;i<m;i++){ j+=n-i; } return j; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),...
Main.java:23: error: incompatible types: possible lossy conversion from double to int s[i]=e(p[i]); ^ Main.java:25: error: incompatible types: possible lossy conversion from double to int s[i]=s[i-1]+e(p[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02780|0
u587100042|p02780|0
codenet
Compile Error
700
v2_s990043262
s990043262
s990043262
p02780
p02780
u587100042
u587100042
1,590,354,147
2020-05-24T21:02:27
Main.java
import java.util.*; public class Main{ public static double e(int n){ return (double)(n+1)/(double)2; } public static int sum(int n,int m){ int j=0; for(int i=0;i<m;i++){ j+=n-i; } return j; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),...
Main.java:18: error: incompatible types: int[] cannot be converted to double[] double[] s=new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02780|0
u587100042|p02780|0
codenet
Compile Error
713
v2_s859445732
s859445732
s859445732
p02780
p02780
u689375192
u689375192
1,581,477,908
2020-02-12T03:25:08
Main.java
import java.io.*; import java.util.*; ​ public class Main { ​ public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); int n=sc.nextInt(); int k=sc.nextInt(); double[] arr=new double[n]; for(int i=0;i<n;i++) { arr[i]= (s...
Main.java:3: error: illegal character: '\u200b' ? ^ Main.java:5: error: illegal character: '\u200b' ? ^ Main.java:28: error: illegal character: '\u200b' ? ^ Main.java:32: error: illegal character: '\u200b' ? ^ Main.java:36: error: illegal character: '\u200b' ? ^ Main.java:40: error: illegal character: '\u200b' ? ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689375192|p02780|0
u689375192|p02780|0
codenet
Compile Error
1,436
v2_s178477796
s178477796
s178477796
p02780
p02780
u727990828
u727990828
1,581,282,190
2020-02-09T21:03:10
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); double[] p= new float[n]; double max = 0; double sum = 0; for(int i = 0;i<n;i++){ p[i] = ((double)(sc.nextInt...
Main.java:8: error: incompatible types: float[] cannot be converted to double[] double[] p= new float[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727990828|p02780|0
u727990828|p02780|0
codenet
Compile Error
564
v2_s538465002
s538465002
s538465002
p02780
p02780
u765748434
u765748434
1,581,873,694
2020-02-16T17:21:34
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int K = Integer.parseInt(s.nextLine().split(" ")[1]); String Ps = s.nextLine(); List<Double> p = Arrays.asList(Ps.split(" ")).stream().map(Double::parseDouble).collect(Collectors.toList(...
Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u765748434|p02780|0
u765748434|p02780|0
codenet
Compile Error
724
v2_s898921194
s898921194
s898921194
p02780
p02780
u913110564
u913110564
1,581,294,424
2020-02-10T00:27:04
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.imn); int N=sc.nextInt(); int K=sc.nextInt(); int[] saikoro=new int[N+1]; //imosをとって、そこから区間和が最大になるところを見つける Array.fill(saikoro,0); int max=0; //区間和の最大値をメモする for(int i=0; i<N; i++){ sai...
Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.imn); ^ symbol: variable imn location: class System Main.java:10: error: cannot find symbol Array.fill(saikoro,0); ^ symbol: variable Array location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p02780|0
u913110564|p02780|0
codenet
Compile Error
662
v2_s190616852
s190616852
s190616852
p02780
p02780
u913110564
u913110564
1,581,294,452
2020-02-10T00:27:32
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.imn); int N=sc.nextInt(); int K=sc.nextInt(); int[] saikoro=new int[N+1]; //imosをとって、そこから区間和が最大になるところを見つける Arrays.fill(saikoro,0); int max=0; //区間和の最大値をメモする for(int i=0; i<N; i++){ sa...
Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.imn); ^ symbol: variable imn location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p02780|0
u913110564|p02780|0
codenet
Compile Error
664
v2_s248035121
s248035121
s248035121
p02781
p02781
u055125625
u055125625
1,581,692,323
2020-02-14T14:58:43
Main.java
import java.util.*; class Main{ void main(){ Scanner in = new Scanner(System.in); long n = in.nextLong(), d = in.nextLong(); int s = 0; for(long i = 1 ; i < n ; i++){ int c=0;String cs = Integer.toString(i); for(int j = 0; j < cs.length(); j++) i...
Main.java:8: error: incompatible types: possible lossy conversion from long to int int c=0;String cs = Integer.toString(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
u055125625|p02781|0
u055125625|p02781|0
codenet
Compile Error
450
v2_s182621921
s182621921
s182621921
p02781
p02781
u154898295
u154898295
1,585,757,269
2020-04-01T16:07:49
Main.java
#include <bits/stdc++.h> using namespace std; string n; int k; int comb(int n, int k) { int rv = 1; for (int i = 0; i < k; i++) rv *= n--; while (k) rv /= k--; return rv; } int g(int free, int k) { return comb(free, k) * pow(9, k); } int f(string n, int k) { if (k == 0) return 1; if (n.size() < k) re...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. string n; ^ (use --enable-preview to enable unnamed classes) M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154898295|p02781|0
u154898295|p02781|0
codenet
Compile Error
551
v2_s682464564
s682464564
s682464564
p02781
p02781
u218740431
u218740431
1,581,284,212
2020-02-09T21:36:52
Main.java
import java.util.*; public class Main { public static Long com (Long x,Long y){ if(x<=1) return 1; if(y==0 || y==x) return 1; if(y<0 || y>x) return 0; return com(x-1,y-1)+com(x-1,y); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); Long a = sc.n...
Main.java:4: error: incompatible types: int cannot be converted to Long if(x<=1) return 1; ^ Main.java:5: error: incompatible types: int cannot be converted to Long if(y==0 || y==x) return 1; ^ Main.java:6: error: incompatible types: int cannot be ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02781|0
u218740431|p02781|0
codenet
Compile Error
602
v2_s644239078
s644239078
s644239078
p02781
p02781
u218740431
u218740431
1,581,284,397
2020-02-09T21:39:57
Main.java
import java.util.*; public class Main { public static Long com (Long x,Long y){ if(y==1) return x; return com(x-1,y-1)+com(x-1,y); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); Long a = sc.nextLong(); Long b = a-a; int c = sc.nextInt(); ...
Main.java:12: error: incompatible types: int cannot be converted to Long for(int i=0;i<100;i++){if(Math.pow(10,i)<=a && Math.pow(10,i+1)>a){b=a/Math.pow(10,i)*com(i-1,c-1)*Math.pow(9,c-1)+com(i-1,c)*Math.pow(9,c);} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02781|0
u218740431|p02781|0
codenet
Compile Error
535
v2_s512963292
s512963292
s512963292
p02781
p02781
u254520375
u254520375
1,581,284,380
2020-02-09T21:39:40
Main.java
import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String N = sc.next(); long K = sc.nextInt(); long res=0; for(long i=1;i<N.length();i++){ StringBuilder bld = new Str...
Main.java:19: error: cannot find symbol System.out.prlongln(res); ^ symbol: method prlongln(long) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u254520375|p02781|0
u254520375|p02781|0
codenet
Compile Error
1,372
v2_s128949767
s128949767
s128949767
p02781
p02781
u279464397
u279464397
1,581,333,128
2020-02-10T11:12:08
Main.java
import java.util.*; class Main{ public static void main(String args[]) throws Exception{ Main main = new Main(); } public Main(){ Scanner scanner = new Scanner(System.in); String N = scanner.next(); long K = scanner.nextLong(); int L = N.length(); if(K > ...
Main.java:16: error: bad operand types for binary operator '>' if(K > N){ ^ first type: long second type: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u279464397|p02781|0
u279464397|p02781|0
codenet
Compile Error
1,022
v2_s866090019
s866090019
s866090019
p02781
p02781
u530712718
u530712718
1,582,926,313
2020-02-28T21:45:13
Main.java
import java.util.*; import java.math.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int k = sc.nextInt(); int n = s.length(); int[][] f = new int[n][k]; f[0][0] = 9; for(int i = 0; i < k; ++i) { for(int j = i...
Main.java:23: error: cannot find symbol int res = a[n - 1] - '0'; ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u530712718|p02781|0
u530712718|p02781|0
codenet
Compile Error
750
v2_s736640222
s736640222
s736640222
p02781
p02781
u541033696
u541033696
1,581,566,728
2020-02-13T04:05:28
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 = Syste...
Main.java:28: error: incompatible types: int[][][] cannot be converted to int static int dp = new int[N][N][2]; ^ Main.java:43: error: array required, but int found int answer = dp[index][count][boolToInt(tight)]; ^ Main.java:54: error: array requir...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541033696|p02781|0
u541033696|p02781|0
codenet
Compile Error
2,584
v2_s757699617
s757699617
s757699617
p02781
p02781
u541033696
u541033696
1,581,568,307
2020-02-13T04:31:47
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 = Syste...
Main.java:28: error: incompatible types: int[][][] cannot be converted to int static int dp = new int[N][N][2]; ^ Main.java:43: error: array required, but int found int answer = dp[index][partialCount][boolToInt(tight)]; ^ Main.java:55: error: array...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541033696|p02781|0
u541033696|p02781|0
codenet
Compile Error
2,714
v2_s628869647
s628869647
s628869647
p02781
p02781
u578775554
u578775554
1,586,980,794
2020-04-15T19:59:54
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); int k = sc.nextInt(); int digit = n.length(); int[][][] dp = new int[digit+1][k+1][2]; dp[0][0][0] = 1; for(int i = 1; i <= d...
Main.java:15: error: cannot find symbol for(int j = 0; j <= K; j++) { ^ symbol: variable K location: class Main Main.java:30: error: cannot find symbol System.out.println(dp[digit][K][0] + dp[digit][K][1]); ^ symbol: variable K location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578775554|p02781|0
u578775554|p02781|0
codenet
Compile Error
803
v2_s589034412
s589034412
s589034412
p02781
p02781
u756532161
u756532161
1,588,698,092
2020-05-05T17:01:32
Main.java
import java.util.*; import java.io.*; public class Main{ public static long Combination(long n, long r){ long A = 1; long B = 1; for(long i = 0; i < r; i++){ A = A*(n-i); B = B*(r-i); } if(A == 0) return 1; return A/B; } public stat...
Main.java:26: error: cannot find symbol }else if(K < N.length){ ^ symbol: variable length location: variable N of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u756532161|p02781|0
u756532161|p02781|0
codenet
Compile Error
1,560
v2_s478487354
s478487354
s478487354
p02781
p02781
u866070271
u866070271
1,581,281,577
2020-02-09T20:52:57
Main.java
mport java.util.*; class Main { public static void main(String[] args) { Scanner scan =new Scanner(System.in); int n = scan.nextInt(); int k = scan.nextInt(); int count = 0; for (int i=1;i<=n/2;i++){ String temp = Integer.toString(i).replace("0",""); i...
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
u866070271|p02781|0
u866070271|p02781|0
codenet
Compile Error
421
v2_s728747662
s728747662
s728747662
p02781
p02781
u898309017
u898309017
1,581,556,725
2020-02-13T01:18:45
Main.java
package com.kesarling.atCoder; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long N = Long.parseLong(scanner.nextLine()); long K = Long.parseLong(scanner.nextLine()); System.out.prlongln(numbersWith...
Main.java:11: error: cannot find symbol System.out.prlongln(numbersWithKNonZeroDigits(K,N)); ^ symbol: method prlongln(long) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u898309017|p02781|0
u898309017|p02781|0
codenet
Compile Error
830
v2_s748174721
s748174721
s748174721
p02782
p02782
u353919145
u353919145
1,586,535,606
2020-04-10T16:20:06
Main.java
import sys input = sys.stdin.buffer.readline def main(): a,b,c,d = map(int,input().split()) MOD = 10**9+7 N = c+d+5 fac = [0 for _ in range(N+1)] fac[0],fac[1] = 1,1 for i in range(2,N+1): fac[i] = (fac[i-1]*i)%MOD def comb(g,h): return (fac[g+h]*pow(fac[g],MOD-2...
Main.java:1: error: '.' expected import sys ^ Main.java:2: error: ';' expected input = sys.stdin.buffer.readline ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02782|0
u353919145|p02782|0
codenet
Compile Error
462
v2_s036221440
s036221440
s036221440
p02782
p02782
u617255029
u617255029
1,581,785,250
2020-02-15T16:47:30
Main.java
Temp ModCombination ModLib FastScanner import java.io.PrintWriter; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.FileInputStream; import java.io.IOException; import java.util.InputMismatchException; public class Main { InputStream is; int __t__ = 1; int __f__ = 0; in...
Main.java:1: error: class, interface, enum, or record expected Temp ^ Main.java:6: error: class, interface, enum, or record expected import java.io.FileNotFoundException; ^ Main.java:7: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:8: error: class, interface, enum, or record ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u617255029|p02782|1
u617255029|p02782|1
codenet
Compile Error
6,815
v2_s811327169
s811327169
s811327169
p02782
p02782
u881359256
u881359256
1,581,638,067
2020-02-13T23:54:27
Main.java
public class Main { static int mod = (int) 1e9 + 7; static int DX[] = { -1, 0, 1, 0 }, DY[] = { 0, -1, 0, 1 }; public static void main(String[] args) { FastScanner fs = new FastScanner(System.in); int r1 = fs.nextInt(),c1 = fs.nextInt(); int r2 = fs.nextInt(),c2 = fs.nextInt(); pre_factrials((int)1e6 * 3); ...
Main.java:86: error: cannot find symbol private BufferedReader reader = null; ^ symbol: class BufferedReader location: class FastScanner Main.java:87: error: cannot find symbol private StringTokenizer tokenizer = null; ^ symbol: class StringTokenizer location: class FastScanner Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881359256|p02782|1
u881359256|p02782|1
codenet
Compile Error
3,039
v2_s526830698
s526830698
s526830698
p02782
p02782
u981808900
u981808900
1,582,227,564
2020-02-20T19:39:24
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; class Main { static In in = new In(); ...
Main.java:27: error: cannot find symbol a = (a + AtCoderUtils.combinationAndMod(c + i, i + 1) - 1) % mod; ^ symbol: variable AtCoderUtils location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02782|0
u981808900|p02782|0
codenet
Compile Error
2,813
v2_s314880772
s314880772
s314880772
p02783
p02783
u011387432
u011387432
1,580,069,004
2020-01-26T20:03:24
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int h=sc.nextInt(); int a=sc.nextInt(); int ans=h/a+(h%a==0)?0:1; System.out.println(ans); } }
Main.java:9: error: bad operand types for binary operator '+' int ans=h/a+(h%a==0)?0:1; ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011387432|p02783|0
u011387432|p02783|0
codenet
Compile Error
239
v2_s551240812
s551240812
s551240812
p02783
p02783
u016190166
u016190166
1,581,280,450
2020-02-09T20:34:10
Main.java
int atackTimes = 0; int tmpHp = 0; do { tmpHp = H - A; atackTimes++; } while (tmpHp > 0) { tmpHp = tmpHp - A; atackTimes++; } return atackTimes; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int atackTimes = 0; ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected do { ^ Main.java:6: error: class, interface, enum, or record expected atackTimes++; ^ Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016190166|p02783|0
u016190166|p02783|0
codenet
Compile Error
157
v2_s816042645
s816042645
s816042645
p02783
p02783
u049823007
u049823007
1,580,070,275
2020-01-26T20:24:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int h = scan.nextInt(); int a = scan.nextINt(); int c = 1; for (int i = 1; a < h; i++) { h -= a; c++; } System.out.println(c); } }
Main.java:7: error: cannot find symbol int a = scan.nextINt(); ^ symbol: method nextINt() location: variable scan of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u049823007|p02783|0
u049823007|p02783|0
codenet
Compile Error
285
v2_s128094117
s128094117
s128094117
p02783
p02783
u049823007
u049823007
1,580,070,386
2020-01-26T20:26:26
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int h = scan.nextInt(); int a = scan.nextINt(); int c =0; for (int i = 1; a < h; i++) { h -= a; c++; } System.out.println(c); } }
Main.java:7: error: cannot find symbol int a = scan.nextINt(); ^ symbol: method nextINt() location: variable scan of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u049823007|p02783|0
u049823007|p02783|0
codenet
Compile Error
284
v2_s074363652
s074363652
s074363652
p02783
p02783
u060186877
u060186877
1,580,582,609
2020-02-01T18:43:29
Main.java
package JavaBasic; import java.util.Scannner; class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int healt = input.nextInt(); int attack = input.nextInt(); int manyattacks = 0; while (attack > 0 && healt >= 0 || healt < 0){ ...
Main.java:3: error: cannot find symbol import java.util.Scannner; ^ symbol: class Scannner location: package java.util Main.java:7: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060186877|p02783|0
u060186877|p02783|0
codenet
Compile Error
434
v2_s369512738
s369512738
s369512738
p02783
p02783
u062736195
u062736195
1,582,140,074
2020-02-19T19:21:14
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 N = sc.nextInt(); int K = sc.nextInt(); long sum =0; long[] HP = new long[N]; for(int i=0; i<N; i++) HP[i] = sc.nextLong(); if(K >...
Main.java:16: error: cannot find symbol Array.sort(HP); //HP??????????????K??? ^ symbol: variable Array location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02783|0
u062736195|p02783|0
codenet
Compile Error
625
v2_s177239897
s177239897
s177239897
p02783
p02783
u087672117
u087672117
1,580,511,505
2020-01-31T22:58:25
Main.java
import static java.lang.Math.max; import static java.lang.Math.min; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); final int h = scanner.nextInt(); final int n = scanner.nextInt(); final int[] a = new int[n]; fina...
Main.java:19: error: ')' expected max = (max, a[i]); ^ Main.java:19: error: not a statement max = (max, a[i]); ^ Main.java:19: error: ';' expected max = (max, a[i]); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u087672117|p02783|1
u087672117|p02783|1
codenet
Compile Error
1,059
v2_s104030947
s104030947
s104030947
p02783
p02783
u089230684
u089230684
1,581,744,083
2020-02-15T05:21:23
Main.java
import java.util.Scanner; Scanner sc=new Scanner(System.in); int H=sc.nextInt(); int A=sc.nextInt(); System.out.print(ceil(H/A));
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. Scanner sc=new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record expected System.out.print(ceil(H/A)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02783|1
u089230684|p02783|1
codenet
Compile Error
129
v2_s424496914
s424496914
s424496914
p02783
p02783
u089230684
u089230684
1,581,744,474
2020-02-15T05:27:54
A.java
import java.util.Scanner; public class A{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int H=sc.nextInt(); int A=sc.nextInt(); System.out.print(ceil(H/A)); } }
A.java:7: error: cannot find symbol System.out.print(ceil(H/A)); ^ symbol: method ceil(int) location: class A 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02783|1
u089230684|p02783|1
codenet
Compile Error
188
v2_s738257423
s738257423
s738257423
p02783
p02783
u130652577
u130652577
1,581,095,074
2020-02-07T17:04:34
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int health = sc.nextInt(); int power = sc.nextInt(); int noOfAttack = health / power; if (Health % power > 0) noOfAttack++; System.out.println(noOfAttack); } }
Main.java:10: error: cannot find symbol if (Health % power > 0) ^ symbol: variable Health location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130652577|p02783|0
u130652577|p02783|0
codenet
Compile Error
313
v2_s562543537
s562543537
s562543537
p02783
p02783
u178329956
u178329956
1,580,350,165
2020-01-30T02:09:25
Main.java
hv
Main.java:1: error: reached end of file while parsing hv ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u178329956|p02783|0
u178329956|p02783|0
codenet
Compile Error
2
v2_s015136792
s015136792
s015136792
p02783
p02783
u202766681
u202766681
1,580,336,776
2020-01-29T22:26:16
Main.java
class Main{ public static void main(int[] args){ int a,count; count = 0; a=args[0] while(a<=0){ a-=args[1]; count++; } System.out.println(count); } }
Main.java:5: error: ';' expected a=args[0] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202766681|p02783|0
u202766681|p02783|0
codenet
Compile Error
206
v2_s402269916
s402269916
s402269916
p02783
p02783
u202766681
u202766681
1,580,336,979
2020-01-29T22:29:39
Main.java
class Main{ public static void main(String[] args){ int a,count; count = 0; a=Integer.parseInt(args[0]); while(a<=0){ a-=Integer.parseInt(args[1])]; count++; } System.out.println(count); } }
Main.java:7: error: ';' expected a-=Integer.parseInt(args[1])]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202766681|p02783|0
u202766681|p02783|0
codenet
Compile Error
247
v2_s444045645
s444045645
s444045645
p02783
p02783
u203103469
u203103469
1,580,069,349
2020-01-26T20:09:09
Main.java
import java.io.*; class Ques1 { public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String[] strs=br.readLine().trim().split("\\s+"); h=Integer.parseInt(strs[0]); a=Integer.parseInt(strs[1]); if(h%a==0) System.out.print...
Main.java:7: error: cannot find symbol h=Integer.parseInt(strs[0]); ^ symbol: variable h location: class Ques1 Main.java:8: error: cannot find symbol a=Integer.parseInt(strs[1]); ^ symbol: variable a location: class Ques1 Main.java:9: error: cannot find symbol if(h%a==0) ^ symbol: variabl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u203103469|p02783|0
u203103469|p02783|0
codenet
Compile Error
372
v2_s478262088
s478262088
s478262088
p02783
p02783
u225897163
u225897163
1,580,070,423
2020-01-26T20:27:03
MonsterDefeater.java
;import java.io.*; import java.lang; public class MonsterDefeater { public static void main(String [] args) { Scanner sc= new Scanner(); int h, a; System.out.println("Enter the health of monster"): h= sc.nextInt(); System.out.println("Enter the attack"); a= sc.nextInt(); if(h% a==0) ...
MonsterDefeater.java:1: error: extraneous semicolon ;import java.io.*; ^ MonsterDefeater.java:9: error: ';' expected System.out.println("Enter the health of monster"): ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u225897163|p02783|0
u225897163|p02783|0
codenet
Compile Error
463
v2_s321519209
s321519209
s321519209
p02783
p02783
u241090452
u241090452
1,588,338,200
2020-05-01T13:03:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0;i<n;i++){ a[i] = sc.next(); } if((a[0]+a[1]+a[2]+...
Main.java:10: error: incompatible types: String cannot be converted to int a[i] = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p02783|1
u241090452|p02783|1
codenet
Compile Error
448
v2_s629013657
s629013657
s629013657
p02783
p02783
u276386654
u276386654
1,582,128,108
2020-02-19T16:01:48
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double health = sc.nextInt(); double attack = sc.nextInt(); System.out.println(Math.ceil(health / attack); } }
Main.java:6: error: ')' or ',' expected System.out.println(Math.ceil(health / attack); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276386654|p02783|0
u276386654|p02783|0
codenet
Compile Error
229
v2_s607469686
s607469686
s607469686
p02783
p02783
u276386654
u276386654
1,582,128,225
2020-02-19T16:03:45
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double health = sc.nextInt(); double attack = sc.nextInt(); System.out.println(Math.ceil(health / attack)); } }
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
u276386654|p02783|0
u276386654|p02783|0
codenet
Compile Error
229