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_s415116889
s415116889
s415116889
p03160
p03160
u298469933
u298469933
1,599,790,521
2020-09-11T02:15:21
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; Arrays.fill(Integer.MAX_VALUE); ...
Main.java:16: error: illegal start of expression for(int i =2;i<=n;i++){ ^ Main.java:17: error: ')' or ',' expected dp[i]=Math.min(dp[i-1]+Math.abs(h[i]-h[i-1],dp[i]); ^ Main.java:18: error: ')' or ',' expected dp[i]=Math.min(dp[i-2]+...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
576
v2_s707043860
s707043860
s707043860
p03160
p03160
u298469933
u298469933
1,599,790,591
2020-09-11T02:16:31
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; ...
Main.java:16: error: illegal start of expression for(int i =2;i<=n;i++){ ^ Main.java:22: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
658
v2_s785410876
s785410876
s785410876
p03160
p03160
u298469933
u298469933
1,599,790,641
2020-09-11T02:17:21
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; ...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
644
v2_s590133176
s590133176
s590133176
p03160
p03160
u298469933
u298469933
1,599,790,664
2020-09-11T02:17:44
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; ...
Main.java:12: error: no suitable method found for fill(int) Arrays.fill(Integer.MAX_VALUE); ^ method Arrays.fill(long[],long) is not applicable (actual and formal argument lists differ in length) method Arrays.fill(long[],int,int,long) is not applicable (actual and formal a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
650
v2_s093940795
s093940795
s093940795
p03160
p03160
u298469933
u298469933
1,599,790,713
2020-09-11T02:18:33
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; ...
Main.java:17: error: no suitable method found for abs(int,int) dp[i]=Math.min(dp[i-1]+Math.abs(h[i]-h[i-1],dp[i])); ^ method Math.abs(int) is not applicable (actual and formal argument lists differ in length) method Math.abs(long) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
667
v2_s407677623
s407677623
s407677623
p03160
p03160
u298469933
u298469933
1,599,790,744
2020-09-11T02:19:04
Main.java
import java.util.*; 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(); } int [] dp = new int [n+1]; ...
Main.java:17: error: ';' expected dp[i]=Math.min(dp[i-1]+Math.abs(h[i]-h[i-1]),dp[i])); ^ Main.java:18: error: ';' expected dp[i]=Math.min(dp[i-2]+Math.abs(h[i]-h[i-2]),dp[i])); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298469933|p03160|0
u298469933|p03160|0
codenet
Compile Error
669
v2_s552398556
s552398556
s552398556
p03160
p03160
u301641058
u301641058
1,575,884,064
2019-12-09T09:34:24
Main.java
class FrogA { 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(); } int prev1_cost = 0; int prev2_cost = 0; for (int i...
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class FrogA Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class FrogA 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301641058|p03160|0
u301641058|p03160|0
codenet
Compile Error
679
v2_s762369385
s762369385
s762369385
p03160
p03160
u303410106
u303410106
1,548,764,110
2019-01-29T12:15:10
templ.java
import javafx.scene.layout.Priority; import java.io.*; import java.lang.reflect.Array; import java.net.Inet4Address; import java.util.*; import java.lang.*; import java.util.HashMap; import java.util.PriorityQueue; public class templ implements Runnable { static class pair implements Comparable { int f...
templ.java:1: error: package javafx.scene.layout does not exist import javafx.scene.layout.Priority; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303410106|p03160|0
u303410106|p03160|0
codenet
Compile Error
5,867
v2_s478551005
s478551005
s478551005
p03160
p03160
u314766817
u314766817
1,584,985,737
2020-03-23T17:48:57
Main.java
public static int solution(int[] stones) { int n = stones.length; if (n == 0) return 0; int[] dp = new int[n]; 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] - ston...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static int solution(int[] stones) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314766817|p03160|0
u314766817|p03160|0
codenet
Compile Error
423
v2_s359791766
s359791766
s359791766
p03160
p03160
u314766817
u314766817
1,587,426,481
2020-04-20T23:48:01
Main.java
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.*; public class Main { private static final class FastInput { private final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); p...
Main.java:36: error: cannot find symbol dp[0] = 0; ^ symbol: variable dp location: class Main Main.java:38: error: incompatible types: int cannot be converted to boolean if(i + 1) dp[i] = Math.max(dp[i-1], dp[i] + Math.abs(a[i] - a[i-1])); ^ Main.java:38: error: cannot f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314766817|p03160|2
u314766817|p03160|2
codenet
Compile Error
1,533
v2_s222758400
s222758400
s222758400
p03160
p03160
u314766817
u314766817
1,587,426,577
2020-04-20T23:49:37
Main.java
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.*; public class Main { private static final class FastInput { private final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); p...
Main.java:39: error: incompatible types: int cannot be converted to boolean if(i + 1) dp[i] = Math.max(dp[i-1], dp[i] + Math.abs(a[i] - a[i-1])); ^ Main.java:40: error: incompatible types: int cannot be converted to boolean if(i + 2) dp[i] = Math.max(dp[i-1], dp[i] + Math.abs(a[i] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314766817|p03160|2
u314766817|p03160|2
codenet
Compile Error
1,567
v2_s368621266
s368621266
s368621266
p03160
p03160
u317895427
u317895427
1,586,834,446
2020-04-14T03:20:46
Main.java
import java.util.*; 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(calc(h, 0)); } public static int calc(int[] h, int pos) { if(pos >...
Main.java:14: error: ';' expected return 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317895427|p03160|1
u317895427|p03160|1
codenet
Compile Error
510
v2_s928182478
s928182478
s928182478
p03160
p03160
u317895427
u317895427
1,586,834,597
2020-04-14T03:23:17
Main.java
import java.util.*; 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(); } int[] dp = new int[n]; Arrays.fill(...
Main.java:16: error: ';' expected return 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317895427|p03160|1
u317895427|p03160|1
codenet
Compile Error
750
v2_s978651963
s978651963
s978651963
p03160
p03160
u317895427
u317895427
1,586,834,631
2020-04-14T03:23:51
Main.java
import java.util.*; 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(); } int[]...
Main.java:21: error: method calc in class Main cannot be applied to given types; return dp[pos]= Math.min( calc(h, pos+1) + Math.abs(h[pos] - h[pos+1]), ^ required: int[],int,int[] found: int[],int reason: actual and formal argument lists differ in length M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317895427|p03160|1
u317895427|p03160|1
codenet
Compile Error
851
v2_s239687163
s239687163
s239687163
p03160
p03160
u317895427
u317895427
1,586,834,662
2020-04-14T03:24:22
Main.java
import java.util.*; 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(); } int[]...
Main.java:16: error: ';' expected return 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317895427|p03160|1
u317895427|p03160|1
codenet
Compile Error
856
v2_s785886624
s785886624
s785886624
p03160
p03160
u319265365
u319265365
1,600,020,693
2020-09-13T18:11:33
Main1.java
public class Main1 { private static int dp[]; private static int util(int arr[],int start,int end) { if(start >= end-1) return 0; if(dp[start] != 0) return dp[start]; if(start + 2 < end) { return dp[start] = Math.min(Math.abs(arr[start] - arr[start + 1]) + util(arr,start + 1,end) , Math.abs(arr[start...
Main1.java:19: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main1 Main1.java:19: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main1 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u319265365|p03160|0
u319265365|p03160|0
codenet
Compile Error
759
v2_s143986629
s143986629
s143986629
p03160
p03160
u319265365
u319265365
1,600,020,714
2020-09-13T18:11:54
Main.java
public class Main { private static int dp[]; private static int util(int arr[],int start,int end) { if(start >= end-1) return 0; if(dp[start] != 0) return dp[start]; if(start + 2 < end) { return dp[start] = Math.min(Math.abs(arr[start] - arr[start + 1]) + util(arr,start + 1,end) , Math.abs(arr[start]...
Main.java:19: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:19: 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
u319265365|p03160|0
u319265365|p03160|0
codenet
Compile Error
758
v2_s575838134
s575838134
s575838134
p03160
p03160
u324705604
u324705604
1,590,369,842
2020-05-25T01:24:02
Main.java
import java.util.*; import java.lang.*; public 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(); long ans = solve(n,arr); ...
Main.java:18: error: incompatible types: int[] cannot be converted to long[] long[] dp = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324705604|p03160|0
u324705604|p03160|0
codenet
Compile Error
832
v2_s150530728
s150530728
s150530728
p03160
p03160
u324881146
u324881146
1,568,586,005
2019-09-15T22:20:05
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[] dp = new int[n]; int[] h = new int[n]; for(int i = 0; i < n; i++) { h[i] = sc.nextInt(); } dp[0] = 0; dp[1] = Math.abs(h[0]-h[1]); for(int i = ...
Main.java:21: error: reached end of file while parsing sc.close(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p03160|0
u324881146|p03160|0
codenet
Compile Error
473
v2_s199167286
s199167286
s199167286
p03160
p03160
u342260682
u342260682
1,589,422,894
2020-05-14T02:21:34
AtCoder_Frog1.java
public class AtCoder_Frog1 { 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(); } int k=0; int sum=0; while(k<n-1){ if(k<n-2 && Math.abs(arr[k]-arr[k+2]...
AtCoder_Frog1.java:4: error: cannot find symbol Scanner sc = new Scanner (System.in); ^ symbol: class Scanner location: class AtCoder_Frog1 AtCoder_Frog1.java:4: error: cannot find symbol Scanner sc = new Scanner (System.in); ^ symbol: class Scanner location:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342260682|p03160|0
u342260682|p03160|0
codenet
Compile Error
558
v2_s819085145
s819085145
s819085145
p03160
p03160
u342260682
u342260682
1,589,422,971
2020-05-14T02:22:51
Main.java
class AtCoder_Frog1 { 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(); } int k=0; int sum=0; while(k<n-1){ if(k<n-2 && Math.abs(arr[k]-arr[k+2])< Math...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner (System.in); ^ symbol: class Scanner location: class AtCoder_Frog1 Main.java:4: error: cannot find symbol Scanner sc = new Scanner (System.in); ^ symbol: class Scanner location: class AtCoder_Fro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342260682|p03160|0
u342260682|p03160|0
codenet
Compile Error
546
v2_s462141226
s462141226
s462141226
p03160
p03160
u356452793
u356452793
1,565,285,961
2019-08-08T17:39:21
Main.java
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer; import java.awt.image.VolatileImage; import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.*; public class Main { private static Scanner sc; private static Printer pr; static boolean []visited; ...
Main.java:2: error: package com.sun.scenario.effect.impl.sw.sse does not exist import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u356452793|p03160|0
u356452793|p03160|0
codenet
Compile Error
13,354
v2_s076650386
s076650386
s076650386
p03160
p03160
u358612288
u358612288
1,585,260,106
2020-03-26T22:01:46
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] nums = new int[n]; int[] dp = new int[n]; for (int i = 0; i < n; i++) { nums[i] = scan.nextInt(); dp[i] = Integer.MAX_VA...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358612288|p03160|0
u358612288|p03160|0
codenet
Compile Error
643
v2_s971387082
s971387082
s971387082
p03160
p03160
u369190981
u369190981
1,569,244,920
2019-09-23T13:22:00
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { static int[] h = new int[100010]; static int[] dp = new int[100010]; static int chmin(int a, int b) { if (a > b) { a = b; return b; } return a; } st...
Main.java:27: error: illegal start of expression if(dp<[i]<INF) return dp[i]; ^ Main.java:27: error: not a statement if(dp<[i]<INF) return dp[i]; ^ Main.java:27: error: ';' expected if(dp<[i]<INF) return dp[i]; ^ Main.java:27: error: > or ',' expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03160|0
u369190981|p03160|0
codenet
Compile Error
1,096
v2_s138450605
s138450605
s138450605
p03160
p03160
u369190981
u369190981
1,569,244,930
2019-09-23T13:22:10
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { static int[] h = new int[100010]; static int[] dp = new int[100010]; static int chmin(int a, int b) { if (a > b) { a = b; return b; } return a; } st...
Main.java:27: error: cannot find symbol if (dp[i] < INF) ^ symbol: variable INF location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p03160|0
u369190981|p03160|0
codenet
Compile Error
1,110
v2_s038559741
s038559741
s038559741
p03160
p03160
u373595996
u373595996
1,597,377,909
2020-08-14T04:05:09
Main.java
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] arr = new int[t]; for(int i =0;i<t;i++){ arr[i]= sc.nextInt(); } int[] dp = new int[t]; dp[0] = arr[0]; dp[...
Main.java:20: error: cannot find symbol System.out.pritlnt(dp[dp.length-1]); ^ symbol: method pritlnt(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u373595996|p03160|0
u373595996|p03160|0
codenet
Compile Error
574
v2_s160472564
s160472564
s160472564
p03160
p03160
u374098293
u374098293
1,588,539,326
2020-05-03T20:55:26
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); int N = sc.nextInt(); int[] h = new int[N]; for (int i = 0; i < N; i++) { h[i] = sc.nextInt(); } int[] cost= new int[N]; cost[N-1] =0; for(int i=N-2;...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374098293|p03160|0
u374098293|p03160|0
codenet
Compile Error
558
v2_s474726169
s474726169
s474726169
p03160
p03160
u374098293
u374098293
1,588,539,459
2020-05-03T20:57:39
Main.java
import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); int N = sc.nextInt(); int[] h = new int[N]; for (int i = 0; i < N; i++) { h[i] = sc.nextInt(); } i...
Main.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374098293|p03160|0
u374098293|p03160|0
codenet
Compile Error
610
v2_s631176415
s631176415
s631176415
p03160
p03160
u377606945
u377606945
1,581,231,133
2020-02-09T06:52:13
Frog.java
public class Frog { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] heights = new int[n]; for(int i=0;i<n;i++) { heights[i] = in.nextInt(); } int[] cost = new int[heights.length]; for(int i=1;i<height...
Frog.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Frog Frog.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Frog 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u377606945|p03160|0
u377606945|p03160|0
codenet
Compile Error
619
v2_s751035894
s751035894
s751035894
p03160
p03160
u379737822
u379737822
1,584,585,587
2020-03-19T02:39:47
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] hight=new int[n]; for (int i=0;i<n;i++) { hight[i]=sc.nextInt(); } int[] dp=new int[n]; Arrays.fill(dp,Integer.MAX_VALUE); ...
Main.java:13: error: ')' expected for (int i=1;i<n;i++} { ^ Main.java:19: error: <identifier> expected System.out.println(dp[n-1]); ^ Main.java:19: error: ']' expected System.out.println(dp[n-1]); ^ Main.java:19: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379737822|p03160|0
u379737822|p03160|0
codenet
Compile Error
611
v2_s756546395
s756546395
s756546395
p03160
p03160
u379737822
u379737822
1,584,585,632
2020-03-19T02:40:32
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] hight=new int[n]; for (int i=0;i<n;i++) { hight[i]=sc.nextInt(); } int[] dp=new int[n]; Arrays.fill(dp,Integer.MAX_VALUE); dp[0]=0; ...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379737822|p03160|0
u379737822|p03160|0
codenet
Compile Error
592
v2_s625084347
s625084347
s625084347
p03160
p03160
u388797124
u388797124
1,588,770,427
2020-05-06T13:07:07
Main.java
Scanner sc= new Scanner(System.in); int n = sc.nextInt(); int cost[] = new int[n]; for(int i=0;i<n;i++){ cost[i] = sc.nextInt(); } int dp[]=new int[n]; for(int i=1;i<n;i++){ dp[i] = dp[i-1]+Math.abs(cost[i]-cost[i-1]); if (i-2>=0){ dp[i] = Math.min((dp[i-2]+Math.abs(cost[i-2]-cos...
Main.java:1: 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:3: error: class, interface, enum, or record expected int cost[] = new int[n]; ^ Main.java:4: error: class, interface, enum, or rec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u388797124|p03160|0
u388797124|p03160|0
codenet
Compile Error
381
v2_s719413963
s719413963
s719413963
p03160
p03160
u401262654
u401262654
1,600,639,903
2020-09-20T22:11:43
FrogJumping.java
public class FrogJumping { static int[] h; static int n; static Integer[] dp; public static void main(String[] args) { InputReader reader = new InputReader(System.in); n = reader.nextInt(); h = new int[n]; dp = new Integer[n]; for(int i=0;i<n;i++){ h[i...
FrogJumping.java:38: error: cannot find symbol public BufferedReader reader; ^ symbol: class BufferedReader location: class InputReader FrogJumping.java:39: error: cannot find symbol public StringTokenizer tokenizer; ^ symbol: class StringTokenizer location: class InputReader F...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401262654|p03160|0
u401262654|p03160|0
codenet
Compile Error
1,491
v2_s490519868
s490519868
s490519868
p03160
p03160
u401262654
u401262654
1,600,640,009
2020-09-20T22:13:29
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; public class FrogJumping { static int[] h; static int n; static Integer[] dp; public static void main(String[] args) { InputReader reader =...
Main.java:8: error: class FrogJumping is public, should be declared in a file named FrogJumping.java public class FrogJumping { ^ Main.java:42: error: class InputReader is public, should be declared in a file named InputReader.java public class InputReader { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401262654|p03160|0
u401262654|p03160|0
codenet
Compile Error
1,652
v2_s430002418
s430002418
s430002418
p03160
p03160
u405181435
u405181435
1,594,583,813
2020-07-12T19:56:53
Main.java
import java.utils.*; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int a[]=new int[n+1]; for(int i=0;i<n;i++) a[i+1]=sc.nextInt(); int dp[]=new int[n+1]; Arrays.fill(dp,Integer.MAX_VALUE); for(int i=2;...
Main.java:1: error: package java.utils does not exist import java.utils.*; ^ Main.java:7: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u405181435|p03160|0
u405181435|p03160|0
codenet
Compile Error
514
v2_s650291861
s650291861
s650291861
p03160
p03160
u420622981
u420622981
1,589,727,848
2020-05-17T15:04:08
Main.java
import java.util.*; import java.uitl.function.*; import java.util.math.*; 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(); } int[] result = new int[N+1]; res...
Main.java:2: error: package java.uitl.function does not exist import java.uitl.function.*; ^ Main.java:3: error: package java.util.math does not exist import java.util.math.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420622981|p03160|0
u420622981|p03160|0
codenet
Compile Error
557
v2_s715431742
s715431742
s715431742
p03160
p03160
u424244734
u424244734
1,595,419,700
2020-07-22T12:08:20
Main.java
/* https://atcoder.jp/contests/dp/tasks/dp_a */ import java.util.*; public class Main { public static void main(String[] args) { int N; Scanner sc=new Scanner(System.in); N =sc.nextInt(); int arr[] =new int[N]; for(int i=0;i<N;i++) { arr[i]=sc.nextInt(); } //logic int dp[]=new int[N+1...
Main.java:31: error: 'else' without 'if' else ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424244734|p03160|1
u424244734|p03160|1
codenet
Compile Error
623
v2_s229244216
s229244216
s229244216
p03160
p03160
u430804697
u430804697
1,573,361,145
2019-11-10T04:45:45
Main.java
import java.io.*; import java.util.*; class Frog { public static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tk=new StringTokenizer(tk.nextToken()); int n=integer.parseInt(br.readLine()); tk=new StringTokenizer...
Main.java:28: error: ';' expected prev2=prev2+ Math.abs(a[i-1]-a[i]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u430804697|p03160|0
u430804697|p03160|0
codenet
Compile Error
866
v2_s124297745
s124297745
s124297745
p03160
p03160
u454121477
u454121477
1,564,930,512
2019-08-04T14:55: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[] h = new int[n]; for (int i = 0; i < n; i++) { h[i] = sc.nextInt(); } int[] dp = new int[n]; final int I...
Main.java:17: error: non-static method chmin(int,int) cannot be referenced from a static context chmin(dp[i], dp[i-1]+Math.abs(h[i] - h[i-1])); ^ Main.java:18: error: non-static method chmin(int,int) cannot be referenced from a static context if (i > 1) chmin(dp[i], dp[i-2]+Math.abs(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u454121477|p03160|0
u454121477|p03160|0
codenet
Compile Error
717
v2_s343067711
s343067711
s343067711
p03160
p03160
u456425366
u456425366
1,599,166,211
2020-09-03T20:50:11
Main.java
import java.util.Scanner; class Main { public static long knapsack(long[] wt, long[] val, long n, long w, long[][] dp) { for(int i = 1; i <= n; i++) { for(int j = 1; j <= w; j++) { if(wt[i - 1] <= j) { dp[i][j] = Math.max((val[i - 1] + dp[i - 1][j - wt[i - 1]]), dp[i - ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int dp[i][j] = Math.max((val[i - 1] + dp[i - 1][j - wt[i - 1]]), dp[i - 1][j]); ^ Main.java:22: error: incompatible types: possible lossy conversion from long to int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u456425366|p03160|0
u456425366|p03160|0
codenet
Compile Error
1,188
v2_s095228500
s095228500
s095228500
p03160
p03160
u472644957
u472644957
1,580,440,556
2020-01-31T03:15:56
Main.java
import java.util.*; import java.io.*; class Main { String Fill(int i,int j,String s1,String s2,String str[][],int l1,int l2) { if(i>l1-1||j>l2-1) return ""; int x=0; for( x=0;x<l2;x++) { char ch=s2.charAt(x); if((ch==s1.charAt(i))&&(x>=j)) ...
Main.java:50: error: cannot find symbol lcs obj=new lcs(); ^ symbol: class lcs location: class Main Main.java:50: error: cannot find symbol lcs obj=new lcs(); ^ symbol: class lcs location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472644957|p03160|1
u472644957|p03160|1
codenet
Compile Error
1,531
v2_s443550124
s443550124
s443550124
p03160
p03160
u472909807
u472909807
1,589,954,729
2020-05-20T06:05:29
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] h = new int[n]; for(int i = 0; i < n; i++) { h[i] = sc.nextInt(); } int totalCost = 0, i = n-1; while(i > 1) { int cost1 = Math....
Main.java:27: error: incompatible types: unexpected return value return totalCost; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472909807|p03160|0
u472909807|p03160|0
codenet
Compile Error
561
v2_s586651265
s586651265
s586651265
p03160
p03160
u472909807
u472909807
1,589,954,883
2020-05-20T06:08:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] h = new int[n]; for(int i = 0; i < n; i++) { h[i] = sc.nextInt(); } int totalCost = 0, i = n-1; while(i > 1) { int cost1 = Math...
Main.java:30: error: incompatible types: unexpected return value return totalCost; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472909807|p03160|0
u472909807|p03160|0
codenet
Compile Error
623
v2_s125398707
s125398707
s125398707
p03160
p03160
u472909807
u472909807
1,589,955,935
2020-05-20T06:25:35
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] h = new int[n]; for(int i = 0; i < n; i++) { h[i] = sc.nextInt(); } if (n == 0) System.out.println("0"); if (n == 1) ...
Main.java:20: error: ')' or ',' expected System.out.println(Math.abs(h[1]-h[0]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472909807|p03160|0
u472909807|p03160|0
codenet
Compile Error
762
v2_s003901086
s003901086
s003901086
p03160
p03160
u492107003
u492107003
1,585,795,441
2020-04-02T02:44:01
Main.java
class Solution{ private static int helper(int[] nums, int[] cache, int i){ if(cache[i] != -1) return cache[i]; if(i==0) return cache[0] = 0; if(i==1) return cache[1] = Math.abs(nums[1] - nums[0]); cache[i] = Math.min( Math.abs(nums[i] ...
Main.java:12: error: method helper in class Solution cannot be applied to given types; Math.abs(nums[i] - nums[i-1]) + helper(nums, i-1), ^ required: int[],int[],int found: int[],int reason: actual and formal argument lists differ in length Main.java:13: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492107003|p03160|0
u492107003|p03160|0
codenet
Compile Error
1,216
v2_s981199205
s981199205
s981199205
p03160
p03160
u492107003
u492107003
1,585,795,616
2020-04-02T02:46:56
Main.java
import java.util.*; class Solution{ /** * * A - Frog 1 / * * Time Limit: 2 sec / Memory Limit: 1024 MB * Score : 100 * * There are N stones, numbered 1,2,…,N. For each i (1≤i≤N), the height of Stone i is hi * There is a frog who is initially on Stone 1. He will repeat the following action some number of tim...
Main.java:95: error: cannot find symbol Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); ^ symbol: class BufferedReader location: class Solution Main.java:95: error: cannot find symbol Scanner in = new Scanner(new BufferedReader(n...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492107003|p03160|0
u492107003|p03160|0
codenet
Compile Error
3,652
v2_s500577710
s500577710
s500577710
p03160
p03160
u524357016
u524357016
1,589,235,504
2020-05-11T22:18:24
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.io.FilterInputStream; import java.io.BufferedInputStream; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public clas...
Main.java:31: error: incompatible types: int[] cannot be converted to int arr = new int[n]; ^ Main.java:32: error: array required, but int found for (int i = 0; i < n; i++) arr[i] = in.scanInt(); ^ Main.java:45: error: array required, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u524357016|p03160|0
u524357016|p03160|0
codenet
Compile Error
2,788
v2_s238486786
s238486786
s238486786
p03160
p03160
u532199771
u532199771
1,586,374,741
2020-04-08T19:39:01
Sol.java
import java.util.* import java.io.* public class Sol{ public static void main(String[] args) throws IOException{ Scanner sc = new Scanner; int n = sc.nextInt(); int frog[] = new int[n]; int dp[] = new int[n]; for(int i=0; i<n; i++) { frog[i] = sc.nextInt(); } dp[0] ...
Sol.java:1: error: ';' expected import java.util.* ^ Sol.java:2: error: ';' expected import java.io.* ^ Sol.java:5: error: '(' or '[' expected Scanner sc = new Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532199771|p03160|0
u532199771|p03160|0
codenet
Compile Error
576
v2_s778190998
s778190998
s778190998
p03160
p03160
u541128720
u541128720
1,598,681,684
2020-08-29T06:14:44
Main.java
Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] height = new int[n]; for(int i=0; i<n; i++) { height[i] = sc.nextInt(); } int[] cost = new int[n]; cost[0] = 0; int[] temp = new int[n]; for(int i=1; i<n; i++) { cost[i] = cost[i-1] + Math.abs(height[i]-he...
Main.java:3: 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:7: error: class, interface, enum, or record expected for(int i=0; i<n; i++) { ^ Main.java:7: error: class, interface, enum, o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541128720|p03160|0
u541128720|p03160|0
codenet
Compile Error
592
v2_s646332798
s646332798
s646332798
p03160
p03160
u546418037
u546418037
1,585,411,915
2020-03-28T16:11:55
Main.java
/*package whatever //do not write package name here */ import java.io.*; import java.util.*; import java.lang.*; class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new ...
Main.java:80: error: '[' expected long dp[] = new long dp[n]; ^ Main.java:80: error: ']' expected long dp[] = new long dp[n]; ^ Main.java:85: error: ';' expected dp[i]=Math.min(dp[i-1]+Math.abs(arr[i]-arr[i-1]),dp[i-2]+Math.abs(arr[i-2]-arr[i]))...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546418037|p03160|0
u546418037|p03160|0
codenet
Compile Error
2,128
v2_s567509121
s567509121
s567509121
p03160
p03160
u546418037
u546418037
1,585,411,977
2020-03-28T16:12:57
Main.java
/*package whatever //do not write package name here */ import java.io.*; import java.util.*; import java.lang.*; class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new ...
Main.java:82: error: no suitable method found for abs(int,int) dp[1]=Math.abs(arr[1],arr[0]); ^ method Math.abs(int) is not applicable (actual and formal argument lists differ in length) method Math.abs(long) is not applicable (actual and formal argument lists differ in length) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546418037|p03160|0
u546418037|p03160|0
codenet
Compile Error
2,126
v2_s603306313
s603306313
s603306313
p03160
p03160
u575474414
u575474414
1,549,209,896
2019-02-03T16:04:56
Main.java
import java.io.*; import java.util.*; public class Main implements Runnable { FastReader scn; PrintWriter out; String INPUT =""; /*void solve() { String given = scn.nextLine(); if(given.matches("^[aaaads]*$")) { out.println("YES"); } else { out.println("NO"); } }*/ void solve() { int n =...
Main.java:71: error: cannot find symbol new Thread(null, new A(), "Main", 1 << 26).start(); ^ symbol: class A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575474414|p03160|0
u575474414|p03160|0
codenet
Compile Error
5,033
v2_s445243299
s445243299
s445243299
p03160
p03160
u584924463
u584924463
1,548,648,261
2019-01-28T04:04:21
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] heights = new int[N]; for(int i=0;i<N;i++){ heights[i] = sc.nextInt(); } System.out.println(frog1(heights)); } static int f...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p03160|0
u584924463|p03160|0
codenet
Compile Error
721
v2_s845321967
s845321967
s845321967
p03160
p03160
u584924463
u584924463
1,555,811,398
2019-04-21T01:49:58
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[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = sc.nextInt(); } int[] dp = new int[N+1]; ...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p03160|3
u584924463|p03160|3
codenet
Compile Error
744
v2_s561530628
s561530628
s561530628
p03160
p03160
u588393313
u588393313
1,567,809,681
2019-09-06T22:41:21
Main.java
import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class Main { private static final int INF = (int) 1e9 + 5; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); PrintWriter writer = new PrintWriter(System.out); TaskA.so...
Main.java:17: error: class TaskA is public, should be declared in a file named TaskA.java public class TaskA { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u588393313|p03160|0
u588393313|p03160|0
codenet
Compile Error
1,612
v2_s471738875
s471738875
s471738875
p03160
p03160
u591717585
u591717585
1,547,214,340
2019-01-11T13:45:40
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.ArrayList; import java.util.Comparator; import java.util.HashSet; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.util.PriorityQueue; public class ...
Main.java:25: error: cannot find symbol dp[i]=Math.min(dp[i],dp[i+1]+(int)Mash.abs(h[i]-h[i+1])); ^ symbol: variable Mash location: class Main Main.java:27: error: cannot find symbol dp[i]=Math.min(dp[i],dp[i+2]+(int)Mash.abs(h[i]-h[i+2])); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591717585|p03160|0
u591717585|p03160|0
codenet
Compile Error
3,507
v2_s044717328
s044717328
s044717328
p03160
p03160
u595737478
u595737478
1,588,340,352
2020-05-01T13:39:12
Main.java
class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] stones = new int[N]; for (int i = 0; i < N; i++) { stones[i] = sc.nextInt(); } int[] cost = new int[N]; cost[0] = 0; cost[1] =...
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
u595737478|p03160|0
u595737478|p03160|0
codenet
Compile Error
634
v2_s852162584
s852162584
s852162584
p03160
p03160
u596129397
u596129397
1,581,039,477
2020-02-07T01:37:57
Main.java
public void minimuCost(int n, int[] hights) { if (n == 0 || n == 1) { return 0; } int[] minimumCostMemo = new int[n]; minimumCostMemo[0] = 0; minimumCostMemo[1] = Math.abs(hights[0] - hights[1]); for (int i = 2; i < n; i++) { minimumCostMemo[i] = Math.min( (hights[i] - hights[i-2] + minimum...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void minimuCost(int n, int[] hights) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u596129397|p03160|0
u596129397|p03160|0
codenet
Compile Error
438
v2_s624038477
s624038477
s624038477
p03160
p03160
u618088741
u618088741
1,577,371,467
2019-12-26T14:44:27
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] stones = new int[N]; for(int i=0; i<N; ++i) { stones[i] = sc.nextInt(); } int r = minimumTotalCost(stones, N); System.out.println(r); } public static in...
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
u618088741|p03160|0
u618088741|p03160|0
codenet
Compile Error
809
v2_s011671813
s011671813
s011671813
p03160
p03160
u618088741
u618088741
1,577,378,707
2019-12-26T16:45:07
Main.java
import java.util.Scanner; // A - Frog 1 / atcoder.jp // 문제 링크 : https://atcoder.jp/contests/dp/tasks/dp_a public class Main { static class Reader { final private int BUFFER_SIZE = 1 << 16; private DataInputStream din; private byte[] buffer; private int bufferPointer, bytes...
Main.java:10: error: cannot find symbol private DataInputStream din; ^ symbol: class DataInputStream location: class Reader Main.java:21: error: cannot find symbol public Reader(String file_name) throws IOException ^ symbol: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618088741|p03160|0
u618088741|p03160|0
codenet
Compile Error
4,020
v2_s526574572
s526574572
s526574572
p03160
p03160
u618088741
u618088741
1,577,378,881
2019-12-26T16:48:01
Main.java
import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; // A - Frog 1 / atcoder.jp // 문제 링크 : https://atcoder.jp/contests/dp/tasks/dp_a public class Main { static class Reader ...
Main.java:133: error: incompatible types: Reader cannot be converted to Scanner Scanner sc = new Reader(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618088741|p03160|0
u618088741|p03160|0
codenet
Compile Error
4,183
v2_s726485202
s726485202
s726485202
p03160
p03160
u625261658
u625261658
1,555,061,984
2019-04-12T09:39:44
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(); int n=sc.nextInt(); int h[]=new int[n]; for(int i=0;i<n;i++) { h[i]=sc.nextInt(); } int min[]=new int[n]; min[0]=h[0]; min[1]=h[1]-h[0]; for(int i=2;i<n;i++) {...
Main.java:6: error: no suitable constructor found for Scanner(no arguments) Scanner sc=new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (actu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625261658|p03160|0
u625261658|p03160|0
codenet
Compile Error
486
v2_s191172107
s191172107
s191172107
p03160
p03160
u625261658
u625261658
1,560,552,188
2019-06-14T22:43:08
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=new int[n]; for(int i=0;i<n;i++) { h[i]=sc.nextInt(); } int best[]=new int[n]; best[0]=h[0]; best[1]=h[1]; for(int i=2;i<n;i++) ...
main.java:8: error: incompatible types: int[] cannot be converted to int int h=new int[n]; ^ main.java:11: error: array required, but int found h[i]=sc.nextInt(); ^ main.java:14: error: array required, but int found best[0]=h[0]; ^ main.java:15: error: array required, but int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625261658|p03160|1
u625261658|p03160|1
codenet
Compile Error
550
v2_s304304904
s304304904
s304304904
p03160
p03160
u633475329
u633475329
1,579,490,506
2020-01-20T03:21:46
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:28: error: integer number too large dp[0] = 4294967295; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633475329|p03160|0
u633475329|p03160|0
codenet
Compile Error
2,173
v2_s696060731
s696060731
s696060731
p03160
p03160
u648579893
u648579893
1,591,364,171
2020-06-05T13:36:11
Solution.java
= import java.io.*; import java.lang.reflect.Method; import java.math.BigInteger; import java.util.*; public class Solution { private static int[] heights; private static int n, ans = Integer.MAX_VALUE; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.n...
Solution.java:1: error: class, interface, enum, or record expected = ^ Solution.java:4: error: class, interface, enum, or record expected import java.lang.reflect.Method; ^ Solution.java:5: error: class, interface, enum, or record expected import java.math.BigInteger; ^ Solution.java:6: error: class, interface, enum, o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648579893|p03160|0
u648579893|p03160|0
codenet
Compile Error
1,047
v2_s526561831
s526561831
s526561831
p03160
p03160
u653789136
u653789136
1,588,542,689
2020-05-03T21:51:29
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { BufferedReader in; PrintWriter out; StringTokenizer tok = new StringTokenizer(""); public static void main(String[] args) { ...
Main.java:14: error: cannot find symbol new AtFrog().run(); ^ symbol: class AtFrog location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653789136|p03160|0
u653789136|p03160|0
codenet
Compile Error
2,030
v2_s102910194
s102910194
s102910194
p03160
p03160
u656393766
u656393766
1,598,311,085
2020-08-24T23:18:05
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;i<N;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N<1) return 0; if(N==1) return h[0]; i...
Solution.java:14: error: incompatible types: unexpected return value return 0; ^ Solution.java:16: error: incompatible types: unexpected return value return h[0]; ^ Solution.java:18: error: incompatible types: unexpected return value return Math.abs(h[0]-h[1]); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
524
v2_s346790666
s346790666
s346790666
p03160
p03160
u656393766
u656393766
1,598,311,146
2020-08-24T23:19:06
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;i<N;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N<1) return 0; if(N==1) return h[0]; i...
Solution.java:14: error: incompatible types: unexpected return value return 0; ^ Solution.java:16: error: incompatible types: unexpected return value return h[0]; ^ Solution.java:18: error: incompatible types: unexpected return value return Math.abs(h[0]-h[1]); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
538
v2_s241993105
s241993105
s241993105
p03160
p03160
u656393766
u656393766
1,598,311,244
2020-08-24T23:20:44
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;i<N;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N<1) System.out.println(0); if(N==1) Syst...
Solution.java:24: error: incompatible types: unexpected return value return dp[N-1]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
564
v2_s885847811
s885847811
s885847811
p03160
p03160
u656393766
u656393766
1,598,311,421
2020-08-24T23:23:41
Solution.java
import java.util.; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;iN;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N1) System.out.println(0); if(N==1) System....
Solution.java:1: error: <identifier> expected import java.util.; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
573
v2_s840978307
s840978307
s840978307
p03160
p03160
u656393766
u656393766
1,598,311,437
2020-08-24T23:23:57
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;iN;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N1) System.out.println(0); if(N==1) System...
Solution.java:9: error: cannot find symbol for(int i=0;iN;i++){ ^ symbol: variable iN location: class Solution Solution.java:13: error: cannot find symbol if(N1) ^ symbol: variable N1 location: class Solution Solution.java:21: error: cannot find symbol for(int i=2;iN;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
574
v2_s841213318
s841213318
s841213318
p03160
p03160
u656393766
u656393766
1,598,311,485
2020-08-24T23:24:45
Solution.java
import java.util.; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;i<N;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N==0) System.out.println(0); if(N==1) Syst...
Solution.java:1: error: <identifier> expected import java.util.; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
576
v2_s797467230
s797467230
s797467230
p03160
p03160
u656393766
u656393766
1,598,311,613
2020-08-24T23:26:53
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;iN;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N==0) System.out.println(0); if(N==1) Syst...
Solution.java:9: error: cannot find symbol for(int i=0;iN;i++){ ^ symbol: variable iN location: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
577
v2_s939767658
s939767658
s939767658
p03160
p03160
u656393766
u656393766
1,598,311,656
2020-08-24T23:27:36
Solution.java
import java.util.*; public class Solution { public static void main(String args[]){ int N=0; Scanner obj=new Scanner(System.in); N=obj.nextInt(); int h[]=new int[N]; for(int i=0;iN;i++){ h[i]=obj.nextInt(); } int dp[]=new int[N]; if(N==0) System.out.println(0); if(N==1) Syst...
Solution.java:9: error: cannot find symbol for(int i=0;iN;i++){ ^ symbol: variable iN location: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656393766|p03160|0
u656393766|p03160|0
codenet
Compile Error
577
v2_s442337167
s442337167
s442337167
p03160
p03160
u670194794
u670194794
1,586,235,227
2020-04-07T04:53:47
Main.java
import java.util.*; import java.io.*; import java.lang.*; public class Main{ static BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); static StringBuilder sb = new StringBuilder(); static StringTokenizer stk = new StringTokenizer(""); public static void main(String args[]){ ...
Main.java:29: error: not a statement retrun 0; ^ Main.java:29: error: ';' expected retrun 0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u670194794|p03160|0
u670194794|p03160|0
codenet
Compile Error
1,102
v2_s038419974
s038419974
s038419974
p03160
p03160
u678531490
u678531490
1,579,802,891
2020-01-23T18:08:11
Solution.java
import java.util.*; public static class Solution{ 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(); int[] dp = new int[n]; Arrays.fill(dp , Integer.MAX_VALUE); dp[0]...
Solution.java:2: error: modifier static not allowed here public static class Solution{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u678531490|p03160|0
u678531490|p03160|0
codenet
Compile Error
532
v2_s070994527
s070994527
s070994527
p03160
p03160
u681075432
u681075432
1,564,777,181
2019-08-02T20:19:41
Main.java
import java.io.*; import java.util.*; import java.math.*; public class Main { InputStream is; PrintWriter out; static int fun(int pos,int a[],int dp[],int n) { if(pos+1>=n||pos+2>=n) return Math.abs(a[pos]-a[n-1]); if(dp[pos]!=-1) return dp[pos]; return dp[pos]=Math.min(Math.abs(a[pos]-a[p...
Main.java:103: error: cannot find symbol public static void main(String[] args) { new cb().run(); } ^ symbol: class cb location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u681075432|p03160|1
u681075432|p03160|1
codenet
Compile Error
3,263
v2_s807926160
s807926160
s807926160
p03160
p03160
u683593891
u683593891
1,588,317,769
2020-05-01T07:22:49
Main.java
import java.util.*; import java.io.*; class Node implements Comparable<Node>{ int i; int d; public Node(int i, int d){ this.i = i; this.d = d; } public int compareTo(Node n){ return Integer.compare(this.d, n.d); } } public class Main.extension { public static void m...
Main.java:16: error: '{' expected public class Main.extension { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683593891|p03160|0
u683593891|p03160|0
codenet
Compile Error
1,357
v2_s305552433
s305552433
s305552433
p03160
p03160
u686968396
u686968396
1,587,029,964
2020-04-16T09:39:24
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[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = sc.nextInt(); } System.out.println(0); } }
Main.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util 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 s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686968396|p03160|0
u686968396|p03160|0
codenet
Compile Error
278
v2_s608104452
s608104452
s608104452
p03160
p03160
u698539640
u698539640
1,577,520,910
2019-12-28T08:15:10
Solution.java
public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = reader.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.nextInt(); } } private static ...
Solution.java:4: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Solution Solution.java:4: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
361
v2_s081685022
s081685022
s081685022
p03160
p03160
u698539640
u698539640
1,577,521,059
2019-12-28T08:17:39
Main.java
public class Main { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = reader.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.nextInt(); } } private static int ...
Main.java:4: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
357
v2_s671522603
s671522603
s671522603
p03160
p03160
u698539640
u698539640
1,577,521,098
2019-12-28T08:18:18
Main.java
import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = reader.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.nextInt(); } } ...
Main.java:7: error: cannot find symbol int n = reader.nextInt(); ^ symbol: method nextInt() location: variable reader of type BufferedReader Main.java:10: error: cannot find symbol a[i] = reader.nextInt(); ^ symbol: method nextInt() location: variable reader of...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
375
v2_s978129345
s978129345
s978129345
p03160
p03160
u698539640
u698539640
1,577,521,127
2019-12-28T08:18:47
Main.java
import java.io.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = reader.readInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.readInt(); } } ...
Main.java:7: error: cannot find symbol int n = reader.readInt(); ^ symbol: method readInt() location: variable reader of type BufferedReader Main.java:10: error: cannot find symbol a[i] = reader.readInt(); ^ symbol: method readInt() location: variable reader of...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
375
v2_s334692043
s334692043
s334692043
p03160
p03160
u698539640
u698539640
1,577,521,239
2019-12-28T08:20:39
Main.java
import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner reader = new Scanner(System.in)); int n = reader.readInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.readInt(); } } private static int solve(int[] a) { ...
Main.java:6: error: ';' expected Scanner reader = new Scanner(System.in)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
339
v2_s446277636
s446277636
s446277636
p03160
p03160
u698539640
u698539640
1,577,521,260
2019-12-28T08:21:00
Main.java
import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner reader = new Scanner(System.in); int n = reader.readInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.readInt(); } } private static int solve(int[] a) { ...
Main.java:6: error: cannot find symbol Scanner reader = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner reader = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
338
v2_s927592112
s927592112
s927592112
p03160
p03160
u698539640
u698539640
1,577,521,303
2019-12-28T08:21:43
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner reader = new Scanner(System.in)); int n = reader.readInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.readInt(); } } private static i...
Main.java:7: error: ';' expected Scanner reader = new Scanner(System.in)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
359
v2_s075733174
s075733174
s075733174
p03160
p03160
u698539640
u698539640
1,577,521,321
2019-12-28T08:22:01
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner reader = new Scanner(System.in); int n = reader.readInt(); int[] a = new int[n]; for (int i = 0; i < n; ++i) { a[i] = reader.readInt(); } } private static in...
Main.java:8: error: cannot find symbol int n = reader.readInt(); ^ symbol: method readInt() location: variable reader of type Scanner Main.java:11: error: cannot find symbol a[i] = reader.readInt(); ^ symbol: method readInt() location: variable reader of type S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698539640|p03160|0
u698539640|p03160|0
codenet
Compile Error
358
v2_s572678298
s572678298
s572678298
p03160
p03160
u702978144
u702978144
1,599,791,310
2020-09-11T02:28:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] h = new int[n]; int[] dp = new int[n+1]; dp[0] = 0; dp[1] = Math.abs(h[0] - h[1]); for (int i = 2; i < n; i+...
Main.java:12: error: ';' expected int y = Math.abs(h[i] - h[i - 1]) ^ Main.java:13: error: ';' expected dp[i] = Math.min(dp[i-2] + x,dp[i-1] + y)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702978144|p03160|0
u702978144|p03160|0
codenet
Compile Error
526
v2_s833502592
s833502592
s833502592
p03160
p03160
u702978144
u702978144
1,599,791,389
2020-09-11T02:29:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int[] h = new int[n]; int[] dp = new int[n]; dp[0] = 0; dp[1] = Math.abs(h[0] - h[1]); for (int i = 2; i < n; i++) { int x = Math.abs(h[i] - h[i...
Main.java:13: error: ';' expected dp[i] = Math.min(dp[i-2] + x,dp[i-1] + y)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702978144|p03160|0
u702978144|p03160|0
codenet
Compile Error
463
v2_s937226905
s937226905
s937226905
p03160
p03160
u703000868
u703000868
1,590,261,314
2020-05-23T19:15:14
Main.java
import java.util.*; import java.util.Arrays; public class Main{ public int[] A; public int[]dp; public static int solve(int i, int N){ if(i == N) return 0; if(dp[i]!=-1) return dp[i]; if(i+1<=N){ dp[i]= Math.abs(A[i]-A[i+1]) + solve(i+1,N); } if(i+2<=N){ dp[i]= Mat...
Main.java:10: error: non-static variable dp cannot be referenced from a static context if(dp[i]!=-1) return dp[i]; ^ Main.java:10: error: non-static variable dp cannot be referenced from a static context if(dp[i]!=-1) return dp[i]; ^ Main.java:13: error: non-static variable d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u703000868|p03160|0
u703000868|p03160|0
codenet
Compile Error
689
v2_s771722464
s771722464
s771722464
p03160
p03160
u711069286
u711069286
1,588,946,935
2020-05-08T14:08:55
Main.java
import java.io.*; class A{ 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(dp[i-1]...
Main.java:14: error: ')' or ',' expected dp[i]=Math.min(dp[i-1]+Math.abs(a[i]-a[i-1]),dp[i-2]+Math.abs(a[i]-a[i-2]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711069286|p03160|0
u711069286|p03160|0
codenet
Compile Error
416
v2_s699073538
s699073538
s699073538
p03160
p03160
u711069286
u711069286
1,588,947,039
2020-05-08T14:10:39
Main.java
import java.io.*; class A{ 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(dp[i-1]...
Main.java:4: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class A Main.java:4: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class A 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711069286|p03160|0
u711069286|p03160|0
codenet
Compile Error
417
v2_s247581007
s247581007
s247581007
p03160
p03160
u713641282
u713641282
1,573,847,090
2019-11-15T19:44:50
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] stones = new int[n]; for (int i = 0; i < n; i++) { stones[i] = scanner.nextInt(); } int[] dp ...
Main.java:28: error: method minInjured in class Main cannot be applied to given types; return Math.min(minInjured(stones, n - 1) + Math.abs(stones[n] - stones[n - 1]), ^ required: int[],int,int[] found: int[],int reason: actual and formal argument lists differ in length Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u713641282|p03160|0
u713641282|p03160|0
codenet
Compile Error
847
v2_s698326684
s698326684
s698326684
p03160
p03160
u717877904
u717877904
1,594,346,195
2020-07-10T01:56:35
Main.java
import java.util.*; public class Main { public static void main(String[] args ) { Scanner scn = new Sacnner(System.in) ; int n = scn.nextInt() ; int[] arr =new int[n] ; for(int i =0 ; i < n; i++ ) arr[i] = scn.nextInt() ; if( n== 1 ) { System.out.print(0) ; ...
Main.java:6: error: cannot find symbol Scanner scn = new Sacnner(System.in) ; ^ symbol: class Sacnner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717877904|p03160|0
u717877904|p03160|0
codenet
Compile Error
800
v2_s329152899
s329152899
s329152899
p03160
p03160
u734615707
u734615707
1,594,514,720
2020-07-12T00:45:20
Main.java
import java.util.*; class Solution { static long mod = 1000000009L; public static void main(String[] args) throws Exception { in = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(System.out); sc = new FastScanner(in); int t = 1; while (t-- > 0) { int n = sc.nextInt(); lon...
Main.java:73: error: cannot find symbol static BufferedReader in; ^ symbol: class BufferedReader location: class Solution Main.java:75: error: cannot find symbol static PrintWriter out; ^ symbol: class PrintWriter location: class Solution Main.java:78: error: cannot find symbol BufferedR...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u734615707|p03160|0
u734615707|p03160|0
codenet
Compile Error
2,432
v2_s854457074
s854457074
s854457074
p03160
p03160
u734615707
u734615707
1,594,514,778
2020-07-12T00:46:18
Main.java
import java.util.*; public class Main { static long mod = 1000000009L; public static void main(String[] args) throws Exception { in = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(System.out); sc = new FastScanner(in); int t = 1; while (t-- > 0) { int n = sc.nextInt(); ...
Main.java:73: error: cannot find symbol static BufferedReader in; ^ symbol: class BufferedReader location: class Main Main.java:75: error: cannot find symbol static PrintWriter out; ^ symbol: class PrintWriter location: class Main Main.java:78: error: cannot find symbol BufferedReader in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u734615707|p03160|0
u734615707|p03160|0
codenet
Compile Error
2,435
v2_s016608671
s016608671
s016608671
p03160
p03160
u739471196
u739471196
1,590,367,844
2020-05-25T00:50:44
Main.java
import java.util.*; public class Main{ public int minVal(int n, int[] value, int index){ if(index >= value.length){ return 0; } int temp1 = index; temp1++; int ans1 = 0; if(temp1 < value.length){ ans1 = Math.abs(value[index]-value[temp1]) + minVal(n-1, value, index++); }...
Main.java:27: error: ',', ')', or '[' expected public static void main(String[] args...){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739471196|p03160|0
u739471196|p03160|0
codenet
Compile Error
818
v2_s586814802
s586814802
s586814802
p03160
p03160
u739471196
u739471196
1,590,368,081
2020-05-25T00:54:41
Main.java
import java.util.*; public class Main{ public int minVal(int n, int[] value, int index){ if(index >= value.length){ return 0; } int temp1 = index; temp1++; int ans1 = 0; if(temp1 < value.length){ ans1 = Math.abs(value[index]-value[temp1]) + minVal(n-1, value, index++); }...
Main.java:34: error: non-static method minVal(int,int[],int) cannot be referenced from a static context int ans = minVal(n, value, 0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739471196|p03160|0
u739471196|p03160|0
codenet
Compile Error
815
v2_s445610361
s445610361
s445610361
p03160
p03160
u752484988
u752484988
1,548,321,818
2019-01-24T09:23:38
solution.java
public class solution { public int solution(int N, int[] costs) { // current index starting at 0 } public int findLowestCost(int N, int[] costs, int currentIndex){ int oneJumpCost = Integer.MAX_VALUE; int twoJumpCost = Integer.MAX_VALUE; if (current + 2 < N-1) { // Doesn't go out of bound ...
solution.java:9: error: cannot find symbol if (current + 2 < N-1) { // Doesn't go out of bound ^ symbol: variable current location: class solution solution.java:10: error: cannot find symbol twoJumpCost = findLowestCost(N, costs, CurrentIndex+2); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752484988|p03160|0
u752484988|p03160|0
codenet
Compile Error
801
v2_s785931004
s785931004
s785931004
p03160
p03160
u758458977
u758458977
1,586,371,005
2020-04-08T18:36:45
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; public class Main { int min; public int minJumps(int[] heights) { min = Integer.MAX_VALUE; dfs(heights, 0, 0); return min; } private int dfs(int[] heights, int position...
Main.java:30: error: ';' expected int n = Integer.parseInt(br.readLine())); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u758458977|p03160|0
u758458977|p03160|0
codenet
Compile Error
1,264