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_s804526057
s804526057
s804526057
p02264
p02264
u889908059
u889908059
1,530,239,094
2018-06-29T02:24:54
Main.java
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> void push(int); int pup(); int atama; int A[199]; int main(int argc, char *argv[]){ int x,y; char a[100]; atama=0; while(scanf("%s",a)!=EOF){ if(a[0]=='+'){ x=pop(); y=pop(); push(x+y); } else if(a[0]...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:3: error: illegal character: '#' #include<string.h> ^ Main.java:4: error: illegal character:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u889908059|p02264|0
u889908059|p02264|0
codenet
Compile Error
631
v2_s714756402
s714756402
s714756402
p02264
p02264
u910402677
u910402677
1,486,693,830
2017-02-10T02:30:30
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); private static final int MAX = 100_001; private static String[] P = new String[MAX]; private static int[] Q = new int[MAX]; private static int head, tail; private static int headQ, tailQ; public static void main(...
Main.java:22: error: cannot find symbol enqueseQ(m); ^ symbol: method enqueseQ(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02264|0
u910402677|p02264|0
codenet
Compile Error
2,050
v2_s479029886
s479029886
s479029886
p02264
p02264
u938767283
u938767283
1,479,187,963
2016-11-15T05:32:43
Main.java
import java.util.AbstractMap; import java.util.ArrayDeque; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); sc.nextLine(); String[...
Main.java:52: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u938767283|p02264|0
u938767283|p02264|0
codenet
Compile Error
1,348
v2_s900557725
s900557725
s900557725
p02264
p02264
u960488816
u960488816
1,470,113,951
2016-08-02T04:59:11
Main.java
5 100 p1 150 p2 80 p3 200 p4 350 p5 20
Main.java:1: error: class, interface, enum, or record expected 5 100 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960488816|p02264|0
u960488816|p02264|0
codenet
Compile Error
38
v2_s011548434
s011548434
s011548434
p02264
p02264
u964619663
u964619663
1,480,054,320
2016-11-25T06:12:00
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Deque<String> name = new ArrayDeque<String>(); Deque<Integer> time = new ArrayDeque<Integer>(); Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int quantum ...
Main.java:36: error: ';' expected Sytem.out.println(process_name + " " + elapsed_time) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964619663|p02264|0
u964619663|p02264|0
codenet
Compile Error
1,050
v2_s775683030
s775683030
s775683030
p02264
p02264
u976230170
u976230170
1,512,127,385
2017-12-01T11:23:05
Main.java
public class Queue { String name; int time; public Queue(String n, int t) { name = n; time = t; } } import java.util.Scanner; public class Main { public static void main(String[] args) { int n = 0, q = 0; Scanner scanner = new Scanner(System.in); try { n = scanner.nextInt(); q = scanner.nextInt...
Main.java:12: error: class, interface, enum, or record expected import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u976230170|p02264|0
u976230170|p02264|0
codenet
Compile Error
887
v2_s366329632
s366329632
s366329632
p02264
p02264
u976230170
u976230170
1,512,127,458
2017-12-01T11:24:18
Main.java
import java.util.Scanner; public class Queue { String name; int time; public Queue(String n, int t) { name = n; time = t; } } public class Main { public static void main(String[] args) { int n = 0, q = 0; Scanner scanner = new Scanner(System.in); try { n = scanner.nextInt(); q = scanner.nextIn...
Main.java:3: error: class Queue is public, should be declared in a file named Queue.java public class Queue { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u976230170|p02264|0
u976230170|p02264|0
codenet
Compile Error
888
v2_s885895076
s885895076
s885895076
p02265
p02265
u011563519
u011563519
1,529,240,488
2018-06-17T13:01:28
Main.java
package alds13list; import java.util.Scanner; import static alds13list.Main.insert; public class Main { class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; ...
Main.java:47: error: non-static variable this cannot be referenced from a static context Node n = new Node(); ^ Main.java:82: error: non-static variable this cannot be referenced from a static context static Node nil = new Node(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
1,719
v2_s924232973
s924232973
s924232973
p02265
p02265
u011563519
u011563519
1,529,240,510
2018-06-17T13:01:50
Main.java
import java.util.Scanner; public class Main { class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; nil.prev = nil; for (int i = 0; i...
Main.java:43: error: non-static variable this cannot be referenced from a static context Node n = new Node(); ^ Main.java:78: error: non-static variable this cannot be referenced from a static context static Node nil = new Node(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
1,670
v2_s470104612
s470104612
s470104612
p02265
p02265
u011563519
u011563519
1,529,240,543
2018-06-17T13:02:23
Main.java
public class Main { static class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; nil.prev = nil; for (int i = 0; i < n; i++) { S...
Main.java:8: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
1,644
v2_s421747447
s421747447
s421747447
p02265
p02265
u011563519
u011563519
1,529,241,699
2018-06-17T13:21:39
Main.java
import java.util.Scanner; public class Main { static class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; nil.prev = nil; for (int i = 0...
Main.java:24: error: cannot find symbol l.remove(x); ^ symbol: variable l location: class Main Main.java:28: error: cannot find symbol l.add(0,x); ^ symbol: variable l location: class Main Main.java:31: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
2,024
v2_s430659094
s430659094
s430659094
p02265
p02265
u011563519
u011563519
1,529,241,772
2018-06-17T13:22:52
Main.java
import java.util.Scanner; public class Main { static class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; nil.prev = nil; List<Integer> l...
Main.java:17: error: cannot find symbol List<Integer> l; ^ symbol: class List location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
2,049
v2_s130798511
s130798511
s130798511
p02265
p02265
u011563519
u011563519
1,529,241,818
2018-06-17T13:23:38
Main.java
import java.util.Scanner; public class Main { static class Node { Node prev, next; int value; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); nil.next = nil; nil.prev = nil; List<Integer> l...
Main.java:17: error: cannot find symbol List<Integer> l = new ArrayList<Integer>(); ^ symbol: class List location: class Main Main.java:17: error: cannot find symbol List<Integer> l = new ArrayList<Integer>(); ^ symbol: class ArrayList location: class Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011563519|p02265|0
u011563519|p02265|0
codenet
Compile Error
2,075
v2_s902704804
s902704804
s902704804
p02265
p02265
u011621222
u011621222
1,509,831,776
2017-11-04T21:42:56
Solution.java
import java.util.Scanner; import java.util.Arrays; public class Solution { public static void main(String[] args) { /* Read and save input */ Scanner scan = new Scanner(System.in); String strL = new BigInt(scan.next()).subtract(BigInt.ONE).toString(); // subtract 1 since it's [L,R] inclus...
Solution.java:85: error: <identifier> expected System.out.println(blockCount + "\n" + sb + sb2); ^ Solution.java:85: error: <identifier> expected System.out.println(blockCount + "\n" + sb + sb2); ^ Solution.java:88: error: unnamed classes ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p02265|0
u011621222|p02265|0
codenet
Compile Error
3,567
v2_s953221058
s953221058
s953221058
p02265
p02265
u021078771
u021078771
1,555,915,150
2019-04-22T06:39:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new scanner(System.in); n = sc.nextInt(); } }
Main.java:5: error: cannot find symbol Scanner sc = new scanner(System.in); ^ symbol: class scanner location: class Main Main.java:6: error: cannot find symbol n = sc.nextInt(); ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
181
v2_s174420666
s174420666
s174420666
p02265
p02265
u021078771
u021078771
1,555,915,160
2019-04-22T06:39:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); n = sc.nextInt(); } }
Main.java:6: error: cannot find symbol n = sc.nextInt(); ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
181
v2_s892512034
s892512034
s892512034
p02265
p02265
u021078771
u021078771
1,555,915,263
2019-04-22T06:41:03
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String[] str = new String[2]; for(int loop = 0; loop < n; loop++){ str = sc.nextLint().split(" "); } } }
Main.java:9: error: cannot find symbol str = sc.nextLint().split(" "); ^ symbol: method nextLint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
313
v2_s250980313
s250980313
s250980313
p02265
p02265
u021078771
u021078771
1,555,915,317
2019-04-22T06:41:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int loop = 0; loop < n; loop++){ String str = sc.nextLint().split(" "); } } }
Main.java:8: error: cannot find symbol String str = sc.nextLint().split(" "); ^ symbol: method nextLint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
278
v2_s089007254
s089007254
s089007254
p02265
p02265
u021078771
u021078771
1,555,915,335
2019-04-22T06:42:15
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int loop = 0; loop < n; loop++){ String str = sc.nextLine().split(" "); } } }
Main.java:8: error: incompatible types: String[] cannot be converted to String String str = sc.nextLine().split(" "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
278
v2_s343348278
s343348278
s343348278
p02265
p02265
u021078771
u021078771
1,555,915,381
2019-04-22T06:43:01
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int loop = 0; loop < n; loop++){ String[] str = sc.nextLine().split(" "); if(str[0].equal(" ")) } } }
Main.java:10: error: illegal start of statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
310
v2_s890730071
s890730071
s890730071
p02265
p02265
u021078771
u021078771
1,555,915,412
2019-04-22T06:43:32
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int loop = 0; loop < n; loop++){ String[] str = sc.nextLine().split(" "); if(str[0].equal("insert")){ int i = 0; ...
Main.java:9: error: cannot find symbol if(str[0].equal("insert")){ ^ symbol: method equal(String) location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02265|0
u021078771|p02265|0
codenet
Compile Error
349
v2_s147048221
s147048221
s147048221
p02265
p02265
u029528183
u029528183
1,529,646,633
2018-06-22T05:50:33
Main.java
import java.util.*; import java.lang.Integer; class Main{ public static void main(String args[])throws Exception{ Scanner sc = new Scanner(System.in); short n = sc.nextInt(); ControlList doubly_list = new ControlList(); for(int i = 0 ; i<n; i++){ String [] s = sc.nextLine().split("\\s+"); ...
Main.java:7: error: incompatible types: possible lossy conversion from int to short short n = sc.nextInt(); ^ Main.java:92: error: incompatible types: possible lossy conversion from int to short this.data = n; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02265|0
u029528183|p02265|0
codenet
Compile Error
2,495
v2_s938356929
s938356929
s938356929
p02265
p02265
u029528183
u029528183
1,529,648,108
2018-06-22T06:15:08
Main.java
import java.util.*; import java.io.*; import java.lang.Integer; class Main{ static List dummy; public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); ControlList doubly_list = new Contro...
Main.java:11: error: cannot find symbol ControlList doubly_list = new ControlList(); ^ symbol: class ControlList location: class Main Main.java:11: error: cannot find symbol ControlList doubly_list = new ControlList(); ^ symbol: class ControlList location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02265|0
u029528183|p02265|0
codenet
Compile Error
2,515
v2_s436323899
s436323899
s436323899
p02265
p02265
u029528183
u029528183
1,529,858,269
2018-06-24T16:37:49
Main.java
import java.util.*; import java.io.*; //fastest class Main{ static List dummy; public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); init(); int i; for(i = n ; i>0; i--){ S...
Main.java:15: error: incompatible types: String cannot be converted to int insert(s.substring(s.indexOf(" ") + 1)); ^ Main.java:21: error: incompatible types: String cannot be converted to int delete(s.substring(s.indexOf(" ") + 1)); ^ Note: Some messa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02265|6
u029528183|p02265|5
codenet
Compile Error
2,021
v2_s054809242
s054809242
s054809242
p02265
p02265
u029528183
u029528183
1,530,546,485
2018-07-02T15:48:05
Main.java
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct node{ int key; struct node *next; struct node *prev; }Node; Node *nil; Node *listSearch(int key){ Node *cur = nil->next; while(cur!= nil && cur->key != key){ cur = cur->next; } return cur; } void init(){ nil = (Node *)mallo...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #include <stdlib.h> ^ Main.java:3: error: illegal character: '#' #include <string.h> ^ Main.java:6: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02265|13
u029528183|p02265|12
codenet
Compile Error
1,439
v2_s956756725
s956756725
s956756725
p02265
p02265
u047929551
u047929551
1,478,419,621
2016-11-06T08:07:01
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; class Node { public Node next; public Node prev; public int value; public Node(int value) { this.value = value; } } class LinkedList { private Node head; private N...
Main.java:114: error: cannot find symbol private static ArrayList<Cmd> cmds; ^ symbol: class Cmd location: class Main Main.java:119: error: cannot find symbol for (Cmd cmd: cmds) { ^ symbol: class Cmd location: class Main Main.java:145: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
3,049
v2_s305823577
s305823577
s305823577
p02265
p02265
u047929551
u047929551
1,478,419,647
2016-11-06T08:07:27
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; class Node { public Node next; public Node prev; public int value; public Node(int value) { this.value = value; } } class LinkedList { private Node head; private N...
Main.java:163: error: class, interface, enum, or record expected ozawa@ozamac-2:~/workspace/algo$ javac Main.java ^ Main.java:163: error: class, interface, enum, or record expected ozawa@ozamac-2:~/workspace/algo$ javac Main.java ^ Main.java:165: error: class, interface, enum, or record expected ozawa@oza...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
6,244
v2_s998333528
s998333528
s998333528
p02265
p02265
u047929551
u047929551
1,478,419,714
2016-11-06T08:08:34
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; class Node { public Node next; public Node prev; public int value; public Node(int value) { this.value = value; } } class LinkedList { private Node head; private N...
Main.java:114: error: cannot find symbol private static ArrayList<Cmd> cmds; ^ symbol: class Cmd location: class Main Main.java:119: error: cannot find symbol for (Cmd cmd: cmds) { ^ symbol: class Cmd location: class Main Main.java:145: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
3,049
v2_s320667040
s320667040
s320667040
p02265
p02265
u047929551
u047929551
1,478,419,878
2016-11-06T08:11:18
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; class Node { public Node next; public Node prev; public int value; public Node(int value) { this.value = value; } } class LinkedList { private Node head; private N...
Main.java:114: error: cannot find symbol private static ArrayList<Cmd> cmds; ^ symbol: class Cmd location: class Main Main.java:119: error: cannot find symbol for (Cmd cmd: cmds) { ^ symbol: class Cmd location: class Main Main.java:145: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
3,049
v2_s958963407
s958963407
s958963407
p02265
p02265
u047929551
u047929551
1,478,420,016
2016-11-06T08:13:36
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; enum CmdOp { INSERT("insert"), DELETE("delete"), DELETE_FIRST("deleteFirst"), DELETE_LAST("deleteLast"), UNDEFINED("UNDEFINED"); private String name; private CmdOp(St...
Main.java:163: error: cannot find symbol private static ArrayList<Cmd> cmds; ^ symbol: class Cmd location: class Main Main.java:168: error: cannot find symbol for (Cmd cmd: cmds) { ^ symbol: class Cmd location: class Main Main.java:194: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
3,842
v2_s594787907
s594787907
s594787907
p02265
p02265
u047929551
u047929551
1,478,420,036
2016-11-06T08:13:56
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; enum CmdOp { INSERT("insert"), DELETE("delete"), DELETE_FIRST("deleteFirst"), DELETE_LAST("deleteLast"), UNDEFINED("UNDEFINED"); private String name; private CmdOp(Stri...
Main.java:161: error: cannot find symbol private static ArrayList<Cmd> cmds; ^ symbol: class Cmd location: class Main Main.java:166: error: cannot find symbol for (Cmd cmd: cmds) { ^ symbol: class Cmd location: class Main Main.java:192: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|3
u047929551|p02265|1
codenet
Compile Error
3,840
v2_s062612303
s062612303
s062612303
p02265
p02265
u047929551
u047929551
1,478,481,545
2016-11-07T01:19:05
Main.java
import java.util.Scanner; import java.lang.Integer; import java.lang.StringBuilder; import java.lang.Math; class Node { Node prev; Node next; int value; public Node(int x) { this.value = x; } } class LinkedList { Node head; Node tail; public LinkedList() { head = null; tail = null; } ...
Main.java:142: error: reached end of file while parsing oz ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02265|4
u047929551|p02265|2
codenet
Compile Error
2,587
v2_s775230256
s775230256
s775230256
p02265
p02265
u059750550
u059750550
1,499,038,273
2017-07-02T23:31:13
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); List<Integer> array = new LinkedList<Integer>(); for(int i = 0; i < commandNum; i++){ //System.out.println...
Main.java:33: error: cannot find symbol result.add(Integer.toString(num) + " "); ^ symbol: method add(String) location: variable result of type StringBuilder Main.java:35: error: cannot find symbol result.delete(result.size()-1); ^ symbol: meth...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,299
v2_s304257434
s304257434
s304257434
p02265
p02265
u059750550
u059750550
1,499,038,310
2017-07-02T23:31:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); List<Integer> array = new LinkedList<Integer>(); for(int i = 0; i < commandNum; i++){ //System.out.println...
Main.java:35: error: cannot find symbol result.delete(result.size()-1); ^ symbol: method size() location: variable result of type StringBuilder 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,302
v2_s368230890
s368230890
s368230890
p02265
p02265
u059750550
u059750550
1,499,038,361
2017-07-02T23:32:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); List<Integer> array = new LinkedList<Integer>(); for(int i = 0; i < commandNum; i++){ //System.out.println...
Main.java:35: error: method delete in class StringBuilder cannot be applied to given types; result.delete(result.length()-1); ^ required: int,int found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,304
v2_s429111966
s429111966
s429111966
p02265
p02265
u059750550
u059750550
1,499,038,628
2017-07-02T23:37:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); String[] cs = new String[commandNum]; int[] ns = new int[commandNum]; String elems[]; for (int i = 0; ...
Main.java:23: error: ';' expected int target = ns[1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,553
v2_s585788877
s585788877
s585788877
p02265
p02265
u059750550
u059750550
1,499,038,690
2017-07-02T23:38:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); String[] cs = new String[commandNum]; int[] ns = new int[commandNum]; String elems[]; for (int i = 0; ...
Main.java:10: error: cannot find symbol elems = s.nextLine.split(" "); ^ symbol: variable nextLine location: variable s of type Scanner Main.java:41: error: cannot find symbol result.add(Integer.toString(num) + " "); ^ symbol: method add(String) loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,552
v2_s831945930
s831945930
s831945930
p02265
p02265
u059750550
u059750550
1,499,038,765
2017-07-02T23:39:25
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); String[] cs = new String[commandNum]; int[] ns = new int[commandNum]; String[] elems; for (int i = 0; ...
Main.java:10: error: cannot find symbol elems = s.nextLine.split(" "); ^ symbol: variable nextLine location: variable s of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059750550|p02265|0
u059750550|p02265|0
codenet
Compile Error
1,563
v2_s473209235
s473209235
s473209235
p02265
p02265
u120779516
u120779516
1,487,579,997
2017-02-20T08:39:57
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.ArrayDeque; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException\ { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
Main.java:8: error: illegal character: '\' public static void main(String[] args) throws NumberFormatException, IOException\ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02265|0
u120779516|p02265|0
codenet
Compile Error
1,176
v2_s369762743
s369762743
s369762743
p02265
p02265
u120779516
u120779516
1,512,037,617
2017-11-30T10:26:57
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.utli.ArrayDeque; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine...
Main.java:25: error: not a statement for(list.peekFirst() != null){ ^ Main.java:25: error: ';' expected for(list.peekFirst() != null){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02265|1
u120779516|p02265|1
codenet
Compile Error
955
v2_s322530216
s322530216
s322530216
p02265
p02265
u120779516
u120779516
1,512,037,667
2017-11-30T10:27:47
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.utli.ArrayDeque; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine...
Main.java:4: error: package java.utli does not exist import java.utli.ArrayDeque; ^ Main.java:10: error: cannot find symbol ArrayDeque<Integer> list = new ArrayDeque<Integer>(); ^ symbol: class ArrayDeque location: class Main Main.java:10: error: cannot find symbol ArrayDeque<Integer> ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02265|1
u120779516|p02265|1
codenet
Compile Error
957
v2_s224940556
s224940556
s224940556
p02265
p02265
u120779516
u120779516
1,512,037,717
2017-11-30T10:28:37
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.ArrayDeque; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine...
Main.java:20: error: cannot find symbol list.remove(Integer.parseInt(temp[1])); ^ symbol: variable temp location: class Main Main.java:26: error: cannot find symbol sb.append(" ").sppend(list.poll()); ^ symbol: method sppend(Integer) loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02265|1
u120779516|p02265|1
codenet
Compile Error
957
v2_s560848849
s560848849
s560848849
p02265
p02265
u184660634
u184660634
1,516,430,168
2018-01-20T06:36:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main{ public static void main(String[] args) { try { List<String> list = new ArrayList<String>(); BufferedReader r = new BufferedReader(new I...
Main.java:45: error: ')' or ',' expected System.out.println(out.subString(0,out.length()-1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184660634|p02265|0
u184660634|p02265|0
codenet
Compile Error
1,230
v2_s774239654
s774239654
s774239654
p02265
p02265
u184660634
u184660634
1,516,430,251
2018-01-20T06:37:31
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main{ public static void main(String[] args) { try { List<String> list = new ArrayList<String>(); BufferedReader r = new BufferedReader(new I...
Main.java:45: error: ')' or ',' expected System.out.println(out.substring(0,out.length()-1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184660634|p02265|0
u184660634|p02265|0
codenet
Compile Error
1,230
v2_s920474330
s920474330
s920474330
p02265
p02265
u184660634
u184660634
1,516,431,817
2018-01-20T07:03:37
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main{ public static void main(String[] args) { try { List<String> list = new ArrayList<String>(); BufferedReader r = new BufferedReader(new I...
Main.java:32: error: cannot find symbol tempIdx = list.lastindexOf(strcmd[1]); ^ symbol: method lastindexOf(String) location: variable list of type List<String> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184660634|p02265|0
u184660634|p02265|0
codenet
Compile Error
1,235
v2_s827677183
s827677183
s827677183
p02265
p02265
u197786702
u197786702
1,368,635,635
2013-05-15T16:33:55
Main.java
import java.util.LinkedList; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); Deque<Integer> deque = new ArrayDeque<Integer>(2000000); for(int t = 0; t < n; t++){ St...
Main.java:7: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:48: error: cannot find symbol private BufferedReader br; ^ symbol: class BufferedReader loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u197786702|p02265|0
u197786702|p02265|0
codenet
Compile Error
1,939
v2_s273850076
s273850076
s273850076
p02265
p02265
u200189227
u200189227
1,530,002,765
2018-06-26T08:46:05
Main.java
mport java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static Deque<Integer> list = new ArrayDeque<>(); public static int len = 0; public static void main(String[] args) { int i; int n = sc.nextInt(); for(i = 0; i <= n; i++){ String[] order = (sc.nextLine()).split(...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200189227|p02265|0
u200189227|p02265|0
codenet
Compile Error
860
v2_s524603306
s524603306
s524603306
p02265
p02265
u200189227
u200189227
1,530,002,797
2018-06-26T08:46:37
Main.java
mport java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static Deque<Integer> list = new ArrayDeque<>(); public static int len = 0; public static void main(String[] args) { int i; int n = sc.nextInt(); for(i = 0; i <= n; i++){ String[] order = (sc.nextLine()).split(...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200189227|p02265|0
u200189227|p02265|0
codenet
Compile Error
860
v2_s874490962
s874490962
s874490962
p02265
p02265
u200189227
u200189227
1,530,002,831
2018-06-26T08:47:11
Main.java
mport java.util.*; public class Main { public static Scanner sc = new Scanner(System.in); public static Deque<Integer> list = new ArrayDeque<>(); public static int len = 0; public static void main(String[] args) { int i; int n = sc.nextInt(); for(i = 0; i <= n; i++){ String[] order = (sc.nextLine()).split(...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200189227|p02265|0
u200189227|p02265|0
codenet
Compile Error
861
v2_s024671619
s024671619
s024671619
p02265
p02265
u206778360
u206778360
1,492,139,193
2017-04-14T03:06:33
Main.java
import java.util.Scanner; import java.util.ArrayList; class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = 0; String meirei; ArrayList<Integer> list = new ArrayList<Integer>(); int i; int size; for(i = 0; i < n; i++){ me...
Main.java:39: error: unreachable statement for(i = size - 1; i >= 1; i--){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u206778360|p02265|1
u206778360|p02265|1
codenet
Compile Error
939
v2_s689365449
s689365449
s689365449
p02265
p02265
u208358671
u208358671
1,525,186,016
2018-05-01T14:46:56
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int n=s.nextInt(),first=0,num=1,last=0; int list[]=new int[1000000]; int before[]=new int[100000]; int next[]=new int[1000000]; for(int i=0;i<n;i++)...
Main.java:67: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208358671|p02265|1
u208358671|p02265|1
codenet
Compile Error
2,117
v2_s276341551
s276341551
s276341551
p02265
p02265
u213503793
u213503793
1,409,815,014
2014-09-04T07:16:54
Main.java
import java.util.LinkedList; import java.util.Scanner; class Main { public static void main(String[] args) { LinkedList<String> lnk=new LinkedList<String>(); Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(int i=0;i<n;i++){ String s=sc.next(); if(s.equals("deleteFirst"))lnk.remove(); e...
Main.java:14: error: incompatible types: int cannot be converted to String else {String a=sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02265|0
u213503793|p02265|0
codenet
Compile Error
537
v2_s244009154
s244009154
s244009154
p02265
p02265
u221198783
u221198783
1,455,894,077
2016-02-19T15:01:17
Main.java
public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] commands; int num; LinkedList<Integer> list = new LinkedList<Integer>(); for (int i = 0; i < n; i++) { ...
Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u221198783|p02265|0
u221198783|p02265|0
codenet
Compile Error
917
v2_s366853837
s366853837
s366853837
p02265
p02265
u236679854
u236679854
1,499,536,813
2017-07-08T18:00:13
Main.java
import java.io.*; import java.util.LinkedList; class Main { public static void main (String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); LinkedList<String> list = new LinkedList<String>...
Main.java:18: error: method poll in class LinkedList<E> cannot be applied to given types; list.poll(input[1]); ^ required: no arguments found: String reason: actual and formal argument lists differ in length where E is a type-variable: E extends Object declared in clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u236679854|p02265|0
u236679854|p02265|0
codenet
Compile Error
1,027
v2_s817983097
s817983097
s817983097
p02265
p02265
u277659697
u277659697
1,480,096,742
2016-11-25T17:59:02
Main.java
import java.util.LinkedList; import java.util.Scanner; class Main { static LinkedList<Integer> list = new LinkedList<Integer>(); public static void insert(int key){ list.add(key); } public static void delete(int key){ list.remove(key); } public static void deleteFirst(){ list.removeFirst(); } p...
Main.java:56: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:56: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:56: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:56: error: illegal start of expressio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277659697|p02265|0
u277659697|p02265|0
codenet
Compile Error
1,126
v2_s035384562
s035384562
s035384562
p02265
p02265
u277659697
u277659697
1,480,096,773
2016-11-25T17:59:33
Main.java
import java.util.LinkedList; import java.util.Scanner; import java.util.Collections; class Main { static LinkedList<Integer> list = new LinkedList<Integer>(); public static void insert(int key){ list.add(key); } public static void delete(int key){ list.remove(key); } public static void deleteFirst(){...
Main.java:57: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:57: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:57: error: illegal start of expression ????????????Collections.reverse(list); ^ Main.java:57: error: illegal start of expressio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277659697|p02265|0
u277659697|p02265|0
codenet
Compile Error
1,156
v2_s847830792
s847830792
s847830792
p02265
p02265
u281849135
u281849135
1,528,013,207
2018-06-03T08:06:47
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static Deque<String> list = new ArrayDeque<String>(); public static void main(String[] args) { StringBuilder ans = new StringBuilder(); BufferedReader br = new...
Main.java:29: error: cannot find symbol sc.close(); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02265|0
u281849135|p02265|0
codenet
Compile Error
1,480
v2_s374218104
s374218104
s374218104
p02265
p02265
u298224238
u298224238
1,529,722,154
2018-06-23T02:49:14
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:69: error: ']' expected switch(char[0]) { ^ Main.java:69: error: case, default, or '}' expected switch(char[0]) { ^ Main.java:69: error: case, default, or '}' expected switch(char[0]) { ^ Main.java:6...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,372
v2_s735767565
s735767565
s735767565
p02265
p02265
u298224238
u298224238
1,529,722,169
2018-06-23T02:49:29
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:84: error: ';' expected L.delete(sc.nextInt()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,375
v2_s506783431
s506783431
s506783431
p02265
p02265
u298224238
u298224238
1,529,722,198
2018-06-23T02:49:58
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:79: error: duplicate case label case 'F': ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,375
v2_s222451708
s222451708
s222451708
p02265
p02265
u298224238
u298224238
1,529,722,215
2018-06-23T02:50:15
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:80: error: cannot find symbol L.deleteLirst(); ^ symbol: method deleteLirst() location: variable L of type DoublyLinkedList<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,375
v2_s206241548
s206241548
s206241548
p02265
p02265
u298224238
u298224238
1,529,722,317
2018-06-23T02:51:57
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:89: error: <identifier> expected System.out.println(L.keys().stream() ^ Main.java:89: error: <identifier> expected System.out.println(L.keys().stream() ^ Main.java:93: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,378
v2_s958245968
s958245968
s958245968
p02265
p02265
u298224238
u298224238
1,529,723,958
2018-06-23T03:19:18
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { static Node nil = new Node(); static class Node { Integer key; Node next; Node prev; } static void inser...
Main.java:81: error: ';' expected s += node.key + " "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,184
v2_s592319657
s592319657
s592319657
p02265
p02265
u298224238
u298224238
1,529,724,096
2018-06-23T03:21:36
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class DoublyLinkedList<T> { public Node<T> nil; class Node<T> { public T key; public Node<T> next; public Node<T> prev; } ...
Main.java:49: error: cannot find symbol public LinkedList<T> keys() { ^ symbol: class LinkedList location: class DoublyLinkedList<T> where T is a type-variable: T extends Object declared in class DoublyLinkedList Main.java:50: error: cannot find symbol LisLinkedListt<T> keys = new Lin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02265|0
u298224238|p02265|0
codenet
Compile Error
2,285
v2_s526559156
s526559156
s526559156
p02265
p02265
u301522431
u301522431
1,439,338,955
2015-08-12T00:22:35
Main.java
import java.io.BufferedReader; import java.io.FileReader; import java.io.InputStreamReader; class Elem { Elem next; Elem prev; int key; Elem(int key) { this.key = key; } } class DoubleyLinkedList { Elem head; DoubleyLinkedList() { head = new Elem(-1); head.next = head; head.prev = head; } void ...
Main.java:37: error: incompatible types: unexpected return value return e.key; ^ Main.java:40: error: incompatible types: unexpected return value return -1; ^ Main.java:47: error: incompatible types: unexpected return value return e.key; ^ Main.java:54: error: incompatible types: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301522431|p02265|0
u301522431|p02265|0
codenet
Compile Error
1,935
v2_s352211288
s352211288
s352211288
p02265
p02265
u350962055
u350962055
1,522,943,358
2018-04-05T15:49:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) { ALDS1_3_C(); } public static void ALDS1_3_C() { Scanner sc = new Scanner(System.in); BufferedReader br = new BufferedReader(new InputSt...
Main.java:46: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u350962055|p02265|0
u350962055|p02265|0
codenet
Compile Error
1,211
v2_s675163271
s675163271
s675163271
p02265
p02265
u354136358
u354136358
1,510,254,724
2017-11-09T19:12:04
Main.java
import java.util.Deque; import java.util.LinkedList; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Main { public static void main(String[] args) { InputOutput stdIO = new InputOutput()...
Main.java:70: error: class, interface, enum, or record expected package ALDS1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02265|0
u354136358|p02265|0
codenet
Compile Error
2,013
v2_s767860865
s767860865
s767860865
p02265
p02265
u364363882
u364363882
1,514,618,012
2017-12-30T07:13:32
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException, NumberFormatException { BufferedReader br = new BufferedReader(new InputStreamReader(Syst...
Main.java:12: error: cannot find symbol List<String> list = new LinkedList<String>(); ^ symbol: class LinkedList location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u364363882|p02265|0
u364363882|p02265|0
codenet
Compile Error
1,024
v2_s493585476
s493585476
s493585476
p02265
p02265
u377778881
u377778881
1,455,687,882
2016-02-17T05:44:42
Main.java
import java.io.*; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); ArrayList<Integer> list = new ArrayList<Integer>(); String[] inp...
Main.java:12: error: cannot find symbol command = input[0]; ^ symbol: variable command location: class Main Main.java:13: error: cannot find symbol switch (command) { ^ symbol: variable command location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u377778881|p02265|0
u377778881|p02265|0
codenet
Compile Error
943
v2_s814213402
s814213402
s814213402
p02265
p02265
u388677194
u388677194
1,479,925,622
2016-11-23T18:27:02
Main.java
import java.util.ArrayDeque; import java.util.Scanner; public class Main { public static void main(String [] args){ ArrayDeque<Integer> list = new ArrayDeque<Integer>(); Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); String str; for(int i=0; i<n; i++){ s...
Main.java:20: error: unclosed character literal }else if(str.charAt(6) == 'f''){ ^ Main.java:22: error: 'else' without 'if' }else{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u388677194|p02265|0
u388677194|p02265|0
codenet
Compile Error
788
v2_s991755287
s991755287
s991755287
p02265
p02265
u418625354
u418625354
1,498,789,021
2017-06-30T02:17:01
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.List; import java.util.ArrayList; import java.lang.StringBuffer; /*Question /??\?????????????????????????????????????????£???????????????????£?????????????????????? /insert x: ??£?????????????????????????????? x ?????????????´?????¶?????...
Main.java:50: error: illegal start of expression import java.io.BufferedReader; ^ Main.java:50: error: not a statement import java.io.BufferedReader; ^ Main.java:51: error: illegal start of expression import java.io.InputStreamReader; ^ Main.java:51: error: not a statement import java.io.InputStre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418625354|p02265|0
u418625354|p02265|0
codenet
Compile Error
4,550
v2_s729207762
s729207762
s729207762
p02265
p02265
u418625354
u418625354
1,498,790,696
2017-06-30T02:44:56
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.List; import java.util.ArrayList; import java.lang.StringBuffer; /*Question /??\?????????????????????????????????????????£???????????????????£?????????????????????? /insert x: ??£?????????????????????????????? x ?????????????´?????¶?????...
Main.java:53: error: illegal start of expression if (s[0].charAt(0) == 'i')) { ^ Main.java:56: error: 'else' without 'if' else if (s[0].charAt(7) == 'F') { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418625354|p02265|0
u418625354|p02265|0
codenet
Compile Error
2,309
v2_s008422999
s008422999
s008422999
p02265
p02265
u424720817
u424720817
1,529,645,397
2018-06-22T05:29:57
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Node head = new Node(0, null, null); int size = 0; for (int i = 0; i < n; i++)...
Main.java:86: error: cannot find symbol return deletedNode; ^ symbol: variable deletedNode location: class Main Main.java:92: error: cannot find symbol return deletedNode; ^ symbol: variable deletedNode location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424720817|p02265|0
u424720817|p02265|0
codenet
Compile Error
2,506
v2_s741644827
s741644827
s741644827
p02265
p02265
u424720817
u424720817
1,529,647,051
2018-06-22T05:57:31
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Node head = new Node(0, null, null); head.next = head; head.pre = head; int size = 0; for (int i = 0; i < n; i++)...
Main.java:17: error: incompatible types: String cannot be converted to char case "i" : ^ Main.java:22: error: incompatible types: String cannot be converted to char case "d" : ^ Main.java:23: error: cannot find symbol switch(command.len...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424720817|p02265|0
u424720817|p02265|0
codenet
Compile Error
2,517
v2_s257044649
s257044649
s257044649
p02265
p02265
u480459673
u480459673
1,335,338,001
2012-04-25T07:13:21
C.java
import java.util.*; class Node { public int key; public Node next, pre; Node(int key) { this.key = key; next = pre = null; } } public class C { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); Node head ...
C.java:53: error: reached end of file while parsing a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480459673|p02265|0
u480459673|p02265|0
codenet
Compile Error
1,598
v2_s514862443
s514862443
s514862443
p02265
p02265
u480459673
u480459673
1,335,338,018
2012-04-25T07:13:38
Main.java
import java.util.*; class Node { public int key; public Node next, pre; Node(int key) { this.key = key; next = pre = null; } } public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); Node he...
Main.java:53: error: reached end of file while parsing a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480459673|p02265|0
u480459673|p02265|0
codenet
Compile Error
1,601
v2_s094239617
s094239617
s094239617
p02265
p02265
u490902542
u490902542
1,545,788,734
2018-12-26T01:45:34
Main.java
import java.util.ArrayList; import java.util.List; import java.util.NoSuchElementException; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); try { int n = Integer.parseInt(sc.nextLine()); Node head = ...
Main.java:49: error: cannot find symbol StringJoiner sj = new StringJoiner(" "); ^ symbol: class StringJoiner location: class Main Main.java:49: error: cannot find symbol StringJoiner sj = new StringJoiner(" "); ^ symbol: class StringJoiner...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u490902542|p02265|0
u490902542|p02265|0
codenet
Compile Error
2,375
v2_s586856617
s586856617
s586856617
p02265
p02265
u497852372
u497852372
1,559,463,050
2019-06-02T08:10:50
Main.java
import java.util.*; import java.io.BufferedReader; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Deque<Integer> dq = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputSt...
Main.java:8: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main Main.java:12: error: cannot find symbol String command = br.nextLine();...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02265|0
u497852372|p02265|0
codenet
Compile Error
1,160
v2_s945654647
s945654647
s945654647
p02265
p02265
u497852372
u497852372
1,559,463,098
2019-06-02T08:11:38
Main.java
import java.util.*; import java.io.BufferedReader; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Deque<Integer> dq = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputSt...
Main.java:8: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main Main.java:28: error: cannot find symbol }catch(IOException e){} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02265|0
u497852372|p02265|0
codenet
Compile Error
1,160
v2_s349018166
s349018166
s349018166
p02265
p02265
u497852372
u497852372
1,559,463,752
2019-06-02T08:22:32
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); Deque<Integer> dq = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedRe...
Main.java:17: error: 'else' without 'if' else if(command.contains("deleteLast")) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02265|0
u497852372|p02265|0
codenet
Compile Error
959
v2_s928685878
s928685878
s928685878
p02265
p02265
u497852372
u497852372
1,559,464,219
2019-06-02T08:30:19
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Deque<Integer> dq = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(Sy...
Main.java:20: error: cannot find symbol dq.remove(Integer.parseint(str[1])); ^ symbol: method parseint(String) location: class Integer Main.java:22: error: cannot find symbol dq.addFirst(Integer.parseint(str[1])); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02265|0
u497852372|p02265|0
codenet
Compile Error
1,208
v2_s416069993
s416069993
s416069993
p02265
p02265
u497852372
u497852372
1,559,464,293
2019-06-02T08:31:33
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Deque<Integer> dq = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); BufferedReader br = new BufferedReader(new InputStreamReader(Sy...
Main.java:11: error: unreported exception IOException; must be caught or declared to be thrown String command = br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02265|0
u497852372|p02265|0
codenet
Compile Error
1,163
v2_s558990706
s558990706
s558990706
p02265
p02265
u514853553
u514853553
1,523,750,668
2018-04-15T00:04:28
Main.java
import java.util.Scanner; import java.util.LinkedList; public class Main { private enum Command{ Insert("insert"), Delete("delete"), DeleteFirst("deleteFirst"), DeleteLast("deleteLast"); public final String name; private Command(String name){ this.name=na...
Main.java:24: error: missing return statement } ^ 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
u514853553|p02265|0
u514853553|p02265|0
codenet
Compile Error
1,679
v2_s551600112
s551600112
s551600112
p02265
p02265
u514853553
u514853553
1,523,750,765
2018-04-15T00:06:05
Main.java
import java.util.Scanner; import java.util.LinkedList; public class Main { public static void main(String[] args){ // Your code here! Scanner scanner=new Scanner(System.in); int N=scanner.nextInt(); LinkedList<Integer> linkedList=new LinkedList(); for(int i=0;i<N;i++){ ...
Main.java:47: error: missing return statement } ^ 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
u514853553|p02265|0
u514853553|p02265|0
codenet
Compile Error
1,675
v2_s425507733
s425507733
s425507733
p02265
p02265
u527059277
u527059277
1,424,511,373
2015-02-21T09:36:13
Main.java
import java.util.Scanner; public class Main{ static Node head = null; public static void main(String[] args) { Scanner s = new Scanner(System.in); int cnt = new Integer(s.nextLine()).intValue(); for(int i=0 ; i<cnt ; i++) { String[] str = s.nextLine().split(" "); if("insert".equals(str[0])) { inse...
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int cnt = new Integer(s.nextLine()).intValue(); ^ Main.java:14: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal insert(new Integer(str[1]).intValue()); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527059277|p02265|0
u527059277|p02265|0
codenet
Compile Error
2,052
v2_s456098973
s456098973
s456098973
p02265
p02265
u527059277
u527059277
1,425,558,339
2015-03-05T12:25:39
Main.java
import java.util.Scanner; public class Main{ static Node head = null; static DoubleLinkedList a = new DoubleLinkedList(); public static void main(String[] args) { Scanner s = new Scanner(System.in); int cnt = new Integer(s.nextLine()).intValue(); for(int i=0 ; i<cnt ; i++) { String[] str = s.nextLine()....
Main.java:7: error: cannot find symbol static DoubleLinkedList a = new DoubleLinkedList(); ^ symbol: class DoubleLinkedList location: class Main Main.java:7: error: cannot find symbol static DoubleLinkedList a = new DoubleLinkedList(); ^ symbol: class DoubleLinkedLis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527059277|p02265|3
u527059277|p02265|3
codenet
Compile Error
2,454
v2_s861669962
s861669962
s861669962
p02265
p02265
u604774382
u604774382
1,435,367,063
2015-06-27T01:04:23
Main.java
import java.util.*; import java.io.*; class Main { public static void main( String[] args ) { try { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); int n = Integer.parseInt( kb.readLine( ) ); Deque<Integer> dq = new Deque<Integer>( ); String[...
Main.java:10: error: Deque is abstract; cannot be instantiated Deque<Integer> dq = new Deque<Integer>( ); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604774382|p02265|2
u604774382|p02265|1
codenet
Compile Error
1,302
v2_s251593091
s251593091
s251593091
p02265
p02265
u604774382
u604774382
1,435,367,157
2015-06-27T01:05:57
Main.java
import java.util.*; import java.io.*; class Main { public static void main( String[] args ) { try { BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) ); int n = Integer.parseInt( kb.readLine( ) ); Deque<Integer> dq = new ArrayList<Integer>( ); Str...
Main.java:10: error: incompatible types: ArrayList<Integer> cannot be converted to Deque<Integer> Deque<Integer> dq = new ArrayList<Integer>( ); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604774382|p02265|2
u604774382|p02265|1
codenet
Compile Error
1,306
v2_s025472764
s025472764
s025472764
p02265
p02265
u672724133
u672724133
1,471,689,670
2016-08-20T10:41:10
Main.java
import java.util.*; class Elem { Elem next; Elem prev; int key; Elem(int key) { this.key = key; } } class DoubleyLinkedList { Elem head; DoubleyLinkedList() { head = new Elem(-1); head.next = head; head.prev = head; } void insert(i...
Main.java:66: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:66: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u672724133|p02265|0
u672724133|p02265|0
codenet
Compile Error
2,246
v2_s202370836
s202370836
s202370836
p02265
p02265
u676874280
u676874280
1,529,034,063
2018-06-15T03:41:03
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Cell { int data; Cell next; Cell prev; Cell(int data) { this.data = data; this.next = null; this.prev = null; } } class DLList { final Cell header; Cell cell; DLList() { header = new Cell(-1); } void...
Main.java:69: error: cannot find symbol list.insert(a); ^ symbol: variable a location: class Main Main.java:76: error: cannot find symbol list.delete(a); ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676874280|p02265|4
u676874280|p02265|3
codenet
Compile Error
1,912
v2_s516717351
s516717351
s516717351
p02265
p02265
u713164723
u713164723
1,524,884,599
2018-04-28T03:03:19
Main.java
import java.util.Scanner; public class Main { int start; int end; int size; int garbageCount; int[] element; int[] next; int[] prev; int[] garbage; private void insert(int num) { if (this.start == -1) { if (this.garbageCount != 0) { this.element...
Main.java:122: error: incompatible types: int cannot be converted to boolean if (cmd.compareTo("insert")) { ^ Main.java:125: error: incompatible types: int cannot be converted to boolean } else if (cmd.compareTo("delete")) { ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u713164723|p02265|0
u713164723|p02265|0
codenet
Compile Error
4,330
v2_s531127009
s531127009
s531127009
p02265
p02265
u743590150
u743590150
1,489,222,406
2017-03-11T08:53:26
Main.java
import java.util.*; import java.io.*; public class Main implements Iterable<Integer> { private Node virtualNode; class Node { int value; Node prev; Node next; Node(int x) { value = x; prev = null; next = null; } } public DoublyLinkedList() { virtualNode = new Node(0); virtualNode.next ...
Main.java:20: error: invalid method declaration; return type required public DoublyLinkedList() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u743590150|p02265|0
u743590150|p02265|0
codenet
Compile Error
3,025
v2_s881785810
s881785810
s881785810
p02265
p02265
u766183517
u766183517
1,529,061,728
2018-06-15T11:22:08
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.ArrayDeque; import java.util.Deque; public class Main { public static void main(String[] args) throws IOException{ // Prints "Hello, World" to the terminal window. Buffe...
Main.java:25: error: cannot find symbol doubly_linked_list.addFirst(num); ^ symbol: variable num location: class Main Main.java:28: error: cannot find symbol doubly_linked_list.remove(num); ^ symbol: variable num location: cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02265|0
u766183517|p02265|0
codenet
Compile Error
1,464
v2_s005983801
s005983801
s005983801
p02265
p02265
u766183517
u766183517
1,529,062,463
2018-06-15T11:34:23
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.ArrayDeque; import java.util.Deque; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamRea...
Main.java:18: error: cannot find symbol doubly_linked_list.insert(Integer.parseInt(line[1])); ^ symbol: method insert(int) location: variable doubly_linked_list of type Deque<String> Main.java:20: error: cannot find symbol doubly_linked_list.delete...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02265|0
u766183517|p02265|0
codenet
Compile Error
1,377
v2_s314446662
s314446662
s314446662
p02265
p02265
u766183517
u766183517
1,529,062,507
2018-06-15T11:35:07
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.ArrayDeque; import java.util.Deque; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamRea...
Main.java:18: error: incompatible types: int cannot be converted to String doubly_linked_list.addFirst(Integer.parseInt(line[1])); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02265|0
u766183517|p02265|0
codenet
Compile Error
1,379
v2_s627791993
s627791993
s627791993
p02265
p02265
u803657704
u803657704
1,546,075,029
2018-12-29T09:17:09
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Scanner; class Main { static void main(String[] args) { Scanner scan = new Scanner(System.in); NodeList node = new NodeList(); int n = Integer.parseInt(scan.next()); int ...
Main.java:49: error: toString() in NodeList.Node cannot override toString() in Object String toString(){ ^ attempting to assign weaker access privileges; was public 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803657704|p02265|0
u803657704|p02265|0
codenet
Compile Error
2,778
v2_s721580173
s721580173
s721580173
p02265
p02265
u858885710
u858885710
1,499,036,774
2017-07-02T23:06:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int commandNum = Integer.parseInt(s.nextLine()); List<Integer> array = new LinkedList<Integer>(); for(int i = 0; i < commandNum; i++){ //System.out.println...
Main.java:31: error: cannot find symbol for (int j = 0; j < array.size(); ++i) { ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858885710|p02265|0
u858885710|p02265|0
codenet
Compile Error
1,259
v2_s747471808
s747471808
s747471808
p02265
p02265
u858885710
u858885710
1,499,037,326
2017-07-02T23:15:26
Main.java
import sys class Node: def __init__(self, num): self.prev = None self.next_node = None self.num = num def delete(self): if self.prev is not None: self.prev.next_node = self.next_node if self.next_node is not None: self.next_node.prev = self.prev ...
Main.java:1: error: '.' expected import sys ^ Main.java:3: error: '{' expected class Node: ^ Main.java:14: error: '{' expected class LinkedList: ^ Main.java:71: error: class, interface, enum, or record expected c_num = int(sys.stdin.readline().strip()) ^ Main.java:83:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858885710|p02265|0
u858885710|p02265|0
codenet
Compile Error
2,627
v2_s926672094
s926672094
s926672094
p02265
p02265
u896545891
u896545891
1,512,206,165
2017-12-02T09:16:05
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { int n; LinkedList<Integer> list = new LinkedList<Integer>(); Scanner sc = new Scanner(System.in); n = sc.nextInt(); sc.nextLine(); for (int i = 0; i < n; i++) { ...
Main.java:21: error: cannot find symbol int idx = list.indexOf(Integer.pasrInt(s[1])); ^ symbol: method pasrInt(String) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u896545891|p02265|0
u896545891|p02265|0
codenet
Compile Error
1,099
v2_s136498948
s136498948
s136498948
p02265
p02265
u896545891
u896545891
1,512,208,720
2017-12-02T09:58:40
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { int n, idx, len; String s; LinkedList<Integer> list = new LinkedList<Integer>(); Scanner sc = new Scanner(System.in); n = Integer.parseInt(sc.next()); for (int i = 0;...
Main.java:38: error: illegal character: '\' System.out.print\n(it.next()); ^ Main.java:38: error: not a statement System.out.print\n(it.next()); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u896545891|p02265|0
u896545891|p02265|0
codenet
Compile Error
1,257