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_s364672303
s364672303
s364672303
p03168
p03168
u947911678
u947911678
1,595,255,477
2020-07-20T14:31:17
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Main ans = new Main(); System.out.printf("%.10f\n",ans.solve()); } private double solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double [] array = new double[N+1]; for(int i=1;i<=N;...
Main.java:33: error: cannot find symbol if (N==0) return 0; ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u947911678|p03168|1
u947911678|p03168|1
codenet
Compile Error
865
v2_s532005446
s532005446
s532005446
p03168
p03168
u996959191
u996959191
1,578,660,523
2020-01-10T12:48:43
Main.java
<?php $n = (int) fgets(STDIN); $probabilities = explode(" ", trim(fgets(STDIN))); echo getHeadsSuperior($probabilities, $n); function getHeadsSuperior($probabilities, $n) { $dp = []; for ($i = 0; $i < $n + 1; $i++) { if (!isset($dp[$i])) { $dp[$i] = []; } for ($j = 0; $j < $...
Main.java:1: error: class, interface, enum, or record expected <?php ^ Main.java:3: error: class, interface, enum, or record expected $probabilities = explode(" ", trim(fgets(STDIN))); ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. echo getHeadsSuperior($probabilities, $n); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u996959191|p03168|0
u996959191|p03168|0
codenet
Compile Error
824
v2_s614494913
s614494913
s614494913
p03169
p03169
u003034853
u003034853
1,588,134,254
2020-04-29T04:24:14
Main.java
import java.util.*; import java.io.*; class Main { static double[][][] dp; static double recurse(int cnt1, int cnt2, int cnt3, int n) { if(cnt1<0 || cnt2<0 || cnt3<0) return 0; if(cnt1==0 && cnt2==0 && cnt3==0) return 0; System.out.println(Arrays.toString(c)); ...
Main.java:10: error: cannot find symbol System.out.println(Arrays.toString(c)); ^ symbol: variable c location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003034853|p03169|0
u003034853|p03169|0
codenet
Compile Error
1,176
v2_s813791262
s813791262
s813791262
p03169
p03169
u815784554
u815784554
1,588,582,363
2020-05-04T08:52:43
Main.java
import java.util.*; public class Main { static double dp[][][]; static int n; public static void main(String[] args) { //Passes samples, but WA Scanner in = new Scanner(System.in); int n = in.nextInt(); dp = new double[n+1][n+1][n+1]; int[] arr = new int[3]; for(int i =0; i< n ;++) { i...
Main.java:11: error: illegal start of expression for(int i =0; i< n ;++) { ^ Main.java:24: error: illegal start of expression if(one>0) re + = one*dfs(one-1,two, three); ^ Main.java:26: error: ')' or ',' expected if(three>0) re+= three*dfs(one, two+1; three-1)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815784554|p03169|0
u815784554|p03169|0
codenet
Compile Error
843
v2_s068043036
s068043036
s068043036
p03169
p03169
u887200576
u887200576
1,579,293,569
2020-01-17T20:39:29
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { private static Scanner in; private static int n; private static int[] a; private static Integer[][][] dp; public static void main(String[] args) { in = new Scanner(System.in); n = in.nextInt(); a = new ...
Main.java:52: error: incompatible types: double cannot be converted to Integer return dp[one][two][three] = n*(1+A+B+C)/(one+two+three); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u887200576|p03169|1
u887200576|p03169|1
codenet
Compile Error
1,258
v2_s830228678
s830228678
s830228678
p03170
p03170
u175695110
u175695110
1,578,719,368
2020-01-11T05:09:28
Main.java
/* * zyrch - Rupanshu Yadav */ #include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <queue> #include <deque> #include <bitset> #include <iterator> #include <list> #include <stack> #include <map> #include <set> #include <functional> #include <utility> #include <climi...
Main.java:4: error: illegal character: '#' #include <iostream> ^ Main.java:5: error: illegal character: '#' #include <string> ^ Main.java:6: error: illegal character: '#' #include <vector> ^ Main.java:7: error: illegal character: '#' #include <algorithm> ^ Main.java:8: error: illegal character: '#' #include <fstream> ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u175695110|p03170|0
u175695110|p03170|0
codenet
Compile Error
3,120
v2_s868901280
s868901280
s868901280
p03170
p03170
u203304947
u203304947
1,588,800,710
2020-05-06T21:31:50
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 k=s.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) { arr[i]=s.nextInt(): } int dp[]=new int[k+1]; for(int i=0;i<arr[0];i+...
Main.java:13: error: ';' expected arr[i]=s.nextInt(): ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u203304947|p03170|2
u203304947|p03170|1
codenet
Compile Error
764
v2_s284602976
s284602976
s284602976
p03170
p03170
u303294364
u303294364
1,595,559,853
2020-07-24T03:04:13
Main.java
#include <bits/stdc++.h> #define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define EPS 1e-9 #define f first #define s second #define ll long long #define read(x) scanf("%d", &x) #define all(v) v.begin(), v.end() using namespace std; int n, K; vector<int> v; int dp[100005]; int solve(int k){ if(k > K)...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define IO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) ^ Main.java:2: error: class, interface, enu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303294364|p03170|0
u303294364|p03170|0
codenet
Compile Error
723
v2_s702647500
s702647500
s702647500
p03170
p03170
u595786324
u595786324
1,582,936,968
2020-02-29T00:42:48
Main.java
#include<bits/stdc++.h> using namespace std; #define int long long signed main(){ int n,k; cin >> n >> k; vector<int> a(n); for(int i = 0;i < n; ++i) cin >> a[i]; // dp[i] true only if i can gaurantee i can come here vector<bool> dp(k + 1); for(int i = 1;i <= k; ++i){ for(int j = 0;j < n; ++j){ // suppose ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define int long long ^ Main.java:3: error: class, interface, enum, or record expected #define int long long ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u595786324|p03170|0
u595786324|p03170|0
codenet
Compile Error
521
v2_s630895234
s630895234
s630895234
p03170
p03170
u747848540
u747848540
1,547,586,497
2019-01-15T21:08:17
Main.java
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef pair<int,int> ii; typedef vector<ii> vii; typedef long long ll; typedef unsigned long long ul; typedef unsigned int ui; #define F first #define S second #define PB push_back #define MP make_pair #define SQ(a) (a)*(a) #define rep(i,a,b) fo...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:5: error: class, interface, enum, or record expected typedef vector<int> vi; ^ Main.java:6: error: class, interface, enum, or record expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u747848540|p03170|1
u747848540|p03170|1
codenet
Compile Error
1,338
v2_s451026584
s451026584
s451026584
p03170
p03170
u747848540
u747848540
1,547,837,920
2019-01-18T18:58:40
Main.java
#include <bits/stdc++.h> #define LL long long int n,k; int a[100]; int ans[100001]; using namespace std; void Solve() { if(k<a[0]) {cout<<2;return;} for(int i=a[0];i<=k;i++) { for(int j=0;j<n;j++) { if(i-a[j]<0) break; if(ans[i-a[j]]==0) {ans[i]=1;break;} } } cout<<((2-ans[k])==1)?"First":"Second";...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define LL long long ^ Main.java:4: error: class, interface, enum, or record expected int a[100]; ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u747848540|p03170|2
u747848540|p03170|2
codenet
Compile Error
440
v2_s939475923
s939475923
s939475923
p03170
p03170
u815784554
u815784554
1,590,400,724
2020-05-25T09:58:44
Main.java
port java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); int[] arr = new int[n]; for(int i =0; i<n;i++) arr[i] = in.nextInt(); boolean[] dp = new boolean[k+1]; Arrays.fill(dp, false); f...
Main.java:1: error: class, interface, enum, or record expected port java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815784554|p03170|0
u815784554|p03170|0
codenet
Compile Error
518
v2_s560213632
s560213632
s560213632
p03170
p03170
u815784554
u815784554
1,590,400,772
2020-05-25T09:59:32
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 k = in.nextInt(); int[] arr = new int[n]; for(int i =0; i<n;i++) arr[i] = in.nextInt(); boolean[] dp = new boolean[k+1]; Arrays.fill(dp, false); ...
Main.java:21: error: cannot find symbol if(i< a[j]) break; ^ symbol: variable a location: class Main Main.java:23: error: cannot find symbol if(!dp[i-a[j]]){ ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815784554|p03170|0
u815784554|p03170|0
codenet
Compile Error
521
v2_s780116311
s780116311
s780116311
p03170
p03170
u875818555
u875818555
1,595,337,674
2020-07-21T13:21:14
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] s = br.readLine().split(" "); int n = Integer.parseInt(s[0]); int k = Integer.parseInt(s[1]); int[...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u875818555|p03170|0
u875818555|p03170|0
codenet
Compile Error
824
v2_s193459989
s193459989
s193459989
p03170
p03170
u875818555
u875818555
1,595,337,794
2020-07-21T13:23:14
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] s = br.readLine().split(" "); int n = Integer.parseInt(s[0]); int k = Integer.parseInt(s[1]); int[...
Main.java:33: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u875818555|p03170|0
u875818555|p03170|0
codenet
Compile Error
833
v2_s362966471
s362966471
s362966471
p03171
p03171
u068098242
u068098242
1,551,984,597
2019-03-07T18:49:57
Main.java
import java.util.*; public class Main { static int n; static long[] a; static Long[][][] memo public static void main(String[] args) { Scanner in = new Scanner(System.in); n = in.nextInt(); a = new long[n]; for (int i = 0; i < n; i++) a[i] = in.nextLong(); memo = new Long[2][n][n]; ...
Main.java:7: error: ';' expected static Long[][][] memo ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03171|0
u068098242|p03171|0
codenet
Compile Error
682
v2_s430092788
s430092788
s430092788
p03171
p03171
u068098242
u068098242
1,551,984,747
2019-03-07T18:52:27
Main.java
import java.util.*; public class Main { static int n; static long[] a; static Long[][][] memo public static void main(String[] args) { Scanner in = new Scanner(System.in); n = in.nextInt(); a = new long[n]; for (int i = 0; i < n; i++) a[i] = in.nextLong(); memo = new Long[2][n][n]; ...
Main.java:7: error: ';' expected static Long[][][] memo ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03171|0
u068098242|p03171|0
codenet
Compile Error
692
v2_s191763848
s191763848
s191763848
p03171
p03171
u084149465
u084149465
1,565,582,395
2019-08-12T03:59:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; for (int i=0; i<n; i++) { a[i] = sc.nextInt(); } long[] dp = new long[n * n]; long...
Main.java:13: error: variable dp is already defined in method main(String[]) long[][] dp = new long[n][n]; ^ Main.java:20: error: bad operand types for binary operator '-' dp[i * n + j] = Math.max(a[i] - dp[(i + 1) * n + j], a[j] - dp[i * n + (j - 1)]); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u084149465|p03171|0
u084149465|p03171|0
codenet
Compile Error
684
v2_s823704612
s823704612
s823704612
p03171
p03171
u084149465
u084149465
1,565,591,297
2019-08-12T06:28:17
Main.java
import java.util.*; import sun.misc.Unsafe; public class Main { public static Unsafe getUnsafe() { Class cc = sun.reflect.Reflection.getCallerClass(2); if (cc.getClassLoader() != null) throw new SecurityException("Unsafe"); return theUnsafe; } public static void main(Str...
Main.java:2: warning: Unsafe is internal proprietary API and may be removed in a future release import sun.misc.Unsafe; ^ Main.java:5: warning: Unsafe is internal proprietary API and may be removed in a future release public static Unsafe getUnsafe() { ^ Main.java:6: error: cannot f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u084149465|p03171|1
u084149465|p03171|0
codenet
Compile Error
909
v2_s604872085
s604872085
s604872085
p03171
p03171
u472909807
u472909807
1,591,029,282
2020-06-01T16:34:42
Main.java
import java.util.*; class Main { public int getIndex(long[] arr, int i1, int i2) { if(i1 == i2) return i1; long max1 = Math.max(Math.abs(arr[i1] - arr[i1+1]), Math.abs(arr[i1] - arr[i2])); long max2 = Math.max(Math.abs(arr[i2] - arr[i2-1]), Math.abs(arr[i2] - arr[i1])); if(max1 > max2...
Main.java:30: error: incompatible types: possible lossy conversion from long to int int valIndex = getIndex(arr, i1, i2); ^ Main.java:33: error: incompatible types: possible lossy conversion from long to int temp += arr[i1]; ^ Main.java:36: error: inc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472909807|p03171|0
u472909807|p03171|0
codenet
Compile Error
1,011
v2_s657122935
s657122935
s657122935
p03171
p03171
u472909807
u472909807
1,591,029,350
2020-06-01T16:35:50
Main.java
import java.util.*; class Main { public int getIndex(long[] arr, int i1, int i2) { if(i1 == i2) return i1; long max1 = Math.max(Math.abs(arr[i1] - arr[i1+1]), Math.abs(arr[i1] - arr[i2])); long max2 = Math.max(Math.abs(arr[i2] - arr[i2-1]), Math.abs(arr[i2] - arr[i1])); if(max1 > max2...
Main.java:31: error: non-static method getIndex(long[],int,int) cannot be referenced from a static context int valIndex = getIndex(arr, i1, i2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472909807|p03171|0
u472909807|p03171|0
codenet
Compile Error
1,019
v2_s740914824
s740914824
s740914824
p03171
p03171
u792014726
u792014726
1,583,673,243
2020-03-08T13:14:03
Main.java
import javax.swing.*; import java.io.*; import java.sql.Struct; import java.text.DecimalFormat; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader rd = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(rd...
Main.java:34: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u792014726|p03171|0
u792014726|p03171|0
codenet
Compile Error
999
v2_s613148271
s613148271
s613148271
p03171
p03171
u813251412
u813251412
1,594,587,555
2020-07-12T20:59:15
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.InputMismatchException; import java.util.Map; import java.util.Objects; public class Main { static long[][] taro; static long[][] jiro; public static void main(String[] args) { InputReader ir = new ...
Main.java:137: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813251412|p03171|0
u813251412|p03171|0
codenet
Compile Error
3,772
v2_s893311498
s893311498
s893311498
p03171
p03171
u882458885
u882458885
1,586,450,936
2020-04-09T16:48:56
Main.java
// Problem : L - Deque // Contest : Educational DP Contest // URL : https://atcoder.jp/contests/dp/tasks/dp_l // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) import java.io.*; import java.util.*; public class Main { public static void main(String[] ...
Main.java:42: error: ';' expected dp[i][j]=Math.max(a[i]-dp[i + 1][r],a[j] - dp[i][j - 1]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u882458885|p03171|0
u882458885|p03171|0
codenet
Compile Error
2,735
v2_s871391533
s871391533
s871391533
p03171
p03171
u947911678
u947911678
1,595,518,563
2020-07-23T15:36:03
Main.java
public class Main { public static void main(String abc[]) { Main ans = new Main(); System.out.println(ans.solve()); } private long solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long [] array = new long [N+1]; int i=0; long sum=0; while(i<=N){...
Main.java:10: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:22: error: incomp...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u947911678|p03171|0
u947911678|p03171|0
codenet
Compile Error
989
v2_s562659549
s562659549
s562659549
p03171
p03171
u947911678
u947911678
1,595,518,778
2020-07-23T15:39:38
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String abc[]) { Main ans = new Main(); System.out.println(ans.solve()); } private long solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long [] array = new long [N+1]; int ...
Main.java:25: error: incompatible types: long[][][] cannot be converted to long[] long X = solve(dp, array, 1, 0, N); ^ Main.java:32: error: array required, but long found if (dp[i][j][turn] !=0) return dp[i][j][turn]; ^ Main.java:32: error: array required, but long found ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u947911678|p03171|0
u947911678|p03171|0
codenet
Compile Error
1,115
v2_s789625590
s789625590
s789625590
p03172
p03172
u238904265
u238904265
1,583,223,272
2020-03-03T08:14:32
Main.java
//package javaapplication9; import java.util.*; import java.io.*; public class Main{ public static int candies(int n, int k, int arr[],int[][] dp){ if(n < 0 || k < 0) return 0; if(k == 0 && n == 0) return 1; if(dp[n][k] > 0){ // System.out.println("used"); return ...
Main.java:29: error: cannot find symbol int n = Integer.parseInt(str.nextToken()); ^ symbol: variable str location: class Main Main.java:30: error: cannot find symbol int k = Integer.parseInt(str.nextToken()); ^ symbol: variable str locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238904265|p03172|0
u238904265|p03172|0
codenet
Compile Error
1,034
v2_s055182798
s055182798
s055182798
p03172
p03172
u238904265
u238904265
1,583,223,569
2020-03-03T08:19:29
Main.java
//package javaapplication9; import java.util.*; import java.io.*; public class Main{ public static int candies(int n, int k, int arr[],int[][] dp){ if(n < 0 || k < 0) return 0; if(k == 0 && n == 0) return 1; if(dp[n][k] > -1){ // System.out.println("used"); return...
Main.java:42: error: variable i is already defined in method main(String[]) for(int i = 0; i < dp.length; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238904265|p03172|0
u238904265|p03172|0
codenet
Compile Error
1,193
v2_s046173057
s046173057
s046173057
p03172
p03172
u238904265
u238904265
1,583,223,992
2020-03-03T08:26:32
Main.java
//package javaapplication9; import java.util.*; import java.io.*; public class Main{ public static int candies(int n, int k, int arr[]){ if(n < 0 || k < 0) return 0; if(k == 0 && n == 0) return 1; int a = 0; for(int i = 0; i <= arr[n]; i++){ a +=candies(n-1,k-i...
Main.java:16: error: cannot find symbol a +=candies(n-1,k-i,arr,dp); ^ symbol: variable dp location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238904265|p03172|0
u238904265|p03172|0
codenet
Compile Error
1,079
v2_s212489912
s212489912
s212489912
p03172
p03172
u238904265
u238904265
1,583,226,919
2020-03-03T09:15:19
Main.java
//package javaapplication9; import java.util.*; import java.io.*; public class Main{ public static int candies(int n, int k, int arr[],int[][] dp){ if(n < 0 || k < 0) return 0; if(k == 0 && n == 0) return 1; if(dp[n][k] > -1){ // System.out.println("used"); return...
Main.java:42: error: variable i is already defined in method main(String[]) for(int i = 0; i < dp.length; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238904265|p03172|0
u238904265|p03172|0
codenet
Compile Error
1,202
v2_s100461794
s100461794
s100461794
p03172
p03172
u371993312
u371993312
1,587,800,944
2020-04-25T07:49:04
Main.java
import java.util.*; import java.io.*; public class Main{ static BufferedReader s1; static BufferedWriter out; static String read() throws IOException{String line="";while(line.length()==0){line=s1.readLine();continue;}return line;} static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int...
Main.java:8: error: cannot find symbol static int[] int_arr() throws IOException{String[] a=read().split(" ");int[] b=new int[a.length];for(int i=0;i<a.length;i++){b[i]=int_v(a[i]);}return b;} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371993312|p03172|0
u371993312|p03172|0
codenet
Compile Error
2,244
v2_s359477946
s359477946
s359477946
p03172
p03172
u770637119
u770637119
1,598,097,153
2020-08-22T11:52:33
Main.java
we
Main.java:1: error: reached end of file while parsing we ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770637119|p03172|1
u770637119|p03172|1
codenet
Compile Error
2
v2_s708217576
s708217576
s708217576
p03172
p03172
u815784554
u815784554
1,591,000,589
2020-06-01T08:36:29
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int n= in.nextInt(); int k = in.nextInt(); int[] arr = new int[n]; for(int i =0; i< n; i++) arr[i] = in.nextInt(); double[][] ...
Main.java:20: error: ';' expected dp[1][j]=(arr[0]>=j) 1:0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815784554|p03172|0
u815784554|p03172|0
codenet
Compile Error
794
v2_s393250851
s393250851
s393250851
p03172
p03172
u833397930
u833397930
1,589,061,221
2020-05-09T21:53:41
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); int N = in.nextInt(); int K = in.nextInt(); int[] a = new int[N]; for (int i = 0; i < N; i++) { a[i] = in.next(); } i...
Main.java:11: error: incompatible types: String cannot be converted to int a[i] = in.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u833397930|p03172|0
u833397930|p03172|0
codenet
Compile Error
672
v2_s769944895
s769944895
s769944895
p03172
p03172
u976892721
u976892721
1,556,307,538
2019-04-26T19:38:58
Main.java
public class Main { int mod = 1000000007; public int findNumWaysToDistributeCandies(int n, int k, int[] a) { int[][] prefix = new int[n+1][k+1]; int[][] dp = new int[n+1][k+1]; for(int i=0;i<=n;++i) { dp[i][0]=1; prefix[i][0]=1; } for(int i=1;i<=k;+...
Main.java:29: error: cannot find symbol InputStreamReader r=new InputStreamReader(System.in); ^ symbol: class InputStreamReader location: class Main Main.java:29: error: cannot find symbol InputStreamReader r=new InputStreamReader(System.in); ^ symbol: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u976892721|p03172|0
u976892721|p03172|0
codenet
Compile Error
1,405
v2_s313138427
s313138427
s313138427
p03173
p03173
u086780113
u086780113
1,584,859,206
2020-03-22T06:40:06
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]; for (int i = 0; i < N; i++) a[i] = sc.nextInt(); sc.close(); long ans = 0; List<Long> list = Arrays.stream(a).mapToObj(L...
Main.java:13: error: cannot find symbol List<Long> list = Arrays.stream(a).mapToObj(Long::valueOf).collect(Collectors.toList()); ^ symbol: variable Collectors location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u086780113|p03173|0
u086780113|p03173|0
codenet
Compile Error
732
v2_s220387121
s220387121
s220387121
p03173
p03173
u086780113
u086780113
1,584,859,248
2020-03-22T06:40:48
Main.java
import java.util.*; import java.util.function.*; public class Main { 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(); sc.close(); long ans = 0; List<Long> list ...
Main.java:14: error: cannot find symbol List<Long> list = Arrays.stream(a).mapToObj(Long::valueOf).collect(Collectors.toList()); ^ symbol: variable Collectors location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u086780113|p03173|0
u086780113|p03173|0
codenet
Compile Error
761
v2_s539568548
s539568548
s539568548
p03173
p03173
u687155532
u687155532
1,600,597,144
2020-09-20T10:19:04
Main.java
import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.LongStream; public class Main { private final int n; private final List<Long> a; private long[][] ...
Main.java:18: error: invalid method declaration; return type required public N(int n, List<Long> a) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u687155532|p03173|0
u687155532|p03173|0
codenet
Compile Error
1,705
v2_s480997488
s480997488
s480997488
p03173
p03173
u762187782
u762187782
1,546,915,167
2019-01-08T02:39:27
Main.java
import com.sun.xml.internal.ws.api.model.MEP; import java.io.*; import java.util.*; public class Main { static int N; static int[] A; public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); N = sc.nextInt(); A = sc.nextIntArray(N); System.ou...
Main.java:1: error: package com.sun.xml.internal.ws.api.model does not exist import com.sun.xml.internal.ws.api.model.MEP; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762187782|p03173|0
u762187782|p03173|0
codenet
Compile Error
5,078
v2_s093923490
s093923490
s093923490
p03173
p03173
u815784554
u815784554
1,591,450,035
2020-06-06T13:27:15
Main.java
import java.io.*; import java.util.*; class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); long n = in.nextLong(); long[] arr = new long[n]; for(long i=0; i< n; i++) arr[i] = in.nextLong(); long[][] dp = new long[n][n]; for(int i = n-1; i>=0; i-...
Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] arr = new long[n]; ^ Main.java:10: error: incompatible types: possible lossy conversion from long to int arr[i] = in.nextLong(); ^ Main.java:11: error: incompatible types: possible lossy convers...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815784554|p03173|0
u815784554|p03173|0
codenet
Compile Error
740
v2_s446148500
s446148500
s446148500
p03173
p03173
u905039527
u905039527
1,546,843,846
2019-01-07T06:50:46
Main.java
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll dp[401][401]; ll mx=10000000000000000ll; int main() { ll n; cin>>n; ll a[n+1]; ll s[n+1]; for(int i=1;i<=n;i++) cin>>a[i]; s[0]=0; for(int i=1;i<=n;i++) s[i]=s[i-1]+a[i]; for(int i=n;i>=1;i--) { ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:4: error: class, interface, enum, or record expected ll d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u905039527|p03173|0
u905039527|p03173|0
codenet
Compile Error
569
v2_s646179087
s646179087
s646179087
p03174
p03174
u254886300
u254886300
1,597,716,362
2020-08-18T02:06:02
Main.java
vimport org.w3c.dom.ls.LSOutput; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Array; import java.math.BigInteger; import java.nio.Buffer; import java.util.*; public class Main { public static class FastReader { BufferedReader br;...
Main.java:1: error: class, interface, enum, or record expected vimport org.w3c.dom.ls.LSOutput; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.BufferedReader; ^ Main.java:4: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:5: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u254886300|p03174|0
u254886300|p03174|0
codenet
Compile Error
2,176
v2_s261644267
s261644267
s261644267
p03174
p03174
u622812523
u622812523
1,600,368,433
2020-09-17T18:47:13
Main.java
#include <bits/stdc++.h> using namespace std; const int mxn = 21; int dp[mxn + 1][1 << mxn], a[mxn][mxn]; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; for (int i = 0; i < n; ++i) for (int j = 0; j < n; ++j) cin >> a[i][j]; dp[0][0] = 1; for (int i = 0; i < n; ++i) fo...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: class, interface, enum, or record expected const int mxn = 21; ^ Main.java:5: error: class, interface, enum, or record expected int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u622812523|p03174|0
u622812523|p03174|0
codenet
Compile Error
576
v2_s419134485
s419134485
s419134485
p03174
p03174
u905039527
u905039527
1,546,924,171
2019-01-08T05:09:31
Main.java
#include<bits/stdc++.h> using namespace std; typedef long long ll; ll mod=1000000007; ll dp[1<<21]; int main() { ll n; cin>>n; ll a[n][n]; for(ll i=0;i<n;i++) for(ll j=0;j<n;j++) cin>>a[i][j]; ll mx=1<<n; for(ll i=0;i<mx;i++) dp[i]=0; dp[0]=1; for(ll i=0;i<n;...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:4: error: unnamed classes are a preview feature and are d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u905039527|p03174|0
u905039527|p03174|0
codenet
Compile Error
709
v2_s889016506
s889016506
s889016506
p03175
p03175
u043856034
u043856034
1,589,316,832
2020-05-12T20:53:52
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { static long MOD = 1000000007; static Long dp[][]; static long getWays(ArrayList<Integer> tree[], int curr, int par, int color) { if(tree[curr].size()==1 && tree[curr].get(0)==par) { return 1; } if(dp[curr][color]!=null) r...
Main.java:62: error: not a statement dp[]=new Long[n][2]; ^ Main.java:62: error: ';' expected dp[]=new Long[n][2]; ^ Main.java:62: error: not a statement dp[]=new Long[n][2]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u043856034|p03175|0
u043856034|p03175|0
codenet
Compile Error
2,191
v2_s129107974
s129107974
s129107974
p03175
p03175
u407083430
u407083430
1,546,824,912
2019-01-07T01:35:12
Main.java
import static java.lang.Math.*; // import java.math.BigInteger; import java.io.*; import java.util.*; // solution code is in solve() public class Main { final static long mod = 1_000_000_007l; final static int maxn = 1_000_007; final static int infty = 1_000_000_009 ; // final static boolean DEBUG =...
Main.java:108: error: cannot find symbol if (DEBUG) { ^ symbol: variable DEBUG location: class Solver Main.java:181: error: cannot find symbol if (DEBUG) { ^ symbol: variable DEBUG location: class Solver Main.java:187: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u407083430|p03175|0
u407083430|p03175|0
codenet
Compile Error
6,958
v2_s236730604
s236730604
s236730604
p03175
p03175
u959329569
u959329569
1,581,960,040
2020-02-17T17:20:40
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { static int MOD = 1000000007; static Map<Integer, List<Integer>> adjList; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); in...
Main.java:18: error: cannot find symbol visited = new boolean[N + 1]; ^ symbol: variable visited location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u959329569|p03175|2
u959329569|p03175|2
codenet
Compile Error
1,486
v2_s763883896
s763883896
s763883896
p03176
p03176
u238904265
u238904265
1,583,747,933
2020-03-09T09:58:53
Main.java
import java.io.*; import java.util.*; class Main { public static long memo(int[] flowers, int[] price, int n, int prev, long[][] memo){ if(n < 0) return 0; if(memo[prev+1][n] > 0){ return memo[prev+1][n]; } long ans = Long.MIN_VALUE; if(prev...
Main.java:66: error: integer number too large long[][] memo = new long[10000000000][10000000000]; ^ Main.java:66: error: integer number too large long[][] memo = new long[10000000000][10000000000]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238904265|p03176|2
u238904265|p03176|2
codenet
Compile Error
2,200
v2_s150632994
s150632994
s150632994
p03176
p03176
u334615307
u334615307
1,588,494,534
2020-05-03T08:28:54
Main.java
import java.util.*; public class Main{ static long[] aa; static long maxx(int[] h,int[] b,int ind,int flag){ if(ind>=b.length){return 0;} if(aa[ind][flag]!=-1){return aa[ind][flag];} if(flag==0){ long maxs=0; for(int j=0;j<b.length;j++){ maxs=Math.max(maxx(h,b...
Main.java:6: error: array required, but long found if(aa[ind][flag]!=-1){return aa[ind][flag];} ^ Main.java:6: error: array required, but long found if(aa[ind][flag]!=-1){return aa[ind][flag];} ^ Main.java:14: error: array required, but long fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334615307|p03176|0
u334615307|p03176|0
codenet
Compile Error
1,117
v2_s994557823
s994557823
s994557823
p03176
p03176
u374687144
u374687144
1,599,353,828
2020-09-06T00:57:08
Main.java
public class Main { private static final int MAX_N = 200002; static long dp[] = new long[MAX_N]; static long bit[] = new long[MAX_N]; public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String nLine = br.readLi...
Main.java:54: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374687144|p03176|1
u374687144|p03176|1
codenet
Compile Error
1,342
v2_s284608632
s284608632
s284608632
p03176
p03176
u410758678
u410758678
1,583,783,190
2020-03-09T19:46:30
Main.java
import java.util.*; import java.io.*; public class Main { public static long solve(int[] h, int[] b, int i, int prev, long[][] dp){ if(i >= h.length){ return 0; } if(dp[i][prev+1] > -1){ return dp[i][prev+1]; } long ans = Integer.MIN_VALUE; if(...
Main.java:38: error: variable i is already defined in method main(String[]) for(int i = 0; i < dp.length; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410758678|p03176|0
u410758678|p03176|0
codenet
Compile Error
1,389
v2_s986809532
s986809532
s986809532
p03176
p03176
u410758678
u410758678
1,583,783,260
2020-03-09T19:47:40
Main.java
import java.util.*; import java.io.*; public class Main { public static long solve(int[] h, int[] b, int i, int prev, long[][] dp){ if(i >= h.length){ return 0; } if(dp[i][prev+1] > -1){ return dp[i][prev+1]; } long ans = Integer.MIN_VALUE; if(...
Main.java:38: error: variable i is already defined in method main(String[]) for(int i = 0; i < dp.length; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410758678|p03176|0
u410758678|p03176|0
codenet
Compile Error
1,389
v2_s072727518
s072727518
s072727518
p03176
p03176
u410758678
u410758678
1,583,805,822
2020-03-10T02:03:42
Main.java
class Main{ public static long solve2(int[] h, int[] b){ long ans = Integer.MIN_VALUE; int[] dp = new int[h.length]; for(int i = 0; i < b.length; i++){ dp[i] = b[i]; } for(int i = 1; i < h.length; i++){ for(int j = 0; j < i; j++){ if(h[i]...
Main.java:24: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:24: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u410758678|p03176|1
u410758678|p03176|1
codenet
Compile Error
1,318
v2_s166114689
s166114689
s166114689
p03176
p03176
u472644957
u472644957
1,580,785,265
2020-02-04T03:01:05
Main.java
public class Main { public static void main(String args[]) {int n; Scanner sc=new Scanner(System.in); n=sc.nextInt(); int a[]=new int[n]; int h[]=new int[n]; for(int i=0;i<n;i++) { h[i]=sc.nextInt(); a[i]=sc.nextInt(); } int ans=0; int dp...
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
u472644957|p03176|0
u472644957|p03176|0
codenet
Compile Error
761
v2_s719247312
s719247312
s719247312
p03176
p03176
u711948228
u711948228
1,550,600,322
2019-02-19T18:18:42
Main.java
// Author : Rifayat Samee (Sanzee) // Problem : // Algorithm: /* */ #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxval = 200005; ll tree[4*maxval+5]; void make_tree(int i,int low,int high,const vector<int>&A){ if(low == high){ tree[i] = 0; return; } int mi...
Main.java:8: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:8: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:10: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:11: error: class, interface, enum, or record expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711948228|p03176|0
u711948228|p03176|0
codenet
Compile Error
1,568
v2_s594310090
s594310090
s594310090
p03177
p03177
u330837798
u330837798
1,559,769,963
2019-06-05T21:26:03
Main.java
import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.lang.reflect.Array; import ...
Main.java:74: error: cannot find symbol arr=q5.expo(arr, k, n); ^ symbol: variable q5 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330837798|p03177|0
u330837798|p03177|0
codenet
Compile Error
3,265
v2_s699775213
s699775213
s699775213
p03177
p03177
u711948228
u711948228
1,550,602,840
2019-02-19T19:00:40
Main.java
#include <bits/stdc++.h> using namespace std; #define mod 1000000007 int main() { long long int n,a[51][51],i,j,k,x,y,z,l; cin>>n>>k; for(i=0;i<n;i++)for(j=0;j<n;j++)cin>>a[i][j]; vector<long long int >dp(n,1); for(i=0;i<k;i++) { vector<long long int>new_dp(n,0); for(j=0;j<n;j++)...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define mod 1000000007 ^ Main.java:3: error: class, interface, enum, or record expected #define mod 10000000...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711948228|p03177|0
u711948228|p03177|0
codenet
Compile Error
609
v2_s126212929
s126212929
s126212929
p03178
p03178
u068098242
u068098242
1,557,413,831
2019-05-09T14:57:11
Main.java
import java.util.*; import java.io.*; public class Main { char[] n; int d, l; long mod = (long)1e9+7; int[][][] dp; Main(Scanner in, PrintWriter out) { n = in.next().toCharArray(); l = n.length; d = in.nextInt(); dp = new int[2][d][l]; for (int i = 0; i < 2; i++) ...
Main.java:30: error: incompatible types: possible lossy conversion from long to int ans += dp(1, (s+n[at]-'0') % mod, at+1); ^ Main.java:32: error: incompatible types: possible lossy conversion from long to int ans += dp(0, (s+i) % mod, at+1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03178|0
u068098242|p03178|0
codenet
Compile Error
968
v2_s199438888
s199438888
s199438888
p03178
p03178
u068098242
u068098242
1,557,417,373
2019-05-09T15:56:13
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 && at == n-1 ? 1 : 0; ^ first type: char[] second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03178|0
u068098242|p03178|0
codenet
Compile Error
1,044
v2_s626990954
s626990954
s626990954
p03178
p03178
u068098242
u068098242
1,557,417,438
2019-05-09T15:57:18
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|p03178|0
u068098242|p03178|0
codenet
Compile Error
1,050
v2_s503492833
s503492833
s503492833
p03178
p03178
u923923174
u923923174
1,596,589,873
2020-08-05T01:11:13
Main.java
package DP; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String K = sc.next(); int D = sc.nextInt(); S instance = new S(); int res = (int) instance.solve(K, D); System.out.println(res); ...
Main.java:11: error: cannot find symbol S instance = new S(); ^ symbol: class S location: class Main Main.java:11: error: cannot find symbol S instance = new S(); ^ symbol: class S location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u923923174|p03178|0
u923923174|p03178|0
codenet
Compile Error
1,372
v2_s382726658
s382726658
s382726658
p03179
p03179
u881477317
u881477317
1,589,289,229
2020-05-12T13:13:49
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Scanner; public class Main static int mod = (int) 1e9 + 7; static ArrayList<Integer> gr[]; static int ar[]; static Scanner sc = new Scanner(System.in); static...
Main.java:8: error: '{' expected public class Main ^ Main.java:11: error: class, interface, enum, or record expected static ArrayList<Integer> gr[]; ^ Main.java:12: error: class, interface, enum, or record expected static int ar[]; ^ Main.java:13: error: unnamed classes are a preview ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881477317|p03179|0
u881477317|p03179|0
codenet
Compile Error
1,370
v2_s671133911
s671133911
s671133911
p03180
p03180
u326696058
u326696058
1,588,913,243
2020-05-08T04:47:23
Main.java
import java.util.*; import java.util.Map.Entry; import hakerrank.solve_linear_equations; import java.io.*; public class Main { static int mod=(int)1e9+7; static long dp[]; static long score[]; public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n=scn.nextInt(); long mat[][]=new l...
Main.java:4: error: package hakerrank does not exist import hakerrank.solve_linear_equations; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u326696058|p03180|0
u326696058|p03180|0
codenet
Compile Error
1,078
v2_s215834073
s215834073
s215834073
p03181
p03181
u068098242
u068098242
1,557,420,052
2019-05-09T16:40:52
Main.java
import java.util.*; import java.io.*; public class Main { int n; long mod; int[][] sz; long[] ans; ArrayList[] G; Main(Scanner in, PrintWriter out) { n = in.nextInt(); mod = in.nextLong(); G = new ArrayList[n]; for (int i = 0; i < n; i++) G[i] = new ArrayList<>...
Main.java:26: error: incompatible types: int[] cannot be converted to int[][] sz = new int[n]; ^ Main.java:35: error: bad operand types for binary operator '*' ans *= (1+sz[i][j]); ^ first type: long[] second type: int Main.java:36: error: bad operand types for binary opera...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p03181|0
u068098242|p03181|0
codenet
Compile Error
1,309
v2_s463858188
s463858188
s463858188
p03182
p03182
u313111801
u313111801
1,547,968,071
2019-01-20T07:07:51
Main.java
#include <bits/stdc++.h> int N; int M; struct segtree{ int n; long long v[500000]; long long lazy[500000]; segtree(int n_){ n=1; while(n<n_)n*=2; for(int i=0;i<2*n-1;++i){ v[i]=0; lazy[i]=0; } } long long query(int a,int b,long long add){ return query(0,n,a,b,0,add);...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int M; ^ (use --enable-preview to enable unnamed classes) Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03182|0
u313111801|p03182|0
codenet
Compile Error
1,484
v2_s075742254
s075742254
s075742254
p03182
p03182
u326696058
u326696058
1,588,961,698
2020-05-08T18:14:58
Main.java
import java.util.*; import java.util.Map.Entry; import hakerrank.solve_linear_equations; import java.io.*; public class Main { static int mod; static long[] sta; static long[] oa; static long[] lazy; static void preprocess(long[] dp) { oa = dp; int ht = getlog(oa.length); int sl = (int) Math.pow(2, ht + ...
Main.java:4: error: package hakerrank does not exist import hakerrank.solve_linear_equations; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u326696058|p03182|0
u326696058|p03182|0
codenet
Compile Error
3,366
v2_s924094039
s924094039
s924094039
p03183
p03183
u015030158
u015030158
1,599,374,258
2020-09-06T06:37:38
Codechef.java
/* package codechef; // 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. */ public class Codechef { static long dp[][]; static long max(int pos , int sum , block arr[]) { if(sum > 10000 && pos ...
Codechef.java:13: error: cannot find symbol if(sum > 10000 && pos != n) ^ symbol: variable n location: class Codechef 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015030158|p03183|0
u015030158|p03183|0
codenet
Compile Error
1,543
v2_s913910951
s913910951
s913910951
p03183
p03183
u931949518
u931949518
1,572,128,386
2019-10-26T22:19:46
Main2.java
import afu.org.checkerframework.checker.igj.qual.I; import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.StringTokenizer; public class Main2 { static long mod = (long) (1e9 + 7); public static void main(String[] args) { InputStream input...
Main2.java:1: error: package afu.org.checkerframework.checker.igj.qual does not exist import afu.org.checkerframework.checker.igj.qual.I; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u931949518|p03183|0
u931949518|p03183|0
codenet
Compile Error
2,798
v2_s507657807
s507657807
s507657807
p03183
p03183
u931949518
u931949518
1,572,128,403
2019-10-26T22:20:03
Main.java
import afu.org.checkerframework.checker.igj.qual.I; import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.StringTokenizer; public class Main { static long mod = (long) (1e9 + 7); public static void main(String[] args) { InputStream inputS...
Main.java:1: error: package afu.org.checkerframework.checker.igj.qual does not exist import afu.org.checkerframework.checker.igj.qual.I; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u931949518|p03183|0
u931949518|p03183|0
codenet
Compile Error
2,797
v2_s628226940
s628226940
s628226940
p03184
p03184
u144888468
u144888468
1,589,696,480
2020-05-17T06:21:20
Grid1.java
import java.util.Scanner; public class Grid1 { private static int R; private static int C; public static void main(String[] args) { Scanner sc = new Scanner(System.in); R = sc.nextInt(); C = sc.nextInt(); char[][] arr = new char[R + 1][C + 1]; int n = sc.nextInt();...
Grid1.java:26: error: not a statement dp[i][j] == 1; ^ Grid1.java:28: error: not a statement dp[i][j] == arr[i][j] == 1 ? 0 : dp[i][j - 1]; ^ Grid1.java:30: error: not a statement dp[i][j] == arr[i][j] == 1 ? 0 :...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u144888468|p03184|0
u144888468|p03184|0
codenet
Compile Error
1,203
v2_s777865399
s777865399
s777865399
p03184
p03184
u144888468
u144888468
1,589,696,560
2020-05-17T06:22:40
Main.java
import java.util.Scanner; class Main { private static int R; private static int C; public static void main(String[] args) { Scanner sc = new Scanner(System.in); R = sc.nextInt(); C = sc.nextInt(); char[][] arr = new char[R + 1][C + 1]; int n = sc.nextInt(); ...
Main.java:44: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u144888468|p03184|0
u144888468|p03184|0
codenet
Compile Error
1,192
v2_s059564061
s059564061
s059564061
p03184
p03184
u213440300
u213440300
1,598,599,173
2020-08-28T07:19:33
Main.java
/** * author: derrick20 * created: 8/27/20 2:18 PM */ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int MAX = (int) 2e5; // todo chang...
Main.java:57: error: package Grid2 does not exist static Grid2.Node[] nodes; ^ Main.java:26: error: package Grid2 does not exist nodes = new Grid2.Node[N + 2]; ^ Main.java:28: error: package Grid2 does not exist nodes[i] = new Grid2.Node(sc.nextInt(), sc....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213440300|p03184|0
u213440300|p03184|0
codenet
Compile Error
6,672
v2_s074823223
s074823223
s074823223
p03184
p03184
u769201746
u769201746
1,547,061,433
2019-01-09T19:17:13
Main.java
public class Main { private static void solve() { int h = ni(); int w = ni(); int n = ni(); int[][] p = ntable(n, 2); Arrays.sort(p, (o1, o2) -> (o1[0] + o1[1]) - (o2[0] + o2[1])); int mod = 1000000000 + 7;; int[][] fif = enumFIF(400000, mod); long[] dp = new long[n + 1]; dp[0] ...
Main.java:8: error: cannot find symbol Arrays.sort(p, (o1, o2) -> (o1[0] + o1[1]) - (o2[0] + o2[1])); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769201746|p03184|0
u769201746|p03184|0
codenet
Compile Error
4,094
v2_s583006623
s583006623
s583006623
p03185
p03185
u314470965
u314470965
1,574,904,044
2019-11-28T01:20:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] hiki = scan.nextLine().split(" "); long n = Long.parseLong(hiki[0]); long C = Long.parseLong(hiki[1]); long[] cost = new long[n]; long[] dp = new long[n]; hiki...
Main.java:10: error: incompatible types: possible lossy conversion from long to int long[] cost = new long[n]; ^ Main.java:11: error: incompatible types: possible lossy conversion from long to int long[] dp = new long[n]; ^ Main.java:25: error: incompatible ty...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314470965|p03185|0
u314470965|p03185|0
codenet
Compile Error
690
v2_s770790399
s770790399
s770790399
p03186
p03186
u016622494
u016622494
1,554,438,190
2019-04-05T04:23:10
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ new sc =new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = 0; while(1){ if( c!=0){ c--; d++; }el...
Main.java:4: error: '(' or '[' expected new sc =new Scanner(System.in); ^ Main.java:38: error: ';' expected break ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016622494|p03186|0
u016622494|p03186|0
codenet
Compile Error
887
v2_s179707784
s179707784
s179707784
p03186
p03186
u016622494
u016622494
1,554,438,244
2019-04-05T04:24:04
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = 0; while(1){ if( c!=0){ c--; d++; ...
Main.java:10: error: incompatible types: int cannot be converted to boolean while(1){ ^ Main.java:28: error: incompatible types: int cannot be converted to boolean while(1){ ^ Main.java:42: error: package system does not exist system.out.println(d); ^ 3 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016622494|p03186|0
u016622494|p03186|0
codenet
Compile Error
892
v2_s486588194
s486588194
s486588194
p03186
p03186
u046277696
u046277696
1,547,853,672
2019-01-18T23:21:12
Main.java
public class Main { public static void main(String[] args) { InputReader reader = new InputReader(System.in); int A, B, C; A = reader.nextInt(); B = reader.nextInt(); C = reader.nextInt(); int ans = B + Math.min(A + B + 1, C); System.out.println(ans); } ...
Main.java:17: error: cannot find symbol private StringTokenizer tokenizer; ^ symbol: class StringTokenizer location: class InputReader Main.java:18: error: cannot find symbol private BufferedReader reader; ^ symbol: class BufferedReader location: class InputRe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046277696|p03186|0
u046277696|p03186|0
codenet
Compile Error
2,010
v2_s670186770
s670186770
s670186770
p03186
p03186
u089230684
u089230684
1,596,711,351
2020-08-06T10:55:51
eleni05.java
public class eleni05 { public static void main(String[] args) { Scanner cadena = new Scanner(System.in); String linea = cadena.nextLine(); String numeros[] = linea.split(" "); int i = 0; boolean band = true; int tamano = numeros.length; if (tamano == 3) {...
eleni05.java:5: error: cannot find symbol Scanner cadena = new Scanner(System.in); ^ symbol: class Scanner location: class eleni05 eleni05.java:5: error: cannot find symbol Scanner cadena = new Scanner(System.in); ^ symbol: class Scanner location: class e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03186|2
u089230684|p03186|2
codenet
Compile Error
1,131
v2_s242975851
s242975851
s242975851
p03186
p03186
u212397344
u212397344
1,585,441,438
2020-03-29T00:23:58
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if(A+B>= C){ System.out.println(B+C); }else{ System.out.orintln(B+A+B+1); } } }
Main.java:11: error: cannot find symbol System.out.orintln(B+A+B+1); ^ symbol: method orintln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03186|0
u212397344|p03186|0
codenet
Compile Error
305
v2_s777560414
s777560414
s777560414
p03186
p03186
u364124935
u364124935
1,546,142,485
2018-12-30T04:01:25
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if( A + B > C){ System.out.println(B + C); }else if(Math.max(A, B) < C){ ...
Main.java:14: error: illegal character: '\u3000' System.out.println(B*B +?C + 1); ^ Main.java:14: error: not a statement System.out.println(B*B +?C + 1); ^ Main.java:14: error: ';' expected System.out.println(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u364124935|p03186|0
u364124935|p03186|0
codenet
Compile Error
435
v2_s109268443
s109268443
s109268443
p03186
p03186
u401158939
u401158939
1,581,625,647
2020-02-13T20:27:27
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); final int A,B,C; int ans=0; A = sc.nextInt();B=sc.nextInt();C=sc.nextInt(); if(A+B >= C){ ans = B+C; } else{ if(A >= B ){ ans = A + B +Matn.min(C-A,B...
Main.java:13: error: cannot find symbol ans = A + B +Matn.min(C-A,B); ^ symbol: variable Matn location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401158939|p03186|0
u401158939|p03186|0
codenet
Compile Error
430
v2_s742628516
s742628516
s742628516
p03186
p03186
u440190560
u440190560
1,552,016,868
2019-03-08T03:47:48
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int delicious = 0; boolean poison = false; for(int i = 0; c > 0; i++) { // 2連続毒 if(poison) { c--; break; } // Cを食べる...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440190560|p03186|0
u440190560|p03186|0
codenet
Compile Error
569
v2_s638020171
s638020171
s638020171
p03186
p03186
u534918612
u534918612
1,574,546,892
2019-11-23T22:08:12
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int a=0,b=0,c=0; Scanner s=new Scanner(System.In); a=s.nextInt(); b=s.nextInt(); c=s.nextInt(); if(c-1<=a+b){ System.out.println(b+c); }else{ System.out.println(a+b+1); } } }
Main.java:6: error: cannot find symbol Scanner s=new Scanner(System.In); ^ symbol: variable In location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p03186|1
u534918612|p03186|1
codenet
Compile Error
305
v2_s128417608
s128417608
s128417608
p03186
p03186
u534918612
u534918612
1,574,546,922
2019-11-23T22:08:42
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int a=0,b=0,c=0; Scanner s=new Scanner(System.In); a=s.nextInt(); b=s.nextInt(); c=s.nextInt(); if(c-1<=a+b){ System.out.println(b+c); }else{ System.out.println(a+b+1+b); } } }
Main.java:6: error: cannot find symbol Scanner s=new Scanner(System.In); ^ symbol: variable In location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p03186|1
u534918612|p03186|1
codenet
Compile Error
307
v2_s201061367
s201061367
s201061367
p03186
p03186
u534918612
u534918612
1,574,547,112
2019-11-23T22:11:52
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner s=new Scanner(System.in); int a=s.nextInt(), b=s.nextInt(), c=s.nextInt(); System.out.println(min(a+b+1,c)+b); } }
Main.java:10: error: cannot find symbol System.out.println(min(a+b+1,c)+b); ^ symbol: method min(int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p03186|1
u534918612|p03186|1
codenet
Compile Error
228
v2_s470613301
s470613301
s470613301
p03186
p03186
u534918612
u534918612
1,574,547,226
2019-11-23T22:13:46
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int a,b,c; Scanner s=new Scanner(System.in); a=s.nextInt(); b=s.nextInt(); c=s.nextInt(); System.out.println(min(a+b+1,c)+b); } }
Main.java:11: error: cannot find symbol System.out.println(min(a+b+1,c)+b); ^ symbol: method min(int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p03186|1
u534918612|p03186|1
codenet
Compile Error
245
v2_s508006987
s508006987
s508006987
p03186
p03186
u634330971
u634330971
1,563,406,762
2019-07-17T23:39:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int untastyAntidote = Integer.parseInt(sc.next()); int tastyAntidote = Integer.parseInt(sc.next()); int tastyPoison = Integer.parseInt(sc.next()); sc.close(); int health = 1; ...
Main.java:14: error: incompatible types: unexpected return value return tastyAntidote; ^ Main.java:16: error: incompatible types: unexpected return value return tastyPoison; ^ Main.java:18: error: incompatible types: unexpecte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u634330971|p03186|0
u634330971|p03186|0
codenet
Compile Error
1,996
v2_s615946573
s615946573
s615946573
p03186
p03186
u635226757
u635226757
1,546,140,282
2018-12-30T03:24:42
Main.java
int a; a = 3; int b; b = 1; int c; c = 4; System.out.println("5");
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int a; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected a = 3; ^ Main.java:4: error: class, interface, enum, or record expected b = 1; ^ Main.java:6: error: class, in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635226757|p03186|0
u635226757|p03186|0
codenet
Compile Error
66
v2_s881149425
s881149425
s881149425
p03186
p03186
u663819790
u663819790
1,592,500,023
2020-06-18T17:07:03
Main.java
<?php $input = trim(fgets(STDIN)); $arr = explode(" ",$input); $a = $arr[0]; $b = $arr[1]; $c = $arr[2]; $ab = $a + $b; $bc = $b + $c; if($ab <= $bc) { print $bc -1; } else { print $bc; } ?>
Main.java:1: error: class, interface, enum, or record expected <?php ^ Main.java:5: error: class, interface, enum, or record expected $arr = explode(" ",$input); ^ Main.java:7: error: class, interface, enum, or record expected $a = $arr[0]; ^ Main.java:8: error: class, interface, enum, or record expected $b = $arr[1]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u663819790|p03186|0
u663819790|p03186|0
codenet
Compile Error
202
v2_s515377264
s515377264
s515377264
p03186
p03186
u716804519
u716804519
1,547,934,159
2019-01-19T21:42:39
Main.java
Scanner scanner = new Scanner(System.in); int ACokkieNum = scanner.nextInt(); int BCokkieNum = scanner.nextInt(); int CCokkieNum = scanner.nextInt(); int poisonRecovery = ACookieNum + BCookieNum; if (poisonRecovery >= CCokkieNum){ return BCookieNum + CCokkieNum; } else { return eatCookieNum = BCookieNum + CCook...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:9: error: class, interface, enum, or record expected if (poisonRecovery >= CCokkieNum){ ^ Main.java:11: error: class, interface,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u716804519|p03186|0
u716804519|p03186|0
codenet
Compile Error
351
v2_s582372974
s582372974
s582372974
p03186
p03186
u716804519
u716804519
1,547,934,523
2019-01-19T21:48:43
Main.java
import java.util.Objects; import java.util.Scanner; Scanner scanner = null; try { scanner = new Scanner(System.in); int ACookieNum = scanner.nextInt(); int BCookieNum = scanner.nextInt(); int CCookieNum = scanner.nextInt(); int poisonRecovery = ACookieNum + BCookieNum; if (poisonRecovery >= CCookieNum){...
Main.java:4: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner = null; ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record expected try { ^ Main.java:14: error: class, interface, enum, or record expected if (poisonRecovery ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u716804519|p03186|0
u716804519|p03186|0
codenet
Compile Error
486
v2_s737258950
s737258950
s737258950
p03186
p03186
u816631826
u816631826
1,596,711,589
2020-08-06T10:59:49
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner cadena = new Scanner(System.in); String linea = cadena.nextLine(); String numeros[] = linea.split(" "); int i = 0; boolean band = true; int tamano = numeros.length; if (tamano == 3)...
Main.java:2: 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
u816631826|p03186|0
u816631826|p03186|0
codenet
Compile Error
1,130
v2_s238978808
s238978808
s238978808
p03186
p03186
u863370423
u863370423
1,567,343,266
2019-09-01T13:07:46
Main.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ //package poisonouscookies; import java.util.*; /** * * @author Dheeresh */ public class Main { Scanner scanner; int a,b,c,...
Main.java:26: error: invalid method declaration; return type required public PoisonousCookies(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03186|1
u863370423|p03186|1
codenet
Compile Error
1,283
v2_s442379235
s442379235
s442379235
p03186
p03186
u863370423
u863370423
1,596,711,468
2020-08-06T10:57:48
Main.java
public static void main(String[] args) { Scanner cadena = new Scanner(System.in); String linea = cadena.nextLine(); String numeros[] = linea.split(" "); int i = 0; boolean band = true; int tamano = numeros.length; if (tamano == 3) { while (i < tama...
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
u863370423|p03186|3
u863370423|p03186|3
codenet
Compile Error
1,100
v2_s036359291
s036359291
s036359291
p03186
p03186
u944472700
u944472700
1,547,961,931
2019-01-20T05:25:31
A.java
public class A{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a + b >= c){ System.out.println(b + c); }else{ System.out.println(a + b + 1 + b); } } }
A.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A A.java:3: 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
u944472700|p03186|0
u944472700|p03186|0
codenet
Compile Error
293
v2_s524735705
s524735705
s524735705
p03186
p03186
u992675902
u992675902
1,546,136,411
2018-12-30T02:20:11
APoisonousCookies.java
package main.atcoder; import fastIO.InputReader; import java.io.PrintWriter; public class APoisonousCookies { public void solve(int testNumber, InputReader in, PrintWriter out) { int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); long d = c - a > 0 ? c - a : 0; long f = d - b > 0...
APoisonousCookies.java:3: error: package fastIO does not exist import fastIO.InputReader; ^ APoisonousCookies.java:8: error: cannot find symbol public void solve(int testNumber, InputReader in, PrintWriter out) { ^ symbol: class InputReader location: class APoiso...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992675902|p03186|0
u992675902|p03186|0
codenet
Compile Error
427
v2_s329130712
s329130712
s329130712
p03187
p03187
u046277696
u046277696
1,547,865,079
2019-01-19T02:31:19
Main.java
import java.util.ArrayList; import java.util.List; /** * Burning trees. */ public class Main { public static class Tree { int coord; boolean burned; Tree(int coord) { this.coord = coord; this.burned = false; } } private int N, L; private List...
Main.java:25: error: cannot find symbol void solve(InputReader in) { ^ symbol: class InputReader location: class Main Main.java:103: error: cannot find symbol public static void main(String[] args) throws FileNotFoundException { ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046277696|p03187|0
u046277696|p03187|0
codenet
Compile Error
2,660
v2_s407315112
s407315112
s407315112
p03192
p03192
u072472435
u072472435
1,547,413,060
2019-01-13T20:57:40
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = sc.nextInt(); int countTwo = 0; while (i != 0) { int r = i % 10; i /= 10; if (r == 2) countTwo++; } return countT...
Main.java:13: error: incompatible types: unexpected return value return countTwo; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u072472435|p03192|0
u072472435|p03192|0
codenet
Compile Error
332
v2_s326319338
s326319338
s326319338
p03192
p03192
u272319314
u272319314
1,567,365,294
2019-09-01T19:14:54
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String n = sc.next(); int ans = 0; for(int i = 0; i < n.length(); i++) { if(n.chartAt(i) == '2') ans++; } System.out.println(ans); } ...
Main.java:9: error: cannot find symbol if(n.chartAt(i) == '2') ans++; ^ symbol: method chartAt(int) location: variable n of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u272319314|p03192|0
u272319314|p03192|0
codenet
Compile Error
322
v2_s762657518
s762657518
s762657518
p03192
p03192
u981808900
u981808900
1,560,030,623
2019-06-08T21:50:23
Main.java
import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { System.out.println(scanner.next().replaceAll("[013-9]").length()); } }
Main.java:7: error: method replaceAll in class String cannot be applied to given types; System.out.println(scanner.next().replaceAll("[013-9]").length()); ^ required: String,String found: String reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03192|0
u981808900|p03192|0
codenet
Compile Error
218