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_s326281450
s326281450
s326281450
p03150
p03150
u451080461
u451080461
1,575,678,465
2019-12-07T00:27:45
Main.java
java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(); } public void solve() { Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); ...
Main.java:1: error: class, interface, enum, or record expected java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.*; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451080461|p03150|0
u451080461|p03150|0
codenet
Compile Error
1,564
v2_s186631427
s186631427
s186631427
p03150
p03150
u472301895
u472301895
1,547,417,615
2019-01-13T22:13:35
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int len = s.length(); if (s.substring(0, 1).equals("k") || s...
Main.java:45: error: illegal character: '#' # ?? ^ Main.java:45: error: reached end of file while parsing # ?? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472301895|p03150|0
u472301895|p03150|0
codenet
Compile Error
1,266
v2_s584859509
s584859509
s584859509
p03150
p03150
u809407598
u809407598
1,548,170,257
2019-01-22T15:17:37
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String K = "keyence"; String S = sc.nextInt(); boolean fl = false; int l = S.length(); for(i=6;0<=i;i--){ if(S.substring(0,i)== K.substring(0,i)){ if...
Main.java:7: error: incompatible types: int cannot be converted to String String S = sc.nextInt(); ^ Main.java:10: error: cannot find symbol for(i=6;0<=i;i--){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i=6;0<=i;i--){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03150|0
u809407598|p03150|0
codenet
Compile Error
557
v2_s338506485
s338506485
s338506485
p03150
p03150
u809407598
u809407598
1,548,170,322
2019-01-22T15:18:42
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String K = "keyence"; String S = sc.nextString(); boolean fl = false; int l = S.length(); for(int i=6;0<=i;i--){ if(S.substring(0,i)== K.substring(0,i)){ ...
Main.java:7: error: cannot find symbol String S = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03150|0
u809407598|p03150|0
codenet
Compile Error
565
v2_s014813482
s014813482
s014813482
p03150
p03150
u841299958
u841299958
1,590,918,511
2020-05-31T09:48:31
Main.java
import java.util.*; class Main { public static void main(String[] args) { new Solver().run(); } } class Solver { private String MATCH = "keyence"; public void run() { Scanner sc = new Scanner(System.in); String S = sc.next(); int N = MATCH.length(); for (int i...
Main.java:32: error: reached end of file while parsing oz ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u841299958|p03150|0
u841299958|p03150|0
codenet
Compile Error
646
v2_s460194961
s460194961
s460194961
p03150
p03150
u988940834
u988940834
1,547,415,602
2019-01-13T21:40:02
Main.java
import java.util.*; import java.util.Arrays; public class Main {// Main public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.nextString(); if (S.startsWith("k")) { if(S.endWith("eyence")){ System.out.println("YES"); ...
Main.java:45: error: illegal start of type } else ^ Main.java:46: error: <identifier> expected if (S.endWith("keyence")) { ^ Main.java:46: error: illegal start of type if (S.endWith("keyence")) { ^ Main.java:48: error: illegal start of typ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u988940834|p03150|0
u988940834|p03150|0
codenet
Compile Error
1,420
v2_s620441647
s620441647
s620441647
p03150
p03150
u988940834
u988940834
1,547,415,935
2019-01-13T21:45:35
Main.java
import java.util.*; import java.util.Arrays; public class Main {// Main public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.nextString(); if (S.startsWith("k")) { if(S.endWith("eyence")){ System.out.println("YES"); ...
Main.java:8: error: cannot find symbol String S = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner Main.java:11: error: cannot find symbol if(S.endWith("eyence")){ ^ symbol: method endWith(String) location: variab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u988940834|p03150|0
u988940834|p03150|0
codenet
Compile Error
1,386
v2_s357678458
s357678458
s357678458
p03150
p03150
u988940834
u988940834
1,547,416,097
2019-01-13T21:48:17
Main.java
import java.util.*; import java.util.Arrays; public class Main {// Main public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); if (S.startsWith("k")) { if(S.endWith("eyence")){ System.out.println("YES"); ...
Main.java:11: error: cannot find symbol if(S.endWith("eyence")){ ^ symbol: method endWith(String) location: variable S of type String Main.java:17: error: cannot find symbol if(S.endWith("yence")){ ^ symbol: method endWith(String) location: variabl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u988940834|p03150|0
u988940834|p03150|0
codenet
Compile Error
1,380
v2_s418666171
s418666171
s418666171
p03151
p03151
u032092458
u032092458
1,549,754,840
2019-02-09T23:27:20
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.List; import java.util.Collections; public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int n = sc.nextInt(); long a[] = new long[n]; long b[] = new long[n]; long suma = 0; l...
Main.java:41: error: incompatible types: long cannot be converted to Integer kajo_list.add(a[i] - b[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
u032092458|p03151|0
u032092458|p03151|0
codenet
Compile Error
1,224
v2_s671930397
s671930397
s671930397
p03151
p03151
u147886643
u147886643
1,551,171,326
2019-02-26T08:55:26
Main.java
// 作者:杨成瑞先生 import java.io.*; import java.util.*; public class Main { static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { try { br = new BufferedReader(new InputStreamReader(System.in)); st = new StringTokenizer...
Main.java:60: error: variable diff is already defined in method main(String[]) long diff = a[i] - b[i]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u147886643|p03151|0
u147886643|p03151|0
codenet
Compile Error
2,443
v2_s245099715
s245099715
s245099715
p03151
p03151
u272319314
u272319314
1,561,190,121
2019-06-22T07:55:21
Main.java
import java.util.*; public class Main { long MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt();...
Main.java:44: error: incompatible types: possible lossy conversion from long to int int tmp = c[i] + c[r]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u272319314|p03151|0
u272319314|p03151|0
codenet
Compile Error
1,422
v2_s396952951
s396952951
s396952951
p03151
p03151
u487252913
u487252913
1,547,435,847
2019-01-14T03:17:27
Main.java
import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; for (int i=0; i<N; i++) { A[i] = sc.nextIn...
Main.java:52: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487252913|p03151|1
u487252913|p03151|0
codenet
Compile Error
1,112
v2_s108494259
s108494259
s108494259
p03151
p03151
u809407598
u809407598
1,548,177,448
2019-01-22T17:17:28
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cntdif = 0; for(int i=0;...
Main.java:25: error: ';' expected ArrayList bigger<int> = new ArrayList<int>(); ^ Main.java:25: error: illegal start of expression ArrayList bigger<int> = new ArrayList<int>(); ^ Main.java:27: error: '.class' expected if(int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,472
v2_s327107436
s327107436
s327107436
p03151
p03151
u809407598
u809407598
1,548,177,554
2019-01-22T17:19:14
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cntdif = 0; for(int i=0;...
Main.java:27: error: '.class' expected if(int dif = A[j]-B[j] <0){ ^ Main.java:27: error: ';' expected if(int dif = A[j]-B[j] <0){ ^ Main.java:30: error: 'else' without 'if' }else if(dif > 0){ ^ 3 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,445
v2_s793088976
s793088976
s793088976
p03151
p03151
u809407598
u809407598
1,548,177,626
2019-01-22T17:20:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cntdif = 0; for(int i=0;...
Main.java:25: error: unexpected type ArrayList<int> bigger = new ArrayList<int>(); ^ required: reference found: int Main.java:25: error: unexpected type ArrayList<int> bigger = new ArrayList<int>(); ^ required: referenc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,453
v2_s017659275
s017659275
s017659275
p03151
p03151
u809407598
u809407598
1,548,178,752
2019-01-22T17:39: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(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int sum = 0; int cntdif = 0; for(int i=0;i<N...
Main.java:25: error: cannot find symbol ArrayList<Integer> bigger = new ArrayList<Intger>(); ^ symbol: class Intger location: class Main Main.java:28: error: cannot find symbol difsum += A[j]-B[j]; ^ symbol: vari...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,457
v2_s243908447
s243908447
s243908447
p03151
p03151
u809407598
u809407598
1,548,178,824
2019-01-22T17:40:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cnt = 0; for(int i=0;i<N...
Main.java:34: error: no suitable method found for toArray(int[]) int big[] = bigger.toArray(new int[bigger.size()]); ^ method Collection.<T#1>toArray(IntFunction<T#1[]>) is not applicable (cannot infer type-variable(s) T#1 (argument mismatch; int[] cannot be con...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,458
v2_s038801293
s038801293
s038801293
p03151
p03151
u809407598
u809407598
1,548,178,993
2019-01-22T17:43:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cnt = 0; for(int i=0;i<N...
Main.java:34: error: incompatible types: Integer[] cannot be converted to int[] int big[] = (int [])bigger.toArray(new Integer[bigger.size()]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,470
v2_s309242290
s309242290
s309242290
p03151
p03151
u809407598
u809407598
1,548,179,184
2019-01-22T17:46:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cnt = 0; for(int i=0;i<N...
Main.java:34: error: incompatible types: inference variable T has incompatible bounds int big[] = bigger.toArray(new Integer[bigger.size()]); ^ upper bounds: int,Object lower bounds: Integer where T is a type-variable: T extends Object declared in method <T>...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|0
u809407598|p03151|0
codenet
Compile Error
1,462
v2_s445461388
s445461388
s445461388
p03151
p03151
u809407598
u809407598
1,548,234,460
2019-01-23T09:07:40
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int Asum = 0; int Bsum = 0; int difsum = 0; int cnt = 0; for(int i=0;i<N...
Main.java:24: error: break outside switch or loop break; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03151|1
u809407598|p03151|1
codenet
Compile Error
1,477
v2_s816915851
s816915851
s816915851
p03151
p03151
u881037761
u881037761
1,551,577,361
2019-03-03T01:42:41
Main.java
/* String[]の初期化、整数の型がlongになっているか 関数(splitとかcontainsとか)内では"+"とかは正規表現となされるので"\\+"とする 配列のコピーはarr1=arr.clone() HashSet<>[]はおのおの初期化した????? */ import java.util.*; import java.awt.*; import java.awt.geom.*; import static java.lang.System.*; import static java.lang.Math.*; public class Main { public static void main(Strin...
Main.java:35: error: ';' expected exit(0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881037761|p03151|0
u881037761|p03151|0
codenet
Compile Error
1,076
v2_s119028901
s119028901
s119028901
p03151
p03151
u899929023
u899929023
1,547,416,733
2019-01-13T21:58:53
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] A = new long[N]; long[] B = new long[N]; long[] C = new long[N]; long sum = 0; long minus = 0; int C_minus = 0; for(int i=0;i<N;i++){ ...
Main.java:29: error: incompatible types: int cannot be converted to boolean if(C_minus=0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899929023|p03151|0
u899929023|p03151|0
codenet
Compile Error
1,131
v2_s395261192
s395261192
s395261192
p03151
p03151
u923606520
u923606520
1,547,413,770
2019-01-13T21:09:30
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.*; import java.util.List; public class Main { static boolean[][] map; static boolean[][] calced; public static void main(String[] args) { Scanner scanner=new Scanner(); int n=scanner.nextInt(); int[] a=new i...
Main.java:25: error: ';' expected bSum+=b[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u923606520|p03151|0
u923606520|p03151|0
codenet
Compile Error
9,172
v2_s954105925
s954105925
s954105925
p03151
p03151
u932183990
u932183990
1,547,410,390
2019-01-13T20:13:10
Main.java
import java.io.*; import java.util.*; public class Main { void run() { int n = in.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for (int i = 0; i < n; i++) { a[i] = in.nextInt(); } long need = 0; int ans = 0; ArrayList<Integer> extras = new ArrayList<>(); for (int i = 0; i < n; i++) { ...
Main.java:37: error: ';' expected static MyScanner iimport java.io.*; ^ Main.java:37: error: <identifier> expected static MyScanner iimport java.io.*; ^ Main.java:136: error: <identifier> expected n; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u932183990|p03151|0
u932183990|p03151|0
codenet
Compile Error
4,190
v2_s713835844
s713835844
s713835844
p03152
p03152
u059234158
u059234158
1,547,411,223
2019-01-13T20:27:03
Main.java
import java.util.*; class Main{ public static void main(String[] $){ hoge Scanner s=new Scanner(System.in); int n=s.nextInt(),m=s.nextInt(); int[]a=new int[n],b=new int[m]; int[][]f=new int[n][m]; Arrays.setAll(a,i->s.nextInt()); Arrays.setAll(b,i->s.nextInt()); for(int i=0;i<n;++i) { for(int...
Main.java:6: error: ';' expected Scanner s=new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p03152|0
u059234158|p03152|0
codenet
Compile Error
486
v2_s839789661
s839789661
s839789661
p03152
p03152
u487252913
u487252913
1,547,504,912
2019-01-14T22:28:32
AssignD.java
import java.util.*; public class AssignD { public static final int MOD = 1_000_000_007; /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A = new int[N]; in...
AssignD.java:34: error: cannot find symbol A = reverse(A); ^ symbol: method reverse(int[]) location: class AssignD AssignD.java:36: error: cannot find symbol B = reverse(B); ^ symbol: method reverse(int[]) location: class AssignD 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487252913|p03152|0
u487252913|p03152|0
codenet
Compile Error
2,016
v2_s703677707
s703677707
s703677707
p03152
p03152
u487252913
u487252913
1,547,504,935
2019-01-14T22:28:55
Main.java
import java.util.*; public class Main { public static final int MOD = 1_000_000_007; /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A = new int[N]; int[]...
Main.java:34: error: cannot find symbol A = reverse(A); ^ symbol: method reverse(int[]) location: class Main Main.java:36: error: cannot find symbol B = reverse(B); ^ symbol: method reverse(int[]) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487252913|p03152|0
u487252913|p03152|0
codenet
Compile Error
2,013
v2_s545651630
s545651630
s545651630
p03155
p03155
u117657834
u117657834
1,566,738,761
2019-08-25T13:12:41
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); System.out.println((n - h + 1) * (n - w + 1)); sc.close(); } }
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
u117657834|p03155|0
u117657834|p03155|0
codenet
Compile Error
287
v2_s325723910
s325723910
s325723910
p03155
p03155
u492865352
u492865352
1,547,324,120
2019-01-12T20:15:20
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int h = Integer.parseInt(scanner.nextLine()); int w = Integer.parseInt(scanner.nextLine()); System.out.println((n - h + 1) * (n - w + 1)); } }
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492865352|p03155|0
u492865352|p03155|0
codenet
Compile Error
307
v2_s788101264
s788101264
s788101264
p03155
p03155
u507706381
u507706381
1,573,029,485
2019-11-06T08:38:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int H = sc.nectInt(); int W = sc.nextInt(); System.out.println((N-W+1)*(N-H+1)); } }
Main.java:7: error: cannot find symbol int H = sc.nectInt(); ^ symbol: method nectInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03155|0
u507706381|p03155|0
codenet
Compile Error
254
v2_s372563581
s372563581
s372563581
p03155
p03155
u620353602
u620353602
1,592,820,354
2020-06-22T10:05:54
Prob6.java
import java.util.Scanner; public class Prob6 { public static void main(String[] args) throws FileNotFoundException{ Scanner scanner = new Scanner(new File("/Users/lester/codeforces-workspace/codeforces/codeforces/codeforces4/Prob6")); int length = scanner.nextInt(); int height = scanner.nextInt(); in...
Prob6.java:4: error: cannot find symbol public static void main(String[] args) throws FileNotFoundException{ ^ symbol: class FileNotFoundException location: class Prob6 Prob6.java:5: error: cannot find symbol Scanner scanner = new Scanner(new File("/Users/lester/c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u620353602|p03155|0
u620353602|p03155|0
codenet
Compile Error
456
v2_s825941953
s825941953
s825941953
p03155
p03155
u816429241
u816429241
1,547,323,382
2019-01-12T20:03:02
Main.java
public class Main { public static void main(String... args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); System.out.println((n - h + 1) * (n - w + 1)); } }
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
u816429241|p03155|0
u816429241|p03155|0
codenet
Compile Error
278
v2_s555690153
s555690153
s555690153
p03155
p03155
u992675902
u992675902
1,547,324,733
2019-01-12T20:25:33
ABulletinBoard.java
package main.atcoder; import fastIO.InputReader; import java.io.PrintWriter; public class ABulletinBoard { public void solve(int testNumber, InputReader in, PrintWriter out) { int n = in.nextInt(); int h = in.nextInt(); int w = in.nextInt(); int count = 0; for (int i = 0; i <= n - h; i++) { ...
ABulletinBoard.java:3: error: package fastIO does not exist import fastIO.InputReader; ^ ABulletinBoard.java:8: error: cannot find symbol public void solve(int testNumber, InputReader in, PrintWriter out) { ^ symbol: class InputReader location: class ABulletinBoa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992675902|p03155|0
u992675902|p03155|0
codenet
Compile Error
419
v2_s450570116
s450570116
s450570116
p03156
p03156
u212397344
u212397344
1,585,422,706
2020-03-28T19:11:46
Main.java
import java.util.*; 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 cnt1 = 0; int cnt2 = 0; inr cnt2 = 0; for(int i=0; i<N; i++){ int tmp = sc.nextInt(); if(tmp<=A...
Main.java:17: error: not a statement }else(tmp>B){ ^ Main.java:17: error: ';' expected }else(tmp>B){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03156|0
u212397344|p03156|0
codenet
Compile Error
504
v2_s763467379
s763467379
s763467379
p03156
p03156
u212397344
u212397344
1,585,422,731
2020-03-28T19:12:11
Main.java
import java.util.*; 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 cnt1 = 0; int cnt2 = 0; inr cnt2 = 0; for(int i=0; i<N; i++){ int tmp = sc.nextInt(); if(tmp<=A...
Main.java:10: error: cannot find symbol inr cnt2 = 0; ^ symbol: class inr location: class Main Main.java:10: error: variable cnt2 is already defined in method main(String[]) inr cnt2 = 0; ^ Main.java:18: error: cannot find symbol cnt3++; ^ symbol: variable cnt3 location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03156|0
u212397344|p03156|0
codenet
Compile Error
508
v2_s099345059
s099345059
s099345059
p03156
p03156
u212397344
u212397344
1,585,422,767
2020-03-28T19:12:47
Main.java
import java.util.*; 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 cnt1 = 0; int cnt2 = 0; inr cnt3 = 0; for(int i=0; i<N; i++){ int tmp = sc.nextInt(); if(tmp<=A...
Main.java:10: error: cannot find symbol inr cnt3 = 0; ^ symbol: class inr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03156|0
u212397344|p03156|0
codenet
Compile Error
508
v2_s004200514
s004200514
s004200514
p03156
p03156
u547167033
u547167033
1,570,090,633
2019-10-03T08:17:13
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 cnt1 = 0; int cnt2 = 0; int cnt3 = 0; for(int i = 0;i < n;i++){ int p = sc.next...
Main.java:15: error: ';' expected else cnt3++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03156|0
u547167033|p03156|0
codenet
Compile Error
488
v2_s042340023
s042340023
s042340023
p03157
p03157
u183509493
u183509493
1,547,336,017
2019-01-12T23:33:37
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.stream.IntStream; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.UncheckedIOException; import java.u...
Main.java:139: warning: [removal] AccessControlException in java.security has been deprecated and marked for removal } catch (AccessControlException ex) { ^ Main.java:259: error: incompatible types: possible lossy conversion from long to int return (int) 31 * x + y; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u183509493|p03157|1
u183509493|p03157|0
codenet
Compile Error
7,601
v2_s994659880
s994659880
s994659880
p03158
p03158
u142032032
u142032032
1,547,330,839
2019-01-12T22:07:19
Main.java
import java.io.*; import java.util.*; import java.math.*; // import java.awt.Point; public class Main { InputStream is; PrintWriter out; String INPUT = ""; static int mod = 1_000_000_007; long inf = Long.MAX_VALUE; int black = 0; int white = 0; ArrayList<int[]>[] edge; boolean[] s...
Main.java:27: error: cannot find symbol A[N-i-1]=Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main Main.java:31: error: cannot find symbol X[i]=Integer.parseInt(sc.next()); ^ symbol: variable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u142032032|p03158|0
u142032032|p03158|0
codenet
Compile Error
4,674
v2_s057750297
s057750297
s057750297
p03158
p03158
u266665184
u266665184
1,548,973,283
2019-01-31T22:21:23
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.Arrays; public class Main { public static void main(String[] args) throws IOException { InputStream inputStream = System...
Main.java:13: error: illegal start of expression package practice_20190131; ^ Main.java:13: error: not a statement package practice_20190131; ^ Main.java:15: error: illegal start of expression import java.io.BufferedReader; ^ Main.java:15: error: not a statement import java.io.BufferedReader; ^ Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266665184|p03158|1
u266665184|p03158|1
codenet
Compile Error
13,270
v2_s897810014
s897810014
s897810014
p03158
p03158
u472301895
u472301895
1,547,332,254
2019-01-12T22:30:54
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); int[] a = new int[n]; for (int...
Main.java:64: error: illegal character: '#' # ?? ^ Main.java:73: error: reached end of file while parsing 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472301895|p03158|0
u472301895|p03158|0
codenet
Compile Error
1,732
v2_s703615633
s703615633
s703615633
p03158
p03158
u573545768
u573545768
1,547,330,400
2019-01-12T22:00:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 long n = sc.nextLong(); long q = Long.parseLong(sc.next()); List<Long> list = new ArrayList<>(); for(long i=0;i<n;i++){ list.add(Long.parseLong(sc.next())); } Map<Long, ...
Main.java:62: error: incompatible types: possible lossy conversion from long to int sum += list.get(k); ^ 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
u573545768|p03158|0
u573545768|p03158|0
codenet
Compile Error
1,282
v2_s136473798
s136473798
s136473798
p03160
p03160
u004257084
u004257084
1,597,639,981
2020-08-17T04:53:01
Frog1.java
public class Frog1 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int stoneCount = sc.nextInt(); int stones[] = new int[stoneCount]; for(int i=0;i<stoneCount; i++) stones[i] = sc.nextInt(); int dp[] =...
Frog1.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Frog1 Frog1.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Frog1 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004257084|p03160|0
u004257084|p03160|0
codenet
Compile Error
1,037
v2_s136334114
s136334114
s136334114
p03160
p03160
u008386204
u008386204
1,598,905,393
2020-08-31T20:23:13
Frog1_atcoder.java
import java.util.*; public class Frog1_atcoder { static int calculate_cost(int h[],int N) { int dp[]=new int[N]; dp[0]=0; dp[1]=Math.abs(h[0]-h[1]); int i; for(i=2;i<N;i++) { dp[i]=Math.min((Math.abs(h[i]-h[i-1])+dp[i-1]),(Math.abs(h[i]-h[i-2])+dp[i-2]...
Frog1_atcoder.java:14: error: cannot find symbol return dp[n-1]; ^ symbol: variable n location: class Frog1_atcoder 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008386204|p03160|0
u008386204|p03160|0
codenet
Compile Error
780
v2_s765887256
s765887256
s765887256
p03160
p03160
u008695540
u008695540
1,588,280,823
2020-04-30T21:07: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(); int[] array = new int[n]; int[] DP = new int[n+1]; Arrays.fill(DP,Integer.MAX_VALUE); DP[0] = 0; for(int i=0; i<n; i++){ array[i] = sc.nextInt()...
Main.java:23: error: cannot find symbol System.out.println(DP[i]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03160|0
u008695540|p03160|0
codenet
Compile Error
621
v2_s634623267
s634623267
s634623267
p03160
p03160
u008695540
u008695540
1,588,280,859
2020-04-30T21:07:39
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[] array = new int[n]; int[] DP = new int[n+1]; Arrays.fill(DP,Integer.MAX_VALUE); DP[0] = 0; for(int i=0; i<n; i++){ array[i] = sc.nextInt()...
Main.java:23: error: cannot find symbol System.out.println(DP[i]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03160|0
u008695540|p03160|0
codenet
Compile Error
621
v2_s583408963
s583408963
s583408963
p03160
p03160
u008695540
u008695540
1,588,280,898
2020-04-30T21:08:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[n]; int[] DP = new int[n+1]; Arrays.fill(DP,Integer.MAX_VALUE); DP[0] = 0; for(int i=0; i<n; i++){ array[i] = sc.nextInt()...
Main.java:23: error: cannot find symbol System.out.println(DP[i]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03160|0
u008695540|p03160|0
codenet
Compile Error
621
v2_s133366230
s133366230
s133366230
p03160
p03160
u008695540
u008695540
1,588,280,932
2020-04-30T21:08:52
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[] array = new int[n]; int[] DP = new int[n+1]; Arrays.fill(DP,Integer.MAX_VALUE); DP[0] = 0; for(int i=0; i<n; i++){ array[i] = sc.nextInt()...
Main.java:23: error: cannot find symbol System.out.println(DP[i]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03160|0
u008695540|p03160|0
codenet
Compile Error
621
v2_s515246759
s515246759
s515246759
p03160
p03160
u009287044
u009287044
1,585,915,234
2020-04-03T12:00:34
Main.java
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static PrintWriter pw =new PrintWriter(new OutputStreamWriter(System.out)); static StringTokenizer st; static int N =0; static int INF = (int) (1e9+5); public static void main(String[] args) throws IOException { // write your code he...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ (use --enable-preview to enable unnamed classes) Main.java:33: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u009287044|p03160|0
u009287044|p03160|0
codenet
Compile Error
1,076
v2_s951068488
s951068488
s951068488
p03160
p03160
u018679195
u018679195
1,581,330,871
2020-02-10T10:34:31
Main.java
/** * * @author Ivan */ public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int size = scan.nextInt(); int[] status = new int[size]; int[] jumps = new int[size]; scan.nextLine(); String...
Main.java:10: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: 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
u018679195|p03160|0
u018679195|p03160|0
codenet
Compile Error
769
v2_s320621579
s320621579
s320621579
p03160
p03160
u055667934
u055667934
1,574,127,216
2019-11-19T01:33:36
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); TaskC2 taskC2 = new TaskC2(); taskC2.solve(0,in,null); } } public class TaskC2 { public void solve(int testNumber, Scanne...
Main.java:14: error: class TaskC2 is public, should be declared in a file named TaskC2.java public class TaskC2 { ^ Main.java:15: error: cannot find symbol public void solve(int testNumber, Scanner in, PrintWriter out) { ^ symbol: class PrintWriter loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u055667934|p03160|0
u055667934|p03160|0
codenet
Compile Error
1,044
v2_s574631026
s574631026
s574631026
p03160
p03160
u055667934
u055667934
1,574,127,336
2019-11-19T01:35:36
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); TaskC2 taskC2 = new TaskC2(); taskC2.solve(0,in); } } public class TaskC2 { public void solve(int testNumber, Scanner in...
Main.java:14: error: class TaskC2 is public, should be declared in a file named TaskC2.java public class TaskC2 { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u055667934|p03160|0
u055667934|p03160|0
codenet
Compile Error
1,030
v2_s287079186
s287079186
s287079186
p03160
p03160
u056595631
u056595631
1,588,817,907
2020-05-07T02:18:27
Main.java
import java.util.*; import java.io.*; import java.math.BigInteger; public class Main { static int dp[]; public static void main(String[] args) throws IOException { Scanner s=new Scanner(System.in); int n=s.nextInt(); int ar[]=new int[n]; for(int i=0;i<n;i++) ar[i]=s.nextInt(); int dp[...
Main.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056595631|p03160|1
u056595631|p03160|1
codenet
Compile Error
524
v2_s275263739
s275263739
s275263739
p03160
p03160
u067456333
u067456333
1,579,489,142
2020-01-20T02:59:02
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { int dp[]; Main(int n){ dp = new int[n] } public static void main (String[] args) throws java.lang.Exception...
Main.java:12: error: ';' expected dp = new int[n] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067456333|p03160|0
u067456333|p03160|0
codenet
Compile Error
2,163
v2_s343686648
s343686648
s343686648
p03160
p03160
u067456333
u067456333
1,579,492,424
2020-01-20T03:53:44
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { int dp[]; Main(int n){ dp = new int[n]; } public static void main (String[] args) throws java.lang.Exceptio...
Main.java:23: error: non-static variable dp cannot be referenced from a static context dp[i]=-1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067456333|p03160|0
u067456333|p03160|0
codenet
Compile Error
2,210
v2_s072497406
s072497406
s072497406
p03160
p03160
u067456333
u067456333
1,579,492,535
2020-01-20T03:55:35
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { int dp[]; Main(int n){ dp = new int[n]; for(int i = 0; i < arr.length; i++) { dp[i] = -1; } } pub...
Main.java:13: error: cannot find symbol for(int i = 0; i < arr.length; i++) { ^ symbol: variable arr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067456333|p03160|0
u067456333|p03160|0
codenet
Compile Error
2,227
v2_s811820953
s811820953
s811820953
p03160
p03160
u067456333
u067456333
1,586,646,970
2020-04-11T23:16:10
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { int dp[]; Main(int n){ dp = new int[n]; for(int i = 0; i < dp.length; i++) { dp[i] = -1; } } publ...
Main.java:25: error: incompatible types: int[] cannot be converted to int int ans = ob.getCost(n-1,arr); ^ Main.java:29: error: cannot find symbol if(dp[i]!=-1) return dp[i]; ^ symbol: variable i location: class Main Main.java:29: error: cannot find symbol if(d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067456333|p03160|3
u067456333|p03160|2
codenet
Compile Error
2,179
v2_s592886567
s592886567
s592886567
p03160
p03160
u068098242
u068098242
1,551,780,592
2019-03-05T10:09:52
Main.java
import java.util.*; public class Main { static Integer[] memo; public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] h = new int[n]; for (int i = 0; i < n; i++) h[i] = in.nextInt(); memo = new Integer[n]; System.out.println(dp(...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03160|0
u068098242|p03160|0
codenet
Compile Error
562
v2_s283439824
s283439824
s283439824
p03160
p03160
u068098242
u068098242
1,551,780,651
2019-03-05T10:10:51
Main.java
import java.util.*; public class Main { static Integer[] memo; public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] h = new int[n]; for (int i = 0; i < n; i++) h[i] = in.nextInt(); memo = new Integer[n]; System.out.println(dp(...
Main.java:21: error: cannot find symbol if (at > n) ^ symbol: variable n location: class Main Main.java:23: error: cannot find symbol if (at == n) ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03160|0
u068098242|p03160|0
codenet
Compile Error
565
v2_s735738104
s735738104
s735738104
p03160
p03160
u068098242
u068098242
1,557,395,823
2019-05-09T09:57:03
Main.java
import java.util.*; import java.io.*; public class Main { char[] n; int d, l; long mod = (long)1e9+7; long[][][] dp; Main(Scanner in, PrintWriter out) { n = in.next().toCharArray(); d = in.nextInt(); dp = new long[2][d][l = n.length]; for (int i = 0; i < 2; i++) f...
Main.java:29: error: bad operand types for binary operator '==' int lo = (b == 0 && n == l-1) ? 1 : 0; ^ first type: char[] second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03160|1
u068098242|p03160|1
codenet
Compile Error
1,050
v2_s040768056
s040768056
s040768056
p03160
p03160
u079288996
u079288996
1,587,636,423
2020-04-23T10:07:03
Main.java
class Frog { int[] stones; public static void main(String[] args) { Frog frog = new Frog(); frog.solve(stones); } private int cost(i, j) { return Math.abs(stones[i] - stones[j]); } public void solve(int[] stones) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(...
Main.java:10: error: <identifier> expected private int cost(i, j) { ^ Main.java:10: error: <identifier> expected private int cost(i, j) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079288996|p03160|0
u079288996|p03160|0
codenet
Compile Error
666
v2_s557340555
s557340555
s557340555
p03160
p03160
u079288996
u079288996
1,587,636,465
2020-04-23T10:07:45
Main.java
class Main { int[] stones; public static void main(String[] args) { Main frog = new Main(); frog.solve(stones); } private int cost(i, j) { return Math.abs(stones[i] - stones[j]); } public void solve(int[] stones) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(...
Main.java:10: error: <identifier> expected private int cost(i, j) { ^ Main.java:10: error: <identifier> expected private int cost(i, j) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079288996|p03160|0
u079288996|p03160|0
codenet
Compile Error
667
v2_s916801912
s916801912
s916801912
p03160
p03160
u079438235
u079438235
1,592,698,444
2020-06-21T00:14:04
solution.java
import java.util.*; public class solution{ static Integer [][]cache; public static void main(String []args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); cache=new int[n][100000]; int []height=new int[n]; for(int i=0;i<n;i++){ height[i]=sc.nextnt(); } System.out.println(...
solution.java:7: error: incompatible types: int[][] cannot be converted to Integer[][] cache=new int[n][100000]; ^ solution.java:10: error: cannot find symbol height[i]=sc.nextnt(); ^ symbol: method nextnt() location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079438235|p03160|0
u079438235|p03160|0
codenet
Compile Error
897
v2_s617145687
s617145687
s617145687
p03160
p03160
u096578408
u096578408
1,561,377,763
2019-06-24T12:02:43
Main.java
public class Main { public static int findMinCost(int[] heights){ int n = heights.length; int min[] = new int[n]; min[0] = 0; min[1] = Math.abs(heights[1]-heights[0]); for(int i=2;i<n;i++){ min[i] = Math.min(Math.abs(heights[i]-heights[i-1])+min[i-1], ...
Main.java:14: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: 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
u096578408|p03160|0
u096578408|p03160|0
codenet
Compile Error
722
v2_s793335565
s793335565
s793335565
p03160
p03160
u099911652
u099911652
1,593,270,075
2020-06-27T15:01:15
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scanner = new Scanner(System.in); int i = scanner.nextInt(); int heights[] = new int[i]; for (int j = 0; j < heights.length; j++...
Main.java:35: error: cannot find symbol for (int i = 0; i < dir.length; i++) { ^ symbol: variable dir location: class Main Main.java:36: error: cannot find symbol if (horseRow + dir[i][0] == x && horseCol + dir[i][1] == y) return true; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u099911652|p03160|0
u099911652|p03160|0
codenet
Compile Error
1,239
v2_s761029906
s761029906
s761029906
p03160
p03160
u131765631
u131765631
1,578,197,934
2020-01-05T04:18:54
Main.java
public int algorithm(int n, int[] h){ int[] Table = new int[n]; Table[0] = 0; if (n <= 1){ //basecase 1 return Table[0]; } Table[1] = Math.abs(h[0]-h[1]); if (n == 2){ //basecase 2 return Table[1]; } for (int i = 2; i < n; i++){ if (Math.abs(h[i-2]-h[i]) < Math.abs(h[i-1]-h[i])){ Table[i] ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public int algorithm(int n, int[] h){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131765631|p03160|0
u131765631|p03160|0
codenet
Compile Error
466
v2_s561768131
s561768131
s561768131
p03160
p03160
u131765631
u131765631
1,578,199,897
2020-01-05T04:51:37
main.java
public class main { public A(){ int[] ay = {10, 30, 40, 20}; System.out.print(algorithm(4, ay)); } public int algorithm(int n, int[] h){ int[] Table = new int[n]; Table[0] = 0; if (n <= 1){ //basecase 1 return Table[0]; } Table[1] = Math....
main.java:3: error: invalid method declaration; return type required public A(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131765631|p03160|0
u131765631|p03160|0
codenet
Compile Error
727
v2_s355134957
s355134957
s355134957
p03160
p03160
u133762247
u133762247
1,599,786,852
2020-09-11T01:14:12
Main.java
import java.util.*; import java.io.*; public static void main (String[] args) { Scanner s=new Scanner(System.in); int n=s.nextInt(); int[]arr=new int[n]; for(int i=0;i<n;i++){ arr[i]=s.nextInt(); } int dp[]=new int[n+1]; dp[0]=0; dp[1]=0; dp[2]=arr[1]-arr[0]; ...
Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main (String[] args) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u133762247|p03160|0
u133762247|p03160|0
codenet
Compile Error
529
v2_s675247373
s675247373
s675247373
p03160
p03160
u141658056
u141658056
1,590,337,103
2020-05-24T16:18:23
Main.java
import java.util.*; class A { public static void main(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int [] a = new int [n]; for (int i=1;i<=n;i++){ a[i] = sc.nextInt(); } System.out.println(getMin(a,dp,1,n)); } public int getMin(int []a ,int [] dp,int i ,int n){ if(i==n) ...
Main.java:10: error: cannot find symbol System.out.println(getMin(a,dp,1,n)); ^ symbol: variable dp location: class A 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u141658056|p03160|0
u141658056|p03160|0
codenet
Compile Error
542
v2_s584196190
s584196190
s584196190
p03160
p03160
u141658056
u141658056
1,590,337,183
2020-05-24T16:19:43
Main.java
import java.util.*; class A { public static void main(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int [] a = new int [n+1]; int [] dp =new int [n+1]; Arrays.fill(dp,-1); for (int i=1;i<=n;i++){ a[i] = sc.nextInt(); } System.out.println(getMin(a,dp,1,n)); } public int get...
Main.java:12: error: non-static method getMin(int[],int[],int,int) cannot be referenced from a static context System.out.println(getMin(a,dp,1,n)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u141658056|p03160|0
u141658056|p03160|0
codenet
Compile Error
595
v2_s980329935
s980329935
s980329935
p03160
p03160
u144888468
u144888468
1,589,062,753
2020-05-09T22:19:13
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } System.out.println(execute(arr, n)); sc.close(); } ...
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
u144888468|p03160|0
u144888468|p03160|0
codenet
Compile Error
666
v2_s107377873
s107377873
s107377873
p03160
p03160
u144888468
u144888468
1,589,062,902
2020-05-09T22:21:42
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } System.out.println(execute(arr, n)); sc.close(); } ...
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
u144888468|p03160|0
u144888468|p03160|0
codenet
Compile Error
666
v2_s980611557
s980611557
s980611557
p03160
p03160
u144888468
u144888468
1,589,067,442
2020-05-09T23:37:22
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[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } System.out.println(t + " : " + execute(arr, n)); ...
Main.java:12: error: cannot find symbol System.out.println(t + " : " + execute(arr, n)); ^ symbol: variable t location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u144888468|p03160|0
u144888468|p03160|0
codenet
Compile Error
710
v2_s883032359
s883032359
s883032359
p03160
p03160
u144888468
u144888468
1,589,068,992
2020-05-10T00:03:12
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = sc.nextInt(); } System.out.println(execute(arr, n)); sc.close(); }...
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
u144888468|p03160|0
u144888468|p03160|0
codenet
Compile Error
663
v2_s263702936
s263702936
s263702936
p03160
p03160
u148127812
u148127812
1,594,699,751
2020-07-14T04:09:11
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] h = new int[n]; for(int i = 0; i<n; i++){ h[i] = scan.nextInt(); } int solve = dp(n, h); System.out.println(solve); } public static int dp(int...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u148127812|p03160|0
u148127812|p03160|0
codenet
Compile Error
556
v2_s276485536
s276485536
s276485536
p03160
p03160
u154652661
u154652661
1,590,510,949
2020-05-26T16:35:49
Main.java
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; class Main{ void pre() throws Exception{} void solve(int TC) throws Exception{...
Main.java:49: error: cannot find symbol if(memory)new Thread(null, new Runnable() {public void run(){try{new xorWar().run();}catch(Exception e){e.printStackTrace();}}}, "1", 1 << 28).start(); ^ symbol: class xorWar Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154652661|p03160|0
u154652661|p03160|0
codenet
Compile Error
3,110
v2_s139115568
s139115568
s139115568
p03160
p03160
u154652661
u154652661
1,590,510,972
2020-05-26T16:36:12
Main.java
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; public class Main{ void pre() throws Exception{} void solve(int TC) throws Exce...
Main.java:49: error: cannot find symbol if(memory)new Thread(null, new Runnable() {public void run(){try{new xorWar().run();}catch(Exception e){e.printStackTrace();}}}, "1", 1 << 28).start(); ^ symbol: class xorWar Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154652661|p03160|0
u154652661|p03160|0
codenet
Compile Error
3,116
v2_s909327503
s909327503
s909327503
p03160
p03160
u161891709
u161891709
1,547,037,075
2019-01-09T12:31:15
Main.java
public static int frogMin(int[] nums){ if(nums.length == 2){ return nums[0] - nums[1]; } int[] dp = new int[nums.length]; dp[0] = Math.abs(nums[0] - nums[1]); dp[1] = Math.abs(nums[0] - nums[2]); for(int i = 2; i < nums.length; i++){ dp[i] = Math.min(Math.abs(nums[i-1] - nums[i]) + dp[1], Math....
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static int frogMin(int[] nums){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161891709|p03160|0
u161891709|p03160|0
codenet
Compile Error
393
v2_s200009840
s200009840
s200009840
p03160
p03160
u161891709
u161891709
1,547,037,190
2019-01-09T12:33:10
Main.java
public static void main(String[] args){ if(nums.length == 2){ return nums[0] - nums[1]; } int[] dp = new int[nums.length]; dp[0] = Math.abs(nums[0] - nums[1]); dp[1] = Math.abs(nums[0] - nums[2]); for(int i = 2; i < nums.length; i++){ dp[i] = Math.min(Math.abs(nums[i-1] - nums[i]) + dp[1], Mat...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161891709|p03160|0
u161891709|p03160|0
codenet
Compile Error
409
v2_s766925572
s766925572
s766925572
p03160
p03160
u161891709
u161891709
1,547,037,265
2019-01-09T12:34:25
main.java
public class main{ public static int frogMin(int[] nums){ if(nums.length == 2){ return nums[0] - nums[1]; } int[] dp = new int[nums.length]; dp[0] = Math.abs(nums[0] - nums[1]); dp[1] = Math.abs(nums[0] - nums[2]); for(int i = 2; i < nums.length; i++){ dp[i] = Math.min(Math.abs(nums[i-1] - num...
main.java:16: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161891709|p03160|0
u161891709|p03160|0
codenet
Compile Error
428
v2_s317393524
s317393524
s317393524
p03160
p03160
u161891709
u161891709
1,547,037,856
2019-01-09T12:44:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner input = new Scanner(System.in); int length = input.nextInt(); int[] nums = new int[length]; for(int i = 0; i < nums.length; i++){ nums[i] = input.nextInt(); } if(nums.length =...
Main.java:14: error: incompatible types: unexpected return value return nums[0] - nums[1]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161891709|p03160|0
u161891709|p03160|0
codenet
Compile Error
674
v2_s693336174
s693336174
s693336174
p03160
p03160
u170503145
u170503145
1,555,684,528
2019-04-19T14:35:28
Frog1.java
public class Frog1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); int[] arr = new int[count]; for (int i = 0; i < count; ++i) { arr[i] = scanner.nextInt(); } int beforePrev = 0; ...
Frog1.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Frog1 Frog1.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Frog...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170503145|p03160|0
u170503145|p03160|0
codenet
Compile Error
662
v2_s556669586
s556669586
s556669586
p03160
p03160
u170503145
u170503145
1,555,684,550
2019-04-19T14:35:50
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); int[] arr = new int[count]; for (int i = 0; i < count; ++i) { arr[i] = scanner.nextInt(); } int beforePrev = 0; i...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170503145|p03160|0
u170503145|p03160|0
codenet
Compile Error
661
v2_s485976740
s485976740
s485976740
p03160
p03160
u173474258
u173474258
1,585,814,246
2020-04-02T07:57:26
Main.java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int K = in.nextInt(); int[] h = new int[N]; for (int i = 0; i < N; i++) { h[i] = in.nextInt(); } int[] dp = new int[N]; Arrays.fill(dp, Integer.MAX_VALUE); dp[0] = 0; for (int ...
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u173474258|p03160|0
u173474258|p03160|0
codenet
Compile Error
543
v2_s462596846
s462596846
s462596846
p03160
p03160
u203103469
u203103469
1,594,831,272
2020-07-15T16:41:12
Main.java
//greedy is not applicable here as even if select min "diff" at each step then //also final ans will not be optimal min possible of all answers //eg: 30 20 50 10 50 70 //greedy: 60 //bruteforce (mainly dp): 40 import java.io.*; import java.util.*; public class Main{ /*public int minRec(int a[],int dp[],int i,int j) ...
Main.java:19: error: no suitable method found for split(no arguments) String s[]=br.readLine().trim().split(); ^ method String.split(String,int) is not applicable (actual and formal argument lists differ in length) method String.split(String,int,boolean) is not a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u203103469|p03160|0
u203103469|p03160|0
codenet
Compile Error
1,095
v2_s253245321
s253245321
s253245321
p03160
p03160
u203103469
u203103469
1,594,831,354
2020-07-15T16:42:34
Main.java
//greedy is not applicable here as even if select min "diff" at each step then //also final ans will not be optimal min possible of all answers //eg: 30 20 50 10 50 70 //greedy: 60 //bruteforce (mainly dp): 40 import java.io.*; import java.util.*; public class Main{ /*public int minRec(int a[],int dp[],int i,int j) ...
Main.java:20: error: cannot find symbol int size=s.length(); ^ symbol: method length() location: variable s of type String[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u203103469|p03160|0
u203103469|p03160|0
codenet
Compile Error
1,101
v2_s675088450
s675088450
s675088450
p03160
p03160
u203103469
u203103469
1,594,831,414
2020-07-15T16:43:34
Main.java
//greedy is not applicable here as even if select min "diff" at each step then //also final ans will not be optimal min possible of all answers //eg: 30 20 50 10 50 70 //greedy: 60 //bruteforce (mainly dp): 40 import java.io.*; import java.util.*; public class Main{ /*public int minRec(int a[],int dp[],int i,int j) ...
Main.java:18: error: unreported exception IOException; must be caught or declared to be thrown int n=Integer.parseInt(br.readLine().trim()); ^ Main.java:19: error: unreported exception IOException; must be caught or declared to be thrown String s[]=br.readLine().trim(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u203103469|p03160|0
u203103469|p03160|0
codenet
Compile Error
1,099
v2_s867309226
s867309226
s867309226
p03160
p03160
u204780614
u204780614
1,574,596,906
2019-11-24T12:01:46
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); int[] h = new int[N]; for(int i = 0; i < N; i++) h[i] = s.nextInt(); System.out.println(calculateCost(h)); } private static int calculateCost(int[] h) { int cost[] = n...
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 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u204780614|p03160|0
u204780614|p03160|0
codenet
Compile Error
650
v2_s798072703
s798072703
s798072703
p03160
p03160
u204780614
u204780614
1,574,596,963
2019-11-24T12:02:43
Main.java
import java.uti.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); int[] h = new int[N]; for(int i = 0; i < N; i++) h[i] = s.nextInt(); System.out.println(calculateCost(h)); } private static int calculateCost(int[]...
Main.java:1: error: package java.uti does not exist import java.uti.Scanner; ^ Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u204780614|p03160|0
u204780614|p03160|0
codenet
Compile Error
675
v2_s132908105
s132908105
s132908105
p03160
p03160
u208087446
u208087446
1,597,786,619
2020-08-18T21:36:59
Main.java
import java.io.*; import java.util.*; class Main implements Runnable { private boolean console=false; public void solve() { int i; int n=in.ni(); int h[]=new int[n]; for(i=0;i<n;i++) h[i]=in.ni(); int dp[]=new int[n]; //Arrays.fill(dp, ); for(i=0;i<n;i++) { if(i-1>=0&&i-2>=0) dp[i]+=Ma...
Main.java:38: error: cannot find symbol public static void main(String[] args) throws Exception { new Main.run(); } ^ symbol: class run location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208087446|p03160|0
u208087446|p03160|0
codenet
Compile Error
2,788
v2_s987078415
s987078415
s987078415
p03160
p03160
u208087446
u208087446
1,597,786,679
2020-08-18T21:37:59
Main.java
import java.io.*; import java.util.*; public class Main implements Runnable { private boolean console=false; public void solve() { int i; int n=in.ni(); int h[]=new int[n]; for(i=0;i<n;i++) h[i]=in.ni(); int dp[]=new int[n]; //Arrays.fill(dp, ); for(i=0;i<n;i++) { if(i-1>=0&&i-2>=0) dp...
Main.java:38: error: cannot find symbol public static void main(String[] args) throws Exception { new Main.run(); } ^ symbol: class run location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208087446|p03160|0
u208087446|p03160|0
codenet
Compile Error
2,795
v2_s151039803
s151039803
s151039803
p03160
p03160
u216254233
u216254233
1,586,472,972
2020-04-09T22:56:12
Main.java
package com.atcoder.dp; import java.util.Arrays; import java.util.Scanner; public class Main { public int minCost(int N, int[] height) { if(N<=1) return 0; int[] dp = new int[N+1]; dp[0] = 0; dp[1] = Math.abs(height[1]-height[0]); for(int i=2; i<N; i++) { dp[i] = Math.min(dp[i-2]+Math.abs(hei...
Main.java:32: error: cannot find symbol Frog1 obj = new Frog1(); ^ symbol: class Frog1 location: class Main Main.java:32: error: cannot find symbol Frog1 obj = new Frog1(); ^ symbol: class Frog1 location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u216254233|p03160|0
u216254233|p03160|0
codenet
Compile Error
745
v2_s706112445
s706112445
s706112445
p03160
p03160
u216254233
u216254233
1,586,542,467
2020-04-10T18:14:27
Main.java
import java.util.Scanner; public class Main { public int knapSack(int[] weight, int[] value, int capacity, int items) { int[][] table = new int[items+1][capacity+1]; for (int i = 0; i <=items; i++) { table[i][0] = 0; } for (int i = 0; i <= capacity; i++) { table[0][i] = 0; } for (in...
Main.java:47: error: class, interface, enum, or record expected import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u216254233|p03160|1
u216254233|p03160|1
codenet
Compile Error
2,010
v2_s065633906
s065633906
s065633906
p03160
p03160
u220333544
u220333544
1,586,377,320
2020-04-08T20:22:00
Main.java
import java.util.*; class frog1 { public static void main(String args[]) { Scanner sc= new Scanner(System.in); int n=sc.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++) a[i]=sc.nextInt(); int dp[]=new int[n]; dp[0]=0; dp[1]=Math.abs(a[1]-a[0]); for(int i=2;i<n;i++) dp[i]=Math.min(Math.abs(a[i]-a[...
Main.java:16: error: reached end of file while parsing System.out.println(dp[n-1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u220333544|p03160|1
u220333544|p03160|1
codenet
Compile Error
396
v2_s919817499
s919817499
s919817499
p03160
p03160
u244023943
u244023943
1,579,797,803
2020-01-23T16:43: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 arr[]=new int[n]; for(int i=0;i<n;i++){ arr[i]=sc.nextInt(); if(i == 0) dp[i]=0; else if(i ==1) dp[i]=arr[i]-arr[i-1]; ...
Main.java:10: error: cannot find symbol if(i == 0) dp[i]=0; ^ symbol: variable dp location: class Main Main.java:11: error: cannot find symbol else if(i ==1) dp[i]=arr[i]-arr[i-1]; ^ symbol: variable dp location: class Main Main.java:13: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u244023943|p03160|1
u244023943|p03160|1
codenet
Compile Error
582
v2_s394395915
s394395915
s394395915
p03160
p03160
u291419392
u291419392
1,588,416,402
2020-05-02T10:46:42
Main.java
class Main{ public static void main(String args[]) { Scanner scan = new Scanner(System.in); int arraySize = scan.nextInt(); int inputArray[] = new int[arraySize+1]; for(int i =1;i<=arraySize;i++) { inputArray[i] = scan.nextInt(); } System.out.println(findMinCost(inputArray)); } public static in...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u291419392|p03160|0
u291419392|p03160|0
codenet
Compile Error
789
v2_s622959333
s622959333
s622959333
p03160
p03160
u292645375
u292645375
1,580,778,471
2020-02-04T01:07:51
Main.java
class ATCoderSolution { // Frog 1 public int forg1(int[] stones) { int[] dp = new int[stones.length]; dp[0] = 0; dp[1] = Math.abs(stones[1] - stones[0]); for (int i = 2; i < stones.length; i++) { dp[i] = Math.min(dp[i-1]+Math.abs(stones[i-1]-stones[i]), d...
Main.java:16: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class ATCoderSolution Main.java:16: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class ATCoderSo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292645375|p03160|0
u292645375|p03160|0
codenet
Compile Error
836
v2_s397854342
s397854342
s397854342
p03160
p03160
u293117528
u293117528
1,590,415,452
2020-05-25T14:04:12
Main.java
import java.util.*; public static int frog1(int n,int arr[]) { int dp[]=new int[n+1]; dp[1]=0; dp[2]=Math.abs(arr[1]-arr[0]); for(int i=3;i<=n;i++) { int option1=Math.abs(arr[i]-arr[i-2])+dp[i-2]; int option2=Math.abs(arr[i]-arr[i-1])+dp[i-1]; dp[i]=Math.min(option1,option2); } return dp[n]; ...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static int frog1(int n,int arr[]) { ^ (use --enable-preview to enable unnamed classes) Main.java:15: error: class, interface, enum, or record expected pulic static void main(String[]args){ ^ Main.java:18: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293117528|p03160|0
u293117528|p03160|0
codenet
Compile Error
493
v2_s063746779
s063746779
s063746779
p03160
p03160
u294678209
u294678209
1,591,133,610
2020-06-02T21:33:30
Main.java
//package codeforces; import java.util.Scanner; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.TreeMap; import java.util.TreeSet; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Stack; im...
Main.java:16: error: class, interface, enum, or record expected public Main { ^ Main.java:19: error: unnamed classes are a preview feature and are disabled by default. static int mod = 1000000007; ^ (use --enable-preview to enable unnamed classes) Main.java:99: error: class, interface, enum, or record...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294678209|p03160|1
u294678209|p03160|1
codenet
Compile Error
2,076
v2_s812202621
s812202621
s812202621
p03160
p03160
u294678209
u294678209
1,591,134,863
2020-06-02T21:54:23
Main.java
//package codeforces; import java.util.Scanner; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.TreeMap; import java.util.TreeSet; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Stack; im...
Main.java:41: error: incompatible types: possible lossy conversion from long to int if (memo[i] != -1) ^ Main.java:42: error: incompatible types: possible lossy conversion from long to int return memo[i]; ^ Main.java:44: error: incompatible types: possible lossy conversion from long to in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294678209|p03160|1
u294678209|p03160|1
codenet
Compile Error
2,094