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_s008861712 | s008861712 | s008861712 | p02287 | p02287 | u798515260 | u798515260 | 1,532,048,242 | 2018-07-20T00:57:22 | Main.java | import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int H;
int[] A;
public static void main(String[] args){
A main = new A();
main.in();
main.out();
}
public void in(){
H = sc.nextInt();
A = new int[H + 1];
for(int ... | Main.java:11: error: cannot find symbol
A main = new A();
^
symbol: class A
location: class Main
Main.java:11: error: cannot find symbol
A main = new A();
^
symbol: class A
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798515260|p02287|0 | u798515260|p02287|0 | codenet | Compile Error | 1,045 | |
v2_s599457286 | s599457286 | s599457286 | p02287 | p02287 | u798515260 | u798515260 | 1,532,048,651 | 2018-07-20T01:04:11 | Main.java | import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int H;
int[] A;
public static void main(String[] args){
A main = new A();
main.in();
main.out();
}
public void in(){
H = sc.nextInt();
A = new int[H + 1];
for(int ... | Main.java:11: error: cannot find symbol
A main = new A();
^
symbol: class A
location: class Main
Main.java:11: error: cannot find symbol
A main = new A();
^
symbol: class A
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798515260|p02287|0 | u798515260|p02287|0 | codenet | Compile Error | 1,045 | |
v2_s889883529 | s889883529 | s889883529 | p02287 | p02287 | u798515260 | u798515260 | 1,532,048,670 | 2018-07-20T01:04:30 | Main.java | import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int H;
int[] A;
public static void main(String[] args){
Main main = new A();
main.in();
main.out();
}
public void in(){
H = sc.nextInt();
A = new int[H + 1];
for(i... | Main.java:11: error: cannot find symbol
Main main = new A();
^
symbol: class A
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798515260|p02287|0 | u798515260|p02287|0 | codenet | Compile Error | 1,048 | |
v2_s357986980 | s357986980 | s357986980 | p02287 | p02287 | u798515260 | u798515260 | 1,532,048,695 | 2018-07-20T01:04:55 | Main.java | import java.util.*;
public class Main{
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int H;
int[] A;
public static void main(String[] args){
A main = new Main();
main.in();
main.out();
}
public void in(){
H = sc.nextInt();
A = new int[H + 1];
for(i... | Main.java:11: error: cannot find symbol
A main = new Main();
^
symbol: class A
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798515260|p02287|0 | u798515260|p02287|0 | codenet | Compile Error | 1,048 | |
v2_s319067981 | s319067981 | s319067981 | p02287 | p02287 | u910402677 | u910402677 | 1,491,090,797 | 2017-04-01T23:53:17 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int h = scan.nextInt();
int[] a = new int[h+1];
for(int i = 1; i <= h; i++)
a[i] = scan.nextInt();
for(int i = 1; i<= h; i++)
print(a, i);
scan.close();
System.exit(0);
}
... | Main.java:27: error: cannot find symbol
if(i * 2 + 1 < a/length)
^
symbol: variable length
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02287|0 | u910402677|p02287|0 | codenet | Compile Error | 700 | |
v2_s908976892 | s908976892 | s908976892 | p02288 | p02288 | u206778360 | u206778360 | 1,493,170,853 | 2017-04-26T01:40:53 | Main.java | import java.util.Scanner;
import java.io.IOException;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int H = scan.nextInt();
int[] A = new int[H];
for(int i = 0; i < H; i++){
A[i] = scan.nextInt();
}
buildMaxHeap(A);
for(int i= 0; i < H; i++){
if(i ... | Main.java:32: error: illegal start of expression
if(large != i){???//i??????????????????????????????
^
Main.java:32: error: illegal start of expression
if(large != i){???//i??????????????????????????????
^
Main.java:32: error: illegal start of expression
if(large != i){???//i???... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u206778360|p02288|0 | u206778360|p02288|0 | codenet | Compile Error | 1,003 | |
v2_s271788761 | s271788761 | s271788761 | p02288 | p02288 | u206778360 | u206778360 | 1,493,170,886 | 2017-04-26T01:41:26 | Main.java | //API???????????????
import java.util.Scanner;
import java.io.IOException;
class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int H = scan.nextInt();
int[] A = new int[H];
for(int i = 0; i < H; i++){
A[i] = scan.nextInt();
}
buildMaxHeap(A);
for(int i= 0; ... | Main.java:33: error: illegal start of expression
if(large != i){???
^
Main.java:33: error: illegal start of expression
if(large != i){???
^
Main.java:33: error: illegal start of expression
if(large != i){???
^
Main.java:34: error: '.class' expected
int temp... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u206778360|p02288|0 | u206778360|p02288|0 | codenet | Compile Error | 1,024 | |
v2_s472785901 | s472785901 | s472785901 | p02288 | p02288 | u424720817 | u424720817 | 1,531,199,142 | 2018-07-10T05:05:42 | Main.java | n = int(input())
tree = list(map(int, input().split()))
def main() :
createHeap(n)
print('', ' '.join(map(str, tree)))
def createHeap(x):
for i in range((x - 1) // 2, -1, -1) :
maxHeap(i)
def maxHeap(i) :
if i * 2 + 1 >= n:
return
tmp = i * 2 + 1
if i * 2 + 2 < n :
i... | Main.java:1: error: class, interface, enum, or record expected
n = int(input())
^
Main.java:6: error: empty character literal
print('', ' '.join(map(str, tree)))
^
Main.java:26: error: unclosed character literal
if __name__ == '__main__':
^
Main.java:26: error: unclosed character literal
if... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u424720817|p02288|0 | u424720817|p02288|0 | codenet | Compile Error | 525 | |
v2_s741682247 | s741682247 | s741682247 | p02288 | p02288 | u759934006 | u759934006 | 1,516,463,698 | 2018-01-20T15:54:58 | Main.java | /**
* Heaps - Maximum Heap
*/
#include <iostream>
using namespace std;
int H, A[500000];
void heapfy(int *a, int i) {
int l, r;
l = i * 2;
r = i * 2 + 1;
int i_ = i;
if (l <= H && a[l] > a[i]) i_ = l;
if (r <= H && a[r] > a[i_]) i_ = r;
if (i_ != i) {
int tmp = a[i];
... | Main.java:5: error: illegal character: '#'
#include <iostream>
^
Main.java:5: error: class, interface, enum, or record expected
#include <iostream>
^
Main.java:9: error: class, interface, enum, or record expected
int H, A[500000];
^
Main.java:11: error: unnamed classes are a preview feature and are disabled by... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p02288|1 | u759934006|p02288|1 | codenet | Compile Error | 639 | |
v2_s673830157 | s673830157 | s673830157 | p02289 | p02289 | u011621222 | u011621222 | 1,556,576,829 | 2019-04-29T22:27:09 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
Heap heap = new Heap();
int i =0, k;
String[] actions;
String action= "";
while(!(action= in.nextLine()).equals("end")){
actions =... | Main.java:85: error: illegal start of expression
if(v=>this.heap[j]){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u011621222|p02289|10 | u011621222|p02289|4 | codenet | Compile Error | 2,593 | |
v2_s378856264 | s378856264 | s378856264 | p02289 | p02289 | u011621222 | u011621222 | 1,556,673,502 | 2019-05-01T01:18:22 | Main.java |
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
MyHeap heaponga = new MyHeap(2000000);
String input;
while (in.hasNext()) {
input = in.nextLine();
// Checamos para entrada do tipo "insert"
if (input.charAt(0) == 'i') {
String[]... | Main.java:92: error: bad operand types for binary operator '!='
if (heap[index] != null && heap[index * 2] != null && heap[(index * 2) + 1] != null) {
^
first type: int
second type: <null>
Main.java:92: error: bad operand types for binary operator '!='
if (heap[index] != null && heap[index * ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u011621222|p02289|14 | u011621222|p02289|4 | codenet | Compile Error | 2,838 | |
v2_s000628179 | s000628179 | s000628179 | p02289 | p02289 | u208027041 | u208027041 | 1,556,673,861 | 2019-05-01T01:24:21 | Main.java | import java.util.*;
class Main {
int heap[];
int pos;
int size;
public Main() {
this.heap = new int[2000000];
this.size = 2000000;
this.pos = 0;
}
void heapify(int i) {
int leftchild = (2*i) + 1;
int rightchild = (2*i) + 2;
int parent = i;
... | Main.java:72: error: illegal start of expression
import java.util.*;
^
Main.java:72: error: <identifier> expected
import java.util.*;
^
Main.java:72: error: illegal start of expression
import java.util.*;
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u208027041|p02289|1 | u208027041|p02289|1 | codenet | Compile Error | 4,610 | |
v2_s687060608 | s687060608 | s687060608 | p02289 | p02289 | u211138527 | u211138527 | 1,439,730,973 | 2015-08-16T13:16:13 | Main.java | import java.io.*;
import java.util.PriorityQueue;
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));
PriorityQueue<Integer> pque=new ... | Main.java:11: error: cannot find symbol
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>(){
^
symbol: class Comparator
location: class Main
Main.java:25: error: cannot find symbol
else out.println(pque.poll);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 725 | |
v2_s006146752 | s006146752 | s006146752 | p02289 | p02289 | u211138527 | u211138527 | 1,439,731,100 | 2015-08-16T13:18:20 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));
Pri... | Main.java:12: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Integer,Integer) in Comparator
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 750 | |
v2_s400871190 | s400871190 | s400871190 | p02289 | p02289 | u211138527 | u211138527 | 1,439,731,571 | 2015-08-16T13:26:11 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));
Pri... | Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:17: error: illegal start of type
});
^
Main.java:20: error... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 767 | |
v2_s891276888 | s891276888 | s891276888 | p02289 | p02289 | u211138527 | u211138527 | 1,439,731,598 | 2015-08-16T13:26:38 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));
Pri... | Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:18: error: : expected
});
^
Main.java:12: error: not a st... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 769 | |
v2_s532640490 | s532640490 | s532640490 | p02289 | p02289 | u211138527 | u211138527 | 1,439,731,653 | 2015-08-16T13:27:33 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));
Pri... | Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:12: error: illegal start of expression
PriorityQueue???pque=new PriorityQueue(10,new Comparator(){
^
Main.java:18: error: : expected
});
^
Main.java:12: error: not a st... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 769 | |
v2_s759315493 | s759315493 | s759315493 | p02289 | p02289 | u211138527 | u211138527 | 1,439,731,955 | 2015-08-16T13:32:35 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
class MyComparator implements Comparator{
public int compare(Object obj1,Object obj2){
int n1=(int)obj1;
int n2=(int)obj2;
return (n... | Main.java:19: error: non-static variable this cannot be referenced from a static context
PriorityQueue pque=new PriorityQueue(10,new MyComparator());
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 820 | |
v2_s111138306 | s111138306 | s111138306 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,146 | 2015-08-16T13:35:46 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static class MyComparator implements Comparator<Integer>{
public int compare(int n1,int n2){
return (n1>n2)?1:(n1<n2)?-1:0;
}
}
... | Main.java:10: error: MyComparator is not abstract and does not override abstract method compare(Integer,Integer) in Comparator
static class MyComparator implements Comparator<Integer>{
^
Main.java:18: error: type MyComparator does not take parameters
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 821 | |
v2_s850589875 | s850589875 | s850589875 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,581 | 2015-08-16T13:43:01 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: '(' or '[' expected
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>{
^
Main.java:15: error: illegal start of type
});
^
Main.java:17: error: illegal start of type
while(true){
^
Main.... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 750 | |
v2_s407564302 | s407564302 | s407564302 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,627 | 2015-08-16T13:43:47 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: '(' or '[' expected
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>{
^
Main.java:16: error: ';' expected
});
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 752 | |
v2_s875969485 | s875969485 | s875969485 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,754 | 2015-08-16T13:45:54 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: '(' or '[' expected
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>{
^
Main.java:16: error: ';' expected
});
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 748 | |
v2_s714030140 | s714030140 | s714030140 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,932 | 2015-08-16T13:48:52 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Integer,Integer) in Comparator
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 750 | |
v2_s442644433 | s442644433 | s442644433 | p02289 | p02289 | u211138527 | u211138527 | 1,439,732,995 | 2015-08-16T13:49:55 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Object,Object) in Comparator
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator(){
^
Note: Main.java uses unchecked or uns... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 741 | |
v2_s959018423 | s959018423 | s959018423 | p02289 | p02289 | u211138527 | u211138527 | 1,439,733,144 | 2015-08-16T13:52:24 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Integer,Integer) in Comparator
PriorityQueue<Integer> pque=new PriorityQueue<Integer>(10,new Comparator<Integer>(){
^
Main.java:13: err... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 760 | |
v2_s749415377 | s749415377 | s749415377 | p02289 | p02289 | u211138527 | u211138527 | 1,439,733,228 | 2015-08-16T13:53:48 | Main.java | import java.io.*;
import java.util.Comparator;
import java.util.PriorityQueue;
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));... | Main.java:12: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Object,Object) in Comparator
PriorityQueue pque=new PriorityQueue(10,new Comparator(){
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02289|0 | u211138527|p02289|0 | codenet | Compile Error | 723 | |
v2_s559235620 | s559235620 | s559235620 | p02289 | p02289 | u250895405 | u250895405 | 1,556,568,525 | 2019-04-29T20:08:45 | Main.java | import java.util.*;
// Java program to implement Max Heap
class MaxHeap {
private int[] Heap;
private int size;
private int maxsize;
// Constructor to initialize an
// empty max heap with given maximum
// capacity.
public MaxHeap(int maxsize)
{
this.maxsize = maxsize;
this.size = 0;
Heap = ne... | Main.java:106: error: class, interface, enum, or record expected
public Main{
^
Main.java:107: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] arg)
^
(use --enable-preview to enable unnamed classes)
Main.java:126: error: class,... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u250895405|p02289|0 | u250895405|p02289|0 | codenet | Compile Error | 2,696 | |
v2_s103499968 | s103499968 | s103499968 | p02289 | p02289 | u250895405 | u250895405 | 1,556,568,537 | 2019-04-29T20:08:57 | MaxHeap.java | import java.util.*;
// Java program to implement Max Heap
public class MaxHeap {
private int[] Heap;
private int size;
private int maxsize;
// Constructor to initialize an
// empty max heap with given maximum
// capacity.
public MaxHeap(int maxsize)
{
this.maxsize = maxsize;
this.size = 0;
He... | MaxHeap.java:106: error: class, interface, enum, or record expected
public Main{
^
MaxHeap.java:107: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] arg)
^
(use --enable-preview to enable unnamed classes)
MaxHeap.java:126: erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u250895405|p02289|0 | u250895405|p02289|0 | codenet | Compile Error | 2,703 | |
v2_s557005528 | s557005528 | s557005528 | p02289 | p02289 | u250895405 | u250895405 | 1,556,568,547 | 2019-04-29T20:09:07 | MaxHeap.java | import java.util.*;
// Java program to implement Max Heap
public class MaxHeap {
private int[] Heap;
private int size;
private int maxsize;
// Constructor to initialize an
// empty max heap with given maximum
// capacity.
public MaxHeap(int maxsize)
{
this.maxsize = maxsize;
this.size = 0;
He... | MaxHeap.java:106: error: class, interface, enum, or record expected
public Main{
^
MaxHeap.java:107: 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)
MaxHeap.java:126: err... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u250895405|p02289|0 | u250895405|p02289|0 | codenet | Compile Error | 2,704 | |
v2_s836870880 | s836870880 | s836870880 | p02289 | p02289 | u250895405 | u250895405 | 1,556,589,208 | 2019-04-30T01:53:28 | Main.java | import java.util.Scanner;
// Java program to implement Max Heap
public class MaxHeap {
private int[] Heap;
private int size;
private int maxsize;
// Constructor to initialize an
// empty max heap with given maximum
// capacity.
public MaxHeap(int maxsize)
{
this.maxsize = maxsize;
this.size = 0;... | Main.java:3: error: class MaxHeap is public, should be declared in a file named MaxHeap.java
public class MaxHeap {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u250895405|p02289|1 | u250895405|p02289|0 | codenet | Compile Error | 2,437 | |
v2_s272770023 | s272770023 | s272770023 | p02289 | p02289 | u406112655 | u406112655 | 1,531,806,422 | 2018-07-17T05:47:02 | Main.java | import java.util.Scanner;
class Main {
public static final int MAX = 2000001;
public static void main(String... args) {
Scanner sc = new Scanner(System.in);
int[] heap = new int[MAX];
int current = 0;
int tmp;
boolean flg = true;
while (flg) {
switch(sc.next().length()) {
ca... | Main.java:20: error: cannot find symbol
build(heap, current);
^
symbol: method build(int[],int)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u406112655|p02289|1 | u406112655|p02289|1 | codenet | Compile Error | 1,144 | |
v2_s964222635 | s964222635 | s964222635 | p02289 | p02289 | u422881805 | u422881805 | 1,520,676,657 | 2018-03-10T10:10:57 | Main.java |
import java.util.*;
public class Main {
static final int MAX = 2000000;
static int p = 0;
static int[] h = new int[MAX + 1];;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(true) {
String order = sc.next();
if (order.... | Main.java:50: error: cannot find symbol
ALDS1_9_B_MaximumHeap.maxHeapify(h, 1); // root????????????
^
symbol: variable ALDS1_9_B_MaximumHeap
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u422881805|p02289|0 | u422881805|p02289|0 | codenet | Compile Error | 1,276 | |
v2_s010179136 | s010179136 | s010179136 | p02294 | p02294 | u517313267 | u517313267 | 1,434,073,967 | 2015-06-12T01:52:47 | Main.java |
import java.util.*;
import java.math.BigDecimal;
class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int q = stdIn.nextInt();
for(int i=0;i<q;i++){
double x0 = stdIn.nextDouble();
double y0 = stdIn.nextDouble();
double x1 = stdIn.nextDouble();
double y1 = std... | Main.java:73: error: no suitable constructor found for Vector(double,double,double,double)
Vector s1 = new Vector(d.x,d.y,a.x,a.y);
^
constructor Vector.Vector(int,int) is not applicable
(actual and formal argument lists differ in length)
constructor Vector.Vector(int) is not applicable
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u517313267|p02294|0 | u517313267|p02294|0 | codenet | Compile Error | 6,386 | |
v2_s050140092 | s050140092 | s050140092 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,020 | 2018-01-22T05:13:40 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:60: error: ')' expected
bool b1 = (exteriorProduct(s1.p2.subtract(s1.p1), s2.p1) * exteriorProduct(s1.p2.subtract(s1.p1), s2.p2) < EPS
^
Main.java:61: error: ')' expected
bool... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,617 | |
v2_s846710743 | s846710743 | s846710743 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,127 | 2018-01-22T05:15:27 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:60: error: ';' expected
bool b1 = exteriorProduct(s1.p2.subtract(s1.p1), s2.p1) * exteriorProduct(s1.p2.subtract(s1.p1), s2.p2) < EPS
^
Main.java:61: error: ';' expected
bool... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,617 | |
v2_s546732801 | s546732801 | s546732801 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,152 | 2018-01-22T05:15:52 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:59: error: cannot find symbol
static bool cross(Segment s1, Segment s2) {
^
symbol: class bool
location: class Geometries
Main.java:46: error: constructor Point in class Geometries.Point cannot be applied to given types;
this(new Point(), new Point());
^
req... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,619 | |
v2_s989402946 | s989402946 | s989402946 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,267 | 2018-01-22T05:17:47 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(x - o.x) > EPS)
re... | Main.java:60: error: cannot find symbol
static bool cross(Segment s1, Segment s2) {
^
symbol: class bool
location: class Geometries
Main.java:16: error: cannot find symbol
if (Math.abs(x - o.x) > EPS)
^
symbol: variable EPS
location: class Point
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,456 | |
v2_s416094849 | s416094849 | s416094849 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,335 | 2018-01-22T05:18:55 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:46: error: constructor Point in class Geometries.Point cannot be applied to given types;
this(new Point(), new Point());
^
required: double,double
found: no arguments
reason: actual and formal argument lists differ in length
Main.java:46: error: constructor Point in class... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,622 | |
v2_s713649459 | s713649459 | s713649459 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,440 | 2018-01-22T05:20:40 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:56: error: cannot find symbol
bool b1 = exteriorProduct(s1.p2.subtract(s1.p1), s2.p1) * exteriorProduct(s1.p2.subtract(s1.p1), s2.p2) < EPS ;
^
symbol: class bool
location: class Geometries
Main.java:57: error: cannot find symbol
bool b2 = exteriorProduct(s2.p2.subtract(s2.p1), ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,540 | |
v2_s293365393 | s293365393 | s293365393 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,473 | 2018-01-22T05:21:13 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Geometries {
static double EPS = 1e-9;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
pu... | Main.java:82: error: cannot find symbol
Point p0, p1, p2, p3;
^
symbol: class Point
location: class Main
Main.java:83: error: cannot find symbol
p0 = new Point(xp0, yp0);
^
symbol: class Point
location: class Main
Main.java:84: error: cannot find symb... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,546 | |
v2_s829090138 | s829090138 | s829090138 | p02294 | p02294 | u864527629 | u864527629 | 1,516,598,576 | 2018-01-22T05:22:56 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.ab... | Main.java:16: error: cannot find symbol
if (Math.abs(x - o.x) > EPS)
^
symbol: variable EPS
location: class Point
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,548 | |
v2_s492677946 | s492677946 | s492677946 | p02294 | p02294 | u864527629 | u864527629 | 1,516,599,122 | 2018-01-22T05:32:02 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:58: error: cannot find symbol
boolean b2 = exteriorProduct(s2.p2.subtract(s2.p1), s1.p1.subtract(s2.p1)) * exteriorProduct(s2.p2.subtract(s2.p1), s1.p2subtract(s2.p1)) < EPS ;
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 2,487 | |
v2_s712758561 | s712758561 | s712758561 | p02294 | p02294 | u864527629 | u864527629 | 1,516,603,188 | 2018-01-22T06:39:48 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:65: error: ';' expected
static double innerProduct()
^
Main.java:100: error: ';' expected
return pos1.id * pos2.id <= 0 && pos3.id * pos4.id <= 0
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 3,360 | |
v2_s652627436 | s652627436 | s652627436 | p02294 | p02294 | u864527629 | u864527629 | 1,516,603,215 | 2018-01-22T06:40:15 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:98: error: ';' expected
return pos1.id * pos2.id <= 0 && pos3.id * pos4.id <= 0
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 3,326 | |
v2_s119356955 | s119356955 | s119356955 | p02294 | p02294 | u864527629 | u864527629 | 1,516,603,236 | 2018-01-22T06:40:36 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:98: error: variable pos4 might not have been initialized
return pos1.id * pos2.id <= 0 && pos3.id * pos4.id <= 0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 3,327 | |
v2_s429379478 | s429379478 | s429379478 | p02294 | p02294 | u864527629 | u864527629 | 1,516,603,289 | 2018-01-22T06:41:29 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:98: error: variable pos4 might not have been initialized
return ( (pos1.id * pos2.id) <= 0 && (pos3.id * pos4.id) <= 0 );
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 3,335 | |
v2_s099379956 | s099379956 | s099379956 | p02294 | p02294 | u864527629 | u864527629 | 1,516,603,331 | 2018-01-22T06:42:11 | Main.java | // package codecheck;
import java.util.Scanner;
import java.util.Arrays;
class Point implements Comparable<Point> {
static double EPS = 1e-9;
double x;
double y;
public Point(double x, double y) {
this.x = x;
this.y = y;
}
public int compareTo(Point o) {
if (Math.abs(... | Main.java:98: error: variable pos4 might not have been initialized
if ( (pos1.id * pos2.id) <= 0 && (pos3.id * pos4.id) <= 0 ) {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864527629|p02294|0 | u864527629|p02294|0 | codenet | Compile Error | 3,410 | |
v2_s282716271 | s282716271 | s282716271 | p02295 | p02295 | u113716229 | u113716229 | 1,498,446,020 | 2017-06-26T03:00:20 | Main.java | #include<bits/stdc++.h>
using namespace std;
struct CWW{
CWW(){
cin.tie(0);
ios_base::sync_with_stdio(0);
cout<<fixed<<setprecision(15);
}
}STAR;
using D=double;
const D EPS=1e-8;
const D INF=1e9;
const int COUNTER_CLOCKWISE=1;
const int CLOCKWISE=-1;
const int ONLINE_FRONT=2;
const ... | Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
^
Main.java:4: error: class, interface, enum, or record expected
struct CWW{
^
Main.java:7: error: class, interface, enum, or record expected
ios_ba... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u113716229|p02295|0 | u113716229|p02295|0 | codenet | Compile Error | 3,126 | |
v2_s238294427 | s238294427 | s238294427 | p02298 | p02298 | u512884261 | u512884261 | 1,519,969,414 | 2018-03-02T05:43:34 | Main.java | public class Main {
public static void main(String[] args) {
// 入力
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
List<Vector2d> p = new ArrayList<>();
for (int i=0; i<n; i++) {
double x = sc.nextDouble();
double y = sc.nextDouble();
p.add(new Vector2d(x, y));
}
sc.close();
System... | Main.java:33: error: cannot find symbol
public static int solve(List<Vector2d> p) {
^
symbol: class List
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u512884261|p02298|0 | u512884261|p02298|0 | codenet | Compile Error | 957 | |
v2_s073195629 | s073195629 | s073195629 | p02302 | p02302 | u758581602 | u758581602 | 1,496,511,232 | 2017-06-03T17:33:52 | Main.java | 3
0 0
1 0
0 1
20
0 0 0 10
0 0 1 10
0 0 1 100
0 0 1 1000
0 0 2 80
0 0 2 10
0 0 3 120
0 0 3 50
0 0 4 25
0 0 5 8
0 0 5 5
0 0 8 4
0 0 25 16
0 0 82 24
0 0 100 5
0 0 100 4
0 0 100 3
0 0 100 2
0 0 100 1
0 0 100 0 | Main.java:1: error: class, interface, enum, or record expected
3
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u758581602|p02302|0 | u758581602|p02302|0 | codenet | Compile Error | 205 | |
v2_s767772571 | s767772571 | s767772571 | p02303 | p02303 | u657035709 | u657035709 | 1,436,080,824 | 2015-07-05T07:20:24 | Main.java | import java.util.*;
class Main{
// for two points x(x0,x1) and y(y0,y1), what is the squared distance?
public static Double dist(Double[] x, Double[] y) {
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2);
}
// only need to return a value if ... | Main.java:99: error: cannot find symbol
StdOut.println(L);
^
symbol: variable StdOut
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657035709|p02303|0 | u657035709|p02303|0 | codenet | Compile Error | 9,832 | |
v2_s683904796 | s683904796 | s683904796 | p02303 | p02303 | u657035709 | u657035709 | 1,436,084,412 | 2015-07-05T08:20:12 | Main.java | import java.util.*;
class Main {
// for two points x(x0,x1) and y(y0,y1), what is the squared distance?
public static Double dist(Double[] x, Double[] y) {
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2);
}
// only need to return a value if... | Main.java:95: error: cannot find symbol
StdOut.println("HUNG!");
^
symbol: variable StdOut
location: class Main
Main.java:151: error: cannot find symbol
StdOut.println("FUCK!");
^
symbol: variable StdOut
location: class Main
2 e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657035709|p02303|0 | u657035709|p02303|0 | codenet | Compile Error | 10,032 | |
v2_s697723384 | s697723384 | s697723384 | p02303 | p02303 | u657035709 | u657035709 | 1,436,091,144 | 2015-07-05T10:12:24 | Main.java | # #### CLOSEST PAIR O(N LOG N) ALGORITHM #### #
# points should be unique, otherwise the closest pair would be the repeated points
# also this will only find 1 pair with the smallest distance, in case there are multiple pairs with this same minimum distance
#import time
#start = time.time()
def dist(x, y): # for two... | Main.java:1: error: illegal character: '#'
# #### CLOSEST PAIR O(N LOG N) ALGORITHM #### #
^
Main.java:1: error: illegal character: '#'
# #### CLOSEST PAIR O(N LOG N) ALGORITHM #### #
^
Main.java:1: error: illegal character: '#'
# #### CLOSEST PAIR O(N LOG N) ALGORITHM #### #
^
Main.java:1: error: illegal characte... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657035709|p02303|0 | u657035709|p02303|0 | codenet | Compile Error | 3,964 | |
v2_s740889694 | s740889694 | s740889694 | p02303 | p02303 | u657035709 | u657035709 | 1,436,136,685 | 2015-07-05T22:51:25 | Main.java | import java.util.*;
import java.text.DecimalFormat;
class Main {
// for two points x(x0,x1) and y(y0,y1), what is the squared distance?
public static Double dist(Double[] x, Double[] y) {
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2);
}
/... | Main.java:224: error: class, interface, enum, or record expected
}import java.util.*;
^
Main.java:225: error: class, interface, enum, or record expected
import java.text.DecimalFormat;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657035709|p02303|1 | u657035709|p02303|1 | codenet | Compile Error | 19,180 | |
v2_s519086814 | s519086814 | s519086814 | p02303 | p02303 | u657035709 | u657035709 | 1,436,136,753 | 2015-07-05T22:52:33 | Main.java | import java.util.*;
import java.text.DecimalFormat;
class Main {
// for two points x(x0,x1) and y(y0,y1), what is the squared distance?
public static Double dist(Double[] x, Double[] y) {
return Math.pow(x[0] - y[0], 2) + Math.pow(x[1] - y[1], 2);
}
/... | Main.java:224: error: class, interface, enum, or record expected
}import java.util.*;
^
Main.java:225: error: class, interface, enum, or record expected
import java.text.DecimalFormat;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657035709|p02303|1 | u657035709|p02303|1 | codenet | Compile Error | 19,180 | |
v2_s137481638 | s137481638 | s137481638 | p02305 | p02305 | u167493070 | u167493070 | 1,523,257,772 | 2018-04-09T07:09:32 | Main.java | public class Main {
public static void main(String args[]){
int cx1, cy1, r1;
int cx2, cy2, r2;
if(args.length != 0){
cx1 = Integer.valueOf(args[0]);
cy1 = Integer.valueOf(args[1]);
r1 = Integer.valueOf(args[2]);
cx2 = Integer.valueOf(args[3]);
cy2 = Integer.valueOf(args[4]);
r2 = Integer.va... | Main.java:17: error: 'else' without 'if'
else if(l > rlen*rlen)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u167493070|p02305|0 | u167493070|p02305|0 | codenet | Compile Error | 842 | |
v2_s045637124 | s045637124 | s045637124 | p02305 | p02305 | u960937651 | u960937651 | 1,523,295,289 | 2018-04-09T17:34:49 | Main.java | class ProblemA {
public static void main(String[] args) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String c1Line = br.readLine();
String c2Line = br.readLine();
String[] c1Array = c1Line.split(" ", 0);
String[] c2... | Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class ProblemA
Main.java:3: error: cannot find symbol
InputStreamReader is = new InputStreamReader(System.in);
^
symb... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u960937651|p02305|0 | u960937651|p02305|0 | codenet | Compile Error | 2,814 | |
v2_s200027038 | s200027038 | s200027038 | p02314 | p02314 | u121559572 | u121559572 | 1,487,290,166 | 2017-02-17T00:09:26 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = br.nextInt();
int m = br.nextInt();
int[] d = new int[m];
for (int i = 0; i < m; i++) {
d[i] = br.n... | Main.java:5: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:5: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u121559572|p02314|0 | u121559572|p02314|0 | codenet | Compile Error | 929 | |
v2_s901614109 | s901614109 | s901614109 | p02314 | p02314 | u121559572 | u121559572 | 1,487,510,297 | 2017-02-19T13:18:17 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int C[] = new int [m];
for(int i = 0;i < m;i++){
C[i] = sc.nextInt();
}
int ... | Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
static int getTheNumberOfCoin(int C[],int n,int m){
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u121559572|p02314|1 | u121559572|p02314|1 | codenet | Compile Error | 877 | |
v2_s740501984 | s740501984 | s740501984 | p02314 | p02314 | u121559572 | u121559572 | 1,487,510,345 | 2017-02-19T13:19:05 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int C[] = new int [m];
for(int i = 0;i < m;i++){
C[i] = sc.nextInt();
}
int ... | Main.java:15: error: unnamed classes are a preview feature and are disabled by default.
static int getTheNumberOfCoin(int C[],int n,int m){
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u121559572|p02314|1 | u121559572|p02314|1 | codenet | Compile Error | 855 | |
v2_s796152411 | s796152411 | s796152411 | p02314 | p02314 | u121559572 | u121559572 | 1,487,510,394 | 2017-02-19T13:19:54 | Main.java | import java.util.*;
public class Main {
static int getTheNumberOfCoin(int C[],int n,int m){
int T[] = new int[n + 1];
for(int i = 1;i < n + 1;i++){
T[i] = T[i - 1] + C[0];
}
for(int i = 0;i < m;i++){
for(int j = C[i];j < n + 1;j++){
if(... | Main.java:22: error: cannot find symbol
int m = s.cnextInt();
^
symbol: variable s
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u121559572|p02314|1 | u121559572|p02314|1 | codenet | Compile Error | 877 | |
v2_s987240849 | s987240849 | s987240849 | p02314 | p02314 | u211138527 | u211138527 | 1,439,734,773 | 2015-08-16T14:19:33 | Main.java | import java.io.*;
import jav.util.Arrays;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static final INF=Integer.MAX_VALUE/2;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.readL... | Main.java:7: error: <identifier> expected
static final INF=Integer.MAX_VALUE/2;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02314|0 | u211138527|p02314|0 | codenet | Compile Error | 737 | |
v2_s616287760 | s616287760 | s616287760 | p02314 | p02314 | u211138527 | u211138527 | 1,439,734,787 | 2015-08-16T14:19:47 | Main.java | import java.io.*;
import jav.util.Arrays;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
while((line=br.r... | Main.java:2: error: package jav.util does not exist
import jav.util.Arrays;
^
Main.java:19: error: cannot find symbol
Arrays.fill(dp[m],INF);
^
symbol: variable Arrays
location: class Main
Main.java:25: error: cannot find symbol
out.pritln(dp[0][n]);
^
symbol: method pritln(int)
location: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02314|0 | u211138527|p02314|0 | codenet | Compile Error | 741 | |
v2_s176379174 | s176379174 | s176379174 | p02314 | p02314 | u211138527 | u211138527 | 1,439,735,374 | 2015-08-16T14:29:34 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in)... | Main.java:21: error: ';' expected
dp[m][0]=0
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02314|0 | u211138527|p02314|0 | codenet | Compile Error | 856 | |
v2_s391608754 | s391608754 | s391608754 | p02314 | p02314 | u315554638 | u315554638 | 1,474,466,767 | 2016-09-21T14:06:07 | main.java | import java.io.*;
public class main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] input = br.readLine().split(" ");
int n = Integer.parseInt(input[0]);
if(n < 1 || n > 50000){
... | main.java:29: error: '.class' expected
if(int i = 0; i < m; i++){
^
main.java:29: error: > or ',' expected
if(int i = 0; i < m; i++){
^
main.java:29: error: not a statement
if(int i = 0; i < m; i++){
^
main.java:29: error: ';' exp... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u315554638|p02314|0 | u315554638|p02314|0 | codenet | Compile Error | 1,005 | |
v2_s432162930 | s432162930 | s432162930 | p02314 | p02314 | u377778881 | u377778881 | 1,459,501,336 | 2016-04-01T09:02:16 | Main.java | import java.util.Scanner;
public class Main {
public int count (int n, int[] coins) {
int m = coins.length;
int[] dp = new int[n+1];
for (int i = 1; i <= n; i++) {
dp[i] = 50000;
}
for (int i = 0; i < m; i++) {
for (int j = coins[i]; j <= n; j++) {
dp[j] = Math.min(dp[j], dp[j - coins[i]] + 1);
... | Main.java:19: error: duplicate class: Main
class Main {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u377778881|p02314|0 | u377778881|p02314|0 | codenet | Compile Error | 832 | |
v2_s032957660 | s032957660 | s032957660 | p02314 | p02314 | u461301234 | u461301234 | 1,443,795,464 | 2015-10-02T14:17:44 | Main.java | #include <stdio.h>
#include <algorithm>
#include <string.h>
using namespace std;
const int MAX_N=50000;
const int MAX_M=20;
const int INF=-1;
int d[MAX_M];
int dp[MAX_M+1][MAX_N+1];
int n,m;
void solve(){
for(int i=0;i<=m;i++){
for(int j=0;j<=n;j++){
if(i==0){
dp[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 <algorithm>
^
Main.java:3: error: illegal character: '#'
#include <string.h>
^
Main.java:6: error: class, inter... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u461301234|p02314|0 | u461301234|p02314|0 | codenet | Compile Error | 634 | |
v2_s442161078 | s442161078 | s442161078 | p02314 | p02314 | u461301234 | u461301234 | 1,443,795,492 | 2015-10-02T14:18:12 | Main.java | #include <stdio.h>
#include <algorithm>
#include <string.h>
using namespace std;
const int MAX_N=50000;
const int MAX_M=20;
const int INF=-1;
int d[MAX_M];
int dp[MAX_M+1][MAX_N+1];
int n,m;
void solve(){
for(int i=0;i<=m;i++){
for(int j=0;j<=n;j++){
if(i==0){
dp[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 <algorithm>
^
Main.java:3: error: illegal character: '#'
#include <string.h>
^
Main.java:6: error: class, inter... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u461301234|p02314|0 | u461301234|p02314|0 | codenet | Compile Error | 634 | |
v2_s949351497 | s949351497 | s949351497 | p02314 | p02314 | u497852372 | u497852372 | 1,559,200,472 | 2019-05-30T07:14:32 | Main.java | import java.util.Scanner;
public class Main{
public static int min_num(int coins[], int n, int start, int sum, int count){
if(sum > n)
return coins.length;
else if(sum == n)
return 0;
else
return Math.min(count + min_num(coins,n,start+1,sum-coins[start]), ... | Main.java:18: error: ')' or ',' expected
System.out.println(min_num(coins,n,0,0,0);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u497852372|p02314|0 | u497852372|p02314|0 | codenet | Compile Error | 681 | |
v2_s151255478 | s151255478 | s151255478 | p02314 | p02314 | u497852372 | u497852372 | 1,559,200,482 | 2019-05-30T07:14:42 | Main.java | import java.util.Scanner;
public class Main{
public static int min_num(int coins[], int n, int start, int sum, int count){
if(sum > n)
return coins.length;
else if(sum == n)
return 0;
else
return Math.min(count + min_num(coins,n,start+1,sum-coins[start]), ... | Main.java:9: error: method min_num in class Main cannot be applied to given types;
return Math.min(count + min_num(coins,n,start+1,sum-coins[start]), count + min_num(coins,n,start+1,sum));
^
required: int[],int,int,int,int
found: int[],int,int,int
reason: actual ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u497852372|p02314|0 | u497852372|p02314|0 | codenet | Compile Error | 682 | |
v2_s935046136 | s935046136 | s935046136 | p02314 | p02314 | u497852372 | u497852372 | 1,559,201,150 | 2019-05-30T07:25:50 | Main.java | import java.util.Scanner;
public class Main{
public static int min_num(int coins[], int n, int start){
if(start == coins.length)
return n;
else if(sum > n)
return n;
else if(sum == n)
return 0;
else
return Math.min(1 + min_num(coins,n-c... | Main.java:6: error: cannot find symbol
else if(sum > n)
^
symbol: variable sum
location: class Main
Main.java:8: error: cannot find symbol
else if(sum == n)
^
symbol: variable sum
location: class Main
Main.java:20: error: method min_num in class Main cannot be... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u497852372|p02314|0 | u497852372|p02314|0 | codenet | Compile Error | 690 | |
v2_s525552206 | s525552206 | s525552206 | p02314 | p02314 | u497852372 | u497852372 | 1,559,201,171 | 2019-05-30T07:26:11 | Main.java | import java.util.Scanner;
public class Main{
public static int min_num(int coins[], int n, int start){
if(start == coins.length)
return n;
else if(n < 0)
return n;
else if(n == 0)
return 0;
else
return Math.min(1 + min_num(coins,n-coins... | Main.java:20: error: method min_num in class Main cannot be applied to given types;
System.out.println(min_num(coins,n,0,0));
^
required: int[],int,int
found: int[],int,int,int
reason: actual and formal argument lists differ in length
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u497852372|p02314|0 | u497852372|p02314|0 | codenet | Compile Error | 686 | |
v2_s297282739 | s297282739 | s297282739 | p02314 | p02314 | u584453648 | u584453648 | 1,495,183,839 | 2017-05-19T08:50:39 | Main.java | class Main {
public static void main(String[] args){
Scanner s=new Scanner(System.in);
int n=s.nextInt();
int m=s.nextInt();
int R[]=new int[m];
int count=0;
for(int i=0;i<m;i++){
R[i]=s.nextInt();
}
for(int i=m-1;i>=0;i--){
while(n>R[i]){
n-=R[i];
count++;
}
} ... | Main.java:3: error: cannot find symbol
Scanner s=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner s=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u584453648|p02314|0 | u584453648|p02314|0 | codenet | Compile Error | 356 | |
v2_s785686558 | s785686558 | s785686558 | p02314 | p02314 | u639973166 | u639973166 | 1,457,491,743 | 2016-03-09T02:49:03 | Main.java | Scanner in=new Scanner(System.in);
int sumNeeded = in.nextInt();
int coins=in.nextInt();
ArrayList<Integer> values=new ArrayList<Integer>(coins);
for(int i=0;i<coins;i++){
values.add(in.nextInt());
}
Coll... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner in=new Scanner(System.in);
^
(use --enable-preview to enable unnamed classes)
Main.java:9: error: class, interface, enum, or record expected
for(int i=0;i<coins;i++){
^
Main.java:9: error: class,... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u639973166|p02314|0 | u639973166|p02314|0 | codenet | Compile Error | 1,267 | |
v2_s848182954 | s848182954 | s848182954 | p02314 | p02314 | u700120734 | u700120734 | 1,452,874,790 | 2016-01-15T16:19:50 | Main.java | import java.util.*;
class Main{
public static void main(String args[]){
Solve s = new Solve();
s.solve();
}
}
class Solve{
Scanner in = new Scanner(System.in);
void solve(){
int n = in.nextInt(), m = in.nextInt();
int[] c = new int[m];
for(int i= 0; i < m; i++) c[i] = in.nextInt();
int[] t = new int... | Main.java:24: error: cannot find symbol
t[j] = min(t[j], t[j-c[i]]+1);
^
symbol: method min(int,int)
location: class Solve
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u700120734|p02314|0 | u700120734|p02314|0 | codenet | Compile Error | 505 | |
v2_s527049999 | s527049999 | s527049999 | p02314 | p02314 | u752577338 | u752577338 | 1,496,391,661 | 2017-06-02T08:21:01 | Main.java | public static int count_min=100;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int coin[] = new int [m];
for(int i=0;i<m;++i){
coin[i]=scan.nextInt();
}
countWaysDP(coin,n,m,0);
System.out.println(count_min);
}
... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static int count_min=100;
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u752577338|p02314|0 | u752577338|p02314|0 | codenet | Compile Error | 816 | |
v2_s328383248 | s328383248 | s328383248 | p02314 | p02314 | u752577338 | u752577338 | 1,496,392,113 | 2017-06-02T08:28:33 | Main.java | import java.util.Scanner;
class Main {
public static int count_min=100;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int coin[] = new int [m];
for(int i=0;i<m;++i){
coin[i]=scan.nextInt();
}
Arrays.sort(coin);
cou... | Main.java:14: error: cannot find symbol
Arrays.sort(coin);
^
symbol: variable Arrays
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u752577338|p02314|0 | u752577338|p02314|0 | codenet | Compile Error | 879 | |
v2_s394318597 | s394318597 | s394318597 | p02314 | p02314 | u860843819 | u860843819 | 1,445,492,640 | 2015-10-22T05:44:00 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int[] c = new int[10000];
for (int i = 0; i < m; i++) {
d[... | Main.java:21: error: not a statement
dp[i] == 1;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860843819|p02314|0 | u860843819|p02314|0 | codenet | Compile Error | 563 | |
v2_s957154268 | s957154268 | s957154268 | p02314 | p02314 | u860843819 | u860843819 | 1,445,492,744 | 2015-10-22T05:45:44 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
int m = Integer.parseInt(sc.next());
int[] c = new int[10000];
for (int i = 0; i < m; i++) {
d[... | Main.java:12: error: cannot find symbol
d[i] = Integer.parseInt(sc.next());
^
symbol: variable d
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860843819|p02314|0 | u860843819|p02314|0 | codenet | Compile Error | 562 | |
v2_s317802828 | s317802828 | s317802828 | p02314 | p02314 | u980650508 | u980650508 | 1,509,639,900 | 2017-11-02T16:25:00 | Main.java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
int n, m;
int[] coins;
int[][][] dp;
public static void main(String[] args){
Q1 inst = new Q1();
inst.solve();
}
public void solve(){
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
m = sc.nextInt();
coins = new int[m];
... | Main.java:9: error: cannot find symbol
Q1 inst = new Q1();
^
symbol: class Q1
location: class Main
Main.java:9: error: cannot find symbol
Q1 inst = new Q1();
^
symbol: class Q1
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u980650508|p02314|0 | u980650508|p02314|0 | codenet | Compile Error | 935 | |
v2_s703053090 | s703053090 | s703053090 | p02315 | p02315 | u047929551 | u047929551 | 1,476,716,591 | 2016-10-17T15:03:11 | Main.java | import java.util.Scanner;
import java.lang.Integer;
import java.lang.Math;
class Item {
private int value;
private int weight;
private boolean choosed;
public Item(int value, int weight) {
this.set(value, weight);
}
public void set(int value, int weight) {
this.value = value;
this.weight = we... | Main.java:27: error: invalid method declaration; return type required
public choosed() {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u047929551|p02315|0 | u047929551|p02315|0 | codenet | Compile Error | 1,917 | |
v2_s021421609 | s021421609 | s021421609 | p02315 | p02315 | u108796149 | u108796149 | 1,525,320,232 | 2018-05-03T04:03:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int W=sc.nextInt();
int[] value=new int[n];
int[] weight=new int[n];
for(int i=0;i<n;i++) {
value[i]... | Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|0 | u108796149|p02315|0 | codenet | Compile Error | 1,126 | |
v2_s107579000 | s107579000 | s107579000 | p02315 | p02315 | u108796149 | u108796149 | 1,525,320,232 | 2018-05-03T04:03:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int W=sc.nextInt();
int[] value=new int[n];
int[] weight=new int[n];
for(int i=0;i<n;i++) {
value[i]... | Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|0 | u108796149|p02315|0 | codenet | Compile Error | 1,126 | |
v2_s832479423 | s832479423 | s832479423 | p02315 | p02315 | u108796149 | u108796149 | 1,525,320,232 | 2018-05-03T04:03:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int W=sc.nextInt();
int[] value=new int[n];
int[] weight=new int[n];
for(int i=0;i<n;i++) {
value[i]... | Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|0 | u108796149|p02315|0 | codenet | Compile Error | 1,126 | |
v2_s992736983 | s992736983 | s992736983 | p02315 | p02315 | u108796149 | u108796149 | 1,525,320,232 | 2018-05-03T04:03:52 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int W=sc.nextInt();
int[] value=new int[n];
int[] weight=new int[n];
for(int i=0;i<n;i++) {
value[i]... | Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=Math.max(dp[i][w-weight[i]]+value[i],dp[i][w]);
^
Main.java:50: error: illegal character: '\u3000'
????????dp[i+1][w]=... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|0 | u108796149|p02315|0 | codenet | Compile Error | 1,126 | |
v2_s730114081 | s730114081 | s730114081 | p02315 | p02315 | u108796149 | u108796149 | 1,528,605,938 | 2018-06-10T04:45:38 | Main.java | import java.util.Scanner;
import atcoder.Main;
public class Main {
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int W=sc.nextInt();
int[] w=new int[N];
int[] v=new... | Main.java:3: error: package atcoder does not exist
import atcoder.Main;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|2 | u108796149|p02315|2 | codenet | Compile Error | 1,048 | |
v2_s453274227 | s453274227 | s453274227 | p02315 | p02315 | u108796149 | u108796149 | 1,528,606,623 | 2018-06-10T04:57:03 | Main.java | import java.util.Scanner;
import atcoder.Main;
public class Main {
public static void main(String[] args) {
Main main=new Main();
main.run();
}
void run() {
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int W=sc.nextInt();
int[] w=new int[N];
int[] v=new... | Main.java:3: error: package atcoder does not exist
import atcoder.Main;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u108796149|p02315|2 | u108796149|p02315|2 | codenet | Compile Error | 988 | |
v2_s229365861 | s229365861 | s229365861 | p02315 | p02315 | u185951723 | u185951723 | 1,530,112,734 | 2018-06-27T15:18:54 | Main.java | // ナップザック問題を解くプログラム
public class Solver{
int num;
int capacity, answer;
int[] weight, value;
int[][] dp;
boolean[] knapsack;
// コンストラクタ
public Solver(int num, int[] weight, int[] value, int capacity) {
this.num = num;
this.weight = weight;
this.value = value;
... | Main.java:78: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u185951723|p02315|0 | u185951723|p02315|0 | codenet | Compile Error | 2,976 | |
v2_s902552318 | s902552318 | s902552318 | p02315 | p02315 | u185951723 | u185951723 | 1,530,112,839 | 2018-06-27T15:20:39 | Main.java | // ナップザック問題を解くプログラム
class Solver{
int num;
int capacity, answer;
int[] weight, value;
int[][] dp;
boolean[] knapsack;
// コンストラクタ
public Solver(int num, int[] weight, int[] value, int capacity) {
this.num = num;
this.weight = weight;
this.value = value;
this.ca... | Main.java:78: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u185951723|p02315|0 | u185951723|p02315|0 | codenet | Compile Error | 2,976 | |
v2_s714072050 | s714072050 | s714072050 | p02315 | p02315 | u211138527 | u211138527 | 1,439,735,869 | 2015-08-16T14:37:49 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.StringTokenizer;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
static final int INF=Integer.MAX_VALUE/2;
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in)... | Main.java:23: error: bad operand types for binary operator '+'
int[][] dp=new int[n+1][w+1];
^
first type: int[]
second type: int
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02315|0 | u211138527|p02315|0 | codenet | Compile Error | 868 | |
v2_s991741317 | s991741317 | s991741317 | p02315 | p02315 | u304205753 | u304205753 | 1,495,697,648 | 2017-05-25T07:34:08 | Main.java | import java.util.ArrayList;
import java.util.Scanner;
class Item {
int value,weight; //????????????????????????
public Item(int value, int weight) {
this.value = value;
this.weight = weight;
}
public int getValue() {
return this.value;
}
public int getWeight() {
... | Main.java:18: error: <identifier> expected
public class???Main {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u304205753|p02315|1 | u304205753|p02315|1 | codenet | Compile Error | 1,793 | |
v2_s934130438 | s934130438 | s934130438 | p02315 | p02315 | u369093003 | u369093003 | 1,504,943,161 | 2017-09-09T07:46:01 | Main.java | public class Main {?????????????????????????????????????????????????????????????????????//???FastScanner??£??????????????????
private static FastScanner sc = new FastScanner();??????????????? // ?????£??±Scanner??§????????????????????????
public static void main(String[] args) {
int N = sc.nextIn... | Main.java:1: error: illegal start of type
public class Main {?????????????????????????????????????????????????????????????????????//???FastScanner?????????????????????
^
Main.java:2: error: illegal start of type
private static FastScanner sc = new FastScanner();??????????????? // ?????????Scanne... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u369093003|p02315|0 | u369093003|p02315|0 | codenet | Compile Error | 2,607 | |
v2_s005660572 | s005660572 | s005660572 | p02315 | p02315 | u369093003 | u369093003 | 1,504,943,190 | 2017-09-09T07:46:30 | Main.java | public class Main {??????????????????????????????????????????????????????????????????
private static FastScanner sc = new FastScanner();???????????????
public static void main(String[] args) {
int N = sc.nextInt();
int W = sc.nextInt();
int[] v = new int[N];
int[] w = new i... | Main.java:1: error: illegal start of type
public class Main {??????????????????????????????????????????????????????????????????
^
Main.java:2: error: illegal start of type
private static FastScanner sc = new FastScanner();???????????????
^
2 e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u369093003|p02315|0 | u369093003|p02315|0 | codenet | Compile Error | 2,515 | |
v2_s499516626 | s499516626 | s499516626 | p02315 | p02315 | u473115569 | u473115569 | 1,527,524,781 | 2018-05-28T16:26:21 | Main.java | import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
public class Main{
static int[][] dp=new int[101][10001];
static int N, W;
static int[] w=new int[101];
static int[] v=new int[101];
static void dp() {
for(int i=0; i<=W; i++) {
dp[0][i]=0;
}
for(int i=0; i<N... | Main.java:20: error: cannot find symbol
dp[i+1][j]=max(dp[i][j], dp[i][j-w[i]]+v[i]);
^
symbol: method max(int,int)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u473115569|p02315|0 | u473115569|p02315|0 | codenet | Compile Error | 819 | |
v2_s599628544 | s599628544 | s599628544 | p02315 | p02315 | u593467981 | u593467981 | 1,467,631,792 | 2016-07-04T11:29:52 | Main.java |
/**
* http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DPL_1_B
*/
/**
* Result: AC
* TC: O(N^2)
* SC: O(N)
*/
import java.util.Scanner;
public class Main {
int capacity;
int n;
int[] cost;
int[] value;
int[] rowCurr;
Scanner in = new Scanner(System.in);
boolean readCase() {... | Main.java:37: error: cannot find symbol
Main_DP_1_Array main = new Main_DP_1_Array();
^
symbol: class Main_DP_1_Array
location: class Main
Main.java:37: error: cannot find symbol
Main_DP_1_Array main = new Main_DP_1_Array();
^
symbol: class Main_DP_1_... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u593467981|p02315|1 | u593467981|p02315|1 | codenet | Compile Error | 1,405 | |
v2_s645311815 | s645311815 | s645311815 | p02315 | p02315 | u598814210 | u598814210 | 1,535,644,041 | 2018-08-30T15:47:21 | Main.java |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int W = sc.nextInt();
int[] v = new int[N+1];
int[] w = new int[W+1];
for(int i=1; i<N+1; i++) {
v[i] = sc.next... | Main.java:32: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u598814210|p02315|0 | u598814210|p02315|0 | codenet | Compile Error | 792 | |
v2_s126153772 | s126153772 | s126153772 | p02315 | p02315 | u745259711 | u745259711 | 1,529,898,866 | 2018-06-25T03:54:26 | Main.java |
// mainメソッドを含むKPクラスを書く
import java.util.Scanner;
import java.io.*;
public class KP
{
public static void main(String[] args)
{
// ファイルの読み込み
Scanner reader = new Scanner(System.in);
String firstData[] = {};
// まず、1行目を特別なものとして読み込む
firstData = reader.nextLine().split(" ", -... | Main.java:6: error: class KP is public, should be declared in a file named KP.java
public class KP
^
Main.java:45: error: class Solver is public, should be declared in a file named Solver.java
public class Solver
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745259711|p02315|0 | u745259711|p02315|0 | codenet | Compile Error | 5,033 | |
v2_s086114581 | s086114581 | s086114581 | p02315 | p02315 | u745259711 | u745259711 | 1,529,898,927 | 2018-06-25T03:55:27 | KP.java | // mainメソッドを含むKPクラスを書く
import java.util.Scanner;
import java.io.*;
public class KP
{
public static void main(String[] args)
{
// ファイルの読み込み
Scanner reader = new Scanner(System.in);
String firstData[] = {};
// まず、1行目を特別なものとして読み込む
firstData = reader.nextLine().split(" ", -... | KP.java:37: error: non-static variable this cannot be referenced from a static context
Solver s = new Solver(size, limitWeight, weight, value);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745259711|p02315|0 | u745259711|p02315|0 | codenet | Compile Error | 5,043 | |
v2_s534765748 | s534765748 | s534765748 | p02315 | p02315 | u745259711 | u745259711 | 1,529,899,009 | 2018-06-25T03:56:49 | Main.java | // mainメソッドを含むKPクラスを書く
import java.util.Scanner;
import java.io.*;
public class KP
{
public static void main(String[] args)
{
// ファイルの読み込み
Scanner reader = new Scanner(System.in);
String firstData[] = {};
// まず、1行目を特別なものとして読み込む
firstData = reader.nextLine().split(" ", -... | Main.java:5: error: class KP is public, should be declared in a file named KP.java
public class KP
^
Main.java:44: error: class Solver is public, should be declared in a file named Solver.java
public class Solver
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745259711|p02315|0 | u745259711|p02315|0 | codenet | Compile Error | 5,020 | |
v2_s490582815 | s490582815 | s490582815 | p02315 | p02315 | u745259711 | u745259711 | 1,529,899,178 | 2018-06-25T03:59:38 | Main.java | // mainメソッドを含むKPクラスを書く
import java.util.Scanner;
import java.io.*;
class Main
{
public static void main(String[] args)
{
// ファイルの読み込み
Scanner reader = new Scanner(System.in);
String firstData[] = {};
// まず、1行目を特別なものとして読み込む
firstData = reader.nextLine().split(" ", -1);... | Main.java:145: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:146: error: class, interface, enum, or record expected
import java.io.*;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745259711|p02315|0 | u745259711|p02315|0 | codenet | Compile Error | 10,071 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.