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_s156866975
s156866975
s156866975
p02269
p02269
u497852372
u497852372
1,555,985,706
2019-04-23T02:15:06
Main.java
import java.util.HashSet; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); HashSet<String> set = new HashSet<String>(); int n = sc.nextInt(); for(int i = 0 ; i < n ; i++) { String str = sc.ne...
Main.java:15: error: ')' or ',' expected if(set.contains(String sc.nextInt())) ^ Main.java:15: error: ';' expected if(set.contains(String sc.nextInt())) ^ Main.java:17: error: 'else' without 'if' ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02269|0
u497852372|p02269|0
codenet
Compile Error
630
v2_s764450424
s764450424
s764450424
p02269
p02269
u705352026
u705352026
1,525,614,090
2018-05-06T13:41:30
Main.java
import java.awt.print.Printable; import java.util.Scanner; import javax.sound.midi.SysexMessage; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = sc.nextInt(); String dict[]=new String[1000000]; ...
Main.java:25: error: <identifier> expected sc.close(); ^ Main.java:28: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u705352026|p02269|0
u705352026|p02269|0
codenet
Compile Error
730
v2_s384870195
s384870195
s384870195
p02269
p02269
u705352026
u705352026
1,525,616,039
2018-05-06T14:13:59
Main.java
import java.awt.print.Printable; import java.util.Scanner; import java.util.Set; import javax.sound.midi.SysexMessage; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = sc.nextInt(); String dict[]=...
Main.java:15: error: cannot find symbol Set<String> set = new HashSet<String>(); ^ symbol: class HashSet location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u705352026|p02269|0
u705352026|p02269|0
codenet
Compile Error
786
v2_s894787183
s894787183
s894787183
p02269
p02269
u960488816
u960488816
1,470,378,035
2016-08-05T06:20:35
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); // insert ????????? ?????????...
Main.java:33: error: class, interface, enum, or record expected }import java.io.BufferedReader; ^ Main.java:34: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:35: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960488816|p02269|0
u960488816|p02269|0
codenet
Compile Error
2,524
v2_s086433155
s086433155
s086433155
p02269
p02269
u964312471
u964312471
1,530,023,069
2018-06-26T14:24:29
Main.java
import java.io.*; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub int i,j,n=0,hz=0,sc; BufferedReader sca=new BufferedReader(new InputStreamReader(System.in));; String yomi,sp[]=new String[2];//0:order 1:name try{ n=Integer.parseInt(sca.readLine())...
Main.java:23: error: cannot find symbol hz=myhash(sp[1],n)+sc*(1+myhash(sp[1].n-1)); ^ symbol: variable n location: class String Main.java:32: error: cannot find symbol hz=myhash(sp[1],n)+sc*(1+myhash(sp[1].n-1)); ^ symbol: vari...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964312471|p02269|1
u964312471|p02269|1
codenet
Compile Error
1,439
v2_s102152936
s102152936
s102152936
p02269
p02269
u964312471
u964312471
1,530,030,919
2018-06-26T16:35:19
Main.java
import java.io.*; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub int i,j,n=0,hz=0,sc,ha1=0,ha2=0; BufferedReader sca=new BufferedReader(new InputStreamReader(System.in));; String yomi,sp[]=new String[2];//0:order 1:name try{ n=Integer.parseInt(sca...
Main.java:65: error: ';' expected h=0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964312471|p02269|1
u964312471|p02269|1
codenet
Compile Error
1,585
v2_s846699401
s846699401
s846699401
p02269
p02269
u964312471
u964312471
1,530,157,515
2018-06-28T03:45:15
Main.java
mport java.io.*; import java.util.Map; import java.util.HashMap; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub int i,j,n=0; BufferedReader sca=new BufferedReader(new InputStreamReader(System.in));; String yomi,sp[]=new String[2];//0:order 1:name try{ ...
Main.java:1: error: class, interface, enum, or record expected mport java.io.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Map; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.HashMap; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964312471|p02269|2
u964312471|p02269|2
codenet
Compile Error
845
v2_s906165952
s906165952
s906165952
p02270
p02270
u139791751
u139791751
1,531,241,430
2018-07-10T16:50:30
Main.java
#include <stdio.h> #define MAX 100000 long long T[MAX]; int n,k; int load(long long P) { int i=0,j=0; long long t; for(i = 0; i < k; i++) { t = 0; while( t+T[j] <=P) { t +=T[j]; j++; if(j==n) return n; } } return j; } int sol...
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:4: error: class, interface, enum, or record expected int n,k; ^ Main.java:6: error: unnam...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139791751|p02270|0
u139791751|p02270|0
codenet
Compile Error
748
v2_s593010019
s593010019
s593010019
p02270
p02270
u213503793
u213503793
1,430,903,515
2015-05-06T09:11:55
Main.java
class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n = Integer.parseInt(str.split(" ")[0]); int k = Integer.parseInt(str.split(" ")[1]); ...
Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02270|2
u213503793|p02270|1
codenet
Compile Error
1,625
v2_s293213275
s293213275
s293213275
p02270
p02270
u301522431
u301522431
1,439,514,504
2015-08-14T01:08:24
Main.java
public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(new System.in)); // BufferedReader br = new BufferedReader(new FileReader("in1.txt")); // BufferedReader br = new BufferedReader(new FileReader("in2.txt")); String[] line =...
Main.java:3: error: '(' or '[' expected BufferedReader br = new BufferedReader(new InputStreamReader(new System.in)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301522431|p02270|0
u301522431|p02270|0
codenet
Compile Error
1,275
v2_s041904733
s041904733
s041904733
p02270
p02270
u301522431
u301522431
1,439,514,525
2015-08-14T01:08:45
Main.java
public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // BufferedReader br = new BufferedReader(new FileReader("in1.txt")); // BufferedReader br = new BufferedReader(new FileReader("in2.txt")); String[] line = br....
Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301522431|p02270|0
u301522431|p02270|0
codenet
Compile Error
1,271
v2_s111259323
s111259323
s111259323
p02270
p02270
u418625354
u418625354
1,509,860,124
2017-11-05T05:35:24
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; /* ????????????????????? wi(i=0,1,...n???1) ??? n ??????????????????????????????????????¢????????????????????????????????????????????????????????? k ??°????????????????????????????????????????????????????????£?¶??????? 0 ?????\??????????????????????????¨...
Main.java:22: error: <identifier> expected public statics void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418625354|p02270|0
u418625354|p02270|0
codenet
Compile Error
1,585
v2_s286867574
s286867574
s286867574
p02270
p02270
u422881805
u422881805
1,519,218,693
2018-02-21T13:11:33
Main.java
import java.util.Scanner; import common.U; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] w = new int[n]; long minP = 0; long maxP = 0; for (int i = 0; i <...
Main.java:4: error: package common does not exist import common.U; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u422881805|p02270|1
u422881805|p02270|1
codenet
Compile Error
1,626
v2_s722288346
s722288346
s722288346
p02270
p02270
u438493637
u438493637
1,524,117,011
2018-04-19T05:50:11
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt();//要素数 int truck = scanner.nextInt();//トラック数 Allocation(num, truck, scanner); scanner.close(); } public static void Allocation(int num, int truck, Scanner...
Main.java:35: error: cannot find symbol while (left < right) { ^ symbol: variable right location: class Main Main.java:36: error: cannot find symbol long p = (left+right)/2; ^ symbol: variable right location: class Main Main.java:38: error: variable sum is already defi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u438493637|p02270|0
u438493637|p02270|0
codenet
Compile Error
1,086
v2_s308157484
s308157484
s308157484
p02270
p02270
u541673832
u541673832
1,524,704,526
2018-04-26T01:02:06
Main.java
import java.util.Scanner; public class Main { static int n; static int k; static int[] weight; public Allocation(int n,int k,int[] weight) { this.n= n; this.k = k; this.weight = weight; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc....
Main.java:9: error: invalid method declaration; return type required public Allocation(int n,int k,int[] weight) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541673832|p02270|0
u541673832|p02270|0
codenet
Compile Error
1,184
v2_s644664811
s644664811
s644664811
p02270
p02270
u644653061
u644653061
1,457,838,055
2016-03-13T03:00:55
Main.java
public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int k=scan.nextInt(); int[] data=new int[n]; for(int i=0;i<n;i++){ data[i]+=scan.nextInt(); } System.out.println(load(data,0,new int[k])); scan.close(); } private static int loa...
Main.java:5: error: cannot find symbol Scanner scan=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:26: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u644653061|p02270|0
u644653061|p02270|0
codenet
Compile Error
1,123
v2_s878093468
s878093468
s878093468
p02270
p02270
u771374202
u771374202
1,491,048,634
2017-04-01T12:10:34
Main.java
mport java.util.*; public class Main { public static int check(long p,int[] T,int k,int n){ int i =0; for(int j=0;j<k;j++){ long s = 0; while(s+T[i]<=p){ s +=T[i]; i++; if(i==n) return n; } } return i ; } public static void main(String args[]){ Scanner sc = new Scanner(System.in); ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771374202|p02270|0
u771374202|p02270|0
codenet
Compile Error
637
v2_s426305467
s426305467
s426305467
p02270
p02270
u928579315
u928579315
1,515,189,758
2018-01-05T22:02:38
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] array = new int[k]; int input = 0; for(int i = 0; i < n; i++){ input = sc.nextInt()...
Main.java:14: error: array required, but int found if(k[minIndex] > k[j]){ ^ Main.java:14: error: array required, but int found if(k[minIndex] > k[j]){ ^ Main.java:18: error: array required, but int found k[minIndex] += in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02270|0
u928579315|p02270|0
codenet
Compile Error
742
v2_s609594678
s609594678
s609594678
p02271
p02271
u029528183
u029528183
1,530,240,758
2018-06-29T02:52:38
Main.java
import java.io.*; import java.util.*; class Main{ static int input_n[]; // static int input_q[]; static int n; public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(br.readLine()); // ArrayList<Integer> ...
Main.java:19: error: cannot find symbol input_q = new int[q]; ^ symbol: variable input_q location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02271|0
u029528183|p02271|0
codenet
Compile Error
1,067
v2_s763764059
s763764059
s763764059
p02271
p02271
u211138527
u211138527
1,439,632,897
2015-08-15T10:01:37
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); String line=""; while((line=br.readLine())=br.readLine&&!line.isE...
Main.java:9: error: ')' or ',' expected BufferedReader br=new BufferedReader(new InputStreamReader(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02271|0
u211138527|p02271|0
codenet
Compile Error
993
v2_s753088835
s753088835
s753088835
p02271
p02271
u211138527
u211138527
1,439,632,928
2015-08-15T10:02:08
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)); String line=""; while((line=br.readLine())=br.readLine&&!line.is...
Main.java:11: error: unexpected type while((line=br.readLine())=br.readLine&&!line.isEmpty()){ ^ required: variable found: value Main.java:11: error: cannot find symbol while((line=br.readLine())=br.readLine&&!line.isEmpty()){ ^ symbol: variable readLine location: va...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02271|0
u211138527|p02271|0
codenet
Compile Error
994
v2_s608817590
s608817590
s608817590
p02271
p02271
u281849135
u281849135
1,529,463,126
2018-06-20T02:52:06
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.NoSuchElementException; public class Main { static int[] a; // static int[] qu; static HashMap hp = new HashMap<Integer, Boolean>(); public static void main(String[] args) { StringBuilder sb = new Str...
Main.java:23: error: cannot find symbol j=(Boolean) hp.get(t); ^ symbol: variable j location: class Main Main.java:25: error: cannot find symbol j=solve(0,t); ^ symbol: variable j location: class Main Main.java:27: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|0
u281849135|p02271|0
codenet
Compile Error
3,518
v2_s271276221
s271276221
s271276221
p02271
p02271
u281849135
u281849135
1,529,550,281
2018-06-21T03:04:41
Main.java
1
Main.java:1: error: class, interface, enum, or record expected 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|2
u281849135|p02271|2
codenet
Compile Error
2
v2_s587145630
s587145630
s587145630
p02271
p02271
u281849135
u281849135
1,529,561,009
2018-06-21T06:03:29
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; public class Main { public static void main(String[] args) { Deque deque = new ArrayDeque(); StringBuilder sb = new StringBuilder(); FS fs = new FS(); int n = fs.nextInt(); BitSet bitSet = new Bit...
Main.java:106: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,746
v2_s360598269
s360598269
s360598269
p02271
p02271
u281849135
u281849135
1,529,561,052
2018-06-21T06:04:12
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; public class Main { public static void main(String[] args) { Deque deque = new ArrayDeque(); StringBuilder sb = new StringBuilder(); FS fs = new FS(); int n = fs.nextInt(); BitSet bitSet = new BitS...
Main.java:27: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class Main.FS Main.java:9: error: non-static variable this cannot be referenced from a static context FS fs = new FS(); ^ Main.java:39: error: canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,738
v2_s345244441
s345244441
s345244441
p02271
p02271
u281849135
u281849135
1,529,561,172
2018-06-21T06:06:12
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; public class Main { public static void main(String[] args) { Deque deque = new ArrayDeque(); StringBuilder sb = new StringBuilder(); FS fs = new FS(); int n = fs.nextInt(); BitSet bitSet = new Bit...
Main.java:28: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FS Main.java:40: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class FS Main.java:6...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,749
v2_s229691841
s229691841
s229691841
p02271
p02271
u281849135
u281849135
1,529,561,212
2018-06-21T06:06:52
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; public class Main { public static void main(String[] args) { Deque deque = new ArrayDeque(); StringBuilder sb = new StringBuilder(); FS fs = new FS(); int n = fs.nextInt(); BitSet bitSet = new Bit...
Main.java:30: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FS Main.java:42: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class FS Main.java:7...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,743
v2_s744925585
s744925585
s744925585
p02271
p02271
u281849135
u281849135
1,529,561,286
2018-06-21T06:08:06
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; public class Main { public static void main(String[] args) { Deque deque = new ArrayDeque(); StringBuilder sb = new StringBuilder(); Scanner fs = new Scanner(System.in); int n = fs.nextInt(); BitS...
Main.java:10: error: cannot find symbol Scanner fs = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: error: cannot find symbol Scanner fs = new Scanner(System.in); ^ symbol: class Scanner location: class Main Note: Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
759
v2_s055582083
s055582083
s055582083
p02271
p02271
u281849135
u281849135
1,529,563,156
2018-06-21T06:39:16
Main.java
<Integer>
Main.java:1: error: class, interface, enum, or record expected <Integer> ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
11
v2_s996798724
s996798724
s996798724
p02271
p02271
u281849135
u281849135
1,529,563,517
2018-06-21T06:45:17
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args){ Deque<Integer> deque = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); Fs fs = new Fs(); int n = fs....
Main.java:33: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FS Main.java:10: error: cannot find symbol Fs fs = new Fs(); ^ symbol: class Fs location: class Main Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,904
v2_s658431332
s658431332
s658431332
p02271
p02271
u281849135
u281849135
1,529,563,530
2018-06-21T06:45:30
Main.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args){ Deque<Integer> deque = new ArrayDeque<Integer>(); StringBuilder sb = new StringBuilder(); Fs fs = new Fs(); int n = fs....
Main.java:31: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class Main.FS Main.java:10: error: cannot find symbol Fs fs = new Fs(); ^ symbol: class Fs location: class Main Main.java:10: error: cannot find symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
2,904
v2_s779187045
s779187045
s779187045
p02271
p02271
u281849135
u281849135
1,529,563,981
2018-06-21T06:53:01
_AE.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class _AE { public static void main(String[] args){ Deque<Integer> deque = new ArrayDeque<Integer>...
_AE.java:16: error: ';' expected BitSet bitSet = mnew BitSet(2000); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
3,011
v2_s511846442
s511846442
s511846442
p02271
p02271
u281849135
u281849135
1,529,563,995
2018-06-21T06:53:15
_AE.java
import java.util.ArrayDeque; import java.util.BitSet; import java.util.Deque; import java.util.Scanner; import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; public class _AE { public static void main(String[] args){ Deque<Integer> deque = new ArrayDeque<Integer>...
_AE.java:14: error: non-static variable this cannot be referenced from a static context FS fs = new FS(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02271|3
u281849135|p02271|2
codenet
Compile Error
3,010
v2_s027141273
s027141273
s027141273
p02271
p02271
u460172144
u460172144
1,454,754,961
2016-02-06T10:36:01
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Maub().run(); } int n,q,solvePoint; int[] A,m; boolean[] isSolve; public void run(){ Scanner sc = new Scanner(System.in); n = sc.nextInt(); A = new int[n]; for (int i = 0; i <...
Main.java:7: error: cannot find symbol new Maub().run(); ^ symbol: class Maub location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460172144|p02271|1
u460172144|p02271|1
codenet
Compile Error
893
v2_s804248801
s804248801
s804248801
p02271
p02271
u497852372
u497852372
1,556,082,890
2019-04-24T05:14:50
Main.java
import java.util.Scanner; public static boolean search(int a[], int start, int m, int q) { if(m == 0) return true; else if(start >= q) return false; else return (search(a,start+1,m,q)||search(a,start+1,m-a[start],q)); } public class Main{ public static void main(String[] args){ ...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static boolean search(int a[], int start, int m, int q) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02271|0
u497852372|p02271|0
codenet
Compile Error
828
v2_s877120243
s877120243
s877120243
p02271
p02271
u497852372
u497852372
1,556,082,946
2019-04-24T05:15:46
Main.java
import java.util.Scanner; public static boolean search(int a[], int start, int m, int q) { if(m == 0) return 1; else if(start >= q) return 0; else return (search(a,start+1,m,q)||search(a,start+1,m-a[start],q)); } public class Main{ public static void main(String[] args){ ...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static boolean search(int a[], int start, int m, int q) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02271|0
u497852372|p02271|0
codenet
Compile Error
826
v2_s019324652
s019324652
s019324652
p02271
p02271
u497852372
u497852372
1,556,082,961
2019-04-24T05:16:01
Main.java
import java.util.Scanner; public static int search(int a[], int start, int m, int q) { if(m == 0) return 1; else if(start >= q) return 0; else return (search(a,start+1,m,q)||search(a,start+1,m-a[start],q)); } public class Main{ public static void main(String[] args){ Scan...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static int search(int a[], int start, int m, int q) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497852372|p02271|0
u497852372|p02271|0
codenet
Compile Error
822
v2_s805307046
s805307046
s805307046
p02271
p02271
u559106458
u559106458
1,529,251,122
2018-06-17T15:58:42
Main.java
def solve(i,m): if(m==0):return 1 if(i>=n):return 0 res = solve(i+1,m) or solve(i+1, m-int(list[i])) return res n=0 list=[] q=0 M=0 n=int(input()) i=0 while i<n: list.append(input()) i=i+1 q=int(input()) i=0 while i<q: M=int(input()) if(solve(0,M)): print("yes") else: print("no") i=i+1 return 0
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def solve(i,m): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def solve(i,m): ^ Main.java:1: error: <identifier> expected def solve(i,m): ^ Main.java:1: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02271|0
u559106458|p02271|0
codenet
Compile Error
312
v2_s036952304
s036952304
s036952304
p02271
p02271
u559106458
u559106458
1,529,251,397
2018-06-17T16:03:17
Main.java
def solve(i,m): if(m==0):return 1 if(i>=n):return 0 res=solve(i+1,m) or solve(i+1, m-int(list[i])) return res n=0 list=[] q=0 M=0 n=int(input()) i=0 while i<n: list.append(input()) i=i+1 q=int(input()) i=0 while i<q: M=int(input()) if(solve(0,M)): print("yes"); else: print("no"); i=i+1
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def solve(i,m): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def solve(i,m): ^ Main.java:1: error: <identifier> expected def solve(i,m): ^ Main.java:1: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02271|0
u559106458|p02271|0
codenet
Compile Error
302
v2_s444143390
s444143390
s444143390
p02271
p02271
u649764759
u649764759
1,530,240,590
2018-06-29T02:49:50
Main.java
#include <stdio.h> #define N 20 #define Q 200 #define T 1 #define F 0 int A[N],n; int main() { int q,i,judge; int M[Q]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); } scanf("%d",&q); for(i=0;i<q;i++){ scanf("%d",&M[i]); } for(i=0;i<q;i++){ judge = solve(0,M[i]); if(judge == T...
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 20 ^ Main.java:3: error: illegal character: '#' #define Q 200 ^ Main.java:4: error: illegal character: '#' #de...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u649764759|p02271|0
u649764759|p02271|0
codenet
Compile Error
584
v2_s703966055
s703966055
s703966055
p02271
p02271
u727760769
u727760769
1,458,195,766
2016-03-17T06:22:46
Maib.java
import java.util.Scanner; public class Maib { static int n; static int[] A; public static void main(String[] args) { Scanner in = new Scanner(System.in); Main eSearch = new Main(); n = in.nextInt(); A = new int[n]; for(int i = 0;i<n;i++){ A[i] = in.nextInt(); } int q = in.nextInt(); int[] m = new...
Maib.java:8: error: cannot find symbol Main eSearch = new Main(); ^ symbol: class Main location: class Maib Maib.java:8: error: cannot find symbol Main eSearch = new Main(); ^ symbol: class Main location: class Maib 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727760769|p02271|0
u727760769|p02271|0
codenet
Compile Error
639
v2_s658323156
s658323156
s658323156
p02271
p02271
u727760769
u727760769
1,458,195,800
2016-03-17T06:23:20
Main.java
public class Main { static int n; static int[] A; public static void main(String[] args) { Scanner in = new Scanner(System.in); Main eSearch = new Main(); n = in.nextInt(); A = new int[n]; for(int i = 0;i<n;i++){ A[i] = in.nextInt(); } int q = in.nextInt(); int[] m = new int[q]; for(int j=0;j<q;...
Main.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727760769|p02271|0
u727760769|p02271|0
codenet
Compile Error
612
v2_s290514592
s290514592
s290514592
p02271
p02271
u928579315
u928579315
1,515,194,735
2018-01-05T23:25:35
Main.java
import java.util.Scanner; public class Main{ static int num; static int[] array; private static boolean check(int i, int m){ if(m == 0) return true; if(i >= n) return false; return check(i + 1, m) || check(i + i, m - array[i]); } public static void main(String[] ar...
Main.java:9: error: cannot find symbol if(i >= n) return false; ^ symbol: variable n location: class Main Main.java:20: error: cannot find symbol int q = sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02271|0
u928579315|p02271|0
codenet
Compile Error
800
v2_s612663684
s612663684
s612663684
p02271
p02271
u928579315
u928579315
1,515,194,858
2018-01-05T23:27:38
Main.java
import java.util.Scanner; public class Main{ static int num; static int[] array; private static boolean check(int i, int m){ if(m == 0) return true; if(i >= n) return false; return check(i + 1, m) || check(i + i, m - array[i]); } public static void main(String[] ar...
Main.java:9: error: cannot find symbol if(i >= n) return false; ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02271|0
u928579315|p02271|0
codenet
Compile Error
802
v2_s041853990
s041853990
s041853990
p02272
p02272
u113501470
u113501470
1,519,135,175
2018-02-20T13:59:35
Main.java
import java.util.*; public class Main { int count = 0; public static void main(String[] args) { new mergeSort().runSort(); } public void runSort() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] l = new int[n]; for (int i = 0; i < n; i++) { l[i] = sc.nextInt(); } sorting(l, 0,...
Main.java:6: error: cannot find symbol new mergeSort().runSort(); ^ symbol: class mergeSort location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113501470|p02272|0
u113501470|p02272|0
codenet
Compile Error
1,178
v2_s644044683
s644044683
s644044683
p02272
p02272
u113501470
u113501470
1,519,135,204
2018-02-20T14:00:04
mergeSort.java
import java.util.*; public class mergeSort { int count = 0; public static void main(String[] args) { new Main().runSort(); } public void runSort() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] l = new int[n]; for (int i = 0; i < n; i++) { l[i] = sc.nextInt(); } sorting(l, 0,...
mergeSort.java:6: error: cannot find symbol new Main().runSort(); ^ symbol: class Main location: class mergeSort 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113501470|p02272|0
u113501470|p02272|0
codenet
Compile Error
1,178
v2_s303740602
s303740602
s303740602
p02272
p02272
u120779516
u120779516
1,487,835,908
2017-02-23T07:45:08
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main{ public static int MAX = 500000; public static int SENTINEL = 2000000000; public static int[] L = new int[MAX / 2 + 2]; public static int[] R = new int[MAX / 2 + 2]; public static int cnt...
Main.java:42: error: method mergeSort(int[],int,int,int) is already defined in class Main public static void mergeSort(int[] A, int n, int left, int right){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02272|0
u120779516|p02272|0
codenet
Compile Error
2,140
v2_s731074469
s731074469
s731074469
p02272
p02272
u211138527
u211138527
1,439,635,231
2015-08-15T10:40:31
Main.java
import java.io.*; import java.util.StringTokenizer; class Main{ static final PrintWriter out=new PrintWriter(System.out); static int[] buff; static int ans=0; static void __mergeSort(int[] a,int left,int right){ if(left<right){ int i; int mid=(left+right)/2; int p=0; int j=0; int k=0; __mergeSort(a,left,mid); __merg...
Main.java:31: error: illegal start of expression static void mergeSort(int[] a,int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02272|0
u211138527|p02272|0
codenet
Compile Error
1,130
v2_s705845612
s705845612
s705845612
p02272
p02272
u211138527
u211138527
1,439,635,329
2015-08-15T10:42:09
Main.java
import java.io.*; import java.util.StringTokenizer; class Main{ static final PrintWriter out=new PrintWriter(System.out); static int[] buff; static int ans=0; static void __mergeSort(int[] a,int left,int right){ if(left<right){ int i; int mid=(left+right)/2; int p=0; int j=0; int k=0; __mergeSort(a,left,mid); __merg...
Main.java:55: error: ';' expected out.flush() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02272|0
u211138527|p02272|0
codenet
Compile Error
1,144
v2_s873947049
s873947049
s873947049
p02272
p02272
u211138527
u211138527
1,439,635,874
2015-08-15T10:51:14
Main.java
import java.io.*; import java.util.StringTokenizer; class Main{ static final PrintWriter out=new PrintWriter(System.out); static int[] buff; static int ans=0; static void __mergeSort(int[] a,int left,int right){ if(left<right){ int i; int mid=(left+right)/2; int p=0; int j=0; int k=0; __mergeSort(a,left,mid); __m...
Main.java:31: error: illegal start of expression static void mergeSort(int[] a,int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02272|0
u211138527|p02272|0
codenet
Compile Error
1,149
v2_s851383017
s851383017
s851383017
p02272
p02272
u342612692
u342612692
1,530,521,816
2018-07-02T08:56:56
Main.java
#include<stdio.h> #include<math.h> #define INF 100000000 void merge(int A[],int left,int mid, int right); void mergesort(int A[],int left,int right); void list(int A[]); //int a[500001]; int cnt=0; int n; int main() { int i,j; scanf("%d",&n); int a[n]; for(i=0;i<n;i++){ scanf("%d",&a[i]); } merg...
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<math.h> ^ Main.java:3: error: illegal character: '#' #define INF 100000000 ^ Main.java:5: error: unnamed classes a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342612692|p02272|0
u342612692|p02272|0
codenet
Compile Error
1,320
v2_s963565934
s963565934
s963565934
p02272
p02272
u364363882
u364363882
1,515,129,126
2018-01-05T05:12:06
Main.java
public class Main { static int count = 0; public static void main(String[] args) throws NumberFormatException, IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] S = new int[n]; String[] str = br.readLine().split(" ");...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws NumberFormatException, IOException{ ^ symbol: class IOException location: class Main Main.java:7: error: cannot find symbol BufferedReader br = new Buffered...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u364363882|p02272|0
u364363882|p02272|0
codenet
Compile Error
1,221
v2_s181088701
s181088701
s181088701
p02272
p02272
u490902542
u490902542
1,545,618,958
2018-12-24T02:35:58
Main.java
import scala.Int; import java.util.*; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); try { int n = Integer.parseInt(sc.nextLine()); ...
Main.java:1: error: package scala does not exist import scala.Int; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u490902542|p02272|0
u490902542|p02272|0
codenet
Compile Error
2,144
v2_s282311258
s282311258
s282311258
p02272
p02272
u501711118
u501711118
1,431,652,602
2015-05-15T01:16:42
Main.java
class Main { static int count; public static void sort(int[] A,int left,int mid,int right){ int i,j,k; int n1=mid-left; int n2=right-mid; int[] L=new int[n1+1]; int[] R=new int[n2+1]; for(i=0;i<n1;i++){ L[i]=A[left+i]; } for(i=0;i<n2;i++){ R[i]=A[mid+i]; } L[n1]=I...
Main.java:41: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Main Main.java:43: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u501711118|p02272|0
u501711118|p02272|0
codenet
Compile Error
1,148
v2_s948495151
s948495151
s948495151
p02272
p02272
u882342552
u882342552
1,463,067,469
2016-05-12T15:37:49
Main.java
Import java.util.Scanner; class Main { static int count = 0; static int INFTY = 990000; static void merge(int[]A,int left,int mid,int right) { int n1 = mid - left; int n2 = right - mid; int[]L = new int[500000]; int[]R = new int[500000]; int i; for( i = 0; i <= n1 - 1; i++) L[i] = A[left ...
Main.java:1: error: class, interface, enum, or record expected Import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u882342552|p02272|1
u882342552|p02272|1
codenet
Compile Error
1,202
v2_s032258290
s032258290
s032258290
p02272
p02272
u882342552
u882342552
1,463,067,519
2016-05-12T15:38:39
Main.java
Import java.util.Scanner; class Main { static int count = 0; static int INFTY = 990000; static void merge(int[]A,int left,int mid,int right) { int n1 = mid - left; int n2 = right - mid; int[]L = new int[500000]; int[]R = new int[500000]; int i; for( i = 0; i <= n1 - 1; i++) L[i] = A[left ...
Main.java:1: error: class, interface, enum, or record expected Import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u882342552|p02272|1
u882342552|p02272|1
codenet
Compile Error
1,202
v2_s379485956
s379485956
s379485956
p02272
p02272
u882342552
u882342552
1,463,068,674
2016-05-12T15:57:54
Main.java
#include<stdio.h> #define INFTY 9999999 #define N 500000 void merge(int[],int,int,int); void mergeSort(int[],int,int); int count = 0; int main() { int i,n,A[N]; scanf("%d",&n); for(i = 0; i < n; i++) scanf("%d",&A[i]); mergeSort(A,0,n); for(i = 0; i < n - 1; i++) printf("%d ",A[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 INFTY 9999999 ^ Main.java:3: error: illegal character: '#' #define N 500000 ^ Main.java:6: error: unnamed classes a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u882342552|p02272|1
u882342552|p02272|1
codenet
Compile Error
1,103
v2_s630814090
s630814090
s630814090
p02273
p02273
u233376535
u233376535
1,492,410,471
2017-04-17T06:27:51
Main.java
import java.io.IOException; import java.util.Scanner; class Main { static final int INF = 1000000001; static int changecount; public static void main(String args[]) throws IOException{ Scanner sc = new Scanner(System.in); int n = Integer.parseInt( sc.next() ); Cood p1 = new Cood(0 , 0); Co...
Main.java:61: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233376535|p02273|0
u233376535|p02273|0
codenet
Compile Error
1,288
v2_s482206081
s482206081
s482206081
p02273
p02273
u233376535
u233376535
1,492,410,485
2017-04-17T06:28:05
Main.java
import java.io.IOException; import java.util.Scanner; class Main { static final int INF = 1000000001; static int changecount; public static void main(String args[]) throws IOException{ Scanner sc = new Scanner(System.in); int n = Integer.parseInt( sc.next() ); Cood p1 = new Cood(0 , 0); Co...
Main.java:61: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233376535|p02273|0
u233376535|p02273|0
codenet
Compile Error
1,288
v2_s509862764
s509862764
s509862764
p02273
p02273
u559106458
u559106458
1,529,252,560
2018-06-17T16:22:40
Main.java
#include<stdio.h> #include<math.h> struct Point{ double x,y; }; void koch(int n, Point a, Point b){ if(n == 0) return; Point s,t,u; double th = M_PI * 60.0 / 180.0; s.x = (2.0 * a.x + 1.0 * b.x) / 3.0; s.y = (2.0 * a.y + 1.0 * b.y) / 3.0; t.x = (1.0 * a.x + 2.0 * b.x) / 3.0; t.y = (1.0 * a.x + 2.0 * b.y) / ...
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<math.h> ^ Main.java:6: error: class, interface, enum, or record expected }; ^ Main.java:8: error: unnamed classes ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02273|0
u559106458|p02273|0
codenet
Compile Error
785
v2_s051517100
s051517100
s051517100
p02274
p02274
u238001675
u238001675
1,526,354,745
2018-05-15T03:25:45
Main.java
import java.util.Scanner; //import java.util.Arrays ; // import java.InputMismatchException; // alds_5b, Aizu Online Judge accept only class name: Main class Main { static void print_list(int [] A, int low, int high) { int i ; for (i=low; i<high; i++) { System.out.printf("%d ", A[i])...
Main.java:94: error: unclosed comment /* ^ Main.java:101: error: reached end of file while parsing 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238001675|p02274|1
u238001675|p02274|1
codenet
Compile Error
2,593
v2_s913030811
s913030811
s913030811
p02274
p02274
u281849135
u281849135
1,531,317,066
2018-07-11T13:51:06
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; class FS { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen)...
Main.java:95: error: cannot find symbol int p =bubbleSort(a); ^ symbol: method bubbleSort(int[]) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02274|2
u281849135|p02274|2
codenet
Compile Error
3,420
v2_s114604479
s114604479
s114604479
p02274
p02274
u768801062
u768801062
1,530,256,852
2018-06-29T07:20:52
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer.parseInt(br.readLine()); i...
Main.java:69: error: cannot find symbol cnt += n-i; ^ symbol: variable n location: class MergeSort 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768801062|p02274|0
u768801062|p02274|0
codenet
Compile Error
1,927
v2_s308554682
s308554682
s308554682
p02274
p02274
u813675766
u813675766
1,524,987,261
2018-04-29T07:34:21
Main.java
#include<iostream> using namespace std; #define MAX 1000000001 int ans = 0; void merge(int A[], int left, int mid, int right){ int n1 = mid-left; int n2 = right-mid; int L[n1+1]; int R[n2+1]; for(int i = 0; i < n1; i++) L[i] = A[left+i]; for(int i = 0; i < n2; i++) R[i] = A[mid+i]; L[n1] =...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include<iostream> ^ Main.java:4: error: illegal character: '#' #define MAX 1000000001 ^ Main.java:4: error: class, interface, enum, or record expected #define MAX 1000000001 ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813675766|p02274|1
u813675766|p02274|1
codenet
Compile Error
971
v2_s851349707
s851349707
s851349707
p02275
p02275
u022215941
u022215941
1,530,956,875
2018-07-07T09:47:55
Main.java
#include <stdio.h> int n; void CountingSort(int *,int *,int ); int main(){ int i,j; int C[2000000]; int newC[2000000]; scanf("%d",&n); for(i = 0;i <n ; i++){ scanf("%d",&C[i]); } CountingSort(C,newC,n); return 0; } void CountingSort(int *A,int *B,int k){ int i,j; int C[1000000]; for(i=0;...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. void CountingSort(int *,int *,int ); ^ (use --enable-preview to enable unn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u022215941|p02275|0
u022215941|p02275|0
codenet
Compile Error
1,014
v2_s432020056
s432020056
s432020056
p02275
p02275
u029528183
u029528183
1,530,551,728
2018-07-02T17:15:28
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); StringBuilder builder = new StringBuilder(); int[] A = new int[n]; int[] B = new int[n]; int K = Integer.MIN_...
Main.java:16: error: non-static method CountingSort(int[],int[],int) cannot be referenced from a static context CountingSort(A, B, K); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029528183|p02275|0
u029528183|p02275|0
codenet
Compile Error
1,000
v2_s881114205
s881114205
s881114205
p02275
p02275
u108371401
u108371401
1,469,360,030
2016-07-24T11:33:50
Main.java
import java.io.IOException; import java.util.Scanner; public class Main{ public static int n; public static int A[]; public static int B[]; public static int C[] = new int[10000]; public static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws NumberFormatException, IOExcepti...
Main.java:32: error: illegal start of expression sb.append(B[i]?????????); ^ Main.java:32: error: illegal start of expression sb.append(B[i]?????????); ^ Main.java:32: error: illegal start of expression sb.append(B[i]?????????); ^ Main.java:32: error: il...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u108371401|p02275|0
u108371401|p02275|0
codenet
Compile Error
741
v2_s298397414
s298397414
s298397414
p02275
p02275
u120779516
u120779516
1,487,932,319
2017-02-24T10:31:59
Main.java
mport 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()); Strin...
Main.java:1: error: class, interface, enum, or record expected mport java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.IOException; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u120779516|p02275|0
u120779516|p02275|0
codenet
Compile Error
1,284
v2_s800378207
s800378207
s800378207
p02275
p02275
u236679854
u236679854
1,500,500,384
2017-07-19T21:39:44
Main.java
import java.io.*; class Main { public static void main (String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] input = br.readLine().split(" "); int[] A = new int[n]; for ...
Main.java:27: error: variable B is already defined in method countingSort(int[],int[],int) int[] B = new int[A.length]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u236679854|p02275|0
u236679854|p02275|0
codenet
Compile Error
1,129
v2_s542790355
s542790355
s542790355
p02275
p02275
u281849135
u281849135
1,529,980,085
2018-06-26T02:28:05
Main.java
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(); } int[] b = new int[n]; for(int i=0;i<n;i++){ b[a[i]]++; } ...
Main.java:29: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FS Main.java:41: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class FS Main.java:6...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u281849135|p02275|0
u281849135|p02275|0
codenet
Compile Error
2,738
v2_s530082708
s530082708
s530082708
p02275
p02275
u298224238
u298224238
1,530,596,735
2018-07-03T05:45:35
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { static int[] C = new int[10001]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int current = 0; ...
Main.java:29: error: no suitable method found for collect(Collector<CharSequence,CAP#1,String>) System.out.println( Arrays.stream(B).boxed().map(n -> n).collect(joining(", "))); ^ method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super Integer>...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
708
v2_s720498996
s720498996
s720498996
p02275
p02275
u298224238
u298224238
1,530,596,754
2018-07-03T05:45:54
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { static int[] C = new int[10001]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int current = 0; ...
Main.java:28: error: no suitable method found for collect(Collector<CharSequence,CAP#1,String>) System.out.println( Arrays.stream(B).boxed().map(n -> n).collect(joining(", "))); ^ method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super Integer>...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
707
v2_s958524882
s958524882
s958524882
p02275
p02275
u298224238
u298224238
1,530,596,802
2018-07-03T05:46:42
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { static int[] C = new int[10001]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int current = 0; ...
Main.java:28: error: no suitable method found for collect(Collector<CharSequence,CAP#1,String>) System.out.println( Arrays.stream(B).boxed().collect(joining(", "))); ^ method Stream.<R#1>collect(Supplier<R#1>,BiConsumer<R#1,? super Integer>,BiConsumer<R#1,R#1>) is...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
695
v2_s811570668
s811570668
s811570668
p02275
p02275
u298224238
u298224238
1,530,597,088
2018-07-03T05:51:28
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { final static int k = 10000; static int[] C = new int[k]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextI...
Main.java:26: error: illegal start of expression for (int i = size - 1; i => 0; i--) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
759
v2_s817643302
s817643302
s817643302
p02275
p02275
u298224238
u298224238
1,530,597,863
2018-07-03T06:04:23
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { final static int k = 10001; static int[] C = new int[k]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextI...
Main.java:24: error: incompatible types: bad return type in lambda expression System.out.println(Arrays.stream(B).map(n -> String.valueOf(n)).collect(joining(" "))); ^ String cannot be converted to int Note: Some messages have been simplified; recom...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
719
v2_s091150806
s091150806
s091150806
p02275
p02275
u298224238
u298224238
1,530,597,890
2018-07-03T06:04:50
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { final static int k = 10001; static int[] C = new int[k]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextI...
Main.java:24: error: incompatible types: bad return type in lambda expression System.out.println(Arrays.stream(B).map(n -> n + "").collect(joining(" "))); ^ String cannot be converted to int Note: Some messages have been simplified; recompile with -Xdiags:verbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
708
v2_s967555843
s967555843
s967555843
p02275
p02275
u298224238
u298224238
1,530,597,918
2018-07-03T06:05:18
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { final static int k = 10001; static int[] C = new int[k]; public static void main(String... args) { Scanner sc = new Scanner(System.in); int size = sc.nextI...
Main.java:24: error: no suitable constructor found for String(int) System.out.println(Arrays.stream(B).map(n -> new String(n)).collect(joining(" "))); ^ constructor String.String(String) is not applicable (argument mismatch; int cannot be converted to Strin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298224238|p02275|0
u298224238|p02275|0
codenet
Compile Error
715
v2_s990413344
s990413344
s990413344
p02275
p02275
u298601711
u298601711
1,530,842,780
2018-07-06T02:06:20
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StreamTokenizer; public class Main { public static void main(String[] args) { Main main = new Main(); main.solv(); } private void solv() { Sca...
Main.java:88: error: class, interface, enum, or record expected Compile Error Logs: ^ Main.java:93: error: illegal character: '#' Case # Verdict CPU Time Memory In Out Case Name ^ Main.java:94: error: illegal character: '#' Case #1 : Accepted 00:04 24380 16 14 testcase_00 ^ Main.java:95: error: illegal charac...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298601711|p02275|0
u298601711|p02275|0
codenet
Compile Error
2,940
v2_s895060446
s895060446
s895060446
p02275
p02275
u377778881
u377778881
1,456,820,071
2016-03-01T08:14:31
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) throws IOException{ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; int[] b = new int[n]; int max = 0; for (int i = 0; i < n; i++) { a[i] = scan.nextInt(); max = Math.max(max, a...
Main.java:3: error: cannot find symbol public static void main (String[] args) throws IOException{ ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u377778881|p02275|0
u377778881|p02275|0
codenet
Compile Error
813
v2_s362930190
s362930190
s362930190
p02275
p02275
u406112655
u406112655
1,530,597,936
2018-07-03T06:05:36
Main.java
import java.io.*; import java.util.Arrays; import java.util.stream.Stream; import static java.util.stream.Collectors.joining; class Main { final static int k = 10001; static int[] C = new int[k]; public static void main(String... args) { InputStreamReader is = new InputStreamReader(System.in); Buffere...
Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown int size = Integer.parseInt(br.readLine()); ^ Main.java:19: error: unreported exception IOException; must be caught or declared to be thrown String[] strInputs = br.readLine(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u406112655|p02275|0
u406112655|p02275|0
codenet
Compile Error
860
v2_s549796859
s549796859
s549796859
p02275
p02275
u501711118
u501711118
1,432,528,304
2015-05-25T04:31:44
Main.java
#include<stdio.h> #include<stdlib.h> #define MAX 10000 int n; void CountingSort(int *A,int *B){ int i,j; int C[MAX+1]; for(i=0;i<=MAX;i++) C[i]=0; for(j=0;j<n;j++) C[A[j]]++; for(i=1;i<=MAX;i++) C[i]=C[i]+C[i-1]; for(j=n-1;j>=0;j--){ B[C[A[j]]]=A[j]; C[A[j]]--; } } int main(void){ int *A; in...
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:4: error: illegal character: '#' #define MAX 10000 ^ Main.java:7: error: unnamed classes are...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u501711118|p02275|0
u501711118|p02275|0
codenet
Compile Error
577
v2_s701287134
s701287134
s701287134
p02275
p02275
u563967927
u563967927
1,530,586,542
2018-07-03T02:55:42
Main.java
#include <stdio.h> #define N 2000001 int B[N], C[N]; void countingSort(int A[], int B[], int k, int n){ int i, j; for(i = 0; i <= k; i++){ C[i] = 0; } for(j = 1; j <= n; j++){ C[A[j]]++; } for(i = 1; i <= k; i++){ C[i] = C[i] + C[i - 1]; } for(j = n; j >= 1; j--){ B[C[A[j]]] = A[...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:3: error: illegal character: '#' #define N 2000001 ^ Main.java:7: error: unnamed classes are a preview feature and are disabled by default. void counting...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563967927|p02275|0
u563967927|p02275|0
codenet
Compile Error
641
v2_s275576626
s275576626
s275576626
p02275
p02275
u643111332
u643111332
1,518,703,928
2018-02-15T14:12:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * 境界部分には気をつける(そこだけ別で処理するというのもあり) * 逆再生することで簡単になることもある */ public class Main { public Main() { } public static void main(String[] args ) { Main main = new Main(); main.exec(); } ...
Main.java:52: error: incompatible types: possible lossy conversion from long to int if( ary[ii] > maxVal ) { ^ Main.java:53: error: incompatible types: possible lossy conversion from long to int maxVal = ary[ii]; ^ Main.java:61: error: incompatible types: possible loss...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u643111332|p02275|0
u643111332|p02275|0
codenet
Compile Error
2,492
v2_s300564469
s300564469
s300564469
p02275
p02275
u643111332
u643111332
1,521,804,417
2018-03-23T11:26:57
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { public int cnt = 0; public static final BigDecimal TWO = new BigDecimal(2); public static final BigDecimal THREE = new BigDecimal(3); public Main() { } public s...
Main.java:24: error: exception IOException is never thrown in body of corresponding try statement } catch (IOException e) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u643111332|p02275|1
u643111332|p02275|1
codenet
Compile Error
3,071
v2_s509717853
s509717853
s509717853
p02275
p02275
u710383977
u710383977
1,419,056,566
2014-12-20T06:22:46
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); int num = scan.nextInt(); ArrayList<String> list = new ArrayList<String>(); for(int i=0; i<num;i++) list.add(scan.next()); scan.close(); CountingSort cs = new Counti...
Main.java:73: error: cannot find symbol ArrayList<comparable> sortList; ^ symbol: class comparable location: class Sorting Main.java:77: error: cannot find symbol sortList = new ArrayList<comparable>(); ^ symbol: class comparable location: class Sorting Main.java:83:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u710383977|p02275|0
u710383977|p02275|0
codenet
Compile Error
1,701
v2_s073321844
s073321844
s073321844
p02275
p02275
u766183517
u766183517
1,530,608,256
2018-07-03T08:57:36
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.Deque; import java.util.ArrayDeque; public class Main { public static void main(String[] args) throws IOException { //BufferedReader br = new BufferedReader(new InputStreamRead...
Main.java:20: error: cannot find symbol int arr[] = new int[n]; ^ symbol: variable n location: class Main Main.java:22: error: cannot find symbol for(int i=0; i<n; i++){ ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02275|0
u766183517|p02275|0
codenet
Compile Error
1,798
v2_s096587735
s096587735
s096587735
p02275
p02275
u766183517
u766183517
1,530,608,904
2018-07-03T09:08:24
pr_6_A_counting_sort.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.Deque; import java.util.ArrayDeque; public class pr_6_A_counting_sort { public static void main(String[] args) throws IOException { /*BufferedReader br = new BufferedReader(new...
pr_6_A_counting_sort.java:46: error: cannot find symbol int C[] = new int[k+1]; // times of appearing (length: k) ^ symbol: variable k location: class pr_6_A_counting_sort pr_6_A_counting_sort.java:48: error: cannot find symbol for(int i=0; i<k; i++){ ^ symbol: variabl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02275|0
u766183517|p02275|0
codenet
Compile Error
1,872
v2_s949916026
s949916026
s949916026
p02275
p02275
u766183517
u766183517
1,530,608,937
2018-07-03T09:08:57
pr_6_A_counting_sort.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.Deque; import java.util.ArrayDeque; public class pr_6_A_counting_sort { public static void main(String[] args) throws IOException { /*BufferedReader br = new BufferedReader(new...
pr_6_A_counting_sort.java:47: error: cannot find symbol int C[] = new int[k+1]; // times of appearing (length: k) ^ symbol: variable k location: class pr_6_A_counting_sort pr_6_A_counting_sort.java:49: error: cannot find symbol for(int i=0; i<k; i++){ ^ symbol: variabl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02275|0
u766183517|p02275|0
codenet
Compile Error
1,901
v2_s430381608
s430381608
s430381608
p02275
p02275
u766183517
u766183517
1,530,608,944
2018-07-03T09:09:04
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.Deque; import java.util.ArrayDeque; public class Main { public static void main(String[] args) throws IOException { /*BufferedReader br = new BufferedReader(new InputStreamRead...
Main.java:47: error: cannot find symbol int C[] = new int[k+1]; // times of appearing (length: k) ^ symbol: variable k location: class Main Main.java:49: error: cannot find symbol for(int i=0; i<k; i++){ ^ symbol: variable k location: class Main Main.java:59: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02275|0
u766183517|p02275|0
codenet
Compile Error
1,885
v2_s619037941
s619037941
s619037941
p02275
p02275
u766183517
u766183517
1,530,608,973
2018-07-03T09:09:33
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Scanner; import java.util.Deque; import java.util.ArrayDeque; public class Main { public static void main(String[] args) throws IOException { /*BufferedReader br = new BufferedReader(new InputStreamRead...
Main.java:48: error: cannot find symbol int C[] = new int[k+1]; // times of appearing (length: k) ^ symbol: variable k location: class Main Main.java:50: error: cannot find symbol for(int i=0; i<k; i++){ ^ symbol: variable k location: class Main Main.java:60: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766183517|p02275|0
u766183517|p02275|0
codenet
Compile Error
1,885
v2_s655746128
s655746128
s655746128
p02275
p02275
u883466764
u883466764
1,337,784,142
2012-05-23T14:42:22
Main.java
import java.util.*; import java.io.*; class Main { static class Len { //int[] a = new int[2500000]; //int[] b = new int[2500000]; Len(int n) { int[] a = new int[n]; int[] b = new int[n]; } } public static void main(String args[]) { int n; int i, j, k; Scanner in = new Scanner(Sy...
Main.java:45: error: cannot find symbol len.a[i]=Integer.parseInt(str.nextToken()); ^ symbol: variable a location: variable len of type Len Main.java:46: error: cannot find symbol if(j<len.a[i])j=len.a[i]; ^ symbol: variable a location: variable len of type Len Main.java:4...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u883466764|p02275|1
u883466764|p02275|1
codenet
Compile Error
1,496
v2_s877271378
s877271378
s877271378
p02275
p02275
u883466764
u883466764
1,337,784,212
2012-05-23T14:43:32
Main.java
import java.util.*; import java.io.*; class Main { static class Len { int[] a = new int[2000000]; int[] b = new int[2000000]; } public static void main(String args[]) { int n; int i, j, k; Scanner in = new Scanner(System.in); String line = new String(); BufferedReader bin = new BufferedRea...
Main.java:30: error: constructor Len in class Len cannot be applied to given types; Len len = new Len(n); ^ required: no arguments found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u883466764|p02275|1
u883466764|p02275|1
codenet
Compile Error
1,420
v2_s791720887
s791720887
s791720887
p02275
p02275
u964312471
u964312471
1,530,603,252
2018-07-03T07:34:12
Main.java
#include<stdio.h> #include<stdlib.h> #define Max 2000001 #define VMAX 10000 void countingsort(short *,short *,int); //used template int main(){ unsigned short *A,*B; int n,i; scanf("%d",&n); A=(short *)malloc(sizeof(short)*n+1); B=(short *)malloc(sizeof(short)*n+1); for(i=1;i<n+1;i++){ scanf("%d",&A[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 2000001 ^ Main.java:4: error: illegal character...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964312471|p02275|1
u964312471|p02275|0
codenet
Compile Error
715
v2_s928480400
s928480400
s928480400
p02276
p02276
u047929551
u047929551
1,470,991,576
2016-08-12T08:46:16
Main.java
partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i] array[i] = tmp; }
Main.java:1: error: class, interface, enum, or record expected partition(int[] array, int p, int r) { ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. int i = p - 1; ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
297
v2_s816990320
s816990320
s816990320
p02276
p02276
u047929551
u047929551
1,470,992,815
2016-08-12T09:06:55
Main.java
public class Main { partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i] array[i] = tmp; } ...
Main.java:3: error: invalid method declaration; return type required partition(int[] array, int p, int r) { ^ Main.java:21: error: ';' expected array[j] = array[i] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
832
v2_s726754211
s726754211
s726754211
p02276
p02276
u047929551
u047929551
1,470,992,833
2016-08-12T09:07:13
Main.java
public class Main { int partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i] array[i] = tmp;...
Main.java:21: error: ';' expected array[j] = array[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
836
v2_s205466868
s205466868
s205466868
p02276
p02276
u047929551
u047929551
1,470,992,858
2016-08-12T09:07:38
Main.java
public class Main { int partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i]; array[i] = tmp...
Main.java:26: error: cannot find symbol int N = Integer.parseInt(arg[0]); ^ symbol: variable arg location: class Main Main.java:27: error: cannot find symbol String input = Integer.parseInt(arg[1]); ^ symbol: variable arg location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
837
v2_s328793167
s328793167
s328793167
p02276
p02276
u047929551
u047929551
1,470,992,928
2016-08-12T09:08:48
Main.java
public class Main { int partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i]; array[i] = tmp...
Main.java:27: error: incompatible types: int cannot be converted to String String input = Integer.parseInt(args[1]); ^ Main.java:34: error: cannot find symbol int part = partition(array[i], 0, array.length - 1); ^ symbol: variable i location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
839
v2_s264286323
s264286323
s264286323
p02276
p02276
u047929551
u047929551
1,470,993,062
2016-08-12T09:11:02
Main.java
public class Main { int partition(int[] array, int p, int r) { int pivot = array[r]; int i = p - 1; int j = p; while (j < r) { if (i < j) { i++; swap(array, i, j); } } swap(array, i, r); return i++; } void swap(int[] array, int i, int j) { int tmp = array[j]; array[j] = array[i]; array[i] = tmp...
Main.java:34: error: non-static method partition(int[],int,int) cannot be referenced from a static context int part = partition(array, 0, array.length - 1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02276|0
u047929551|p02276|0
codenet
Compile Error
817
v2_s174139849
s174139849
s174139849
p02276
p02276
u137514493
u137514493
1,531,192,516
2018-07-10T03:15:16
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