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_s700364594
s700364594
s700364594
p01701
p01701
u211138527
u211138527
1,455,968,410
2016-02-20T11:40:10
Main.java
import java.io.InputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.math.BigInteger; public class Main{ static PrintWriter out...
Main.java:67: error: incompatible types: possible lossy conversion from long to int return reduct(new Fraction(this.nu*a.de+this.de*a.nu,this.de*a.de)); ^ Main.java:71: error: incompatible types: possible lossy conversion from long to int return reduct(new Fraction(this.nu*a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p01701|0
u211138527|p01701|0
codenet
Compile Error
4,251
v2_s360005516
s360005516
s360005516
p01701
p01701
u211138527
u211138527
1,455,968,433
2016-02-20T11:40:33
Main.java
import java.io.InputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.math.BigInteger; public class Main{ static PrintWriter out...
Main.java:83: error: incompatible types: possible lossy conversion from long to int int g=gcd(a.nu,a.de); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p01701|0
u211138527|p01701|0
codenet
Compile Error
4,253
v2_s688149213
s688149213
s688149213
p01701
p01701
u211138527
u211138527
1,455,968,679
2016-02-20T11:44:39
Main.java
import java.io.InputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.math.BigInteger; public class Main{ static PrintWriter out...
Main.java:34: error: cannot find symbol else ou.println(dir.get(-1)); ^ symbol: variable ou location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p01701|0
u211138527|p01701|0
codenet
Compile Error
4,305
v2_s536485417
s536485417
s536485417
p01701
p01701
u211138527
u211138527
1,455,969,431
2016-02-20T11:57:11
Main.java
import java.io.InputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.NoSuchElementException; import java.math.BigInteger; public class Main{ static PrintWriter out...
Main.java:46: error: cannot find symbol else return ang(n,w-1,tot,dir).add(new Fraction(90,1<<(tot-dep-1))); ^ symbol: variable n location: class Main Main.java:46: error: cannot find symbol else return ang(n,w-1,tot,dir).add(new Fraction(90,1<<(tot-dep-1))); ^ symbol: va...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p01701|0
u211138527|p01701|0
codenet
Compile Error
4,297
v2_s148602501
s148602501
s148602501
p01706
p01706
u323357326
u323357326
1,472,555,505
2016-08-30T11:11:45
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main{ @SuppressWarnings("unchecked") public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int n = sc.nextInt();// the number of cities int m = sc....
Main.java:212: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01706|0
u323357326|p01706|0
codenet
Compile Error
4,644
v2_s605474091
s605474091
s605474091
p01706
p01706
u323357326
u323357326
1,472,555,537
2016-08-30T11:12:17
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main { @SuppressWarnings("unchecked") public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int n = sc.nextInt();// the number of cities int m = sc...
Main.java:212: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01706|0
u323357326|p01706|0
codenet
Compile Error
4,645
v2_s070362642
s070362642
s070362642
p01706
p01706
u323357326
u323357326
1,472,555,726
2016-08-30T11:15:26
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main { @SuppressWarnings("unchecked") public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int n = sc.nextInt();// the number of cities int m = sc...
Main.java:30: error: non-static variable this cannot be referenced from a static context g[a].add(new Edge(a, b, 1)); ^ Main.java:31: error: non-static variable this cannot be referenced from a static context g_rev[b].add(new Edge(b, a, 1)); ^ Main.java:33: error: non-static variab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01706|0
u323357326|p01706|0
codenet
Compile Error
4,704
v2_s765858620
s765858620
s765858620
p01706
p01706
u323357326
u323357326
1,472,555,819
2016-08-30T11:16:59
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) { new Reverse_a_Road_2().solver(); } @SuppressWarnings("unchecked") void solver(){ Scanner sc = new Scanner(System.in); while (true) { int n...
Main.java:8: error: cannot find symbol new Reverse_a_Road_2().solver(); ^ symbol: class Reverse_a_Road_2 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01706|0
u323357326|p01706|0
codenet
Compile Error
4,757
v2_s150054203
s150054203
s150054203
p01712
p01712
u144815373
u144815373
1,441,079,008
2015-09-01T03:43:28
Main.java
public class Main { private static int[] a; private static int[] entranceIndex; private static int[] exitIndex; private static int[] boukaIndex; public static void main(String[] args) { Scanner sc = new Scanner(System.in); // ???????????±??° int w = sc.nextInt(); a = new int[w]; entranceIndex = n...
Main.java:11: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: 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
u144815373|p01712|1
u144815373|p01712|1
codenet
Compile Error
1,217
v2_s590768194
s590768194
s590768194
p01715
p01715
u323357326
u323357326
1,491,674,867
2017-04-08T18:07:47
Main.java
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } long MODULO = 1_000_000_000 + 7; void run() { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int n = sc.nextInt(); int m = sc.nextInt(); int[] t = new int[n]; int...
Main.java:73: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01715|0
u323357326|p01715|0
codenet
Compile Error
1,793
v2_s995115608
s995115608
s995115608
p01723
p01723
u017274040
u017274040
1,496,661,469
2017-06-05T11:17:49
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner scan= new Scanner(System.in); boolean[][] trump = new boolean[4][13]; char[] head = {'S' , 'H' , 'C' , 'D'}; int n = scan.nextInt(); for (int i = 0; i < n ; i++ ) { char head_in = scan.next().charAt(0); ...
Main.java:10: error: cannot find symbol int num = Integer.parseInt(in.next()); ^ symbol: variable in location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u017274040|p01723|0
u017274040|p01723|0
codenet
Compile Error
778
v2_s304953654
s304953654
s304953654
p01723
p01723
u017274040
u017274040
1,496,661,515
2017-06-05T11:18:35
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner scan= new Scanner(System.in); boolean[][] trump = new boolean[4][13]; char[] head = {'S' , 'H' , 'C' , 'D'}; int n = scan.nextInt(); for (int i = 0; i < n ; i++ ) { char head_in = scan.next().charAt(0); in...
Main.java:10: error: cannot find symbol int num = Integer.parseInt(in.next()); ^ symbol: variable in location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u017274040|p01723|0
u017274040|p01723|0
codenet
Compile Error
771
v2_s785967341
s785967341
s785967341
p01739
p01739
u323357326
u323357326
1,491,840,887
2017-04-10T16:14:47
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] c = new int[n][n]; int[] excess = new in...
Main.java:144: error: ';' expected for (int i = 0; i 8< n; ++i) { ^ Main.java:144: error: not a statement for (int i = 0; i 8< n; ++i) { ^ Main.java:144: error: ')' expected for (int i = 0; i 8< n; ++i) { ^ Main.java:144: error: ';' expected for (i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01739|0
u323357326|p01739|0
codenet
Compile Error
3,706
v2_s616260725
s616260725
s616260725
p01754
p01754
u323357326
u323357326
1,472,190,431
2016-08-26T05:47:11
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main{ public static void main(String[] args) { new Dinner().Main(); } void solver() { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long P = sc.nextLong(); long Q = sc.nextLong(); long[] C = new ...
Main.java:7: error: cannot find symbol new Dinner().Main(); ^ symbol: class Dinner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01754|0
u323357326|p01754|0
codenet
Compile Error
972
v2_s383650396
s383650396
s383650396
p01754
p01754
u323357326
u323357326
1,472,190,444
2016-08-26T05:47:24
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main{ public static void main(String[] args) { new Dinner().Main(); } void solver() { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long P = sc.nextLong(); long Q = sc.nextLong(); long[] C = new ...
Main.java:7: error: cannot find symbol new Dinner().Main(); ^ symbol: class Dinner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323357326|p01754|0
u323357326|p01754|0
codenet
Compile Error
972
v2_s885596842
s885596842
s885596842
p01766
p01766
u164923853
u164923853
1,426,313,055
2015-03-14T06:04:15
Main.java
import java.awt.geom.Point2D; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { Scanner in = new Scanner(System.in); public static void main(String[] args) { new A(); } public A() { new RitProA().doIt(); } class RitProA{ void doIt(){ int n = in....
Main.java:13: error: invalid method declaration; return type required public A() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164923853|p01766|0
u164923853|p01766|0
codenet
Compile Error
2,006
v2_s431215568
s431215568
s431215568
p01766
p01766
u164923853
u164923853
1,426,313,081
2015-03-14T06:04:41
Main.java
import java.awt.geom.Point2D; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { Scanner in = new Scanner(System.in); public static void main(String[] args) { new Main(); } public Main() { new RitProA().doIt(); } class RitProA{ void doIt(){ int n...
Main.java:20: error: package A does not exist ArrayList<Frame> list = new ArrayList<A.Frame>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164923853|p01766|0
u164923853|p01766|0
codenet
Compile Error
2,012
v2_s019053040
s019053040
s019053040
p01811
p01811
u759934006
u759934006
1,490,114,662
2017-03-21T16:44:22
Main.java
package aoj.volume27.jags2015; import com.sun.org.apache.regexp.internal.RE; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.Deque; import static java.lang.Integer.parseInt; /** * ABC Gene */ public class Main { static fi...
Main.java:3: error: package com.sun.org.apache.regexp.internal does not exist import com.sun.org.apache.regexp.internal.RE; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759934006|p01811|1
u759934006|p01811|1
codenet
Compile Error
1,500
v2_s063487149
s063487149
s063487149
p01811
p01811
u759934006
u759934006
1,490,114,670
2017-03-21T16:44:30
Main.java
import com.sun.org.apache.regexp.internal.RE; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayDeque; import java.util.Deque; import static java.lang.Integer.parseInt; /** * ABC Gene */ public class Main { static final String TARGET = "ABC"; stat...
Main.java:1: error: package com.sun.org.apache.regexp.internal does not exist import com.sun.org.apache.regexp.internal.RE; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759934006|p01811|1
u759934006|p01811|1
codenet
Compile Error
1,468
v2_s540082335
s540082335
s540082335
p01812
p01812
u758239510
u758239510
1,528,967,031
2018-06-14T09:03:51
ICPC.java
import java.util.LinkedList; import java.util.Queue; public class ICPC { private static void solve() { int n = nei(); int m = nei(); int k = nei(); int[] ds = nis(m); int[][] vs = nis2(n, k); for (int i = 0; i < m; i++) { ds[i]--; } for (int i = 0; i < n; i++) { for (int j = 0; j < k; j++) { ...
ICPC.java:83: error: cannot find symbol IO.out(val); ^ symbol: variable IO location: class ICPC ICPC.java:87: error: cannot find symbol IO.out(String.valueOf(val)); ^ symbol: variable IO location: class ICPC ICPC.java:91: error: cannot find symbol IO.out(String.valueOf(val)); ^ symbol: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u758239510|p01812|0
u758239510|p01812|0
codenet
Compile Error
5,282
v2_s904530494
s904530494
s904530494
p01839
p01839
u211138527
u211138527
1,490,547,174
2017-03-26T16:52:54
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.util.NoSuchElementException; public class Main{ static PrintWriter out; static InputReader ir; static void solve(){ int cnt=0; int n=ir.nextInt(); if(n%2==1) out.printl...
Main.java:22: error: cannot find symbol cnnt--; ^ symbol: variable cnnt location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p01839|0
u211138527|p01839|0
codenet
Compile Error
2,956
v2_s195186381
s195186381
s195186381
p01845
p01845
u933808920
u933808920
1,558,969,166
2019-05-27T14:59:26
Main.java
#include <iostream> #include <cmath> using namespace std; int main(){ while(1){ int r0,w0,c,r; cin >> r0 >> w0 >> c >> r; if(r0==0) break; if(w0*c > r0){ cout << (int)ceil((double)(w0*c-r0)/r) << endl; }else{ cout << 0 << endl; } } ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cmath> ^ Main.java:8: error: not a statement cin >> r0 >> w0 >> c >> r; ^ Main.java:12: error: not a statement cout << (int)ceil((double)(w0*c-r0)/r) << ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u933808920|p01845|0
u933808920|p01845|0
codenet
Compile Error
332
v2_s959980793
s959980793
s959980793
p01858
p01858
u982119852
u982119852
1,482,802,373
2016-12-27T01:32:53
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import Sendame.Sendame.Pose; /** * AOJ Sendame</br> * * @author ?????????????????§??? */ public class Main{ public enum Pose { tameru, mamoru, kougekida; }// ??????...
Main.java:9: error: package Sendame.Sendame does not exist import Sendame.Sendame.Pose; ^ Main.java:211: error: cannot find symbol public List<Pose> gesture = new ArrayList<Pose>(); ^ symbol: class Pose location: class Player Main.java:213: error: cannot find symbol public Lis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982119852|p01858|3
u982119852|p01858|2
codenet
Compile Error
6,805
v2_s446453003
s446453003
s446453003
p01858
p01858
u982119852
u982119852
1,482,802,485
2016-12-27T01:34:45
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import Sendame.Sendame.Pose; /** * AOJ Sendame</br> * * @author ?????????????????§??? */ public class Main{ public enum Pose { tameru, mamoru, kougekida; }// ??????...
Main.java:9: error: package Sendame.Sendame does not exist import Sendame.Sendame.Pose; ^ Main.java:99: error: cannot find symbol public List<Pose> gesture = new ArrayList<Pose>(); ^ symbol: class Pose location: class Player Main.java:101: error: cannot find symbol public List...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982119852|p01858|3
u982119852|p01858|2
codenet
Compile Error
3,341
v2_s154263907
s154263907
s154263907
p01858
p01858
u982119852
u982119852
1,482,803,062
2016-12-27T01:44:22
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import Sendame.Sendame.Pose; /** * AOJ Sendame</br> * * @author ?????????????????§??? */ public class Main{ public enum Pose { tameru, mamoru, kougekida; }// ?????...
Main.java:9: error: package Sendame.Sendame does not exist import Sendame.Sendame.Pose; ^ Main.java:95: error: cannot find symbol private List<Pose> gesture = new ArrayList<Pose>(); ^ symbol: class Pose location: class Player Main.java:97: error: cannot find symbol List<Pose>...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982119852|p01858|3
u982119852|p01858|2
codenet
Compile Error
3,344
v2_s999756076
s999756076
s999756076
p01858
p01858
u982119852
u982119852
1,482,804,411
2016-12-27T02:06:51
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import Sendame.Sendame.Pose; /** * AOJ Sendame</br> * * @author ?????????????????§??? */ public class Main{ public enum Pose { tameru, mamoru, kougekida }// ??????...
Main.java:9: error: package Sendame.Sendame does not exist import Sendame.Sendame.Pose; ^ Main.java:90: error: cannot find symbol private List<Pose> gesture = new ArrayList<Pose>(); ^ symbol: class Pose location: class Player Main.java:92: error: cannot find symbol public Lis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982119852|p01858|3
u982119852|p01858|2
codenet
Compile Error
3,287
v2_s785880983
s785880983
s785880983
p01863
p01863
u760351030
u760351030
1,475,952,305
2016-10-08T18:45:05
Main.java
import java.util.Arrays; import java.util.Scanner; import vol_024.AOJ_2444.RollingHash; public class Main { MyScanner sc = new MyScanner(); Scanner sc2 = new Scanner(System.in); long start = System.currentTimeMillis(); long fin = System.currentTimeMillis(); final int MOD = 1000000007; int[] dx = { 1, 0, 0, -1 }...
Main.java:4: error: package vol_024.AOJ_2444 does not exist import vol_024.AOJ_2444.RollingHash; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760351030|p01863|0
u760351030|p01863|0
codenet
Compile Error
6,685
v2_s482507146
s482507146
s482507146
p01888
p01888
u011621222
u011621222
1,490,285,068
2017-03-23T16:04:28
Main.java
to QA team as a release candidate. However, they reported that some tests failed! Because we were too lazy to set up a continuous integration system, we have no idea when our software corrupted. We only know that the software passed all the test at the past revision
Main.java:1: error: class, interface, enum, or record expected to QA team as a release candidate. However, they reported that some tests failed! Because we were too lazy to set up a continuous integration system, we have no idea when our software corrupted. We only know that the software passed all the test at the pas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p01888|0
u011621222|p01888|0
codenet
Compile Error
268
v2_s576534695
s576534695
s576534695
p01888
p01888
u011621222
u011621222
1,490,512,815
2017-03-26T07:20:15
Main.java
We are developing the world's coolest AI robot product. After the long struggle, we finally managed to send our product at revision
Main.java:1: error: class, interface, enum, or record expected We are developing the world's coolest AI robot product. After the long struggle, we finally managed to send our product at revision ^ Main.java:1: error: unclosed character literal We are developing the world's coolest AI robot product. After the long stru...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p01888|1
u011621222|p01888|1
codenet
Compile Error
132
v2_s607912114
s607912114
s607912114
p01919
p01919
u568152427
u568152427
1,490,330,128
2017-03-24T04:35:28
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.PriorityQueue; public class Main { class Edge { final int to, cost; Edge(int to, int cost) { this.to = to...
Main.java:109: error: <identifier> expected private static class FastScanner {javascript:void(0) ^ Main.java:109: error: <identifier> expected private static class FastScanner {javascript:void(0) ^ Main.java:109: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568152427|p01919|0
u568152427|p01919|0
codenet
Compile Error
5,804
v2_s226541449
s226541449
s226541449
p01927
p01927
u948800138
u948800138
1,499,718,889
2017-07-10T20:34:49
Main.java
import java.awt.geom.Point2D; import java.io.IOException; import java.io.InputStream; import java.util.*; import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Supplier; public class Main { final static int INF = 1 << 28; final static long LNF = 1L << 60; final stati...
Main.java:249: error: cannot find symbol Pair<Long, Long> gcd_ex(long m, long n) { ^ symbol: class Pair location: class Main Main.java:251: error: cannot find symbol return new Pair<>(mat[0][0], mat[0][1]); ^ symbol: class Pair location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u948800138|p01927|0
u948800138|p01927|0
codenet
Compile Error
16,467
v2_s237279170
s237279170
s237279170
p01937
p01937
u441981269
u441981269
1,518,944,461
2018-02-18T09:01:01
Main.java
import java.io.*; import java.util.*; /** * AIZU ONLINE JUDGE * 2837 Cryptex * 2018/02/17 */ public class Main { int N; int M; int[] T; int nidx; // 負になる場所 // 単純最小値(2倍)を返す int min() { int sum1 = 0; int sum2 = 0; int max1 = 0; int max2 = 0; for(...
Main.java:185: error: cannot find symbol static Main4 instance = new Main4(); ^ symbol: class Main4 location: class Main Main.java:185: error: cannot find symbol static Main4 instance = new Main4(); ^ symbol: class Main4 location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u441981269|p01937|2
u441981269|p01937|2
codenet
Compile Error
4,982
v2_s044651732
s044651732
s044651732
p01981
p01981
u820556307
u820556307
1,530,799,587
2018-07-05T14:06:27
Main.java
HEISEI 1 1 8 HEISEI 31 4 30 HEISEI 31 5 1 HEISEI 99 12 31 HEISEI 38 8 30 HEISEI 98 2 22 HEISEI 2 3 26 HEISEI 28 4 23 #
Main.java:1: error: class, interface, enum, or record expected HEISEI 1 1 8 ^ Main.java:9: error: illegal character: '#' # ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u820556307|p01981|0
u820556307|p01981|0
codenet
Compile Error
119
v2_s088689183
s088689183
s088689183
p01982
p01982
u069727578
u069727578
1,530,850,254
2018-07-06T04:10:54
Main.java
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; class Main{ public static void main(String[] args)throws IOException{ Scanner sc=new Sccanner(System.in); Str...
Main.java:12: error: cannot find symbol Scanner sc=new Sccanner(System.in); ^ symbol: class Scanner location: class Main Main.java:12: error: cannot find symbol Scanner sc=new Sccanner(System.in); ^ symbol: class Sccanner location: class Main Main.java:35: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u069727578|p01982|0
u069727578|p01982|0
codenet
Compile Error
1,059
v2_s522210451
s522210451
s522210451
p01982
p01982
u069727578
u069727578
1,530,850,276
2018-07-06T04:11:16
Main.java
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; class Main{ public static void main(String[] args)throws IOException{ Scanner sc=new Scanner(S...
Main.java:36: error: cannot find symbol abya[i]=Integer.parseInt(bfr.readLine()); ^ symbol: variable bfr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u069727578|p01982|0
u069727578|p01982|0
codenet
Compile Error
1,078
v2_s108145527
s108145527
s108145527
p01982
p01982
u069727578
u069727578
1,530,850,447
2018-07-06T04:14:07
Main.java
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; class Main{ public static void main(String[] args)throws IOException{ Scanner sc=new Scanner(S...
Main.java:36: error: cannot find symbol abya[i]=Integer.parseInt(bfr.readLine()); ^ symbol: variable bfr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u069727578|p01982|0
u069727578|p01982|0
codenet
Compile Error
1,078
v2_s154424375
s154424375
s154424375
p02103
p02103
u532230446
u532230446
1,490,251,531
2017-03-23T06:45:31
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.TreeMap; import java.util.TreeSet; public class Main { int MAX = 1000000; class Pos implements Comparable<Pos> { ...
Main.java:177: error: integer number too large for (int i = 0; i < 3000000000; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532230446|p02103|0
u532230446|p02103|0
codenet
Compile Error
9,600
v2_s617020931
s617020931
s617020931
p02233
p02233
u179323374
u179323374
1,524,194,794
2018-04-20T03:26:34
Main.java
mport java.util.Scanner; class Main { static int Fibonacci (int n) { n = (int)((1 / Math.sqrt(5.0)) * ((Math.pow(((1.0 + Math.sqrt(5.0)) / 2.0), (double)n)) - (Math.pow(((1.0 - Math.sqrt(5.0)) / 2.0), (double)n)))); return n; } public static void main (String[] args) { Scanner scan = new Sc...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179323374|p02233|0
u179323374|p02233|0
codenet
Compile Error
424
v2_s759147207
s759147207
s759147207
p02233
p02233
u179323374
u179323374
1,524,194,826
2018-04-20T03:27:06
Main.java
mport java.util.Scanner; class Main { static int Fibonacci (int n) { n = (int)((1 / Math.sqrt(5.0)) * ((Math.pow(((1.0 + Math.sqrt(5.0)) / 2.0), (double)n)) - (Math.pow(((1.0 - Math.sqrt(5.0)) / 2.0), (double)n)))); return n; } public static void main (String[] args) { Scanner scan = new Sc...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179323374|p02233|0
u179323374|p02233|0
codenet
Compile Error
424
v2_s705800499
s705800499
s705800499
p02233
p02233
u183035628
u183035628
1,491,545,503
2017-04-07T06:11:43
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // int ???????????????????????? int a = sc.nextInt(); int result = calc(a); System.out.println(result); } int calc(int n){ if (n == 0...
Main.java:15: error: ';' expected return 1 ^ Main.java:17: error: ';' expected return calc(n - 2) + calc(n - 1) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u183035628|p02233|0
u183035628|p02233|0
codenet
Compile Error
413
v2_s902260650
s902260650
s902260650
p02233
p02233
u207394722
u207394722
1,532,053,415
2018-07-20T02:23:35
Main.java
#include <stdio.h> int fib(int); int main(){ int n = 0; scanf("%d", &n); printf("%d\n", fib(n) ); return 0; } int fib( int n ){ int ans = 1; if( n > 0 ){ ans = fib(n - 1) + fib(n - 2); } return ans; }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) Main.java:6...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207394722|p02233|0
u207394722|p02233|0
codenet
Compile Error
244
v2_s442926143
s442926143
s442926143
p02233
p02233
u403377969
u403377969
1,504,721,840
2017-09-06T18:17:20
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); System.out.println(Fibonacci(n)); scanner.close(); } public static int Fibonacci(int n) { if (n <= 1) return 1; else return Fibonacci(n - 1) + Fibonacci(n - 2); } }
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u403377969|p02233|0
u403377969|p02233|0
codenet
Compile Error
318
v2_s985458180
s985458180
s985458180
p02233
p02233
u407513315
u407513315
1,348,123,448
2012-09-20T06:44:08
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); // System.out.println(Main.fibonacciNumber(scan.nextInt())); System.out.println(Main.fibonacciNumberDP(scan.nextInt())); } // 再帰 static int fibonacciNumber(int n) { if (n == 0) { return 1; } else if (n == 1) { return 1;...
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) Main.java:34: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u407513315|p02233|0
u407513315|p02233|0
codenet
Compile Error
643
v2_s919621822
s919621822
s919621822
p02233
p02233
u438493637
u438493637
1,524,210,604
2018-04-20T07:50:04
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt();//階層数 long fin; fin = fin(num); System.out.println(fin); scanner.close(); } public static long fin(int num) { long Fin0 = 1,Fin1 = 1,Fin = 0...
Main.java:38: error: class, interface, enum, or record expected */import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u438493637|p02233|1
u438493637|p02233|0
codenet
Compile Error
1,347
v2_s944807576
s944807576
s944807576
p02233
p02233
u477658167
u477658167
1,499,299,311
2017-07-06T00:01:51
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args){ final Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] matrix=new int[n+1]; matrix[0]=matrix[1]=1; for(int i=2;i<=n;i++){ ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477658167|p02233|0
u477658167|p02233|0
codenet
Compile Error
451
v2_s160199575
s160199575
s160199575
p02233
p02233
u497852372
u497852372
1,559,441,435
2019-06-02T02:10:35
Main.java
import java.util.Scanner; public class Main{ public static int fib(int n, int num[], boolean data[]){ if(!(data[n])){ data[n] = true; num[n] = fib(n-1,num,data) + fib(n-2,num,data); } else return num[n]; } public static void main(String[] args){ ...
Main.java:10: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02233|0
u497852372|p02233|0
codenet
Compile Error
582
v2_s896449696
s896449696
s896449696
p02233
p02233
u805477880
u805477880
1,502,509,488
2017-08-12T03:44:48
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); System.out.println(Fib(n)); } public int Fib(int n){ if(n == 0 |n == 1){ return 1; }else{ return F...
Main.java:8: error: non-static method Fib(int) cannot be referenced from a static context System.out.println(Fib(n)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u805477880|p02233|0
u805477880|p02233|0
codenet
Compile Error
351
v2_s750335095
s750335095
s750335095
p02233
p02233
u805477880
u805477880
1,502,509,735
2017-08-12T03:48:55
Main.java
package aoj.alds1_10_A_Fibonacci_Number; import java.util.Scanner; /** * Author: zhang * Time: 8/12/2017 * Description: */ public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); System.out.println(Fib(n)); } pub...
Main.java:14: error: non-static method Fib(int) cannot be referenced from a static context System.out.println(Fib(n)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u805477880|p02233|0
u805477880|p02233|0
codenet
Compile Error
465
v2_s372596050
s372596050
s372596050
p02233
p02233
u805477880
u805477880
1,502,509,765
2017-08-12T03:49:25
Main.java
import java.util.Scanner; /** * Author: zhang * Time: 8/12/2017 * Description: */ public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); System.out.println(Fib(n)); } public int Fib(int n){ if(n ==0 || n ...
Main.java:12: error: non-static method Fib(int) cannot be referenced from a static context System.out.println(Fib(n)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u805477880|p02233|0
u805477880|p02233|0
codenet
Compile Error
423
v2_s581774165
s581774165
s581774165
p02233
p02233
u829723525
u829723525
1,507,506,228
2017-10-08T23:43:48
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { int dp[]; void run() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); dp = new int[n+1]; int ans = fib(n); System.out.println(ans); sc.close(); } private int fib(int n) { // TODO Auto-generated method stub if(n ==...
Main.java:28: error: cannot find symbol new MatrixChainMultiplication().run(); ^ symbol: class MatrixChainMultiplication location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u829723525|p02233|0
u829723525|p02233|0
codenet
Compile Error
589
v2_s395531243
s395531243
s395531243
p02233
p02233
u910402677
u910402677
1,491,618,726
2017-04-08T02:32:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); long[] f = new long[n+1]; System.out.println(Fib(n, f)); scan.close(); System.exit(0); } private static long Fib(int n, long[] f){ if(n == 0 || n == 1) f...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02233|0
u910402677|p02233|0
codenet
Compile Error
441
v2_s521713576
s521713576
s521713576
p02233
p02233
u910402677
u910402677
1,491,620,026
2017-04-08T02:53:46
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); long[] f = new long[n+1]; System.out.println(Fib(n, f)); scan.close(); System.exit(0); } private static long Fib(int n, long[] f){ if(n <= 1) return 1; ...
Main.java:21: error: cannot find symbol f[n] = fib(n-2, f) + fib(n-1, f); ^ symbol: method fib(int,long[]) location: class Main Main.java:21: error: cannot find symbol f[n] = fib(n-2, f) + fib(n-1, f); ^ symbol: method fib(int,long[]) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02233|0
u910402677|p02233|0
codenet
Compile Error
406
v2_s739190498
s739190498
s739190498
p02234
p02234
u022215941
u022215941
1,531,798,570
2018-07-17T03:36:10
Main.java
#include <stdio.h> #define max 1000 int n; int m[max][max],p[max]; int main(){ int c,r; int i,k; scanf("%d",&n); for(i=1;i<n+1;i++){ scanf("%d %d",&p[i-1],&p[i]); } printf("%d\n", optimalParenthesization()); } int optimalParenthesization(){ int l,i,j; for(i=1;i<n+1;i++) m[i][i]=0; for(l=2;l<...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #define max 1000 ^ Main.java:4: error: class, interface, enum, or record expected int m[max][max],p[max]; ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u022215941|p02234|0
u022215941|p02234|0
codenet
Compile Error
695
v2_s571240743
s571240743
s571240743
p02234
p02234
u477658167
u477658167
1,499,300,683
2017-07-06T00:24:43
Main.java
import java.util.Scanner; import java.lang.Math; public class Main { public static void main(String[] args){ final Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] p=new int[n+1]; int[][] m=new int[n+1][n+1]; ...
Main.java:30: error: <identifier> expected System.out.println(m[1][n]); ^ Main.java:30: error: ']' expected System.out.println(m[1][n]); ^ Main.java:34: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477658167|p02234|0
u477658167|p02234|0
codenet
Compile Error
1,114
v2_s908525204
s908525204
s908525204
p02234
p02234
u477658167
u477658167
1,499,300,792
2017-07-06T00:26:32
Main.java
import java.util.Scanner; import java.lang.Math; public class Main { public static void main(String[] args){ final Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] p=new int[n+1]; int[][] m=new int[n+1][n+1]; ...
Main.java:20: error: cannot find symbol int k=i+l-1; ^ symbol: variable l location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477658167|p02234|0
u477658167|p02234|0
codenet
Compile Error
1,059
v2_s261304367
s261304367
s261304367
p02234
p02234
u477658167
u477658167
1,499,301,046
2017-07-06T00:30:46
Main.java
import java.util.Scanner; import java.lang.Math; public class Main { public static void main(String[] args){ final Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] p=new int[n+1]; int[][] m=new int[n+1][n+1]; for(int i = 1; i <= n; i++) { p[i - 1] = In.nextIn...
Main.java:12: error: cannot find symbol p[i - 1] = In.nextInt(); ^ symbol: variable In location: class Main Main.java:13: error: cannot find symbol p[i] = In.nextInt(); ^ symbol: variable In location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477658167|p02234|0
u477658167|p02234|0
codenet
Compile Error
865
v2_s838013782
s838013782
s838013782
p02234
p02234
u883466764
u883466764
1,340,776,668
2012-06-27T05:57:48
Main.java
import java.util.Scanner; class Main{ final static int MAX_N = 1500; public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n; n = scan.nextInt(); for(int i=0; i<n; i++){ char[] str1 = scan.next().toCharArray(); char[] str2 = scan.next().toCharArray(); solve(str...
Main.java:18: error: illegal start of expression static int[][] memorry = new int[MAX_N][MAX_N]; ^ Main.java:19: error: illegal start of type for(int i=0; i<str1.length; i++){ ^ Main.java:19: error: > or ',' expected for(int i=0; i<str1.length; i++){ ^ Main.java:19: error: <identifier> e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u883466764|p02234|0
u883466764|p02234|0
codenet
Compile Error
711
v2_s709132416
s709132416
s709132416
p02235
p02235
u559106458
u559106458
1,529,415,794
2018-06-19T13:43:14
Main.java
def lcs(str1,str2): c=[[0 for _ in range(100000000000)] for _ in range(10000000000000)] m=len(str1) n=len(str2) maxl=0 str1=" "+str1 str2=" "+str2 i=1 j=1 while(i<=m): while(j<=n): if(str1[i]==str2[j]): c[i][j]=c[i-1][j-1]+1 # print...
Main.java:15: error: illegal character: '#' # print(c[i][j]) ^ Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def lcs(str1,str2): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def lcs(str1,str2): ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02235|0
u559106458|p02235|0
codenet
Compile Error
656
v2_s473050517
s473050517
s473050517
p02235
p02235
u559106458
u559106458
1,529,415,908
2018-06-19T13:45:08
Main.java
def lcs(str1,str2): c=[[0 for _ in range(1010)] for _ in range(1010)] m=len(str1) n=len(str2) maxl=0 str1=" "+str1 str2=" "+str2 i=1 j=1 while(i<=m): while(j<=n): if(str1[i]==str2[j]): c[i][j]=c[i-1][j-1]+1 # print(c[i][j]) ...
Main.java:15: error: illegal character: '#' # print(c[i][j]) ^ Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def lcs(str1,str2): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def lcs(str1,str2): ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02235|0
u559106458|p02235|0
codenet
Compile Error
638
v2_s350582837
s350582837
s350582837
p02235
p02235
u559106458
u559106458
1,529,416,010
2018-06-19T13:46:50
Main.java
def lcs(str1,str2): c=[[0 for _ in range(1001)] for _ in range(1001)] m=len(str1) n=len(str2) maxl=0 str1=" "+str1 str2=" "+str2 i=1 j=1 while(i<=m): while(j<=n): if(str1[i]==str2[j]): c[i][j]=c[i-1][j-1]+1 # print(c[i][j]) ...
Main.java:15: error: illegal character: '#' # print(c[i][j]) ^ Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def lcs(str1,str2): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def lcs(str1,str2): ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02235|0
u559106458|p02235|0
codenet
Compile Error
638
v2_s612180823
s612180823
s612180823
p02235
p02235
u922633376
u922633376
1,482,309,355
2016-12-21T08:35:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); String X = ""; String Y = ""; for(int i = 0; i < n; i++){ X[i] = " "+scan.next(); Y[i] = " "+scan.next(); System.out.println(lcs(X,Y)); } ...
Main.java:13: error: array required, but String found X[i] = " "+scan.next(); ^ Main.java:14: error: array required, but String found Y[i] = " "+scan.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922633376|p02235|1
u922633376|p02235|1
codenet
Compile Error
849
v2_s726833940
s726833940
s726833940
p02237
p02237
u381495450
u381495450
1,499,831,975
2017-07-12T03:59:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int size = scanner.nextInt(); Graph[] graphs = new Graph[size]; for (int i = 0; i < size; i++) { int id = scanner.nextInt(); int num = scanner.nextInt(); graphs[i] = new ...
Main.java:23: error: class Graph is public, should be declared in a file named Graph.java public class Graph { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381495450|p02237|0
u381495450|p02237|0
codenet
Compile Error
1,162
v2_s202114191
s202114191
s202114191
p02237
p02237
u460762955
u460762955
1,517,328,744
2018-01-30T16:12:24
Main.java
import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class Main{ //directed graph LinkedList<Integer> adg[]; Main(int n){ adg = new LinkedList[n+1]; for(int i = 0; i<=n; i++){ adg[i] = new LinkedList<>(); } } void addEdge(int index...
Main.java:21: error: cannot find symbol Maingraph = new Main(n); ^ symbol: variable Maingraph location: class Main Main.java:27: error: cannot find symbol graph.addEdge(index,temp); ^ symbol: variable graph location: class Main Main.java:33: error: cannot find...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460762955|p02237|0
u460762955|p02237|0
codenet
Compile Error
1,307
v2_s415519285
s415519285
s415519285
p02237
p02237
u460762955
u460762955
1,517,328,780
2018-01-30T16:13:00
Main.java
import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class Main{ //directed graph LinkedList<Integer> adg[]; Main(int n){ adg = new LinkedList[n+1]; for(int i = 0; i<=n; i++){ adg[i] = new LinkedList<>(); } } void addEdge(int index...
Main.java:21: error: cannot find symbol Main = new Main(n); ^ symbol: variable Main location: class Main Main.java:27: error: cannot find symbol graph.addEdge(index,temp); ^ symbol: variable graph location: class Main Main.java:33: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460762955|p02237|0
u460762955|p02237|0
codenet
Compile Error
1,302
v2_s419748268
s419748268
s419748268
p02237
p02237
u460762955
u460762955
1,517,548,563
2018-02-02T05:16:03
Main.java
import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class Main{ //directed graph List<Integer> adg[]; GraphAizu(int n){ adg = new LinkedList[n+1]; for(int i = 0; i<=n; i++){ adg[i] = new LinkedList<>(); } } void addEdge(int index,...
Main.java:8: error: invalid method declaration; return type required GraphAizu(int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460762955|p02237|1
u460762955|p02237|1
codenet
Compile Error
1,308
v2_s080615053
s080615053
s080615053
p02237
p02237
u770145133
u770145133
1,532,054,161
2018-07-20T02:36:01
Main.java
#include<
Main.java:1: error: illegal character: '#' #include< ^ Main.java:1: error: class, interface, enum, or record expected #include< ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770145133|p02237|0
u770145133|p02237|0
codenet
Compile Error
10
v2_s057626417
s057626417
s057626417
p02237
p02237
u910402677
u910402677
1,492,134,508
2017-04-14T01:48:28
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[][] e = new int[n+1][n+1]; for(int i = 1; i <= n; i++){ int u = scan.nextInt(); int k = scan.nextInt(); for(int j = 0; j < k; j++) int v = scan.next...
Main.java:15: error: variable declaration not allowed here int v = scan.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02237|0
u910402677|p02237|0
codenet
Compile Error
509
v2_s082581404
s082581404
s082581404
p02238
p02238
u208540985
u208540985
1,465,271,784
2016-06-07T03:56:24
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scr = new Scanner(System.in); int dotcount =Integer.parseInt(scr.nextLine()); dots = new int[dotcount][]; for(int i=0; i<dotcount; i++){ String[] str = scr.nextLine().split(" ", 0); dots[i] = new int[Integer.p...
Main.java:51: error: class, interface, enum, or record expected }package week05; ^ Main.java:53: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208540985|p02238|1
u208540985|p02238|1
codenet
Compile Error
2,408
v2_s177230360
s177230360
s177230360
p02238
p02238
u238053758
u238053758
1,432,485,567
2015-05-24T16:39:27
Main.java
#include <bits/stdc++.h> using namespace std; #define FOR(i,s,e) for((i)=(s);(i)<(int)(e);(i)++) #define REP(i,e) FOR(i,0,e) #define all(o) (o).begin(), (o).end() #define psb(x) push_back(x) #define mp(x,y) make_pair((x),(y)) typedef long long ll; typedef pair<int, int> PII; const double EPS = 1e-10; typedef stru...
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: illegal character: '#' #define FOR(i,s,e) for((i)=(s);(i)<(int)(e);(i)++) ^ Main.java:5: error: class, interface, enum, or record e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238053758|p02238|1
u238053758|p02238|1
codenet
Compile Error
1,246
v2_s475723951
s475723951
s475723951
p02238
p02238
u383876854
u383876854
1,401,435,054
2014-05-30T07:30:54
Ex3_2.java
import java.util.Scanner; public class Ex3_2 { public static void main(String args[]){ Scanner stdin = new Scanner(System.in); int count=1; int[] fs,es,before; int[][] next; int n=stdin.nextInt(); fs=new int[n+1];es=new int[n+1];before=new int[n+1]; next=new int[n+1][]; IntStack stack=new I...
Ex3_2.java:52: error: cannot find symbol public static void function(int id,int[] fs,int[] es,int[][] next,int count,IntStack stack){ ^ symbol: class IntStack location: class Ex3_2 Ex3_2.java:16: error: cannot find symbol IntStack sta...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u383876854|p02238|0
u383876854|p02238|0
codenet
Compile Error
1,607
v2_s408510634
s408510634
s408510634
p02238
p02238
u383876854
u383876854
1,401,435,151
2014-05-30T07:32:31
Ex3_2.java
import java.util.Scanner; import IntStack.EmptyIntStackException; import IntStack.OverflowIntStackException; public class Ex3_2 { public class IntStack { private int max; private int ptr; private int[] stk; public class EmptyIntStackException extends RuntimeException{ public EmptyIntStackException(){ } ...
Ex3_2.java:3: error: package IntStack does not exist import IntStack.EmptyIntStackException; ^ Ex3_2.java:4: error: package IntStack does not exist import IntStack.OverflowIntStackException; ^ Ex3_2.java:101: error: non-static variable this cannot be referenced from a static context IntS...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u383876854|p02238|0
u383876854|p02238|0
codenet
Compile Error
3,132
v2_s768994177
s768994177
s768994177
p02238
p02238
u383876854
u383876854
1,401,435,296
2014-05-30T07:34:56
Ex3_2.java
import java.util.Scanner; public class Ex3_2 { public class IntStack { private int max; private int ptr; private int[] stk; public class EmptyIntStackException extends RuntimeException{ public EmptyIntStackException(){ } } public class OverflowIntStackException extends RuntimeException{ public OverflowInt...
Ex3_2.java:170: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u383876854|p02238|0
u383876854|p02238|0
codenet
Compile Error
2,915
v2_s433935271
s433935271
s433935271
p02238
p02238
u467648242
u467648242
1,546,000,635
2018-12-28T12:37:15
Main.java
n = int(input()) graph = [[] for _ in range(n)] for i in range(n): in_list = list(map(int, input().split())) u = in_list[0] graph[u - 1] = in_list[2:] d = [0 for _ in range(n)] f = [0 for _ in range(n)] time = 0 def dfs(now, prev, graph, d, f): if d[now] != 0: return d, f global time t...
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u467648242|p02238|0
u467648242|p02238|0
codenet
Compile Error
702
v2_s678929248
s678929248
s678929248
p02238
p02238
u506537276
u506537276
1,529,932,396
2018-06-25T13:13:16
Main.java
public class Main { static int[][] graph; static int time; static int[] d, f; static boolean[] visited; static void visit(int node) { if(!visited[node]) { visited[node] = true; d[node] = time++; for(int i = 1; i < d.length; i++) { if(...
Main.java:40: error: illegal character: '\u201d' System.out.println(i + ? ? + d[i] + ? ? + f[i]); ^ Main.java:40: error: illegal character: '\u201d' System.out.println(i + ? ? + d[i] + ? ? + f[i]); ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u506537276|p02238|0
u506537276|p02238|0
codenet
Compile Error
1,224
v2_s277145741
s277145741
s277145741
p02238
p02238
u657361950
u657361950
1,545,732,638
2018-12-25T10:10:38
Main.java
public class Main { class Vertex { int id; int[] vertices; int visited = -1; int completed = -1; } public static void main(String[] args) throws IOException { new Main().run(); } private void run() throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); ...
Main.java:10: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:14: error: cannot find symbol private void run() throws IOException { ^ symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u657361950|p02238|1
u657361950|p02238|1
codenet
Compile Error
1,760
v2_s191267718
s191267718
s191267718
p02238
p02238
u834861649
u834861649
1,368,687,924
2013-05-16T07:05:24
Main.java
import java.util.*; public class Main { public static void main(String...args) { final Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); final int[][] matrix = new int[n][n]; for(int i = 0; i < n; i++) { final int u = sc.nextInt(); final int k = sc.nextInt(); for(int j = 0; j < k; j++) matrix[u-1][sc.nex...
Main.java:26: error: incompatible types: int cannot be converted to boolean if(matrix[id][i]) deque.offerFirst(i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834861649|p02238|0
u834861649|p02238|0
codenet
Compile Error
793
v2_s320114098
s320114098
s320114098
p02238
p02238
u834861649
u834861649
1,368,689,298
2013-05-16T07:28:18
Main.java
import java.util.*; public class Main { public static void main(String...args) { final Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); final boolean[][] matrix = new boolean[n][n]; for(int i = 0; i < n; i++) { final int u = sc.nextInt(); final int k = sc.nextInt(); for(int j = 0; j < k; j++) matrix[u-1...
Main.java:28: error: cannot assign a value to final variable visited visited = true; ^ Main.java:28: error: incompatible types: boolean cannot be converted to boolean[] visited = true; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834861649|p02238|0
u834861649|p02238|0
codenet
Compile Error
970
v2_s363152059
s363152059
s363152059
p02238
p02238
u836797982
u836797982
1,518,850,351
2018-02-17T06:52:31
Main.java
import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.Scanner; import java.util.Stack; public class Main { public static void main(String[] args) throws IOException { // Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[][] mat = new int[n+1][n+1]; // 初回訪問リ...
Main.java:13: error: cannot find symbol int n = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:25: error: cannot find symbol int u = sc.nextInt(); // ?? ^ symbol: variable sc location: class Main Main.java:26: error: cannot find symbol int k = sc.nextInt();...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u836797982|p02238|2
u836797982|p02238|2
codenet
Compile Error
2,030
v2_s833569355
s833569355
s833569355
p02238
p02238
u910402677
u910402677
1,492,225,982
2017-04-15T03:13:02
Main.java
import java.util.*; public class Main { static int time = 0; public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[][] v = new int[n + 1][n+1]; int[] d = new int[n + 1]; int[] f = new int[n...
Main.java:6: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02238|0
u910402677|p02238|0
codenet
Compile Error
1,078
v2_s795367193
s795367193
s795367193
p02239
p02239
u879226672
u879226672
1,438,244,601
2015-07-30T08:23:21
Main.java
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { static Map<Integer, int[]> map = new HashMap<Integer, int[]>(); static Map<Integer, Boolean> visited = new HashMap<Integer, Boolean>(); static List<Integer> que = new ArrayLi...
Main.java:48: error: not a statement }else{ (map.get(v) != null){ ^ Main.java:48: error: ';' expected }else{ (map.get(v) != null){ ^ Main.java:68: error: 'catch' without 'try' }catch (NullPointerException e){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u879226672|p02239|1
u879226672|p02239|1
codenet
Compile Error
2,312
v2_s450933303
s450933303
s450933303
p02239
p02239
u895275311
u895275311
1,492,681,995
2017-04-20T09:53:15
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; class Main{ public static void main(String[] args)throws NumberFormatException, IOException{ InputStreamReader input = new InputStreamReader (System. in); BufferedReader buffer = new Buff...
Main.java:36: error: cannot find symbol for(int i=0; i<list.size(); i++){ ^ symbol: variable list location: class Main Main.java:37: error: cannot find symbol foundPosition[list.get(i) -1 ] = nowDepth; ^ symbol: variable list location: class Main Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895275311|p02239|0
u895275311|p02239|0
codenet
Compile Error
2,001
v2_s830513897
s830513897
s830513897
p02240
p02240
u638141025
u638141025
1,540,674,495
2018-10-27T21:08:15
Main.java
import java.util.*; public class Main { private int[][] matrix; private int numEdge; public int[] Mark; public int size; public boolean[] visited; public Main() {}; public Main(int n) { Init(n); } public void Init(int n) { Mark = new int[n]; visited = new boolean[n]; matrix = new int[n][n]; ...
Main.java:72: error: cannot find symbol ConnectedGraph graph = new ConnectedGraph(size); ^ symbol: class ConnectedGraph location: class Main Main.java:72: error: cannot find symbol ConnectedGraph graph = new ConnectedGraph(size); ^ symbol: class ConnectedGraph location: cl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u638141025|p02240|0
u638141025|p02240|0
codenet
Compile Error
1,739
v2_s012173325
s012173325
s012173325
p02240
p02240
u638141025
u638141025
1,540,674,532
2018-10-27T21:08:52
Main.java
import java.util.*; public class Main { private int[][] matrix; private int numEdge; public int[] Mark; public int size; public boolean[] visited; public ConnectedGraph() {}; public ConnectedGraph(int n) { Init(n); } public void Init(int n) { Mark = new int[n]; visited = new boolean[n]; matrix...
Main.java:12: error: invalid method declaration; return type required public ConnectedGraph() {}; ^ Main.java:13: error: invalid method declaration; return type required public ConnectedGraph(int n) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u638141025|p02240|0
u638141025|p02240|0
codenet
Compile Error
1,759
v2_s520230708
s520230708
s520230708
p02240
p02240
u710383977
u710383977
1,434,510,663
2015-06-17T03:11:03
Main.java
import java.util.*; class ID{ public int id; public ID(int id){ this.id = id; } } public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ID nullID = new ID(-1); ID[] group = new ID[scanner.nextInt()]; for(...
Main.java:32: error: ';' expected int tempID = group[s].id ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u710383977|p02240|5
u710383977|p02240|3
codenet
Compile Error
1,649
v2_s251463222
s251463222
s251463222
p02240
p02240
u759934006
u759934006
1,487,612,717
2017-02-20T17:45:17
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import static java.lang.Integer.parseInt; /** * Graph I - Connected Components */ public class Main { static final int NIL = -1; public static void main(String[] args) throws IOException { Buffered...
Main.java:19: error: cannot find symbol D main = new D(); ^ symbol: class D location: class Main Main.java:19: error: cannot find symbol D main = new D(); ^ symbol: class D location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759934006|p02240|0
u759934006|p02240|0
codenet
Compile Error
1,684
v2_s754537798
s754537798
s754537798
p02240
p02240
u836797982
u836797982
1,518,938,575
2018-02-18T07:22:55
Main.java
import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Deque; import java.util.List; import java.util.Scanner; import java.util.Stack; public class Main { public static void main(String[] args) throws IOException { Scanne...
Main.java:68: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u836797982|p02240|0
u836797982|p02240|0
codenet
Compile Error
1,440
v2_s292816844
s292816844
s292816844
p02240
p02240
u852459119
u852459119
1,476,900,266
2016-10-19T18:04:26
Main.java
import java.util.Scanner; public class QuickFindUF { private int[] id; public QuickFindUF(int N) { id = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; } } public boolean connected(int p, int q){ return id[p] == id[q]; } public void union(int ...
Main.java:3: error: class QuickFindUF is public, should be declared in a file named QuickFindUF.java public class QuickFindUF { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|1
u852459119|p02240|1
codenet
Compile Error
1,202
v2_s276222235
s276222235
s276222235
p02240
p02240
u852459119
u852459119
1,476,900,306
2016-10-19T18:05:06
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 M = scanner.nextInt(); QuickFindUF uf = new QuickFindUF(N); // input for (int i = 0; i < M; i++) { ...
Main.java:32: error: class QuickFindUF is public, should be declared in a file named QuickFindUF.java public class QuickFindUF { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|1
u852459119|p02240|1
codenet
Compile Error
1,202
v2_s280498967
s280498967
s280498967
p02240
p02240
u852459119
u852459119
1,476,980,524
2016-10-20T16:22:04
Main.java
import java.util.Scanner; public class Main { public class QuickUnionUF { private int[] id; public QuickUnionUF(int N) { id = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; } } public void union(int p, int q) { int i = root(p); int j = root(q...
Main.java:40: error: non-static variable this cannot be referenced from a static context QuickUnionUF uf = new QuickUnionUF(N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|2
u852459119|p02240|2
codenet
Compile Error
1,300
v2_s209569563
s209569563
s209569563
p02240
p02240
u852459119
u852459119
1,477,015,502
2016-10-21T02:05:02
Main.java
import java.util.Scanner; static class QuickUnionUF { private int[] id; private int[] sz; QuickUnionUF(int N) { id = new int[N]; sz = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; sz[i] = 0; } } private int root(int i) { whil...
Main.java:3: error: modifier static not allowed here static class QuickUnionUF { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|3
u852459119|p02240|3
codenet
Compile Error
1,615
v2_s956503042
s956503042
s956503042
p02240
p02240
u852459119
u852459119
1,477,015,516
2016-10-21T02:05:16
Main.java
import java.util.Scanner; public static class QuickUnionUF { private int[] id; private int[] sz; QuickUnionUF(int N) { id = new int[N]; sz = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; sz[i] = 0; } } private int root(int i) { ...
Main.java:3: error: class QuickUnionUF is public, should be declared in a file named QuickUnionUF.java public static class QuickUnionUF { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|3
u852459119|p02240|3
codenet
Compile Error
1,622
v2_s602297572
s602297572
s602297572
p02240
p02240
u852459119
u852459119
1,477,015,549
2016-10-21T02:05:49
Main.java
import java.util.Scanner; public static class QuickUnionUF { private int[] id; private int[] sz; public QuickUnionUF(int N) { id = new int[N]; sz = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; sz[i] = 0; } } private int root(int i) ...
Main.java:3: error: class QuickUnionUF is public, should be declared in a file named QuickUnionUF.java public static class QuickUnionUF { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|3
u852459119|p02240|3
codenet
Compile Error
1,643
v2_s110155669
s110155669
s110155669
p02240
p02240
u852459119
u852459119
1,477,015,595
2016-10-21T02:06:35
Main.java
import java.util.Scanner; public static class Main { private int[] id; private int[] sz; QuickUnionUF(int N) { id = new int[N]; sz = new int[N]; for (int i = 0; i < N; i++) { id[i] = i; sz[i] = 0; } } private int root(int i) { while...
Main.java:8: error: invalid method declaration; return type required QuickUnionUF(int N) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852459119|p02240|3
u852459119|p02240|3
codenet
Compile Error
1,614
v2_s861329731
s861329731
s861329731
p02240
p02240
u856020303
u856020303
1,540,597,026
2018-10-26T23:37:06
Main.java
import java.util.Scanner; import java.util.HashMap; import java.util.Queue; import java.util.ArrayDeque; import java.util.ArrayList; public class Main{ HashMap<Integer, Integer> components; ArrayList<Integer> vertexToIndex; Graph g; public ConnectedComponent(Graph g) { components = new HashMap<Integer, Integer...
Main.java:12: error: invalid method declaration; return type required public ConnectedComponent(Graph g) { ^ Main.java:106: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:107: error: class, interface, enum, or record expected import java.util.Collections; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856020303|p02240|0
u856020303|p02240|0
codenet
Compile Error
4,482
v2_s824966110
s824966110
s824966110
p02240
p02240
u856020303
u856020303
1,540,597,058
2018-10-26T23:37:38
Main.java
import java.util.Scanner; import java.util.HashMap; import java.util.Queue; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; public class Main{ HashMap<Integer, Integer> components; ArrayList<Integer> vertexToIndex; Graph g; public ConnectedComponen...
Main.java:15: error: invalid method declaration; return type required public ConnectedComponent(Graph g) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856020303|p02240|0
u856020303|p02240|0
codenet
Compile Error
4,482
v2_s090275619
s090275619
s090275619
p02241
p02241
u048060093
u048060093
1,364,977,560
2013-04-03T08:26:00
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Scanner; class vertex{ private final int EMPTY = -1; int id,cost = EMPTY; boolean fix = false; int[] e; } public class Main { private static ArrayList<vertex> ar = new ArrayList<vertex>(); private static boolean[] fix_ar; pri...
Main.java:86: error: cannot find symbol private static adj_list get_list(int id){ ^ symbol: class adj_list location: class Main Main.java:47: error: cannot find symbol for (adj_list d:ar) {System.out.println(d.u + " " + d.d);} ^ symbol: class adj_list location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u048060093|p02241|0
u048060093|p02241|0
codenet
Compile Error
2,082
v2_s996279658
s996279658
s996279658
p02241
p02241
u768801062
u768801062
1,531,889,797
2018-07-18T04:56:37
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { new Main().run(); } public void run() { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer....
Main.java:24: error: incompatible types: int cannot be converted to boolean if(j=0) j++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768801062|p02241|0
u768801062|p02241|0
codenet
Compile Error
3,092
v2_s220848683
s220848683
s220848683
p02241
p02241
u875331313
u875331313
1,524,985,343
2018-04-29T07:02:23
Main.java
import java.util.ArrayList; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; @SuppressWarnings("unchecked") class MinCostTree{ int N; class Edge{ int from,to; long w; Edge(int from,int to,long w){this.from=from;this.to=to;this.w=w;} } List<Edge> ...
Main.java:46: error: class, interface, enum, or record expected Class Main{ ^ Main.java:47: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:59: error: class, interface, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u875331313|p02241|0
u875331313|p02241|0
codenet
Compile Error
1,629
v2_s238911688
s238911688
s238911688
p02242
p02242
u337147947
u337147947
1,540,647,624
2018-10-27T13:40:24
Main.java
test
Main.java:1: error: reached end of file while parsing test ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u337147947|p02242|0
u337147947|p02242|0
codenet
Compile Error
5
v2_s619613121
s619613121
s619613121
p02242
p02242
u378824231
u378824231
1,511,922,448
2017-11-29T02:27:28
Main.java
int main
Main.java:1: error: class, interface, enum, or record expected int main ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u378824231|p02242|0
u378824231|p02242|0
codenet
Compile Error
8