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_s090942394 | s090942394 | s090942394 | p02261 | p02261 | u352522848 | u352522848 | 1,446,876,280 | 2015-11-07T06:04:40 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int count = Integer.parseInt(in.readLine());
String[] inArr = in.readLine().split(" ");
String[] bArr = Sort.bubbleSort(inArr);
... | Main.java:28: error: class Sort is public, should be declared in a file named Sort.java
public class Sort {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u352522848|p02261|0 | u352522848|p02261|0 | codenet | Compile Error | 2,445 | |
v2_s545359882 | s545359882 | s545359882 | p02261 | p02261 | u352522848 | u352522848 | 1,529,123,630 | 2018-06-16T04:33:50 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int count = Integer.parseInt(in.readLine());
String[] inArr = in.readLine().split(" ");
String[] bArr = Sort.bubbleSort(inArr);
... | Main.java:32: error: ';' expected
for(int j = bArr.length-1; j > i, j--) {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u352522848|p02261|1 | u352522848|p02261|1 | codenet | Compile Error | 2,441 | |
v2_s805262507 | s805262507 | s805262507 | p02261 | p02261 | u354136358 | u354136358 | 1,510,102,523 | 2017-11-08T00:55:23 | Main.java | import java.util.ArrayList;
import java.util.List;
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:24: error: cannot find symbol
ALDS1_2_C_Stable_Sort my = new ALDS1_2_C_Stable_Sort();
^
symbol: class ALDS1_2_C_Stable_Sort
location: class Main
Main.java:24: error: cannot find symbol
ALDS1_2_C_Stable_Sort my = new ALDS1_2_C_Stable_Sort();
^
symbol: class ALDS... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u354136358|p02261|0 | u354136358|p02261|0 | codenet | Compile Error | 3,624 | |
v2_s897458775 | s897458775 | s897458775 | p02261 | p02261 | u438493637 | u438493637 | 1,524,631,095 | 2018-04-25T04:38:15 | Main.java | import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Scanner;
class Main {
//enum宣言
public static enum cardMarkNum
{
//マークをアスキーコードで紐づけ
S(83),
H(72),
C(67),
D(68);
private final int mark;
private cardMarkNum(final int mark) {
this.mark = mark;
}
... | Main.java:89: error: cannot find symbol
output(out, num);
^
symbol: method output(int[],int)
location: class Main
Main.java:134: error: cannot find symbol
output(out, num);
^
symbol: method output(int[],int)
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438493637|p02261|1 | u438493637|p02261|1 | codenet | Compile Error | 4,727 | |
v2_s546213801 | s546213801 | s546213801 | p02261 | p02261 | u438493637 | u438493637 | 1,524,631,115 | 2018-04-25T04:38:35 | Main.java | import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Scanner;
class Main {
//enum宣言
public static enum cardMarkNum
{
//マークをアスキーコードで紐づけ
S(83),
H(72),
C(67),
D(68);
private final int mark;
private cardMarkNum(final int mark) {
this.mark = mark;
}
... | Main.java:89: error: cannot find symbol
output(out, num);
^
symbol: method output(int[],int)
location: class Main
Main.java:134: error: cannot find symbol
output(out, num);
^
symbol: method output(int[],int)
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438493637|p02261|1 | u438493637|p02261|1 | codenet | Compile Error | 4,727 | |
v2_s368007471 | s368007471 | s368007471 | p02261 | p02261 | u514853553 | u514853553 | 1,516,875,850 | 2018-01-25T10:24:10 | Main.java |
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner scanner=new Scanner(System.in);
int n=scanner.nextInt();
Card[] cards=new Card[n];
fo... | Main.java:109: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u514853553|p02261|0 | u514853553|p02261|0 | codenet | Compile Error | 3,218 | |
v2_s885569671 | s885569671 | s885569671 | p02261 | p02261 | u635209856 | u635209856 | 1,541,161,265 | 2018-11-02T12:21:05 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.NoSuchElementException;
import java.util.Scanner;
public class Main{
static PrintWriter out=new PrintWriter(System.out);
static FastScanner sc=new FastScanner();
static Scanner std... | Main.java:12: error: ';' expected
static Scanner stdIn=new Scanner(System.in)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u635209856|p02261|0 | u635209856|p02261|0 | codenet | Compile Error | 4,764 | |
v2_s555804623 | s555804623 | s555804623 | p02261 | p02261 | u647456682 | u647456682 | 1,535,144,040 | 2018-08-24T20:54:00 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
int total;
Scanner inp = new Scanner(System.in);
total = inp.nextInt();
String[] b = new String[total];
String[] c = new String[total];
for (int k = 0; k < total; k++) {
S... | Main.java:82: error: <identifier> expected
System.out.println("\n");
^
Main.java:82: error: illegal start of type
System.out.println("\n");
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u647456682|p02261|0 | u647456682|p02261|0 | codenet | Compile Error | 1,950 | |
v2_s681723902 | s681723902 | s681723902 | p02261 | p02261 | u734723169 | u734723169 | 1,535,466,576 | 2018-08-28T14:29:36 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Card[] c1 = new Card[N];
for (int i = 0; i < N; i++) {
c1[i] = new Card();
}
for (int i = 0; i < N; i++) {
String strC = sc.next();
char[] chrC = strC.toCharArray();
c1[i].se... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02261|0 | u734723169|p02261|0 | codenet | Compile Error | 2,028 | |
v2_s970015039 | s970015039 | s970015039 | p02261 | p02261 | u734723169 | u734723169 | 1,535,466,695 | 2018-08-28T14:31:35 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
Card[] c1 = new Card[N];
for (int i = 0; i < N; i++) {
c1[i] = new Card();
}
for (int i = 0; i < N; i++) {
String strC = sc.next();
char[] chrC = strC.toCharArray();
c1[i].se... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02261|0 | u734723169|p02261|0 | codenet | Compile Error | 2,017 | |
v2_s127694571 | s127694571 | s127694571 | p02261 | p02261 | u753809902 | u753809902 | 1,461,151,847 | 2016-04-20T11:30:47 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args)throws NumberFormatException,IOException{
int n,i,j,minj;
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
... | Main.java:73: error: cannot find symbol
if(!arr[i].equals(arr1[i])) bln = false;
^
symbol: variable bln
location: class Main
Main.java:76: error: cannot find symbol
if(bln)System.out.println("Stable");
^
symbol: variable bln
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753809902|p02261|0 | u753809902|p02261|0 | codenet | Compile Error | 1,739 | |
v2_s907460815 | s907460815 | s907460815 | p02261 | p02261 | u756720971 | u756720971 | 1,500,878,437 | 2017-07-24T06:40:37 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N; //static?????´??°???public static???main?????????????????§????????????????????????
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new... | Main.java:36: error: cannot find symbol
System.out.printf("%s\n", Arrays.equals(ins, carsd)? "Stable" : "Not stable");
^
symbol: variable carsd
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756720971|p02261|0 | u756720971|p02261|0 | codenet | Compile Error | 1,648 | |
v2_s228866848 | s228866848 | s228866848 | p02261 | p02261 | u756720971 | u756720971 | 1,500,881,113 | 2017-07-24T07:25:13 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N; //static?????´??°???public static???main?????????????????§????????????????????????
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new... | Main.java:31: error: ';' expected
int nwork = nary[j]
^
Main.java:41: error: ')' expected
if(nary[i] > nary[i+1]{
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756720971|p02261|0 | u756720971|p02261|0 | codenet | Compile Error | 2,237 | |
v2_s415215385 | s415215385 | s415215385 | p02261 | p02261 | u756720971 | u756720971 | 1,500,881,221 | 2017-07-24T07:27:01 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N; //static?????´??°???public static???main?????????????????§????????????????????????
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new... | Main.java:33: error: incompatible types: String cannot be converted to int
nary[j-1] = work;
^
Main.java:39: error: cannot find symbol
for(int i = 0; i < n-1; i++){
^
symbol: variable n
location: class Main
Main.java:40: error: cannot find symbol
if(cardComp(cards[i... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756720971|p02261|0 | u756720971|p02261|0 | codenet | Compile Error | 2,239 | |
v2_s971578451 | s971578451 | s971578451 | p02261 | p02261 | u756720971 | u756720971 | 1,500,881,437 | 2017-07-24T07:30:37 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N; //static?????´??°???public static???main?????????????????§????????????????????????
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new... | Main.java:40: error: cannot find symbol
if(cardComp(cards[i], card[i+1]) == 0){
^
symbol: variable card
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756720971|p02261|0 | u756720971|p02261|0 | codenet | Compile Error | 2,241 | |
v2_s147971530 | s147971530 | s147971530 | p02261 | p02261 | u759791460 | u759791460 | 1,511,629,196 | 2017-11-25T16:59:56 | Main.java | import java.io.InputStreamReader;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.IOException;
public class Main {
public static void main(String args[] ) throws IOException {
BufferedReader br = new BufferedReader(new InputStream(System.in));
int N = Integer.parseInt(br.readLine());
... | Main.java:8: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStream(System.in));
^
symbol: class InputStream
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759791460|p02261|0 | u759791460|p02261|0 | codenet | Compile Error | 1,575 | |
v2_s148091626 | s148091626 | s148091626 | p02261 | p02261 | u851695354 | u851695354 | 1,488,101,622 | 2017-02-26T09:33:42 | Main.java | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
sc.useDelimiter(System.getProperty("line.separator"));
int n = sc.nextInt();
String data = sc.next();
//String???Int????????????
String[] datas = data.split(" ");
Card[] cardsBubble = bubbleSort(... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u851695354|p02261|0 | u851695354|p02261|0 | codenet | Compile Error | 2,252 | |
v2_s340593539 | s340593539 | s340593539 | p02261 | p02261 | u910402677 | u910402677 | 1,486,443,319 | 2017-02-07T04:55:19 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
int N;
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new String[N];
String[] ins = new String[N];
for(int i = 0; i < N; i++){
cards[i] = sc... | Main.java:9: error: non-static variable N cannot be referenced from a static context
N = scan.nextInt();
^
Main.java:10: error: non-static variable N cannot be referenced from a static context
String[] cards = new String[N];
^
Main.java:11: error: non-static variable N cannot be refe... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02261|0 | u910402677|p02261|0 | codenet | Compile Error | 1,963 | |
v2_s506702810 | s506702810 | s506702810 | p02261 | p02261 | u910402677 | u910402677 | 1,486,443,398 | 2017-02-07T04:56:38 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N;
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new String[N];
String[] ins = new String[N];
for(int i = 0; i < N; i++){
cards[... | Main.java:22: error: cannot find symbol
String sj = card[j].substring(1);
^
symbol: variable card
location: class Main
Main.java:24: error: cannot find symbol
int vj = Interger.parseInt(sj);
^
symbol: variable Interger
location: class Main
Main.java:29: error: cannot fin... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02261|0 | u910402677|p02261|0 | codenet | Compile Error | 1,970 | |
v2_s706059341 | s706059341 | s706059341 | p02261 | p02261 | u910402677 | u910402677 | 1,486,443,494 | 2017-02-07T04:58:14 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N;
public static void main(String[] args){
N = scan.nextInt();
String[] cards = new String[N];
String[] copys = new String[N];
String[] ins = new String[N];
for(int i = 0; i < N; i++){
cards[... | Main.java:24: error: cannot find symbol
int vj = Interger.parseInt(sj);
^
symbol: variable Interger
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02261|0 | u910402677|p02261|0 | codenet | Compile Error | 1,972 | |
v2_s152018575 | s152018575 | s152018575 | p02262 | p02262 | u438493637 | u438493637 | 1,523,944,131 | 2018-04-17T05:48:51 | Main.java | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();//要素数
int array[] = new int[num];
for(int i = 0; i < num; i ++ ){
array[i] = scanner.nextInt();
}
shellSort(array, num);
scanner.close();
}
... | Main.java:39: error: ']' expected
int arrayG[100];
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438493637|p02262|0 | u438493637|p02262|0 | codenet | Compile Error | 1,442 | |
v2_s287021357 | s287021357 | s287021357 | p02262 | p02262 | u599666776 | u599666776 | 1,471,826,331 | 2016-08-22T00:38:51 | Main.java | import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
class Main {
public static int cnt = 0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] a = new int[n];
for(int i = 0; i < n; ++i) {
a[i] = sc.nextInt();
}
... | Main.java:17: error: ';' expected
System.out.println(3)//cnt);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u599666776|p02262|1 | u599666776|p02262|1 | codenet | Compile Error | 1,156 | |
v2_s826999434 | s826999434 | s826999434 | p02262 | p02262 | u647456682 | u647456682 | 1,535,247,297 | 2018-08-26T01:34:57 | Main.java | import java.util.*;
import static javafx.scene.input.KeyCode.G;
public class Main {
public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
int total = inp.nextInt();
int[] b = new int[total];
for (int k = 0; k < total; k++) {
int a = inp.nextIn... | Main.java:3: error: package javafx.scene.input does not exist
import static javafx.scene.input.KeyCode.G;
^
Main.java:3: error: static import only from classes and interfaces
import static javafx.scene.input.KeyCode.G;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u647456682|p02262|0 | u647456682|p02262|0 | codenet | Compile Error | 1,447 | |
v2_s484555508 | s484555508 | s484555508 | p02262 | p02262 | u768801062 | u768801062 | 1,528,778,089 | 2018-06-12T04:34:49 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
int n = Integer.parseInt(br.readLine());
... | Main.java:29: error: cannot find symbol
int k = Double.valueOf( Math.sqrt(num) ).intValue();
^
symbol: variable num
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768801062|p02262|1 | u768801062|p02262|1 | codenet | Compile Error | 1,465 | |
v2_s836891768 | s836891768 | s836891768 | p02262 | p02262 | u910402677 | u910402677 | 1,486,509,763 | 2017-02-07T23:22:43 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N;
public static void main(String[] args){
int n = scan.nextInt();
int[] arr = new int[n];
for(int i = 0; i < n; i++){
arr[i] = scan.nextInt();
}
shellSort(arr, n);
}
static int inserSort... | Main.java:54: error: cannot find symbol
cnt = insertSort(arr, n, g[i], cnt);
^
symbol: variable arr
location: class Main
Main.java:63: error: cannot find symbol
System.out.printf("%d\n", arr[i]);
^
symbol: variable arr
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02262|0 | u910402677|p02262|0 | codenet | Compile Error | 1,159 | |
v2_s069245329 | s069245329 | s069245329 | p02262 | p02262 | u910402677 | u910402677 | 1,486,509,880 | 2017-02-07T23:24:40 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static int N;
public static void main(String[] args){
int n = scan.nextInt();
int[] arr = new int[n];
for(int i = 0; i < n; i++){
arr[i] = scan.nextInt();
}
shellSort(arr, n);
}
static int inserSort... | Main.java:54: error: cannot find symbol
cnt = insertSort(a, n, g[i], cnt);
^
symbol: method insertSort(int[],int,int,int)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02262|0 | u910402677|p02262|0 | codenet | Compile Error | 1,155 | |
v2_s550017065 | s550017065 | s550017065 | p02263 | p02263 | u009761676 | u009761676 | 1,515,946,968 | 2018-01-14T16:22:48 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int stack[] = new int[1000];
Scanner scanner = new Scanner(System.in);
int counta = 0;
while (scanner.hasNext()) {
String sc = scanner.next();
System.out.println(sc);
if (sc.charAt(0) == '*') {
stack[counta - ... | Main.java:29: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u009761676|p02263|0 | u009761676|p02263|0 | codenet | Compile Error | 758 | |
v2_s313785295 | s313785295 | s313785295 | p02263 | p02263 | u009761676 | u009761676 | 1,515,947,421 | 2018-01-14T16:30:21 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int stack[] = new int[1000];
Scanner scanner = new Scanner(System.in);
int counta = 0;
String input[] = (scanner.nextLine()).split(" ");
for (int i = 0; i < input.length; i++) {
if (input[i].equals("*")) {
stack[... | Main.java:29: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u009761676|p02263|0 | u009761676|p02263|0 | codenet | Compile Error | 775 | |
v2_s754449246 | s754449246 | s754449246 | p02263 | p02263 | u022215941 | u022215941 | 1,529,638,242 | 2018-06-22T03:30:42 | Main.java | #include <stdio.h>
#include <stdlib.h>
int main(){
char operand[100];
int *S;
int count=0;
int i,j,retrun;
int a;
while((scanf("%s ",&operand[count]))=!EOF){ count++; }
S = (int *)malloc(count * sizeof(int));
for(i=0;i<count;i++){
if(operand[i]==12+32||operand[i]==14+32||operand[i]==11+32){
... | 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:6: error: class, interface, enum, or record expected
int *S;
^
Main.java:7: error: u... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u022215941|p02263|0 | u022215941|p02263|0 | codenet | Compile Error | 624 | |
v2_s214009177 | s214009177 | s214009177 | p02263 | p02263 | u026004148 | u026004148 | 1,501,486,026 | 2017-07-31T07:27:06 | Main.java | public class Main {
char[] c;
int id;
int exp() {
int s = term();
if (id < c.length && '0' <= c[id] && c[id] <= '9') {
int t = term();
int op = operand();
return calc(s, t, op);
}
return s;
}
int term() {
int s = number();
if (id < c.length && '0' <= c[id] && c[id]... | Main.java:57: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:57: 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 | u026004148|p02263|0 | u026004148|p02263|0 | codenet | Compile Error | 1,135 | |
v2_s237216739 | s237216739 | s237216739 | p02263 | p02263 | u031194354 | u031194354 | 1,475,026,551 | 2016-09-28T01:35:51 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Stack;
class Main {
public static void main(String args[]) throws IOException{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String str ... | Main.java:45: error: reached end of file while parsing
System.out.println(stack.pop());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u031194354|p02263|0 | u031194354|p02263|0 | codenet | Compile Error | 1,404 | |
v2_s186645736 | s186645736 | s186645736 | p02263 | p02263 | u046558305 | u046558305 | 1,529,753,648 | 2018-06-23T11:34:08 | Main.java | #include<stdio.h>
#include<stdlib.h>
void push(int);
void pop(int);
int stack[50];
int arryN = 0;
int main(){
char input[50];
int bre1 = 0, bre2 = 0;
while(scanf("%50s",input) != EOF){
if(input[0] == '+'){
pop(1);
bre1++;
}
else if(input[0] == '-'){
pop(2);
bre1++;
}
... | 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:5: error: unnamed classes are a preview feature and are disabled by default.
void pop(int);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u046558305|p02263|0 | u046558305|p02263|0 | codenet | Compile Error | 948 | |
v2_s428612486 | s428612486 | s428612486 | p02263 | p02263 | u162151793 | u162151793 | 1,508,900,032 | 2017-10-25T02:53:52 | Main.java | import java.util.Scanner;
import java.util.Arrays;
import java.util.Deque;
import java.util.ArrayDeque;
class Main{
public static void main(String[] args)throws Exception{
Scanner scanner = new Scanner(System.in);
Deque<Integer> stack = new ArrayDeque<>();
String[] line = scanner.nextLine().split(" ");
int a,... | Main.java:14: error: ')' expected
switch(line[i]{
^
Main.java:34: error: ')' or ',' expected
stack.offer(Interger.parseInt(line[i])
^
Main.java:36: error: illegal start of expression
})
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02263|0 | u162151793|p02263|0 | codenet | Compile Error | 822 | |
v2_s480880542 | s480880542 | s480880542 | p02263 | p02263 | u162151793 | u162151793 | 1,508,900,070 | 2017-10-25T02:54:30 | Main.java | import java.util.Scanner;
import java.util.Arrays;
import java.util.Deque;
import java.util.ArrayDeque;
class Main{
public static void main(String[] args)throws Exception{
Scanner scanner = new Scanner(System.in);
Deque<Integer> stack = new ArrayDeque<>();
String[] line = scanner.nextLine().split(" ");
int a,... | Main.java:34: error: cannot find symbol
stack.offer(Interger.parseInt(line[i]));
^
symbol: variable Interger
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02263|0 | u162151793|p02263|0 | codenet | Compile Error | 824 | |
v2_s021123078 | s021123078 | s021123078 | p02263 | p02263 | u206778360 | u206778360 | 1,491,983,464 | 2017-04-12T07:51:04 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
Stack<Integer> stack = new Stack<Integer>();
int x = 0;
int y = 0;
int tmp = 0;
for(int i = 0; i < str.length(); i++){
switch(str.charAt(i))
{
... | Main.java:7: error: cannot find symbol
Stack<Integer> stack = new Stack<Integer>();
^
symbol: class Stack
location: class Main
Main.java:7: error: cannot find symbol
Stack<Integer> stack = new Stack<Integer>();
^
symbol: class Stack
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u206778360|p02263|0 | u206778360|p02263|0 | codenet | Compile Error | 833 | |
v2_s709924915 | s709924915 | s709924915 | p02263 | p02263 | u211138527 | u211138527 | 1,528,688,249 | 2018-06-11T03:37:29 | Main.java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
public class Main{
static InputReader ir;
static P... | Main.java:39: error: illegal start of expression
public static void main(String[] args) throws Exception {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02263|0 | u211138527|p02263|0 | codenet | Compile Error | 3,198 | |
v2_s734252816 | s734252816 | s734252816 | p02263 | p02263 | u211138527 | u211138527 | 1,528,688,292 | 2018-06-11T03:38:12 | Main.java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
public class Main{
static InputReader ir;
static P... | Main.java:20: error: incompatible types: Object cannot be converted to int
int a=stk.pollFirst();
^
Main.java:21: error: incompatible types: Object cannot be converted to int
int b=stk.pollFirst();
^
Main.java:25: error: incompatible types: Object cannot be converted to int... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02263|0 | u211138527|p02263|0 | codenet | Compile Error | 3,208 | |
v2_s428464923 | s428464923 | s428464923 | p02263 | p02263 | u293958930 | u293958930 | 1,398,911,435 | 2014-05-01T02:30:35 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner (System.in);
int [] St = new int[100];
int index = 0;
int k;
while(scan.hasNext()){
String str = scan.next();
switch(str){
case '+':
index--;
St[index-1] += St[index];
break;
case... | Main.java:13: error: incompatible types: char cannot be converted to String
case '+':
^
Main.java:17: error: incompatible types: char cannot be converted to String
case '*':
^
Main.java:21: error: incompatible types: char cannot be converted to String
case '-':
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u293958930|p02263|0 | u293958930|p02263|0 | codenet | Compile Error | 568 | |
v2_s269520318 | s269520318 | s269520318 | p02263 | p02263 | u293958930 | u293958930 | 1,398,911,560 | 2014-05-01T02:32:40 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner (System.in);
int [] St = new int[100];
int index = 0;
int k;
while(scan.hasNext()){
String str = scan.next();
switch(str){
case '+':
index--;
St[index-1] += St[index];
break;
case... | Main.java:13: error: incompatible types: char cannot be converted to String
case '+':
^
Main.java:17: error: incompatible types: char cannot be converted to String
case '*':
^
Main.java:21: error: incompatible types: char cannot be converted to String
case '-':
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u293958930|p02263|0 | u293958930|p02263|0 | codenet | Compile Error | 599 | |
v2_s561388715 | s561388715 | s561388715 | p02263 | p02263 | u383671372 | u383671372 | 1,492,650,679 | 2017-04-20T01:11:19 | Main.java | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
String[] all = line.split(" ");
ArrayList<Integer> allint = new ArrayList<Integer>();
for (int i = 0; i < all.length; i+... | Main.java:54: error: invalid method declaration; return type required
public Test03_1(String n) {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u383671372|p02263|0 | u383671372|p02263|0 | codenet | Compile Error | 1,388 | |
v2_s613564572 | s613564572 | s613564572 | p02263 | p02263 | u418823316 | u418823316 | 1,556,731,233 | 2019-05-01T17:20:33 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String[] input = scan.nextLine().split(" ");
Deque<Integer> stack = new ArrayDeque<Integer>();
for(int i = 0; i < input.length; i++) {
if(input[i].equals("+") || input[i].equals("-")
|| input[i].equal... | Main.java:4: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:7: error: cannot find sym... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418823316|p02263|0 | u418823316|p02263|0 | codenet | Compile Error | 755 | |
v2_s379578629 | s379578629 | s379578629 | p02263 | p02263 | u457728280 | u457728280 | 1,474,287,157 | 2016-09-19T12:12:37 | Main.java |
public class Main {
public static final String plus = "+";
public static final String minus = "-";
public static final String aaa = "*";
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String strInt = null;
int intStr = 0;
int numInt1 = 0;
int numInt2 = 0;
int total = 0;
... | Main.java:8: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:8: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:14: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u457728280|p02263|0 | u457728280|p02263|0 | codenet | Compile Error | 998 | |
v2_s625040932 | s625040932 | s625040932 | p02263 | p02263 | u510776588 | u510776588 | 1,529,848,163 | 2018-06-24T13:49:23 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;... | Main.java:7: error: <identifier> expected
public class {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u510776588|p02263|0 | u510776588|p02263|0 | codenet | Compile Error | 1,412 | |
v2_s081925864 | s081925864 | s081925864 | p02263 | p02263 | u510776588 | u510776588 | 1,529,848,489 | 2018-06-24T13:54:49 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;... | Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException{
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u510776588|p02263|0 | u510776588|p02263|0 | codenet | Compile Error | 1,419 | |
v2_s139447713 | s139447713 | s139447713 | p02263 | p02263 | u527059277 | u527059277 | 1,423,983,359 | 2015-02-15T06:55:59 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
StackImpl e = new Stack().new StackImpl();
// while(s.hasNext()) {
String[] line = s.nextLine().split(" ");
for(int i=0 ; i<line.length ; i++) {
if("+".equals(line[i])) {
int b... | Main.java:8: error: cannot find symbol
StackImpl e = new Stack().new StackImpl();
^
symbol: class Stack
location: class Main
Main.java:25: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
e.push(new Integer(line[i]).intValue());
^
1 erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u527059277|p02263|0 | u527059277|p02263|0 | codenet | Compile Error | 974 | |
v2_s348486328 | s348486328 | s348486328 | p02263 | p02263 | u562648818 | u562648818 | 1,498,285,389 | 2017-06-24T06:23:09 | Main.java |
import java.util.Scanner;
class Main{
int[] a = new int[200];
int top;
Stack(){
top = 0;
}
void push(int x){
a[++top] = x;
}
int pop(){
return a[top--];
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
Stack stack = new Stack();
while(s... | Main.java:8: error: invalid method declaration; return type required
Stack(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u562648818|p02263|0 | u562648818|p02263|0 | codenet | Compile Error | 854 | |
v2_s698599476 | s698599476 | s698599476 | p02263 | p02263 | u562648818 | u562648818 | 1,498,285,445 | 2017-06-24T06:24:05 | Main.java |
import java.util.Scanner;
class Main{
int[] a = new int[200];
int top;
Stack(){
top = 0;
}
void push(int x){
a[++top] = x;
}
int pop(){
return a[top--];
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
Main stack = new Main();
while(std... | Main.java:8: error: invalid method declaration; return type required
Stack(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u562648818|p02263|0 | u562648818|p02263|0 | codenet | Compile Error | 852 | |
v2_s993270465 | s993270465 | s993270465 | p02263 | p02263 | u562648818 | u562648818 | 1,504,068,875 | 2017-08-30T04:54:35 | Main.java | import java.util.Scanner;
class Main{
String[] data = new String[200];
int num;
Stack(){
this.num = 0;
}
boolean push(String c){
if(this.isFull())
return false;
else{
this.data[++num] = c;
return true;
}
}
String pop(){
return this.data[num--];
}
boolean isFu... | Main.java:7: error: invalid method declaration; return type required
Stack(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u562648818|p02263|1 | u562648818|p02263|1 | codenet | Compile Error | 1,103 | |
v2_s202705259 | s202705259 | s202705259 | p02263 | p02263 | u563967927 | u563967927 | 1,529,638,224 | 2018-06-22T03:30:24 | Main.java | #include<stdio.h>
int push(int);
int pop(void);
int stack[100];
int stack_size=0;
int main(){
char s[100];
scanf("%[^\n]*s",s);
printf("%s=%d\n",s,calc(s));
return 0;
}
int pop(){
if(stack_size<=0)
return 0;
else
return stack[--stack_size];
}
int push(int n){
stack[stack_size++]=n;
}
i... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int pop(void);
^
(use --enable-preview to enable unnamed classes)
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u563967927|p02263|0 | u563967927|p02263|0 | codenet | Compile Error | 1,133 | |
v2_s469082326 | s469082326 | s469082326 | p02263 | p02263 | u643317519 | u643317519 | 1,482,852,175 | 2016-12-27T15:22:55 | Main.java | import java.util.Scanner;
public class Main {
static int[] str = new int[100];
static int i = 0;
static void push(int k) {
if (isFull()==false){
i++;
str[i] = k;
}
else{
System.out.print("?????????????????????");
}
}
static int pop() {
if (isEmpty()==false){
i--;
return str[i+1];
}
e... | Main.java:47: 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 | u643317519|p02263|1 | u643317519|p02263|1 | codenet | Compile Error | 1,411 | |
v2_s716374887 | s716374887 | s716374887 | p02263 | p02263 | u676591862 | u676591862 | 1,499,007,501 | 2017-07-02T14:58:21 | Algorithm.java | package javaTest;
import org.apache.commons.lang.StringUtils;
import java.util.LinkedList;
import java.util.Scanner;
/**
* Created by Lenovo on 2017/6/30.
*/
public class Algorithm {
public static void main(String[] args){
// int n = 7;
// int list[] = {5,3,1,3,4,2,6};
// int result = getM... | Algorithm.java:3: error: package org.apache.commons.lang does not exist
import org.apache.commons.lang.StringUtils;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u676591862|p02263|0 | u676591862|p02263|0 | codenet | Compile Error | 1,522 | |
v2_s886796054 | s886796054 | s886796054 | p02263 | p02263 | u727760769 | u727760769 | 1,452,957,638 | 2016-01-16T15:20:38 | Main.java | class Stack{
private int[] StackArray;
private final int maxSize = 100;
private int top;
public Stack(){
StackArray = new int[maxSize];
top = -1;
}
public int pop(){
return StackArray[top--];
}
public void push(int o){
StackArray[++top] = o;
}
public int peak(){
return StackArray[top];
}
}
publi... | Main.java:22: error: cannot find symbol
public static void main(String[] args)throws IOException {
^
symbol: class IOException
location: class Main
Main.java:23: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u727760769|p02263|0 | u727760769|p02263|0 | codenet | Compile Error | 1,074 | |
v2_s785999644 | s785999644 | s785999644 | p02263 | p02263 | u770145133 | u770145133 | 1,529,831,574 | 2018-06-24T09:12:54 | Main.java | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int sento;
int data[1000];
void push(int);
int pop();
int main(){
int change1;
int change2;
char set[100];
sento = 0;
while(scanf("%s",set) != EOF){
if(set[0] == '+'){
change1 = pop();
change2 = pop();
push(change1 + change2);
... | 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, interface, ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u770145133|p02263|0 | u770145133|p02263|0 | codenet | Compile Error | 723 | |
v2_s416140888 | s416140888 | s416140888 | p02263 | p02263 | u910402677 | u910402677 | 1,486,612,704 | 2017-02-09T03:58:24 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in)
.useDelimiter("[\\s]+");
private static final MAX = 101;
private static int[] st = new int[MAX]:
private int top;
public static void main(String[] args){
initialize();
while(scan.hasNext()){
String[]... | Main.java:6: error: <identifier> expected
private static final MAX = 101;
^
Main.java:7: error: ';' expected
private static int[] st = new int[MAX]:
^
Main.java:23: error: ';' expected
int n3 = pop()
^
Main.java:39: error: invalid... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02263|0 | u910402677|p02263|0 | codenet | Compile Error | 1,222 | |
v2_s761828787 | s761828787 | s761828787 | p02263 | p02263 | u910402677 | u910402677 | 1,486,612,825 | 2017-02-09T04:00:25 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in)
.useDelimiter("[\\s]+");
private static final int MAX = 101;
private static int[] st = new int[MAX];
private int top;
public static void main(String[] args){
initialize();
while(scan.hasNext()){
Stri... | Main.java:14: error: cannot find symbol
String[] cmd = nextLine();
^
symbol: method nextLine()
location: class Main
Main.java:40: error: non-static variable top cannot be referenced from a static context
top = 0;
^
Main.java:43: error: non-static variable top cannot be referenced from a s... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02263|0 | u910402677|p02263|0 | codenet | Compile Error | 1,232 | |
v2_s836130724 | s836130724 | s836130724 | p02263 | p02263 | u910402677 | u910402677 | 1,486,612,894 | 2017-02-09T04:01:34 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in)
.useDelimiter("[\\s]+");
private static final int MAX = 101;
private static int[] st = new int[MAX];
private static int top;
public static void main(String[] args){
initialize();
while(scan.hasNext()){
... | Main.java:14: error: incompatible types: String cannot be converted to String[]
String[] cmd = scan.nextLine();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02263|0 | u910402677|p02263|0 | codenet | Compile Error | 1,244 | |
v2_s260107100 | s260107100 | s260107100 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,387 | 2016-11-23T05:03:07 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
String in2 = formula.poll();
... | Main.java:31: error: cannot find symbol
if(ans==(int)ans){
^
symbol: variable ans
location: class Main
Main.java:31: error: cannot find symbol
if(ans==(int)ans){
^
symbol: variable ans
location: class Main
Main.java:32: error: cannot find symbol
Sy... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,347 | |
v2_s930269445 | s930269445 | s930269445 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,461 | 2016-11-23T05:04:21 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
String in2 = formula.poll();
... | Main.java:31: error: '.class' expected
if(double ans==(int)ans){
^
Main.java:31: error: not a statement
if(double ans==(int)ans){
^
Main.java:31: error: ';' expected
if(double ans==(int)ans){
^
Main.java:33: error: 'else' with... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,354 | |
v2_s372799083 | s372799083 | s372799083 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,721 | 2016-11-23T05:08:41 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
switch(input){
... | Main.java:27: error: ')' expected
if((ans=Double.parseDouble(formula.poll())==(int)ans){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,318 | |
v2_s490412857 | s490412857 | s490412857 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,738 | 2016-11-23T05:08:58 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
switch(input){
... | Main.java:27: error: ',', ')', or '[' expected
if((Double ans=Double.parseDouble(formula.poll())==(int)ans){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,325 | |
v2_s192057516 | s192057516 | s192057516 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,787 | 2016-11-23T05:09:47 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
switch(input){
... | Main.java:27: error: cannot find symbol
if((ans=Double.parseDouble(formula.poll()))==(int)ans){
^
symbol: variable ans
location: class Main
Main.java:27: error: cannot find symbol
if((ans=Double.parseDouble(formula.poll()))==(int)ans){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,319 | |
v2_s173583161 | s173583161 | s173583161 | p02263 | p02263 | u964619663 | u964619663 | 1,479,877,806 | 2016-11-23T05:10:06 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
switch(input){
... | Main.java:27: error: ',', ')', or '[' expected
if((Double ans=Double.parseDouble(formula.poll()))==(int)ans){
^
Main.java:27: error: illegal start of expression
if((Double ans=Double.parseDouble(formula.poll()))==(int)ans){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,326 | |
v2_s443279187 | s443279187 | s443279187 | p02263 | p02263 | u964619663 | u964619663 | 1,479,880,564 | 2016-11-23T05:56:04 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while((String input=scan.Next())!=NULL){
switch(input){
case "+":
... | Main.java:7: error: ',', ')', or '[' expected
while((String input=scan.Next())!=NULL){
^
Main.java:7: error: illegal start of expression
while((String input=scan.Next())!=NULL){
^
Main.java:7: error: ';' expected
while((String in... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 905 | |
v2_s639700440 | s639700440 | s639700440 | p02263 | p02263 | u964619663 | u964619663 | 1,479,881,005 | 2016-11-23T06:03:25 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
if(input.equals("+")) input = S... | Main.java:10: error: ')' expected
else if(input.equals("-") input = String.valueOf(-1*Integer.ParseInt(formula.poll())+Integer.ParseInt(formula.poll()));
^
Main.java:11: error: ')' expected
else if(input.equals("*") input = String.valueOf(Integer.ParseInt(for... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 757 | |
v2_s650604582 | s650604582 | s650604582 | p02263 | p02263 | u964619663 | u964619663 | 1,479,881,035 | 2016-11-23T06:03:55 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args){
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
String input = scan.next();
if(input.equals("+")) input = S... | Main.java:10: error: ')' expected
else if(input.equals("-") input = String.valueOf(-1*Integer.parseInt(formula.poll())+Integer.parseInt(formula.poll()));
^
Main.java:11: error: ')' expected
else if(input.equals("*") input = String.valueOf(Integer.parseInt(for... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 757 | |
v2_s784725904 | s784725904 | s784725904 | p02263 | p02263 | u964619663 | u964619663 | 1,479,887,153 | 2016-11-23T07:45:53 | Main.java | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Deque<String> formula = new ArrayDeque<String>();
Scanner scan = new Scanner(System.in);
while(scan.hasNext())
{
String input = scan.next();
int num2,num1;... | Main.java:45: error: method push in interface Deque<E> cannot be applied to given types;
System.out.printf(formula.push());
^
required: String
found: no arguments
reason: actual and formal argument lists differ in length
where E is a type-variable:
E extends Objec... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964619663|p02263|0 | u964619663|p02263|0 | codenet | Compile Error | 1,292 | |
v2_s818918667 | s818918667 | s818918667 | p02264 | p02264 | u179323374 | u179323374 | 1,523,949,766 | 2018-04-17T07:22:46 | Main.java | import java.util.Scanner;
class Main {
static int quantum = 0;
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
//プロセス数
int n = scan.nextInt();
String[] str = new String[n];
int[] data = new int[n];
//クオンタム
int q = scan.nextInt();
for (int i = 0; i < n; i++)... | Main.java:36: error: ')' or ',' expected
System.out.println(str[head] " " + quantum);
^
Main.java:36: error: not a statement
System.out.println(str[head] " " + quantum);
^
Main.java:36: error: ';' expected
System.out.println(str[hea... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u179323374|p02264|2 | u179323374|p02264|2 | codenet | Compile Error | 1,018 | |
v2_s943739996 | s943739996 | s943739996 | p02264 | p02264 | u179323374 | u179323374 | 1,523,950,927 | 2018-04-17T07:42:07 | Main.java | import java.util.Scanner;
class Main {
static int quantum = 0;
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
//プロセス数
int n = scan.nextInt();
String[] str = new String[n];
int[] data = new int[n];
//クオンタム
int q = scan.nextInt();
for (int i = 0; i < n; i++)... | Main.java:22: error: cannot find symbol
MainTest obj = new MainTest();
^
symbol: class MainTest
location: class Main
Main.java:22: error: cannot find symbol
MainTest obj = new MainTest();
^
symbol: class MainTest
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u179323374|p02264|2 | u179323374|p02264|2 | codenet | Compile Error | 1,014 | |
v2_s956553217 | s956553217 | s956553217 | p02264 | p02264 | u213503793 | u213503793 | 1,409,745,258 | 2014-09-03T11:54:18 | Main.java | import java.util.ArrayList;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int q = sc.nextInt();
Orique oq = new Orique();
for (int i = 0; i < n; i++) {
oq.inque(sc.next(), sc.nextInt());
}
sc.close();
oq.Ro... | Main.java:81: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213503793|p02264|1 | u213503793|p02264|0 | codenet | Compile Error | 1,444 | |
v2_s061710287 | s061710287 | s061710287 | p02264 | p02264 | u220932557 | u220932557 | 1,558,955,836 | 2019-05-27T11:17:16 | Main.java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:33: error: cannot find symbol
for(;!queue.isEnpty;) {
^
symbol: variable isEnpty
location: variable queue of type Queue<Integer>
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u220932557|p02264|0 | u220932557|p02264|0 | codenet | Compile Error | 1,185 | |
v2_s629764438 | s629764438 | s629764438 | p02264 | p02264 | u220932557 | u220932557 | 1,558,955,851 | 2019-05-27T11:17:31 | Main.java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:33: error: cannot find symbol
for(;!queue.isEnpty();) {
^
symbol: method isEnpty()
location: variable queue of type Queue<Integer>
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u220932557|p02264|0 | u220932557|p02264|0 | codenet | Compile Error | 1,187 | |
v2_s037579673 | s037579673 | s037579673 | p02264 | p02264 | u220932557 | u220932557 | 1,559,024,554 | 2019-05-28T06:22:34 | Main.java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:23: error: cannot find symbol
Queue<Integer> queue = new ConcurrentLinkedQueue<Integer>();
^
symbol: class ConcurrentLinkedQueue
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u220932557|p02264|1 | u220932557|p02264|1 | codenet | Compile Error | 1,197 | |
v2_s518804117 | s518804117 | s518804117 | p02264 | p02264 | u364363882 | u364363882 | 1,514,527,432 | 2017-12-29T06:03:52 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Deque;
public class Main {
public static void main(String[] args) throws IOException, NumberFormatException {
// TODO ?????????????????????????????????????????????
BufferedRe... | Main.java:54: error: class Pair is public, should be declared in a file named Pair.java
public class Pair {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u364363882|p02264|0 | u364363882|p02264|0 | codenet | Compile Error | 1,380 | |
v2_s675861782 | s675861782 | s675861782 | p02264 | p02264 | u379769644 | u379769644 | 1,509,893,675 | 2017-11-05T14:54:35 | Main.java | import java.util.*;
class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNu... | Main.java:55: error: incompatible types: unexpected return value
return 0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379769644|p02264|0 | u379769644|p02264|0 | codenet | Compile Error | 1,245 | |
v2_s276440435 | s276440435 | s276440435 | p02264 | p02264 | u379769644 | u379769644 | 1,509,893,726 | 2017-11-05T14:55:26 | Main.java | class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNum];
int[] timeArr=... | Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:7: error: cannot find symb... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379769644|p02264|0 | u379769644|p02264|0 | codenet | Compile Error | 1,225 | |
v2_s280828695 | s280828695 | s280828695 | p02264 | p02264 | u379769644 | u379769644 | 1,509,893,733 | 2017-11-05T14:55:33 | Main.java | class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNum];
int[] timeArr=... | Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:7: error: cannot find symb... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379769644|p02264|0 | u379769644|p02264|0 | codenet | Compile Error | 1,204 | |
v2_s373136471 | s373136471 | s373136471 | p02264 | p02264 | u392271245 | u392271245 | 1,367,171,386 | 2013-04-28T17:49:46 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
new Main.run();
}
public void run(){
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int n = scan.nextInt();
int sTime = scan.nextInt();
Process[] schedule = new Process[n];
int count = n;
int j = ... | Main.java:4: error: cannot find symbol
new Main.run();
^
symbol: class run
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392271245|p02264|0 | u392271245|p02264|0 | codenet | Compile Error | 1,825 | |
v2_s098334860 | s098334860 | s098334860 | p02264 | p02264 | u422640469 | u422640469 | 1,517,482,295 | 2018-02-01T10:51:35 | Main.java |
import java.util.Scanner;
import com.sun.corba.se.impl.orbutil.closure.Constant;
public class Main {
public static int size = 5;
public static int interval = 100;
public static int head=0, tail=0;
public static boolean isFull() {
return (tail-head >= size) ? true : false;
}
public static boolean isEm... | Main.java:4: error: package com.sun.corba.se.impl.orbutil.closure does not exist
import com.sun.corba.se.impl.orbutil.closure.Constant;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u422640469|p02264|0 | u422640469|p02264|0 | codenet | Compile Error | 1,953 | |
v2_s659792995 | s659792995 | s659792995 | p02264 | p02264 | u460762955 | u460762955 | 1,516,255,544 | 2018-01-18T06:05:44 | Main.java | import java.util.*;
////queue for round robin
public class Main{
int processid = 0;
int val = 0;
QueueAizu(int a, int b){
processid = a;
val = b;
}
public static void main(String[] args) {
//
Scanner in = new Scanner(System.in);
int n = in.nextInt();
... | Main.java:7: error: invalid method declaration; return type required
QueueAizu(int a, int b){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u460762955|p02264|0 | u460762955|p02264|0 | codenet | Compile Error | 1,702 | |
v2_s445266529 | s445266529 | s445266529 | p02264 | p02264 | u461341971 | u461341971 | 1,486,275,472 | 2017-02-05T06:17:52 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Deque;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] str = br.... | Main.java:60: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u461341971|p02264|0 | u461341971|p02264|0 | codenet | Compile Error | 1,192 | |
v2_s630009313 | s630009313 | s630009313 | p02264 | p02264 | u497987689 | u497987689 | 1,527,700,002 | 2018-05-30T17:06:42 | Main.java | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in... | Main.java:51: error: cannot find symbol
private AizuQueue.Node.Queue head;
^
symbol: class Node
location: class AizuQueue
Main.java:52: error: cannot find symbol
private AizuQueue.Node.Queue tail;
^
symbol: class Node
location... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u497987689|p02264|0 | u497987689|p02264|0 | codenet | Compile Error | 3,139 | |
v2_s267212268 | s267212268 | s267212268 | p02264 | p02264 | u522020741 | u522020741 | 1,461,816,627 | 2016-04-28T04:10:27 | Main.java | import java.io.*;
class Main{
static ArrayDeque<Elem> dq;
static int size;
static int max;
static int time = 0;
static class Elem{
String s;
Integer i;
public Elem(String s, Integer i){
this.s = s;
... | Main.java:4: error: cannot find symbol
static ArrayDeque<Elem> dq;
^
symbol: class ArrayDeque
location: class Main
Main.java:41: error: cannot find symbol
dq = new ArrayDeque<>();
^
symbol: class ArrayDeque
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u522020741|p02264|0 | u522020741|p02264|0 | codenet | Compile Error | 1,573 | |
v2_s867347037 | s867347037 | s867347037 | p02264 | p02264 | u527059277 | u527059277 | 1,424,502,205 | 2015-02-21T07:03:25 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u527059277|p02264|0 | u527059277|p02264|0 | codenet | Compile Error | 1,368 | |
v2_s168839828 | s168839828 | s168839828 | p02264 | p02264 | u527059277 | u527059277 | 1,424,502,336 | 2015-02-21T07:05:36 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
Queue.QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" "... | Main.java:9: error: package Queue does not exist
Queue.QueueImpl qqq = new Queue().new QueueImpl();
^
Main.java:9: error: cannot find symbol
Queue.QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u527059277|p02264|0 | u527059277|p02264|0 | codenet | Compile Error | 1,386 | |
v2_s088184366 | s088184366 | s088184366 | p02264 | p02264 | u527059277 | u527059277 | 1,424,502,407 | 2015-02-21T07:06:47 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u527059277|p02264|0 | u527059277|p02264|0 | codenet | Compile Error | 1,368 | |
v2_s886275088 | s886275088 | s886275088 | p02264 | p02264 | u527059277 | u527059277 | 1,424,502,458 | 2015-02-21T07:07:38 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u527059277|p02264|0 | u527059277|p02264|0 | codenet | Compile Error | 1,354 | |
v2_s382486125 | s382486125 | s382486125 | p02264 | p02264 | u549271683 | u549271683 | 1,497,838,185 | 2017-06-19T02:09:45 | Sample_Queue.java | package Queue;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Sample_Queue {
static String ERRORMSG = "WHAT!?";
static class Process {
// ?????§???????????°?????????
final int MIN_NAME_LENGTH = 1;
final int MIN_TIME = 1;
final int MAX_NAME_LENGTH = 10;
final int MAX_TIME = ... | Sample_Queue.java:122: error: illegal escape character
System.out.println("??????????????????????????????????????\?????????????????????");
^
Sample_Queue.java:132: error: illegal escape character
System.out.println("????????????????????????????????????... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u549271683|p02264|0 | u549271683|p02264|0 | codenet | Compile Error | 4,019 | |
v2_s179734084 | s179734084 | s179734084 | p02264 | p02264 | u562648818 | u562648818 | 1,498,556,244 | 2017-06-27T09:37:24 | Main.java | import java.util.Scanner;
class Queue{
Process[] a = new Process[100000];
int head;
int tail;
Queue(){
head = 0;
tail = 0;
}
void enqueue(Process p){
if(tail+1 == a.length)
tail = 0;
else
tail++
a[tail] = p;
}
Process dequeue(){
if(head+1 == a.length)
head ... | Main.java:17: error: ';' expected
tail++
^
Main.java:26: error: ';' expected
head++
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u562648818|p02264|0 | u562648818|p02264|0 | codenet | Compile Error | 1,434 | |
v2_s394753854 | s394753854 | s394753854 | p02264 | p02264 | u564767946 | u564767946 | 1,510,899,261 | 2017-11-17T06:14:21 | Main.java | import java.util.*;
import java.lang.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int n = Integer.parseInt(line[0]);
int work = Integer.parseInt(line[1]);
int sumTime = 0;
ArrayD... | Main.java:41: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u564767946|p02264|0 | u564767946|p02264|0 | codenet | Compile Error | 1,124 | |
v2_s216710162 | s216710162 | s216710162 | p02264 | p02264 | u604774382 | u604774382 | 1,431,519,458 | 2015-05-13T12:17:38 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String[] str = kb.readLine().split( " " );
int n = Integer.parseInt( str[0] );
int... | Main.java:13: error: cannot find symbol
LinkedList<Ps> queue = new LinkedList<Ps>();
^
symbol: class Ps
location: class Main
Main.java:13: error: cannot find symbol
LinkedList<Ps> queue = new LinkedList<Ps>();
^
sym... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u604774382|p02264|0 | u604774382|p02264|0 | codenet | Compile Error | 1,388 | |
v2_s016488747 | s016488747 | s016488747 | p02264 | p02264 | u733647639 | u733647639 | 1,530,169,431 | 2018-06-28T07:03:51 | Main.java | import java.util.*;
import java.io.*;
class Main{
public static void main(String[] args) throws IOFxception{
Scanner S=new Scanner(System.in);
int i,n,m,t=0;
Queue<String>P=new LinkedList<String>();
Queue<Integer>T=new LinkedList<Integer>();
n=S.nextInt();
m=S.nextInt();
for(i=0;i<n;i++){
P.add(S.next(... | Main.java:5: error: cannot find symbol
public static void main(String[] args) throws IOFxception{
^
symbol: class IOFxception
location: class Main
Main.java:20: error: bad operand types for binary operator '+'
t=t+T;
^
first type: int
second type: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u733647639|p02264|0 | u733647639|p02264|0 | codenet | Compile Error | 549 | |
v2_s941469901 | s941469901 | s941469901 | p02264 | p02264 | u734723169 | u734723169 | 1,535,899,337 | 2018-09-02T14:42:17 | Main.java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:7: error: cannot find symbol
public static P[] Q = new P[LEN];
^
symbol: class P
location: class Main
Main.java:10: error: cannot find symbol
public static void enqueue(P x) {
^
symbol: class P
location: class Main
Main.java:15: error: cannot find symbo... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02264|0 | u734723169|p02264|0 | codenet | Compile Error | 900 | |
v2_s415749830 | s415749830 | s415749830 | p02264 | p02264 | u734723169 | u734723169 | 1,535,899,374 | 2018-09-02T14:42:54 | Main.java | import java.util.Scanner;
public class Main {
static int LEN = 100005;
static P[] Q = new P[LEN];
static int head, tail, n;
static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
static int min(int a, int b) {
... | Main.java:7: error: cannot find symbol
static P[] Q = new P[LEN];
^
symbol: class P
location: class Main
Main.java:10: error: cannot find symbol
static void enqueue(P x) {
^
symbol: class P
location: class Main
Main.java:15: error: cannot find symbol
static P dequeue() {
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02264|0 | u734723169|p02264|0 | codenet | Compile Error | 858 | |
v2_s540664793 | s540664793 | s540664793 | p02264 | p02264 | u734723169 | u734723169 | 1,535,899,443 | 2018-09-02T14:44:03 | Main.java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:55: error: class, interface, enum, or record expected
package alds1_3_b_Queue;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02264|0 | u734723169|p02264|0 | codenet | Compile Error | 1,194 | |
v2_s524100936 | s524100936 | s524100936 | p02264 | p02264 | u734723169 | u734723169 | 1,535,899,453 | 2018-09-02T14:44:13 | Main.java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:55: error: class P is public, should be declared in a file named P.java
public class P {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02264|0 | u734723169|p02264|0 | codenet | Compile Error | 1,168 | |
v2_s438971549 | s438971549 | s438971549 | p02264 | p02264 | u754727064 | u754727064 | 1,425,387,467 | 2015-03-03T12:57:47 | Main.java | import java.io.*;
class Main{
private Node first, last;
public Queue(){
int n, limit = 0, timeSt = 0;
String[] tmp;
Node[] process;
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in), 1);
try{
tmp = br.readLine().split(" ");
n = Integer.parseInt(tmp[0]);
limit = Integer.... | Main.java:6: error: invalid method declaration; return type required
public Queue(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u754727064|p02264|0 | u754727064|p02264|0 | codenet | Compile Error | 1,659 | |
v2_s228845384 | s228845384 | s228845384 | p02264 | p02264 | u794549850 | u794549850 | 1,493,132,453 | 2017-04-25T15:00:53 | Main.java | import java.util.*;
class process {
private String name;
private int time;
public process(String name,int time){
this.name = name;
this.time = time;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setTime(int time) {
... | Main.java:70: error: cannot find symbol
QueueArray queue = new QueueArray(n);
^
symbol: class QueueArray
location: class Main
Main.java:70: error: cannot find symbol
QueueArray queue = new QueueArray(n);
^
symbol: class QueueArray
location: class Main
Main.java:74: err... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u794549850|p02264|0 | u794549850|p02264|0 | codenet | Compile Error | 1,967 | |
v2_s251444218 | s251444218 | s251444218 | p02264 | p02264 | u889908059 | u889908059 | 1,530,238,980 | 2018-06-29T02:23:00 | 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_s336391846 | s336391846 | s336391846 | p02264 | p02264 | u889908059 | u889908059 | 1,530,239,086 | 2018-06-29T02:24:46 | 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_s493694456 | s493694456 | s493694456 | p02264 | p02264 | u889908059 | u889908059 | 1,530,239,092 | 2018-06-29T02:24:52 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.