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_s307928058 | s307928058 | s307928058 | p02276 | p02276 | u137514493 | u137514493 | 1,531,192,654 | 2018-07-10T03:17:34 | Main.java | public class Main{
static int p, q, a, n;
static int c;
static void dfs(int num, int den, int x, int k){
if(p*den==q*num){
c++;
return;
}
if(k==n)return;
if(p*den<q*num)return;
for(int i=x;i*den<=a;i++){
int nn = num*i+den;
int nd = i*den;
dfs(nn, nd, i, k+1);
}
}
public static void... | Main.java:21: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:21: 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 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 569 | |
v2_s836235840 | s836235840 | s836235840 | p02276 | p02276 | u137514493 | u137514493 | 1,531,192,768 | 2018-07-10T03:19:28 | Main.java | #include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
using namespace std;
int a,n,tp,tq;
void rec(int p,int q,int an,int &cnt,int k,int total)
{
if(total > a)return;
if(an > n)return;
if(p*tq > tp*q)return;
if(((n-an)*q+k*p)*tq < tp*k*q)return;
if(p == tp && q == tq)
{
cnt++;
... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<cstdio>
^
Main.java:6: error: class, interface, enum, or record expected
int ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 887 | |
v2_s516041787 | s516041787 | s516041787 | p02276 | p02276 | u137514493 | u137514493 | 1,531,192,790 | 2018-07-10T03:19:50 | Main.java | #include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
using namespace std;
int a,n,tp,tq;
void rec(int p,int q,int an,int &cnt,int k,int total)
{
if(total > a)return;
if(an > n)return;
if(p*tq > tp*q)return;
if(((n-an)*q+k*p)*tq < tp*k*q)return;
if(p == tp && q == tq)
{
cnt++;
... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<cstdio>
^
Main.java:6: error: class, interface, enum, or record expected
int ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 887 | |
v2_s463148290 | s463148290 | s463148290 | p02276 | p02276 | u137514493 | u137514493 | 1,531,192,799 | 2018-07-10T03:19:59 | Main.java | #include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
using namespace std;
int a,n,tp,tq;
void rec(int p,int q,int an,int &cnt,int k,int total)
{
if(total > a)return;
if(an > n)return;
if(p*tq > tp*q)return;
if(((n-an)*q+k*p)*tq < tp*k*q)return;
if(p == tp && q == tq)
{
cnt++;
... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<cstdio>
^
Main.java:6: error: class, interface, enum, or record expected
int ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 887 | |
v2_s186883889 | s186883889 | s186883889 | p02276 | p02276 | u137514493 | u137514493 | 1,531,193,514 | 2018-07-10T03:31:54 | Main.java | #include<iostream>
#include<algorithm>
#include<vector>
#include<cstdio>
using namespace std;
int a,n,tp,tq;
void rec(int p,int q,int an,int &cnt,int k,int total)
{
if(total > a)return;
if(an > n)return;
if(p*tq > tp*q)return;
if(((n-an)*q+k*p)*tq < tp*k*q)return;
if(p == tp && q == tq)
{
cnt++;
... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<vector>
^
Main.java:4: error: illegal character: '#'
#include<cstdio>
^
Main.java:6: error: class, interface, enum, or record expected
int ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 887 | |
v2_s888452231 | s888452231 | s888452231 | p02276 | p02276 | u137514493 | u137514493 | 1,531,194,118 | 2018-07-10T03:41:58 | Main.java | import java.util.Scanner;
public class Main{
static int p, q, a, n;
static int c;
static void dfs(int num, int den, int x, int k){
if(p*den==q*num){
c++;
return;
}
if(k==n)return;
if(p*den<q*num)return;
for(int i=x;i*den<=a;i++){
int nn = num*i+den;
int nd = i*den;
dfs(nn, nd, i, k+1);
... | Main.java:36: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 1,223 | |
v2_s288858742 | s288858742 | s288858742 | p02276 | p02276 | u137514493 | u137514493 | 1,531,194,509 | 2018-07-10T03:48:29 | Main.java | import java.util.Scanner;
public class Main{
static void dfs(int num, int den, int x, int k){
if(p*den==q*num){
c++;
return;
}
if(k==n)return;
if(p*den<q*num)return;
for(int i=x;i*den<=a;i++){
int nn = num*i+den;
int nd = i*den;
dfs(nn, nd, i, k+1);
}
}
public static v... | Main.java:22: error: illegal start of expression
static int p = sc.nextInt();
^
Main.java:26: error: illegal start of type
if((p|q|a|n)==0)break;
^
Main.java:26: error: <identifier> expected
if((p|q|a|n)==0)break;
^
Main.java:26: error: <identifier> expected
if((p|q|a|n)==0)break... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137514493|p02276|0 | u137514493|p02276|0 | codenet | Compile Error | 644 | |
v2_s285884192 | s285884192 | s285884192 | p02276 | p02276 | u281849135 | u281849135 | 1,529,721,154 | 2018-06-23T02:32:34 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
public class Main {
public static void main(String[] args) {
FS fs = new FS();
int n = fs.nextInt();
int a[] = new int[n];
for(int i=0;i<n;i++){
a[i]= fs.nextInt();
}... | Main.java:7: error: cannot find symbol
FS fs = new FS();
^
symbol: class FS
location: class Main
Main.java:7: error: cannot find symbol
FS fs = new FS();
^
symbol: class FS
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u281849135|p02276|0 | u281849135|p02276|0 | codenet | Compile Error | 1,091 | |
v2_s855316541 | s855316541 | s855316541 | p02276 | p02276 | u334885197 | u334885197 | 1,477,487,971 | 2016-10-26T13:19:31 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int A[]= new int[100000], i, q;
int n = Integer.parseInt(args[0]);
for(i=0; i<n; i++){
Scanner sc = new Scanner(System.in);
A[i] = sc.nextInt();
}
q = partition(A, 0, n-1);
for(i=0; i<n; i++){
if(i!=0) ... | Main.java:18: error: no suitable method found for print(String,int)
System.out.print("%d", A[i]);
^
method PrintStream.print(boolean) is not applicable
(actual and formal argument lists differ in length)
method PrintStream.print(char) is not applicable
(actual and formal argument... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u334885197|p02276|0 | u334885197|p02276|0 | codenet | Compile Error | 732 | |
v2_s040130830 | s040130830 | s040130830 | p02276 | p02276 | u334885197 | u334885197 | 1,477,529,909 | 2016-10-27T00:58:29 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int A[]= new int[1000001], i, q;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(i=0; i<n; i++){
Scanner sc = new Scanner(System.in);
A[i] = sc.nextInt();
}
q = partition(A, 0, n-1);
for(i=0; ... | Main.java:11: error: variable sc is already defined in method main(String[])
Scanner sc = new Scanner(System.in);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u334885197|p02276|2 | u334885197|p02276|1 | codenet | Compile Error | 757 | |
v2_s589539361 | s589539361 | s589539361 | p02276 | p02276 | u334885197 | u334885197 | 1,477,616,734 | 2016-10-28T01:05:34 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int A[]= new int[1000001], i, q;
Scanner s = new Scanner(System.in);
int n = s.nextInt();
for(i=0; i<n; i++){
A[i] = s.nextInt();
}
q = partition(A, 0, n-1);
for(i=0; i<n; i++){
if(i!=0) System.out.printf(" ... | Main.java:19: error: no suitable method found for printf(int)
System.out.printf(A[i]);
^
method PrintStream.printf(String,Object...) is not applicable
(argument mismatch; int cannot be converted to String)
method PrintStream.printf(Locale,String,Object...) is not applicable
(argu... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u334885197|p02276|3 | u334885197|p02276|2 | codenet | Compile Error | 710 | |
v2_s985439658 | s985439658 | s985439658 | p02276 | p02276 | u334885197 | u334885197 | 1,478,597,599 | 2016-11-08T09:33:19 | Main.java |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
int i, q;
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int A[]= new int[n]
for(i=0; i<n; i++){
A[i] = s.nextInt();
}
q = partition(A, 0, n-1);
for(i=0; i<n; i++){
if(i!=0) System.out.print... | Main.java:10: error: ';' expected
int A[]= new int[n]
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u334885197|p02276|4 | u334885197|p02276|3 | codenet | Compile Error | 710 | |
v2_s673232984 | s673232984 | s673232984 | p02276 | p02276 | u458004307 | u458004307 | 1,531,133,670 | 2018-07-09T10:54:30 | Main.java |
import java.util.*;
import com.sun.glass.ui.SystemClipboard;
/**
* A
*/
public class Main {
void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++) {
array[i] = sc.nextInt();
... | Main.java:4: error: package com.sun.glass.ui does not exist
import com.sun.glass.ui.SystemClipboard;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u458004307|p02276|0 | u458004307|p02276|0 | codenet | Compile Error | 1,217 | |
v2_s649016379 | s649016379 | s649016379 | p02276 | p02276 | u458004307 | u458004307 | 1,531,133,701 | 2018-07-09T10:55:01 | Main.java |
import java.util.*;
import com.sun.glass.ui.SystemClipboard;
/**
* A
*/
public class Main{
void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] array = new int[n];
for(int i=0; i<n; i++) {
array[i] = sc.nextInt();
... | Main.java:4: error: package com.sun.glass.ui does not exist
import com.sun.glass.ui.SystemClipboard;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u458004307|p02276|0 | u458004307|p02276|0 | codenet | Compile Error | 1,216 | |
v2_s080943958 | s080943958 | s080943958 | p02276 | p02276 | u559106458 | u559106458 | 1,529,403,080 | 2018-06-19T10:11:20 | Main.java | list=[]
def partition(p,r):
t=0
x=list[r]
i=p-1
j=p
while(j<r):
if(int(list[j])<=x):
i+=1
t=int(list[i])
list[i]=list[j]
list[j]=t
j+=1
t=int(list[i+1])
list[i+1]=list[r]
list[r]=t
return i+1
def main():
n=int(input())
i=0
while(i<n):
list.append(int(input()))
i+=1
q=partition(0,n-... | Main.java:1: error: class, interface, enum, or record expected
list=[]
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u559106458|p02276|0 | u559106458|p02276|0 | codenet | Compile Error | 531 | |
v2_s094691586 | s094691586 | s094691586 | p02276 | p02276 | u559106458 | u559106458 | 1,529,403,669 | 2018-06-19T10:21:09 | Main.java | list=[]
def partition(p,r):
t=0
x=list[r]
i=p-1
j=p
while(j<r):
if(int(list[j])<=x):
i+=1
t=int(list[i])
list[i]=list[j]
list[j]=t
j+=1
t=int(list[i+1])
list[i+1]=list[r]
list[r]=t
return i+1
def main():
n=int(input())
i=0
while(i<n):
list.append(int(input().split()))
i+=1
q=partit... | Main.java:1: error: class, interface, enum, or record expected
list=[]
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u559106458|p02276|0 | u559106458|p02276|0 | codenet | Compile Error | 539 | |
v2_s992111685 | s992111685 | s992111685 | p02276 | p02276 | u563967927 | u563967927 | 1,531,125,321 | 2018-07-09T08:35:21 | Main.java | #include<stdio.h>
#define Max 100000
int partition(int *,int,int);
int main(void){
int n,i,A[Max],x;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&A[i]);
}
x=partition(A,0,n-1);
for(i=0;i<n;i++){
if(i==x && i==n-1){
printf("[%d]\n",A[i]);
}
else if(i==x){
printf("[%d] ",... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:2: error: illegal character: '#'
#define Max 100000
^
Main.java:6: error: not a statement
int n,i,A[Max],x;
^
Main.java:6: error: not a statem... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u563967927|p02276|0 | u563967927|p02276|0 | codenet | Compile Error | 693 | |
v2_s098045297 | s098045297 | s098045297 | p02276 | p02276 | u713550401 | u713550401 | 1,559,604,380 | 2019-06-03T23:26:20 | Main.java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = scanner.nextInt();
int q = partiti... | Main.java:23: error: ')' expected
if (a[j] <=z x) {
^
Main.java:23: error: not a statement
if (a[j] <=z x) {
^
Main.java:23: error: ';' expected
if (a[j] <=z x) {
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u713550401|p02276|0 | u713550401|p02276|0 | codenet | Compile Error | 758 | |
v2_s534344151 | s534344151 | s534344151 | p02276 | p02276 | u713550401 | u713550401 | 1,559,604,410 | 2019-06-03T23:26:50 | Main.java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] a = new int[n];
for (int i = 0; i < n; i++) a[i] = scanner.nextInt();
int q = partiti... | Main.java:23: error: ')' expected
if (a[j] <=z x) {
^
Main.java:23: error: not a statement
if (a[j] <=z x) {
^
Main.java:23: error: ';' expected
if (a[j] <=z x) {
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u713550401|p02276|0 | u713550401|p02276|0 | codenet | Compile Error | 758 | |
v2_s655211321 | s655211321 | s655211321 | p02276 | p02276 | u763534154 | u763534154 | 1,465,752,650 | 2016-06-12T17:30:50 | Main.java | \import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int n, x;
static int[] A;
public static void main(String[] args) {
read();
int i = partition(A, 0, n - 1);
out(i);
}
static void out(int j) {
for (int i = 0; i < ... | Main.java:1: error: illegal character: '\'
\import java.util.Scanner;
^
Main.java:1: error: class, interface, enum, or record expected
\import java.util.Scanner;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u763534154|p02276|0 | u763534154|p02276|0 | codenet | Compile Error | 1,144 | |
v2_s998855133 | s998855133 | s998855133 | p02277 | p02277 | u003091509 | u003091509 | 1,459,252,145 | 2016-03-29T11:49:05 | Main.java | package quicksort;
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public clas... | Main.java:142: error: constructor Card in class Main.Card cannot be applied to given types;
Arrays.fill(L, new Card(0, ""));
^
required: int,String,int
found: int,String
reason: actual and formal argument lists differ in length
Main.java:143: error: constructor Card in class Main.Card cannot... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u003091509|p02277|0 | u003091509|p02277|0 | codenet | Compile Error | 4,763 | |
v2_s167567834 | s167567834 | s167567834 | p02277 | p02277 | u003091509 | u003091509 | 1,459,252,154 | 2016-03-29T11:49:14 | Main.java |
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public class Main {
class ... | Main.java:143: error: constructor Card in class Main.Card cannot be applied to given types;
Arrays.fill(L, new Card(0, ""));
^
required: int,String,int
found: int,String
reason: actual and formal argument lists differ in length
Main.java:144: error: constructor Card in class Main.Card cannot... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u003091509|p02277|0 | u003091509|p02277|0 | codenet | Compile Error | 4,746 | |
v2_s857887348 | s857887348 | s857887348 | p02277 | p02277 | u003091509 | u003091509 | 1,459,252,182 | 2016-03-29T11:49:42 | Main.java |
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public class Main {
class Ca... | Main.java:141: error: constructor Card in class Main.Card cannot be applied to given types;
Arrays.fill(L, new Card(0, ""));
^
required: int,String,int
found: int,String
reason: actual and formal argument lists differ in length
Main.java:142: error: constructor Card in class Main.Card cannot... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u003091509|p02277|0 | u003091509|p02277|0 | codenet | Compile Error | 4,744 | |
v2_s317005314 | s317005314 | s317005314 | p02277 | p02277 | u003091509 | u003091509 | 1,459,252,258 | 2016-03-29T11:50:58 | Main.java |
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
public class Main {
private ... | Main.java:141: error: constructor Card in class Main.Card cannot be applied to given types;
Arrays.fill(L, new Card(0, ""));
^
required: int,String,int
found: int,String
reason: actual and formal argument lists differ in length
Main.java:142: error: constructor Card in class Main.Card cannot... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u003091509|p02277|0 | u003091509|p02277|0 | codenet | Compile Error | 4,760 | |
v2_s041287898 | s041287898 | s041287898 | p02277 | p02277 | u120779516 | u120779516 | 1,487,928,366 | 2017-02-24T09:26:06 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
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());
Card... | Main.java:30: error: illegal escape character
sb.append(cards[i].picture).append(" ").append(cards[i].value).append("\n\
^
Main.java:30: error: unclosed string literal
sb.append(cards[i].picture).append(" ").ap... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u120779516|p02277|0 | u120779516|p02277|0 | codenet | Compile Error | 2,353 | |
v2_s951259283 | s951259283 | s951259283 | p02277 | p02277 | u236679854 | u236679854 | 1,501,008,975 | 2017-07-25T18:56:15 | Main.java | import java.io.IOException;
import java.util.Scanner;
class Main {
static boolean stable = true;
public static void main (String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.nextLine();
String[][] cards = new String[n][];
fo... | Main.java:45: error: cannot find symbol
stable &= !cointainsBetween(arr, Integer.parseInt(arr[j][1]), i, j);
^
symbol: variable j
location: class Main
Main.java:45: error: cannot find symbol
stable &= !cointainsBetween(arr, I... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u236679854|p02277|0 | u236679854|p02277|0 | codenet | Compile Error | 1,953 | |
v2_s808057128 | s808057128 | s808057128 | p02277 | p02277 | u278498480 | u278498480 | 1,517,775,724 | 2018-02-04T20:22:04 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(); Card A[] = new Card[n];
for(int i=0; i<n; i++){
A[i] = new Card();
A[i].pic = sc.next();
A... | Main.java:74: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u278498480|p02277|0 | u278498480|p02277|0 | codenet | Compile Error | 2,294 | |
v2_s347574079 | s347574079 | s347574079 | p02277 | p02277 | u334885197 | u334885197 | 1,478,353,062 | 2016-11-05T13:37:42 | Main.java | import java.util.Scanner;
class Card{
public String suit;
public int value;
}
public class Main{
public static void main(String[] args){
int i, q;
Card[] A = new Card[100000];
Card[] B = new Card[100000];
int stable = 1;
Scanner s = new Scanner(System.in);
int n = s.nextInt();
for(i=0; i<n; ... | Main.java:42: error: no suitable method found for println(String,String,int)
System.out.println("%s%d", A[i].suit, A[i].value);
^
method PrintStream.println() is not applicable
(actual and formal argument lists differ in length)
method PrintStream.println(boolean) is not applicable
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u334885197|p02277|0 | u334885197|p02277|0 | codenet | Compile Error | 2,160 | |
v2_s189908179 | s189908179 | s189908179 | p02277 | p02277 | u676874280 | u676874280 | 1,531,781,264 | 2018-07-16T22:47:44 | Main.java | class Main{
public static void main(String[] args) throws IOException{
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final StringBuilder sb = new StringBuilder();
final int n = Integer.parseInt(br.readLine());
final card[] A = new card[n];
fo... | Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class Main
Main.java:3: error: cannot find symbol
final BufferedReader br = new BufferedReader(new InputStreamReader... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u676874280|p02277|0 | u676874280|p02277|0 | codenet | Compile Error | 1,802 | |
v2_s726890200 | s726890200 | s726890200 | p02277 | p02277 | u985960528 | u985960528 | 1,443,115,868 | 2015-09-24T17:31:08 | Main.java | public static void swap(int[] arr, int l, int r) {
int tmp = arr[l];
arr[l] = arr[r];
arr[r] = tmp;
}
public static void quickSort(int[] arr) {
sort(arr, 0, arr.length - 1);
}
public static void sort(int[] arr, int left, int right) {
if (left >= right) {
r... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void swap(int[] arr, int l, int r) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u985960528|p02277|0 | u985960528|p02277|0 | codenet | Compile Error | 877 | |
v2_s953372899 | s953372899 | s953372899 | p02278 | p02278 | u211138527 | u211138527 | 1,439,638,716 | 2015-08-15T11:38:36 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
public static void main(Stirng[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readLine... | Main.java:9: error: cannot find symbol
public static void main(Stirng[] args) throws IOException{
^
symbol: class Stirng
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02278|0 | u211138527|p02278|0 | codenet | Compile Error | 658 | |
v2_s541306355 | s541306355 | s541306355 | p02278 | p02278 | u910402677 | u910402677 | 1,489,390,111 | 2017-03-13T07:28:31 | Main.java | import java.io.*;
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());
int[] W = new int[n];
String[] in = br.readLine().split(" ");
for(int i = 0; i < n; i++){
... | Main.java:7: error: cannot find symbol
BufferedReader br = new Bufferedreader(new InputStreamReader(System.in));
^
symbol: class Bufferedreader
location: class Main
Main.java:28: error: cannot find symbol
Arrays.sort(sorted);
^
symbol: variable Arrays
location: class Main
2 e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02278|0 | u910402677|p02278|0 | codenet | Compile Error | 981 | |
v2_s016538501 | s016538501 | s016538501 | p02279 | p02279 | u097204849 | u097204849 | 1,521,429,887 | 2018-03-19T03:24:47 | Main.java | import java.io.*;
import java.util.*;
public class Main{
static int count =0;
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
str = br.readLine();
int n = Integer.parseInt(str)... | Main.java:100: error: 'else' without 'if'
}else{
^
Main.java:105: error: <identifier> expected
System.out.print(ans.toString());
^
Main.java:105: error: <identifier> expected
System.out.print(ans.toString());
^
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u097204849|p02279|2 | u097204849|p02279|2 | codenet | Compile Error | 3,591 | |
v2_s902927141 | s902927141 | s902927141 | p02279 | p02279 | u207394722 | u207394722 | 1,531,440,175 | 2018-07-13T00:02:55 | Main.java | # coding=utf-8
def setDepth(index, Tree):
if Tree[index][1] == -1:
Tree[index][2] = 0
else :
Tree[index][2] = 1 + Tree[ Tree[index][1] ][2]
for i in Tree[index][4]:
setDepth(i, Tree)
def main():
# データ入力
n = int( input() )
Tree = [] # 0=>n-1まで, [id, parent, depth, type, [... | Main.java:1: error: illegal character: '#'
# coding=utf-8
^
Main.java:1: error: class, interface, enum, or record expected
# coding=utf-8
^
Main.java:11: error: illegal character: '#'
# ?????
^
Main.java:13: error: illegal character: '#'
Tree = [] # 0=>n-1??, [id, parent, depth, type, [child]]
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u207394722|p02279|0 | u207394722|p02279|0 | codenet | Compile Error | 1,492 | |
v2_s279990712 | s279990712 | s279990712 | p02279 | p02279 | u211138527 | u211138527 | 1,439,645,226 | 2015-08-15T13:27:06 | Main.java | import java.io*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static boolean[] hasParent;
static class Node{
int id;
int p;
int rank;
int k;
int[] c;
String type;
Node(int id){
this.id=id; this.p=-1; this.rank=-1; this.type="";
}
}
... | Main.java:1: error: ';' expected
import java.io*;
^
Main.java:71: error: not a statement
privte static int setRank(int now,Node[] ns){
^
Main.java:71: error: ';' expected
privte static int setRank(int now,Node[] ns){
^
Main.java:71: error: illegal start of expression
privte static int setRank(int no... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02279|0 | u211138527|p02279|0 | codenet | Compile Error | 1,625 | |
v2_s425996757 | s425996757 | s425996757 | p02279 | p02279 | u211138527 | u211138527 | 1,439,645,397 | 2015-08-15T13:29:57 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static boolean[] hasParent;
static class Node{
int id;
int p;
int rank;
int k;
int[] c;
String type;
Node(int id){
this.id=id; this.p=-1; this.rank=-1; this.type="";
}
}
... | Main.java:23: error: cannot find symbol
BufferedReader br=new BufferedReader(new InputSreamReader(System.in));
^
symbol: class InputSreamReader
location: class Main
Main.java:33: error: variable n is already defined in method main(String[])
Node n=ns[id];
^
Main.java:... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02279|0 | u211138527|p02279|0 | codenet | Compile Error | 1,629 | |
v2_s396853465 | s396853465 | s396853465 | p02279 | p02279 | u211138527 | u211138527 | 1,439,645,590 | 2015-08-15T13:33:10 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static boolean[] hasParent;
static class Node{
int id;
int p;
int rank;
int k;
int[] c;
String type;
Node(int id){
this.id=id; this.p=-1; this.rank=-1; this.type="";
}
}
... | Main.java:46: error: cannot find symbol
Arrays.sort(ns.c);
^
symbol: variable c
location: variable ns of type Node[]
Main.java:54: error: cannot find symbol
StringBuilder sb=new StringBuider();
^
symbol: class StringBuider
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02279|0 | u211138527|p02279|0 | codenet | Compile Error | 1,642 | |
v2_s605444569 | s605444569 | s605444569 | p02279 | p02279 | u213849509 | u213849509 | 1,425,051,166 | 2015-02-27T15:32:46 | Main.java |
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Scanner;
import lombok.Data;
public class Main {
public static void main(String[] args) {
new Main().run();
}
private void run() {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
Node[] T = new Node[n];
for (in... | Main.java:6: error: package lombok does not exist
import lombok.Data;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213849509|p02279|1 | u213849509|p02279|0 | codenet | Compile Error | 2,025 | |
v2_s992707936 | s992707936 | s992707936 | p02279 | p02279 | u323357326 | u323357326 | 1,465,395,673 | 2016-06-08T14:21:13 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
new Main.solve();
}
void solve() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();// the number of nodes
Rooted_tree rt = new Rooted_tree(n);
for (int i = 0; i < n; i++) {
int id = sc.nextInt();
int k ... | Main.java:5: error: cannot find symbol
new Main.solve();
^
symbol: class solve
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02279|0 | u323357326|p02279|0 | codenet | Compile Error | 2,243 | |
v2_s740396932 | s740396932 | s740396932 | p02279 | p02279 | u323357326 | u323357326 | 1,465,395,716 | 2016-06-08T14:21:56 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
new Main.solve();
}
void solve() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();// the number of nodes
Rooted_tree rt = new Rooted_tree(n);
for (int i = 0; i < n; i++) {
int id = sc.nextInt();
int k ... | Main.java:5: error: cannot find symbol
new Main.solve();
^
symbol: class solve
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02279|0 | u323357326|p02279|0 | codenet | Compile Error | 2,243 | |
v2_s369823572 | s369823572 | s369823572 | p02279 | p02279 | u381495450 | u381495450 | 1,497,414,101 | 2017-06-14T04:21:41 | 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 NumberFormatException, IOException {
Node[] nodes = input();
StringBuilder stringBuilder = new StringBu... | Main.java:54: error: class Node is public, should be declared in a file named Node.java
public class Node {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u381495450|p02279|0 | u381495450|p02279|0 | codenet | Compile Error | 3,024 | |
v2_s196338228 | s196338228 | s196338228 | p02279 | p02279 | u458004307 | u458004307 | 1,531,450,851 | 2018-07-13T03:00:51 | A_.java |
import java.util.*;
/**
* A_
*/
public class A_ {
public static void main(String[] args) {
run();
}
public static void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
//node set
Node[] node = new Node[n];
boolean[] root = new... | A_.java:87: error: ';' expected
sb.append(node[i].tree)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u458004307|p02279|0 | u458004307|p02279|0 | codenet | Compile Error | 2,113 | |
v2_s427692083 | s427692083 | s427692083 | p02279 | p02279 | u458004307 | u458004307 | 1,531,450,861 | 2018-07-13T03:01:01 | Main.java |
import java.util.*;
/**
* A_
*/
public class Main {
public static void main(String[] args) {
run();
}
public static void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
//node set
Node[] node = new Node[n];
boolean[] root = n... | Main.java:87: error: ';' expected
sb.append(node[i].tree)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u458004307|p02279|0 | u458004307|p02279|0 | codenet | Compile Error | 2,115 | |
v2_s144063854 | s144063854 | s144063854 | p02279 | p02279 | u477658167 | u477658167 | 1,497,496,187 | 2017-06-15T03:09:47 | Main.java | #include<stdio.h>
#define N 100000
#define NIL -1
struct Node{
int p, l, r;
};
struct Node T[N];
int n, H, D[N];
int getDepth(int);
void print(int);
int main(){
int i, j, d, v, c, l;
scanf("%d", &n);
for ( i = 0; i < n; i++ ){
T[i].p = NIL;
T[i].l = NIL;
T[i].r = NIL;
}
for ( 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:2: error: illegal character: '#'
#define N 100000
^
Main.java:3: error: illegal character: '#'
#define NIL -1
^
Main.java:7: error: class, interface, enum, ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02279|0 | u477658167|p02279|0 | codenet | Compile Error | 1,258 | |
v2_s233461401 | s233461401 | s233461401 | p02279 | p02279 | u544040886 | u544040886 | 1,529,472,073 | 2018-06-20T05:21:13 | Main.java | import java.util.Scanner;
public class Main {
public static Scanner sc = new Scanner(System.in);
public static class node{
String status,child;
String [] children;
int parent,depth,i;
node(){
child = sc.nextLine();
}
void spt(){
children = child.split(" ");
}
}
public static void pd(nod... | Main.java:23: error: ')' or ',' expected
branch[Integer.valueOf(branch[i].children[j]]) = i;
^
Main.java:23: error: not a statement
branch[Integer.valueOf(branch[i].children[j]]) = i;
^
Main.java:23: error: ';' expected
branch[Integer.valueOf(branc... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02279|1 | u544040886|p02279|1 | codenet | Compile Error | 808 | |
v2_s051312524 | s051312524 | s051312524 | p02279 | p02279 | u649764759 | u649764759 | 1,531,193,137 | 2018-07-10T03:25:37 | Main.java | #include <stdio.h>
#include <stdlib.h>
#define N 100005
#define NIL -1
typedef struct node{
int parent;
int right;
int left;
}Node;
Node T[N];
int n,D[N];
void print(int);
int main()
{
int i,j,d,v,c,l,r;
scanf("%d",&n);
for(i=0;i<n;i++){
T[i].parent = T[i].right = T[i].left = NIL;
}
for(i=0;i<n... | 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: '#'
#define N 100005
^
Main.java:4: error: illegal characte... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u649764759|p02279|0 | u649764759|p02279|0 | codenet | Compile Error | 1,155 | |
v2_s101480138 | s101480138 | s101480138 | p02279 | p02279 | u710383977 | u710383977 | 1,432,533,777 | 2015-05-25T06:02:57 | Main.java |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
//int numNode = scan.nextInt();
Tree tree = new Tree(scan.nextInt());
scan.nextLine();
tree.connectNode(scan);
tree.treeView();
}
}
class Tree{
int numNode;
HashMap<Integer, Node> n... | Main.java:121: error: cannot find symbol
SortStrategy strategy;
^
symbol: class SortStrategy
location: class SortContext
Main.java:124: error: cannot find symbol
public SortContext(int length, SortStrategy s){
^
symbol: class SortStrategy
location: class SortContext
2 erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u710383977|p02279|0 | u710383977|p02279|0 | codenet | Compile Error | 3,048 | |
v2_s288187220 | s288187220 | s288187220 | p02279 | p02279 | u759934006 | u759934006 | 1,368,974,975 | 2013-05-19T14:49:35 | Main.java | import java.util.ArrayList;
import java.util.StringTokenizer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
static Main main = new Main();
public static enum TYPE {
ROOT, INTR, LEAF
}
static String TYPE_ROOT = "root";
static String TYPE_INTR ... | Main.java:184: error: cannot find symbol
sb.append("depth = " + depth + ", ");
^
symbol: variable depth
location: class Main.Node
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p02279|1 | u759934006|p02279|0 | codenet | Compile Error | 3,769 | |
v2_s446122091 | s446122091 | s446122091 | p02279 | p02279 | u877840161 | u877840161 | 1,474,097,772 | 2016-09-17T07:36:12 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main{
public static void main(String[] args)throws IOException{
Node[] node = input();
print(node);
}
public static Node[] input() throws IOException{
... | Main.java:69: error: method getDepth() is already defined in class Node
public int getDepth(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u877840161|p02279|0 | u877840161|p02279|0 | codenet | Compile Error | 2,421 | |
v2_s243273185 | s243273185 | s243273185 | p02279 | p02279 | u960488816 | u960488816 | 1,471,488,293 | 2016-08-18T02:44:53 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
//Main????????????test????°?????????????????????????????????£????????????version
//main?????§??????????????£??????????????????????????????(method)????????... | Main.java:7: error: package org.junit does not exist
import org.junit.Test;
^
Main.java:19: error: cannot find symbol
@Test
^
symbol: class Test
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u960488816|p02279|2 | u960488816|p02279|2 | codenet | Compile Error | 2,828 | |
v2_s834320751 | s834320751 | s834320751 | p02279 | p02279 | u960488816 | u960488816 | 1,471,488,340 | 2016-08-18T02:45:40 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
//Main????????????test????°?????????????????????????????????£????????????version
//main?????§??????????????£??????????????????????????????(method)????????... | Main.java:7: error: package org.junit does not exist
import org.junit.Test;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u960488816|p02279|2 | u960488816|p02279|2 | codenet | Compile Error | 2,822 | |
v2_s240842298 | s240842298 | s240842298 | p02279 | p02279 | u960488816 | u960488816 | 1,471,488,522 | 2016-08-18T02:48:42 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
//Main????????????test????°?????????????????????????????????£????????????version
//main?????§??????????????£??????????????????????????????(method)???????... | Main.java:8: error: package org.junit does not exist
import org.junit.Test;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u960488816|p02279|2 | u960488816|p02279|2 | codenet | Compile Error | 2,829 | |
v2_s872005836 | s872005836 | s872005836 | p02279 | p02279 | u964312471 | u964312471 | 1,530,859,689 | 2018-07-06T06:48:09 | Main.java | mport java.util.Scanner;
public class Main{
static int[][] tree;
static int[]par;
public static void main(String[] args) {
int x,i,j,n,pn,swi=0,root = 0;
// TODO Auto-generated method stub
Scanner sca = new Scanner(System.in);
n=sca.nextInt();
tree = new int[n][n+1];
par=new int[n];
for(j=0... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964312471|p02279|0 | u964312471|p02279|0 | codenet | Compile Error | 1,334 | |
v2_s255550453 | s255550453 | s255550453 | p02280 | p02280 | u022215941 | u022215941 | 1,531,221,927 | 2018-07-10T11:25:27 | Main.java | #include <stdio.h>
#define NIL -1
#define MAX 10000
void print(int);
typedef struct{
int left,right,parent;
}node;
node T[MAX];
int n,D[MAX];
int H[MAX];
int main(){
int i,j;
int a,l,r;
int root;
scanf("%d",&n);
for(i=0;i<n;i++){
T[i].parent = NIL;
}
for(i=0;i<n;i++){
scanf("%d %d %d",&a,&l... | Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
^
Main.java:2: error: illegal character: '#'
#define NIL -1
^
Main.java:3: error: illegal character: '#'
#define MAX 10000
^
Main.java:8: error: class, interface, en... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u022215941|p02280|0 | u022215941|p02280|0 | codenet | Compile Error | 1,634 | |
v2_s482759700 | s482759700 | s482759700 | p02280 | p02280 | u477658167 | u477658167 | 1,497,491,596 | 2017-06-15T01:53:16 | Main.java | package binarytree;
import java.util.*;
import java.io.*;
public class Main {
static final int NONUM=-1;
public static void main(String[] args)throws IOException{
final Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
NODE[] n = new NODE[a];
for(int i=0;i<n.length;i++){
int id=sc.nextInt();
n[... | Main.java:97: error: reached end of file while parsing
String t;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02280|0 | u477658167|p02280|0 | codenet | Compile Error | 2,184 | |
v2_s276024747 | s276024747 | s276024747 | p02280 | p02280 | u710383977 | u710383977 | 1,426,128,707 | 2015-03-12T02:51:47 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int numNodes = scan.nextInt();
TempNodeData tempNodeData = new TempNodeData(scan);
Root root = new Root(tempNodeData);
Iterator<AbsNode> iter = root.treeIter();
while(i... | Main.java:73: error: cannot find symbol
tree.add(n);
^
symbol: variable n
location: class AbsNode
Main.java:107: error: method does not override or implement a method from a supertype
@Override
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u710383977|p02280|5 | u710383977|p02280|4 | codenet | Compile Error | 4,434 | |
v2_s389598913 | s389598913 | s389598913 | p02281 | p02281 | u211138527 | u211138527 | 1,439,652,358 | 2015-08-15T15:25:58 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static boolean[] hasParent;
static int root;
static class Node{
int id;
int p;
int rank;
int height;
int s;
int deg;
int l;
int r;
String type;
Node(int id){
this.id=id; this.p=-1; this.ran... | Main.java:26: error: array required, but Node found
if(ns[now].height==0) return;
^
Main.java:28: error: array required, but Node found
preorder(ns[now].l,ns);
^
Main.java:29: error: array required, but Node found
preorder(ns[now].r,ns);
^
Main.java:33: error: array required, but Node found
i... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02281|0 | u211138527|p02281|0 | codenet | Compile Error | 2,356 | |
v2_s633765020 | s633765020 | s633765020 | p02281 | p02281 | u379964443 | u379964443 | 1,481,047,120 | 2016-12-06T17:58:40 | Main.java | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
IOException {
new Main().run();
}
private void run() throws NumberFormatException, IOException {
Scanner scanner = new Scanner(System.in);
int n = scanne... | Main.java:6: error: ';' expected
public static void main(String[] args)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379964443|p02281|0 | u379964443|p02281|0 | codenet | Compile Error | 1,917 | |
v2_s324529710 | s324529710 | s324529710 | p02281 | p02281 | u379964443 | u379964443 | 1,481,070,461 | 2016-12-07T00:27:41 | Main.java | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws NumberFormatException,
IOException {
new Main().run();
}
private void run() throws NumberFormatException, IOException {
Scanner scanner = new Scanner(Syst... | Main.java:25: error: cannot find symbol
nodes[left].p = v;
^
symbol: variable v
location: class Main
Main.java:27: error: cannot find symbol
nodes[right].p = v;
^
symbol: variable v
location: class Main
2 errors... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379964443|p02281|1 | u379964443|p02281|0 | codenet | Compile Error | 2,031 | |
v2_s445217932 | s445217932 | s445217932 | p02282 | p02282 | u278498480 | u278498480 | 1,517,772,961 | 2018-02-04T19:36:01 | Main.java | import java.util.*
public class Main{
static Scanner sc = new Scanner(System.in);
static int n, pos;
static ArrayList<Integer> preorder = new ArrayList<Integer>();
static ArrayList<Integer> inorder = new ArrayList<Integer>();
public static BinaryTree reconstruction(int l, int r) ... | Main.java:1: error: ';' expected
import java.util.*
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u278498480|p02282|0 | u278498480|p02282|0 | codenet | Compile Error | 2,106 | |
v2_s597630485 | s597630485 | s597630485 | p02282 | p02282 | u282272858 | u282272858 | 1,468,172,072 | 2016-07-10T17:34:32 | Main.java | public class Main {
public static int[] pre, in, post;
public static int position, count;
public static void reconstruct(int left, int right) {
if (left >= right) return;
int root = pre[position++];
int middle = 0;
while (in[middle] != root) middle++;
reconstruct(le... | Main.java:15: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:15: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u282272858|p02282|0 | u282272858|p02282|0 | codenet | Compile Error | 1,025 | |
v2_s104788594 | s104788594 | s104788594 | p02283 | p02283 | u047929551 | u047929551 | 1,478,660,539 | 2016-11-09T03:02:19 | Main.java | import java.util.Scanner;
import java.lang.Integer;
import java.lang.StringBuilder;
import java.lang.Math;
class Node {
Node left;
Node right;
int value;
public Node (int x) {
this.value = x;
this.left = null;
this.right = null;
}
public void insert(int x) {
if (x < this.value) {
if... | Main.java:45: error: cannot find symbol
right.getStringOrder(buf);
^
symbol: method getStringOrder(StringBuilder)
location: variable right of type Node
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u047929551|p02283|1 | u047929551|p02283|1 | codenet | Compile Error | 2,688 | |
v2_s588174019 | s588174019 | s588174019 | p02283 | p02283 | u047929551 | u047929551 | 1,478,660,903 | 2016-11-09T03:08:23 | Main.java | 11
insert 8
insert 2
insert 3
insert 7
insert 22
insert 1
insert 10
insert 9
insert 15
insert 13
print
1 2 3 7 8 9 10 13 15 22
8 2 1 3 7 22 10 9 15 13
ozawa@ozamac-2:~/workspace/algo$ cat Main.java
import java.util.Scanner;
import java.lang.Integer;
import java.lang.StringBuilder;
import java.lang.Math;
class Node ... | Main.java:1: error: class, interface, enum, or record expected
11
^
Main.java:15: error: class, interface, enum, or record expected
ozawa@ozamac-2:~/workspace/algo$ cat Main.java
^
Main.java:17: error: class, interface, enum, or record expected
import java.lang.Integer;
^
Main.java:18: error: class, interf... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u047929551|p02283|1 | u047929551|p02283|1 | codenet | Compile Error | 2,656 | |
v2_s085005470 | s085005470 | s085005470 | p02283 | p02283 | u143447119 | u143447119 | 1,529,484,232 | 2018-06-20T08:43:52 | Main.java | import java.util.*;
public class Main {
static Node[] list;
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int m= sc.nextInt();
String s;
int reg=0;
int flag=1;
list=new Node[m];
for(int i=0;i<m;i++) list[i] = new Node();
... | Main.java:69: error: class Node is public, should be declared in a file named Node.java
public class Node{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u143447119|p02283|0 | u143447119|p02283|0 | codenet | Compile Error | 1,810 | |
v2_s673943497 | s673943497 | s673943497 | p02283 | p02283 | u161276603 | u161276603 | 1,463,633,380 | 2016-05-19T04:49:40 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scaner scan = new Scanner(System.in);
int input1 = scan.nextInt();
Tree main = new Tree(-2147483648);
for(int loopCount = 0; loopCount < input1; loopCount++) {
char[] s = scan.next().toCharArray();
if(s[0]==... | Main.java:5: error: cannot find symbol
Scaner scan = new Scanner(System.in);
^
symbol: class Scaner
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u161276603|p02283|0 | u161276603|p02283|0 | codenet | Compile Error | 1,429 | |
v2_s750647171 | s750647171 | s750647171 | p02283 | p02283 | u211138527 | u211138527 | 1,439,665,814 | 2015-08-15T19:10:14 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
Node root;
binarySear... | Main.java:28: error: non-static variable root cannot be referenced from a static context
if(root==null) root=new Node(v);
^
Main.java:28: error: non-static variable root cannot be referenced from a static context
if(root==null) root=new Node(v);
^
Main.java:33: error: non-static variable root cannot b... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02283|0 | u211138527|p02283|0 | codenet | Compile Error | 1,524 | |
v2_s854478389 | s854478389 | s854478389 | p02283 | p02283 | u211138527 | u211138527 | 1,439,665,841 | 2015-08-15T19:10:41 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
Node root;
bin... | Main.java:28: error: non-static variable root cannot be referenced from a static context
if(root==null) root=new Node(v);
^
Main.java:28: error: non-static variable root cannot be referenced from a static context
if(root==null) root=new Node(v);
^
Main.java:33: error: non-static variable root cannot b... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02283|0 | u211138527|p02283|0 | codenet | Compile Error | 1,531 | |
v2_s725432700 | s725432700 | s725432700 | p02283 | p02283 | u211138527 | u211138527 | 1,439,666,059 | 2015-08-15T19:14:19 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
private static ... | Main.java:56: error: incompatible types: int cannot be converted to Node
preorder(now.l.id);
^
Main.java:57: error: incompatible types: int cannot be converted to Node
preorder(now.r.id);
^
Main.java:62: error: incompatible types: int cannot be converted to Node
inorder(now.l.id);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02283|0 | u211138527|p02283|0 | codenet | Compile Error | 1,537 | |
v2_s257568334 | s257568334 | s257568334 | p02283 | p02283 | u211138527 | u211138527 | 1,439,666,620 | 2015-08-15T19:23:40 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
private static ... | Main.java:84: error: variable declaration not allowed here
if(st.hasMoreTokens()) int n=Integer.parseInt(st.nextToken());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02283|0 | u211138527|p02283|0 | codenet | Compile Error | 1,548 | |
v2_s548959239 | s548959239 | s548959239 | p02283 | p02283 | u320446607 | u320446607 | 1,460,440,662 | 2016-04-12T05:57:42 | Main.java |
class Node():
def __init__(self, key):
self.parent = None
self.left = None
self.right = None
self.key = key
class Tree():
def __init__(self):
self.root = None
def insert(self, key):
z = Node(key)
y = None
x = self.root
while x:
y = x
if z.key < x.key:
x = x.left
else:
x = x.right... | Main.java:2: error: '{' expected
class Node():
^
Main.java:9: error: '{' expected
class Tree():
^
Main.java:18: error: class, interface, enum, or record expected
if z.key < x.key:
^
Main.java:25: error: class, interface, enum, or record expected
elif z.key < y.key:
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u320446607|p02283|0 | u320446607|p02283|0 | codenet | Compile Error | 971 | |
v2_s550958214 | s550958214 | s550958214 | p02283 | p02283 | u406112655 | u406112655 | 1,531,197,977 | 2018-07-10T04:46:17 | Main.java | import java.util.Scanner;
class Main {
private final static String INSERT = "insert";
private static Tree ROOT = null;
private static Tree END = null;
public static void main(String... args) {
Scanner sc = new Scanner(System.in);
int times = Integer.parseInt(sc.next());
for (int i = 0; i < times;... | Main.java:14: error: ')' or ',' expected
insert(Integer.parseInt(sc.next());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u406112655|p02283|0 | u406112655|p02283|0 | codenet | Compile Error | 1,559 | |
v2_s547024329 | s547024329 | s547024329 | p02283 | p02283 | u477658167 | u477658167 | 1,498,092,901 | 2017-06-22T00:55:01 | Main.java | import java.io.*;
public class Main {
static NODE node;
static NODE root;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
... | Main.java:72: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02283|0 | u477658167|p02283|0 | codenet | Compile Error | 2,207 | |
v2_s884607543 | s884607543 | s884607543 | p02283 | p02283 | u477658167 | u477658167 | 1,498,093,003 | 2017-06-22T00:56:43 | Main.java | import java.io.*;
public class Main {
static NODE node;
static NODE root;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
... | Main.java:72: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02283|0 | u477658167|p02283|0 | codenet | Compile Error | 2,207 | |
v2_s497460459 | s497460459 | s497460459 | p02283 | p02283 | u477658167 | u477658167 | 1,498,093,031 | 2017-06-22T00:57:11 | Main.java | import java.io.*;
public class Main {
static NODE node;
static NODE root;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
... | Main.java:72: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02283|0 | u477658167|p02283|0 | codenet | Compile Error | 2,207 | |
v2_s721151121 | s721151121 | s721151121 | p02283 | p02283 | u770145133 | u770145133 | 1,531,188,410 | 2018-07-10T02:06:50 | Main.java | #include<stdio.h>
int main(){
return0;
}
| Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:6: error: class, interface, enum, or record expected
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u770145133|p02283|0 | u770145133|p02283|0 | codenet | Compile Error | 51 | |
v2_s743410080 | s743410080 | s743410080 | p02283 | p02283 | u813675766 | u813675766 | 1,525,170,492 | 2018-05-01T10:28:12 | Main.java | #include<iostream>
using namespace std;
struct Node{
int key;
Node *right, *parent, *left;
};
Node *root;
Node *NIL;
void insert(int k){
Node *y = NIL;
Node *x = root; // 走査用
Node *z;
z = (Node *)malloc(sizeof(Node));
z->key = k;
z->left = NIL;
z->right = NIL;
while(x != NIL... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
^
Main.java:4: error: class, interface, enum, or record expected
struct Node{
^
Main.java:6: error: class, interface, enum, or record expected
Node *right, *paren... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u813675766|p02283|0 | u813675766|p02283|0 | codenet | Compile Error | 1,234 | |
v2_s116984850 | s116984850 | s116984850 | p02283 | p02283 | u816319288 | u816319288 | 1,496,674,555 | 2017-06-05T14:55:55 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static Node root;
public static final String INSERT = "insert";
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n =Integer.parseInt... | Main.java:5: error: cannot find symbol
public static Node root;
^
symbol: class Node
location: class Main
Main.java:26: error: cannot find symbol
private static void insert(Node node){
^
symbol: class Node
location: class Main
Main.java:61: error: cannot find sym... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u816319288|p02283|0 | u816319288|p02283|0 | codenet | Compile Error | 1,770 | |
v2_s738991559 | s738991559 | s738991559 | p02283 | p02283 | u816319288 | u816319288 | 1,499,072,436 | 2017-07-03T09:00:36 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static final String INSERT = "insert";
public static final String PRINT = "print";
public static Node root;
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new In... | Main.java:31: error: unnamed classes are a preview feature and are disabled by default.
private static void insert(int key){
^
(use --enable-preview to enable unnamed classes)
Main.java:101: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u816319288|p02283|1 | u816319288|p02283|1 | codenet | Compile Error | 2,837 | |
v2_s688067194 | s688067194 | s688067194 | p02283 | p02283 | u964312471 | u964312471 | 1,531,192,062 | 2018-07-10T03:07:42 | Main.java | import java.util.Scanner;
public class Main{
static tree[] wd;
static int root =-1;
public static void main(String[] args) {
int i=0,j,n;
String x;
// TODO Auto-generated method stub
Scanner sca = new Scanner(System.in);
n=sca.nextInt();
wd=new tree[n];
for(j=0;j<n;j++){
x=... | Main.java:47: error: cannot find symbol
wd[data].setpar(y);
^
symbol: method setpar(int)
location: class tree
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u964312471|p02283|0 | u964312471|p02283|0 | codenet | Compile Error | 1,820 | |
v2_s003659971 | s003659971 | s003659971 | p02283 | p02283 | u994285422 | u994285422 | 1,531,367,750 | 2018-07-12T03:55:50 | Main.java | import java.util.*;
//二分探索木の節を表すクラスNode
//Javaプログラマのためのアルゴリズムとデータ構造 p.221参照
class Node{
Integer data;
Node left;
Node right;
Node(Integer data){
left = null;
right = null;
this.data = data;
}
}
//二分探索木を表すクラスBinarySearchTree
//Javaプログラマのためのアルゴリズムとデータ構造 p.223参照
public class Main{
Scanner sc = new Scanner(Sy... | Main.java:27: error: invalid method declaration; return type required
public ProblemA() {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u994285422|p02283|0 | u994285422|p02283|0 | codenet | Compile Error | 2,821 | |
v2_s840488763 | s840488763 | s840488763 | p02283 | p02283 | u994285422 | u994285422 | 1,531,367,840 | 2018-07-12T03:57:20 | Main.java | import java.util.*;
//二分探索木の節を表すクラスNode
//Javaプログラマのためのアルゴリズムとデータ構造 p.221参照
class Node{
Integer data;
Node left;
Node right;
Node(Integer data){
left = null;
right = null;
this.data = data;
}
}
//二分探索木を表すクラスBinarySearchTree
//Javaプログラマのためのアルゴリズムとデータ構造 p.223参照
public class Main{
Scanner sc = new Scanner(Sys... | Main.java:26: error: invalid method declaration; return type required
public ProblemA() {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u994285422|p02283|0 | u994285422|p02283|0 | codenet | Compile Error | 2,820 | |
v2_s631221909 | s631221909 | s631221909 | p02284 | p02284 | u211138527 | u211138527 | 1,439,667,738 | 2015-08-15T19:42:18 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
private static ... | Main.java:61: error: illegal start of type
else __insert(new Node(v));
^
Main.java:61: error: invalid method declaration; return type required
else __insert(new Node(v));
^
Main.java:61: error: illegal start of type
else __insert(new Node(v));
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02284|0 | u211138527|p02284|0 | codenet | Compile Error | 1,923 | |
v2_s370361749 | s370361749 | s370361749 | p02284 | p02284 | u211138527 | u211138527 | 1,439,724,047 | 2015-08-16T11:20:47 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
int deg;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null; this.deg=0;
}
}
private st... | Main.java:100: error: cannot find symbol
out.println((tree.find(n))?"yes":"no");
^
symbol: method find(int)
location: variable tree of type binarySearchTree
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02284|1 | u211138527|p02284|1 | codenet | Compile Error | 1,829 | |
v2_s571229671 | s571229671 | s571229671 | p02284 | p02284 | u381495450 | u381495450 | 1,498,539,741 | 2017-06-27T05:02:21 | Main.java | import java.util.Scanner;
import java.io.IOException;
class Main {
public static void main(String[] args) throws IOException{
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
Node root = null;
for(int i = 0;i < m;i++){
String str = scan.next();
... | Main.java:36: error: cannot find symbol
if(Z.id < parent.id){
^
symbol: variable id
location: variable Z of type Node
Main.java:36: error: cannot find symbol
if(Z.id < parent.id){
^
symbol: variable id
location: variable parent of type Node... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u381495450|p02284|0 | u381495450|p02284|0 | codenet | Compile Error | 2,952 | |
v2_s313283595 | s313283595 | s313283595 | p02284 | p02284 | u768801062 | u768801062 | 1,531,041,660 | 2018-07-08T09:21:00 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
new Main().run();
}
public void run() {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
final int n = In... | Main.java:55: error: cannot find symbol
exist = false;
^
symbol: variable exist
location: class Tree
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768801062|p02284|0 | u768801062|p02284|0 | codenet | Compile Error | 2,724 | |
v2_s460673283 | s460673283 | s460673283 | p02284 | p02284 | u775197714 | u775197714 | 1,531,745,247 | 2018-07-16T12:47:27 | Main.java | mport java.util.Scanner;
public class Main {
static private Scanner s = new Scanner(System.in);
static Node root = null;
static StringBuilder sb = new StringBuilder();
public static void main(String[] args) {
int n = s.nextInt();
String str = new String();
for(int i = 0;i < n;i++) {
str = s.next();
if(str.equ... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u775197714|p02284|0 | u775197714|p02284|0 | codenet | Compile Error | 1,575 | |
v2_s881195189 | s881195189 | s881195189 | p02285 | p02285 | u143447119 | u143447119 | 1,529,486,414 | 2018-06-20T09:20:14 | Main.java | mport java.util.Scanner;
public class Main {
static Node[] list;
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int m= Integer.parseInt(sc.next());
String s;
int reg=0;
int flag=1;
int reg2;
list=new Node[m];
for(int i=0... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u143447119|p02285|0 | u143447119|p02285|0 | codenet | Compile Error | 2,111 | |
v2_s123888016 | s123888016 | s123888016 | p02285 | p02285 | u211138527 | u211138527 | 1,439,725,875 | 2015-08-16T11:51:15 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null;
}
}
private static Node root;
... | Main.java:90: error: cannot find symbol
p.id=left.id;
^
symbol: variable p
location: class binarySearchTree
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02285|0 | u211138527|p02285|0 | codenet | Compile Error | 2,486 | |
v2_s433206498 | s433206498 | s433206498 | p02285 | p02285 | u211138527 | u211138527 | 1,439,726,139 | 2015-08-16T11:55:39 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
long id;
Node p;
Node l;
Node r;
Node(long id){
this.id=id; this.p=null; this.l=null; this.r=null;
}
}
private static Node root... | Main.java:136: error: cannot find symbol
n=Integer.parseLong(st.nextToken());
^
symbol: method parseLong(String)
location: class Integer
Main.java:141: error: incompatible types: possible lossy conversion from long to int
out.println((tree.find(n))?"yes":"no");
^
Main.java:144: err... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02285|0 | u211138527|p02285|0 | codenet | Compile Error | 2,491 | |
v2_s334425740 | s334425740 | s334425740 | p02285 | p02285 | u211138527 | u211138527 | 1,439,727,765 | 2015-08-16T12:22:45 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class binarySearchTree{
static class Node{
int id;
Node p;
Node l;
Node r;
Node(int id){
this.id=id; this.p=null; this.l=null; this.r=null;
}
}
private static Node root;
... | Main.java:92: error: cannot find symbol
else y.r=left.r;
^
symbol: variable left
location: class binarySearchTree
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02285|0 | u211138527|p02285|0 | codenet | Compile Error | 2,485 | |
v2_s259633359 | s259633359 | s259633359 | p02285 | p02285 | u391462065 | u391462065 | 1,505,081,924 | 2017-09-10T22:18:44 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
new Main().exec();
}
public void exec() throws IOExcepti... | Main.java:22: error: illegal start of expression
bst.inse???t(Integer.parseInt(cmd.substring(7)));
^
Main.java:22: error: illegal start of expression
bst.inse???t(Integer.parseInt(cmd.substring(7)));
^
Main.java:22: error: : expected
bst.inse???t(Integer.parseInt(cmd.substring(7))... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u391462065|p02285|0 | u391462065|p02285|0 | codenet | Compile Error | 6,943 | |
v2_s400082623 | s400082623 | s400082623 | p02285 | p02285 | u391462065 | u391462065 | 1,505,082,135 | 2017-09-10T22:22:15 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
new Main().exec();
}
public void exec() throws IOExcepti... | Main.java:22: error: illegal start of expression
bst.inse???t(Integer.parseInt(cmd.substring(7)));
^
Main.java:22: error: illegal start of expression
bst.inse???t(Integer.parseInt(cmd.substring(7)));
^
Main.java:22: error: : expected
bst.inse???t(Integer.parseInt(cmd.substring(7))... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u391462065|p02285|0 | u391462065|p02285|0 | codenet | Compile Error | 6,407 | |
v2_s447869243 | s447869243 | s447869243 | p02285 | p02285 | u477658167 | u477658167 | 1,498,093,276 | 2017-06-22T01:01:16 | Main.java | public class Main {
static List<NODE> T = new ArrayList<Main.NODE>();
static class NODE {
public int key;
public NODE left;
public NODE right;
public NODE parent;
}
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedRea... | Main.java:191: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02285|0 | u477658167|p02285|0 | codenet | Compile Error | 4,309 | |
v2_s306686635 | s306686635 | s306686635 | p02285 | p02285 | u477658167 | u477658167 | 1,498,093,290 | 2017-06-22T01:01:30 | Main.java | public class Main {
static List<NODE> T = new ArrayList<Main.NODE>();
static class NODE {
public int key;
public NODE left;
public NODE right;
public NODE parent;
}
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedRea... | Main.java:2: error: cannot find symbol
static List<NODE> T = new ArrayList<Main.NODE>();
^
symbol: class List
location: class Main
Main.java:11: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u477658167|p02285|0 | u477658167|p02285|0 | codenet | Compile Error | 4,311 | |
v2_s658859561 | s658859561 | s658859561 | p02287 | p02287 | u011621222 | u011621222 | 1,541,073,366 | 2018-11-01T11:56:06 | Solution.java | public class Solution {
/**
* @param root, the root of binary tree.
* @return true if it is a complete binary tree, or false.
*/
public boolean isComplete(TreeNode root) {
if (root == null) {
return true;
}
Queue<TreeNode> queue = new LinkedList<TreeNode>();
queue.offer... | Solution.java:6: error: cannot find symbol
public boolean isComplete(TreeNode root) {
^
symbol: class TreeNode
location: class Solution
Solution.java:11: error: cannot find symbol
Queue<TreeNode> queue = new LinkedList<TreeNode>();
^
symbol: class Queue
location: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u011621222|p02287|2 | u011621222|p02287|2 | codenet | Compile Error | 902 | |
v2_s830591050 | s830591050 | s830591050 | p02287 | p02287 | u022215941 | u022215941 | 1,531,708,948 | 2018-07-16T02:42:28 | Main.java | #include <stdio.h>
#include <stdlib.h>
#define MAX 100000
typedef struct node * Node;
#define NIL NULL
int main(){
int i,j,n;
int A[MAX+1];
scanf("%d",&n);
for(i=1; i<n+1; i++){
scanf("%d",&A[i]);
}
for(i=1;i<n+1;i++){
printf("node %d: key %d, ",i,A[i]);
if(i>1)printf("parent key = %d,",A[i/2]);
if(i*2... | 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: '#'
#define MAX 100000
^
Main.java:6: error: illegal charac... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u022215941|p02287|0 | u022215941|p02287|0 | codenet | Compile Error | 432 | |
v2_s047117390 | s047117390 | s047117390 | p02287 | p02287 | u022215941 | u022215941 | 1,531,709,189 | 2018-07-16T02:46:29 | Main.java | #include <stdio.h>
#include <stdlib.h>
#define MAX 100000
typedef struct node * Node;
#define NIL NULL
int main(){
int i,j,n;
int A[MAX+1];
scanf("%d",&n);
for(i=1; i<n+1; i++){
scanf("%d",&A[i]);
}
for(i=1;i<n+1;i++){
printf("node %d: key = %d, ",i,A[i]);
if(i>1)printf("parent key = %d,",A[i/2]);
if(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:2: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:3: error: illegal character: '#'
#define MAX 100000
^
Main.java:6: error: illegal charac... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u022215941|p02287|0 | u022215941|p02287|0 | codenet | Compile Error | 434 | |
v2_s755749387 | s755749387 | s755749387 | p02287 | p02287 | u211138527 | u211138527 | 1,439,729,936 | 2015-08-16T12:58:56 | Main.java | import java.io.*;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int num=Integer.parseInt(br.readLine());
int[] heap=new int... | Main.java:43: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02287|0 | u211138527|p02287|0 | codenet | Compile Error | 949 | |
v2_s110373220 | s110373220 | s110373220 | p02287 | p02287 | u236679854 | u236679854 | 1,502,044,844 | 2017-08-06T18:40:44 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
class Main {
static Node root = null;
static StringBuilder sb = new StringBuilder("");
public static void main (String[] args) throws IOException {
Scanne... | Main.java:8: error: cannot find symbol
static Node root = null;
^
symbol: class Node
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u236679854|p02287|0 | u236679854|p02287|0 | codenet | Compile Error | 1,201 | |
v2_s597661340 | s597661340 | s597661340 | p02287 | p02287 | u763534154 | u763534154 | 1,472,425,741 | 2016-08-28T23:09:01 | Main.java | import com.sun.javaws.exceptions.InvalidArgumentException;
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int n;
static int[] H = new int[300];
public static final int NULL = 2 << 31 - 1;
public static void main(String[] args) {
read();
... | Main.java:1: error: package com.sun.javaws.exceptions does not exist
import com.sun.javaws.exceptions.InvalidArgumentException;
^
Main.java:63: error: cannot find symbol
public static int getParentKey(int ix) throws InvalidArgumentException {
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u763534154|p02287|0 | u763534154|p02287|0 | codenet | Compile Error | 1,805 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.