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_s744630700
s744630700
s744630700
p02969
p02969
u369712616
u369712616
1,584,068,603
2020-03-13T03:03:23
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(3*n*n); } }
Main.java:6: error: cannot find symbol System.out.println(3*n*n); ^ symbol: variable n location: class Main Main.java:6: error: cannot find symbol System.out.println(3*n*n); ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02969|0
u369712616|p02969|0
codenet
Compile Error
183
v2_s051800645
s051800645
s051800645
p02969
p02969
u378545912
u378545912
1,563,671,163
2019-07-21T01:06:03
Main.java
// Java program For handling Input/Output import java.io.*; import java.util.*; import java.math.*; public class Main { Scanner sc; //actual logic void solve(){ int r = ni(); System.out.println(3*r*r); } //constructor template(){ try{ sc = new Scanner(System.in); ...
Main.java:18: error: invalid method declaration; return type required template(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u378545912|p02969|0
u378545912|p02969|0
codenet
Compile Error
5,141
v2_s664839434
s664839434
s664839434
p02969
p02969
u420105436
u420105436
1,563,733,782
2019-07-21T18:29:42
Main.java
import com.sun.deploy.ui.MacJavaTrayIcon; import com.sun.tools.hat.internal.model.ReachableExcludes; import jdk.nashorn.internal.runtime.WithObject; import javax.swing.text.AsyncBoxView; import java.io.*; import java.math.BigInteger; import java.util.*; class Main { private static PrintWriter out; private s...
Main.java:1: error: package com.sun.deploy.ui does not exist import com.sun.deploy.ui.MacJavaTrayIcon; ^ Main.java:2: error: package com.sun.tools.hat.internal.model does not exist import com.sun.tools.hat.internal.model.ReachableExcludes; ^ Main.java:3: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420105436|p02969|0
u420105436|p02969|0
codenet
Compile Error
3,197
v2_s826978174
s826978174
s826978174
p02969
p02969
u506422818
u506422818
1,599,109,384
2020-09-03T05:03:04
Main.java
a = [] t = int(input()) s = "" for i in range(t): a.append(int(input())) for i in range(t): b = a[i] del a[i] print(max(a)) a.insert(i,b)
Main.java:1: error: class, interface, enum, or record expected a = [] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u506422818|p02969|0
u506422818|p02969|0
codenet
Compile Error
158
v2_s006247572
s006247572
s006247572
p02969
p02969
u506422818
u506422818
1,599,109,439
2020-09-03T05:03:59
Main.java
a = [] t = int(input()) for i in range(t): a.append(int(input())) for i in range(t): b = a[i] del a[i] print(max(a)) a.insert(i,b)
Main.java:1: error: class, interface, enum, or record expected a = [] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u506422818|p02969|0
u506422818|p02969|0
codenet
Compile Error
151
v2_s961281025
s961281025
s961281025
p02969
p02969
u534504780
u534504780
1,563,679,087
2019-07-21T03:18:07
Main.java
import java.util.* public class Main{ public static void main{ Scanner r = new Scanner(System.in); int answer; answer = 3 * r * r; System.out.println(answer);
Main.java:1: error: ';' expected import java.util.* ^ Main.java:3: error: '(' expected public static void main{ ^ Main.java:7: error: reached end of file while parsing System.out.println(answer); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
176
v2_s358313057
s358313057
s358313057
p02969
p02969
u534504780
u534504780
1,563,679,200
2019-07-21T03:20:00
Main.java
import java.util.* public class Main{ public static void main{ Scanner r = new Scanner(System.in); int answer; answer = 3 * r * r; System.out.println(answer); } }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:3: error: '(' expected public static void main{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
181
v2_s709434219
s709434219
s709434219
p02969
p02969
u534504780
u534504780
1,563,679,279
2019-07-21T03:21:19
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner r = new Scanner(System.in); int answer; answer = 3 * r * r; System.out.println(answer); } }
Main.java:6: error: bad operand types for binary operator '*' answer = 3 * r * r; ^ first type: int second type: Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
185
v2_s820697271
s820697271
s820697271
p02969
p02969
u534504780
u534504780
1,563,679,391
2019-07-21T03:23:11
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner r = new Scanner(System.in); int t = r; int answer; answer = 3 * t * t; System.out.println(answer); } }
Main.java:5: error: incompatible types: Scanner cannot be converted to int int t = r; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
200
v2_s676544180
s676544180
s676544180
p02969
p02969
u534504780
u534504780
1,563,679,457
2019-07-21T03:24:17
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner r = new Scanner(System.in); int answer; answer = r * r; System.out.println(answer * 3); } }
Main.java:6: error: bad operand types for binary operator '*' answer = r * r; ^ first type: Scanner second type: Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
185
v2_s548121874
s548121874
s548121874
p02969
p02969
u534504780
u534504780
1,563,679,842
2019-07-21T03:30:42
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner r = new Scanner(System.in); int r = scanner.nextInt(); int answer; answer = 3 * r * r; System.out.println(answer); } }
Main.java:5: error: variable r is already defined in method main() int r = scanner.nextInt(); ^ Main.java:5: error: cannot find symbol int r = scanner.nextInt(); ^ symbol: variable scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02969|0
u534504780|p02969|0
codenet
Compile Error
216
v2_s415448512
s415448512
s415448512
p02969
p02969
u537747009
u537747009
1,563,678,583
2019-07-21T03:09:43
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @auth...
Main.java:28: error: cannot find symbol public void solve(int testNumber, FastReader s, PrintWriter w) { ^ symbol: class FastReader location: class Task Main.java:20: error: cannot find symbol FastReader in = new FastReader(inputStream); ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537747009|p02969|1
u537747009|p02969|0
codenet
Compile Error
1,592
v2_s007440104
s007440104
s007440104
p02969
p02969
u537747009
u537747009
1,563,678,691
2019-07-21T03:11:31
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @auth...
Main.java:28: error: cannot find symbol public void solve(int testNumber, FastReader s, PrintWriter w) { ^ symbol: class FastReader location: class Task Main.java:20: error: non-static variable this cannot be referenced from a static context FastRead in = ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537747009|p02969|1
u537747009|p02969|0
codenet
Compile Error
1,537
v2_s414149049
s414149049
s414149049
p02969
p02969
u537747009
u537747009
1,563,678,725
2019-07-21T03:12:05
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @auth...
Main.java:20: error: non-static variable this cannot be referenced from a static context FastRead in = new FastRead(inputStream); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537747009|p02969|1
u537747009|p02969|0
codenet
Compile Error
1,535
v2_s977938450
s977938450
s977938450
p02969
p02969
u628934833
u628934833
1,563,673,082
2019-07-21T01:38:02
Main.java
Scanner scan = new Scanner(System.in); String rStr = scan.next(); int r = Integer.parseInt(rStr); int S = 3*r*r; System.out.println(S);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expected System.out.println(S); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628934833|p02969|0
u628934833|p02969|0
codenet
Compile Error
136
v2_s992285002
s992285002
s992285002
p02969
p02969
u628934833
u628934833
1,563,673,224
2019-07-21T01:40:24
Main.java
import java.util.Scanner; Scanner scan = new Scanner(System.in); String rStr = scan.next(); int r = Integer.parseInt(rStr); int S = 3*r*r; System.out.println(S);
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:8: error: class, interface, enum, or record expected System.out.println(S); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628934833|p02969|0
u628934833|p02969|0
codenet
Compile Error
164
v2_s402653832
s402653832
s402653832
p02969
p02969
u739409978
u739409978
1,563,672,755
2019-07-21T01:32:35
Main.java
public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); int n=in.nextInt(); System.out.println(3*n*n); } }
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
u739409978|p02969|0
u739409978|p02969|0
codenet
Compile Error
152
v2_s379021183
s379021183
s379021183
p02969
p02969
u776290965
u776290965
1,564,199,543
2019-07-27T03:52:23
solution.java
import java.util.*; public class solution { public stataic void main(String[] args) { Scanner sc=new Scanner(System.in); int r=sc.nextInt(); System.out.println(3*r*r); } }
solution.java:4: error: <identifier> expected public stataic void main(String[] args) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u776290965|p02969|0
u776290965|p02969|0
codenet
Compile Error
193
v2_s758927312
s758927312
s758927312
p02969
p02969
u806768852
u806768852
1,587,044,459
2020-04-16T13:40:59
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n*n*3) } }
Main.java:6: error: ';' expected System.out.println(n*n*3) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p02969|0
u806768852|p02969|0
codenet
Compile Error
184
v2_s102406235
s102406235
s102406235
p02969
p02969
u808092152
u808092152
1,564,234,109
2019-07-27T13:28:29
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int r = scan.nextInt(); scan.close(); System.out.println(3*r*r); }
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808092152|p02969|0
u808092152|p02969|0
codenet
Compile Error
205
v2_s672872982
s672872982
s672872982
p02969
p02969
u818640918
u818640918
1,563,674,692
2019-07-21T02:04:52
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt; a = a*a*3; System.out.println(a); } }
Main.java:5: error: cannot find symbol int a = sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02969|0
u818640918|p02969|0
codenet
Compile Error
168
v2_s638944532
s638944532
s638944532
p02969
p02969
u870981361
u870981361
1,588,345,241
2020-05-01T15:00:41
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[] a = new int[N]; int[] b = new int[N]; for (int i=0; i < N ;i++) { a[i] = sc.nextInt(); b[i] = a[i]; } Array.sort(a); for ...
Main.java:13: error: cannot find symbol Array.sort(a); ^ symbol: variable Array location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02969|0
u870981361|p02969|0
codenet
Compile Error
477
v2_s227600233
s227600233
s227600233
p02969
p02969
u870981361
u870981361
1,588,345,272
2020-05-01T15:01:12
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[] a = new int[N]; int[] b = new int[N]; for (int i=0; i < N ;i++) { a[i] = sc.nextInt(); b[i] = a[i]; } Array.sort(a); for ...
Main.java:13: error: cannot find symbol Array.sort(a); ^ symbol: variable Array location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02969|0
u870981361|p02969|0
codenet
Compile Error
477
v2_s378614892
s378614892
s378614892
p02969
p02969
u934782869
u934782869
1,593,209,051
2020-06-26T22:04:11
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println((int)Math.pow(r, 2) * 3); } }
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934782869|p02969|0
u934782869|p02969|0
codenet
Compile Error
226
v2_s312554644
s312554644
s312554644
p02969
p02969
u946973499
u946973499
1,572,581,581
2019-11-01T04:13:01
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int r = sc.nectInt(); System.out.println(3*r*r); } }
Main.java:6: error: cannot find symbol int r = sc.nectInt(); ^ symbol: method nectInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u946973499|p02969|0
u946973499|p02969|0
codenet
Compile Error
215
v2_s233105914
s233105914
s233105914
p02969
p02969
u958210291
u958210291
1,563,670,919
2019-07-21T01:01:59
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int result = 3 * r * r System.out.println(result); } }
Main.java:6: error: ';' expected int result = 3 * r * r ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02969|0
u958210291|p02969|0
codenet
Compile Error
211
v2_s271150697
s271150697
s271150697
p02969
p02969
u960802024
u960802024
1,563,670,948
2019-07-21T01:02:28
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); Integer n = Integer.parseInt(scan.next()); System.out.println(3 * (n*n); } }
Main.java:10: error: ')' or ',' expected System.out.println(3 * (n*n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960802024|p02969|0
u960802024|p02969|0
codenet
Compile Error
237
v2_s202982681
s202982681
s202982681
p02969
p02969
u965001777
u965001777
1,563,670,911
2019-07-21T01:01:51
Main.java
public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(3*r*r); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u965001777|p02969|0
u965001777|p02969|0
codenet
Compile Error
199
v2_s285806605
s285806605
s285806605
p02970
p02970
u025593152
u025593152
1,563,754,408
2019-07-22T00:13:28
Main.java
public static void main(){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); int n; n = N / (2*D+1); System.out.println(n+1); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u025593152|p02970|0
u025593152|p02970|0
codenet
Compile Error
179
v2_s171085990
s171085990
s171085990
p02970
p02970
u047746316
u047746316
1,592,424,743
2020-06-17T20:12:23
Main.java
import java.util.Scanner; import java.math.BigDecimal; import java.math.RoundingMode; public class Main { public static void main(String[] args) {  Scanner sc = new Scanner(System.in); //入力 double N = sc.nextDouble();//木の本数 double D = sc.nextDouble(); //1人の監視員が監視できる範囲 ...
Main.java:7: error: illegal character: '\u3000' ?Scanner sc = new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047746316|p02970|0
u047746316|p02970|0
codenet
Compile Error
847
v2_s858299277
s858299277
s858299277
p02970
p02970
u130588436
u130588436
1,563,672,670
2019-07-21T01:31:10
Main.java
import java.util.*; class b { public static void main(String[] args){ Scanner sc = new Scanner(System.in()); int n = sc.nextInt(); int d = sc.nextInt(); int a,i = 0; while(a < n){ a += 2 * d + 1; i ++; } System.out.println(i); } }
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in()); ^ symbol: method in() location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130588436|p02970|0
u130588436|p02970|0
codenet
Compile Error
289
v2_s885108969
s885108969
s885108969
p02970
p02970
u130588436
u130588436
1,563,672,940
2019-07-21T01:35:40
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in()); int n = sc.nextInt(); int d = sc.nextInt(); int a,i = 0; while(a < n){ a += 2 * d + 1; i ++; } System.out.println(i); } }
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in()); ^ symbol: method in() location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130588436|p02970|0
u130588436|p02970|0
codenet
Compile Error
310
v2_s407629582
s407629582
s407629582
p02970
p02970
u130588436
u130588436
1,563,672,980
2019-07-21T01:36:20
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int a,i = 0; while(a < n){ a += 2 * d + 1; i ++; } System.out.println(i); } }
Main.java:10: error: variable a might not have been initialized while(a < n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130588436|p02970|0
u130588436|p02970|0
codenet
Compile Error
308
v2_s546846959
s546846959
s546846959
p02970
p02970
u212397344
u212397344
1,585,275,528
2020-03-27T02:18:48
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int ans = ((N+(2*K+1)-1)/K; System.out.print(ans); } }
Main.java:7: error: ')' expected int ans = ((N+(2*K+1)-1)/K; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02970|0
u212397344|p02970|0
codenet
Compile Error
238
v2_s075353941
s075353941
s075353941
p02970
p02970
u251779460
u251779460
1,563,727,617
2019-07-21T16:46:57
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 d=sc.nextInt(); int sta=d*2+1; for(i=0;i<20;i++){ if(sta*i>=n){ System.out.println(i); break; } } } }
Main.java:9: error: cannot find symbol for(i=0;i<20;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=0;i<20;i++){ ^ symbol: variable i location: class Main Main.java:9: error: cannot find symbol for(i=0;i<20;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p02970|0
u251779460|p02970|0
codenet
Compile Error
311
v2_s192214515
s192214515
s192214515
p02970
p02970
u276492340
u276492340
1,564,071,842
2019-07-25T16:24:02
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 D = sc.nextInt(); int A = N - D; int ans; for(int i = 0; i > A; i ++ ){ ans = i; } System.out.print(ans/2); } }
Main.java:17: error: variable ans might not have been initialized System.out.print(ans/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02970|0
u276492340|p02970|0
codenet
Compile Error
290
v2_s527743850
s527743850
s527743850
p02970
p02970
u276492340
u276492340
1,564,072,017
2019-07-25T16:26:57
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); int A = N - D; int ans; for(int i = 0; i > A; i ++ ){ ans = (i+1)/2; } System.out.print(ans); } }
Main.java:17: error: variable ans might not have been initialized System.out.print(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02970|0
u276492340|p02970|0
codenet
Compile Error
294
v2_s232142461
s232142461
s232142461
p02970
p02970
u347452770
u347452770
1,563,671,213
2019-07-21T01:06:53
Main.java
import java.uti.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int d = scan.nextInt(); int sight = 2 * d + 1; if(n % d == 0) { System.out.print(n / d); } else { System.out.pr...
Main.java:1: error: package java.uti does not exist import java.uti.*; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02970|0
u347452770|p02970|0
codenet
Compile Error
353
v2_s009570876
s009570876
s009570876
p02970
p02970
u347452770
u347452770
1,563,671,280
2019-07-21T01:08:00
Main.java
import java.uti.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int d = scan.nextInt(); int sight = 2 * d + 1; if(n % d == 0) { System.out.print(n / sight); } else { System.ou...
Main.java:1: error: package java.uti does not exist import java.uti.*; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02970|0
u347452770|p02970|0
codenet
Compile Error
361
v2_s423493549
s423493549
s423493549
p02970
p02970
u469281291
u469281291
1,563,675,430
2019-07-21T02:17:10
Main.java
java.util.*; public class Main{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int N=s.nextInt(); int D=s.nextInt(); int check=N/D; int ans=0; if(N<=2*D+1){ System.out.print(1); } else{ if(check%2!=0){ ans=check/2...
Main.java:1: error: class, interface, enum, or record expected java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u469281291|p02970|0
u469281291|p02970|0
codenet
Compile Error
440
v2_s813220118
s813220118
s813220118
p02970
p02970
u469281291
u469281291
1,563,678,277
2019-07-21T03:04:37
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int N=s.nextInt(); int D=s.nextInt(); int check=N/D; int ans=0; if(N<=2*D+1){ System.out.print(1); } else{ System.out.print(N/(2*D+1)) } } }
Main.java:2: error: ';' expected System.out.print(N/(2*D+1)) } } } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u469281291|p02970|0
u469281291|p02970|0
codenet
Compile Error
255
v2_s676150219
s676150219
s676150219
p02970
p02970
u474492589
u474492589
1,565,010,561
2019-08-05T13:09: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 D = sc.nextInt(); if ((N % (2*D+1) != 0) System.out.println((N / (2*D+1))+1); else System.out.println((N / ...
Main.java:10: error: ')' expected if ((N % (2*D+1) != 0) ^ Main.java:13: error: ')' or ',' expected System.out.println((N / (2*D+1)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02970|0
u474492589|p02970|0
codenet
Compile Error
337
v2_s368040539
s368040539
s368040539
p02970
p02970
u474492589
u474492589
1,565,010,615
2019-08-05T13:10:15
Main.java
mport java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); sc.close(); if ((N % (2*D+1)) != 0) System.out.println((N / (2*D+1))+1); else Syst...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ Main.java:14: error: ')' or ',' expected System.out.println((N / (2*D+1)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02970|0
u474492589|p02970|0
codenet
Compile Error
357
v2_s615339257
s615339257
s615339257
p02970
p02970
u474492589
u474492589
1,565,010,702
2019-08-05T13:11:42
Main.java
mport java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); sc.close(); if ((N % (2*D+1)) != 0) System.out.println((N / (2*D+1))+1); else Syst...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ Main.java:14: error: ')' or ',' expected System.out.println((N / (2*D+1)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02970|0
u474492589|p02970|0
codenet
Compile Error
357
v2_s896972113
s896972113
s896972113
p02970
p02970
u547167033
u547167033
1,565,732,134
2019-08-13T21:35:34
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 d = sc.nextInt(); int num = (int) n/(2*d+1) if(n/(2*d+1) == (int)n/(2*d+1)) System.out.println(num); else System.out.println(num+1...
Main.java:7: error: ';' expected int num = (int) n/(2*d+1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02970|0
u547167033|p02970|0
codenet
Compile Error
331
v2_s352621689
s352621689
s352621689
p02970
p02970
u547167033
u547167033
1,565,732,969
2019-08-13T21:49:29
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 d = sc.nextInt(); int x = Math.ceil(n/(2*d+1)); System.out.println(x); } }
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = Math.ceil(n/(2*d+1)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02970|0
u547167033|p02970|0
codenet
Compile Error
251
v2_s182738377
s182738377
s182738377
p02970
p02970
u547167033
u547167033
1,565,733,117
2019-08-13T21:51:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); double x = Math.ceil(n/(2*d+1)); int y = (int) x System.out.println(y); } }
Main.java:8: error: ';' expected int y = (int) x ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02970|0
u547167033|p02970|0
codenet
Compile Error
276
v2_s641300526
s641300526
s641300526
p02970
p02970
u547167033
u547167033
1,565,733,514
2019-08-13T21:58:34
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 d = sc.nextInt(); double x = Math.ceil(n/(2*d+1)); int y = (int) x System.out.println(y); } }
Main.java:8: error: ';' expected int y = (int) x ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02970|0
u547167033|p02970|0
codenet
Compile Error
276
v2_s353147766
s353147766
s353147766
p02970
p02970
u628934833
u628934833
1,563,677,385
2019-07-21T02:49:45
Main.java
import java.util.Scanner; public class Main { //クラス名はMain public static void main(String[] args) { Scanner scan = new Scanner(System.in); String n = scan.next(); String d = scan.next(); int N = Integer.parseInt(n); int D = Integer.parseInt(d); int ans = (N + 2*D) / (2*D +1) S...
Main.java:11: error: ';' expected int ans = (N + 2*D) / (2*D +1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628934833|p02970|0
u628934833|p02970|0
codenet
Compile Error
365
v2_s795081883
s795081883
s795081883
p02970
p02970
u653428653
u653428653
1,564,020,058
2019-07-25T02:00:58
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while (in.hasNextLine()) { String line = in.nextLine(); lines.add(line); } int intN = Integer.parseInt(lines.get(0)); int intD = Integer.parseInt(lines.get(1)); Syst...
Main.java:7: error: cannot find symbol while (in.hasNextLine()) { ^ symbol: variable in location: class Main Main.java:8: error: cannot find symbol String line = in.nextLine(); ^ symbol: variable in location: class Main Main.java:9: error: cannot find symbol lin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653428653|p02970|0
u653428653|p02970|0
codenet
Compile Error
362
v2_s574089358
s574089358
s574089358
p02970
p02970
u653428653
u653428653
1,564,024,345
2019-07-25T03:12:25
Main.java
public class Main { public static void main(String[] args) throws Exception { Scanner scn = new Scanner(System.in); String str = scn.nextLine(); int maxOrMin = Integer.parseInt(scn.nextLine()); int hatena = 0; int x = 0; int y = 0; for (int i = 0; i < st...
Main.java:4: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653428653|p02970|0
u653428653|p02970|0
codenet
Compile Error
1,066
v2_s694798369
s694798369
s694798369
p02970
p02970
u653428653
u653428653
1,564,028,216
2019-07-25T04:16:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String point = sc.nextLine(); String[] points = point.split(" "); int n = Integer.parseInt(points[0]); int d = Integer.parseInt(points[1]); int d2 = ...
Main.java:12: error: incompatible types: possible lossy conversion from double to int int d2 = d * 2.0 + 1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653428653|p02970|0
u653428653|p02970|0
codenet
Compile Error
451
v2_s262945244
s262945244
s262945244
p02970
p02970
u716366168
u716366168
1,564,250,670
2019-07-27T18:04:30
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 d = sc.nextInt(); int a = 0; do { a++; n-- } while (a * 2 * d < n); System.out.println(a); sc.close(); } }
Main.java:15: error: ';' expected n-- ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u716366168|p02970|0
u716366168|p02970|0
codenet
Compile Error
310
v2_s797211947
s797211947
s797211947
p02970
p02970
u760718569
u760718569
1,573,169,920
2019-11-07T23:38:40
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = 0; for(i = 1;;i++){ c += 2 * a + 1; if(a <= c){ System.out.println(i); break; } } } ...
Main.java:8: error: cannot find symbol for(i = 1;;i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for(i = 1;;i++){ ^ symbol: variable i location: class Main Main.java:11: error: cannot find symbol System.out.println(i); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02970|0
u760718569|p02970|0
codenet
Compile Error
321
v2_s177754046
s177754046
s177754046
p02970
p02970
u794280735
u794280735
1,563,671,179
2019-07-21T01:06:19
Main.java
import java.util.Scanner; import java.util.InputMismatchException; class Main { public static void main(String args[]) { int x=0 ,y=0; Scanner scanner = new Scanner(System.in); x = scanner.nextInt(); y = scanner.nextInt(); scanner.close(); int kansi = y*2+1; if (y%kasi == 0...
Main.java:12: error: cannot find symbol if (y%kasi == 0) { ^ symbol: variable kasi location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794280735|p02970|0
u794280735|p02970|0
codenet
Compile Error
434
v2_s891847699
s891847699
s891847699
p02970
p02970
u794280735
u794280735
1,563,671,249
2019-07-21T01:07:29
Main.java
import java.util.Scanner; import java.util.InputMismatchException; class Main { public static void main(String args[]) { int x=0 ,y=0; Scanner scanner = new Scanner(System.in); x = scanner.nextInt(); y = scanner.nextInt(); scanner.close(); int kansi = y*2+1; if (y%kasi == 0...
Main.java:12: error: cannot find symbol if (y%kasi == 0) { ^ symbol: variable kasi location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794280735|p02970|0
u794280735|p02970|0
codenet
Compile Error
434
v2_s509167759
s509167759
s509167759
p02970
p02970
u818640918
u818640918
1,563,675,053
2019-07-21T02:10:53
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextint(); int s = D+D+1; int p = N % D; int f = N - p; System.out.println(f/D); } }
Main.java:6: error: cannot find symbol int D = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02970|0
u818640918|p02970|0
codenet
Compile Error
228
v2_s460902914
s460902914
s460902914
p02970
p02970
u864630637
u864630637
1,563,755,720
2019-07-22T00:35:20
Main.java
import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.BufferedReader; public class Main{ public static void main(String[] args) throws IOException, InterruptedException { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.ou...
Main.java:10: error: cannot find symbol public static void main(String[] args) throws IOException, InterruptedException { ^ symbol: class IOException location: class Main Main.java:146: error: cannot find symbol public Scanner(InputStream system) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u864630637|p02970|0
u864630637|p02970|0
codenet
Compile Error
3,350
v2_s074579786
s074579786
s074579786
p02970
p02970
u914475937
u914475937
1,563,671,783
2019-07-21T01:16:23
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int D = scan.nextInt(); int i=0; int x = N; for(i=0; x > 0;i++) { x -= 2*D+1; } System.out.println(String.valueOf(i...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u914475937|p02970|0
u914475937|p02970|0
codenet
Compile Error
330
v2_s043603840
s043603840
s043603840
p02970
p02970
u958210291
u958210291
1,563,671,524
2019-07-21T01:12:04
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int count = 0; int result = 0; for(int i = 0;i < n;i++){ if(2*D*i >= n & count == 0){ result = i; count++;...
Main.java:12: error: cannot find symbol if(2*D*i >= n & count == 0){ ^ symbol: variable D location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02970|0
u958210291|p02970|0
codenet
Compile Error
372
v2_s454633407
s454633407
s454633407
p02970
p02970
u958210291
u958210291
1,563,671,824
2019-07-21T01:17:04
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt();//14 int d = sc.nextInt();//3 int result = 0; for(int i = 0;i < n;i++){ if(3*d*i > n & count == 0){ result = i; break; } } S...
Main.java:10: error: cannot find symbol if(3*d*i > n & count == 0){ ^ symbol: variable count location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02970|0
u958210291|p02970|0
codenet
Compile Error
352
v2_s082790698
s082790698
s082790698
p02970
p02970
u965001777
u965001777
1,563,672,294
2019-07-21T01:24:54
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); int cnt = 0; for (int i = 0; i < N; i++) { if (i - D > 0) { cnt++; i = i + D; ...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u965001777|p02970|0
u965001777|p02970|0
codenet
Compile Error
446
v2_s208963435
s208963435
s208963435
p02971
p02971
u083824251
u083824251
1,593,030,515
2020-06-24T20:28:35
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); //数字列 ArrayList<Integer>a= new ArrayList<>(); for(int i=0;i<n;i++) { ...
Main.java:32: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:33: error: class, interface, enum, or record expected import java.util.Collections; ^ Main.java:34: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u083824251|p02971|0
u083824251|p02971|0
codenet
Compile Error
1,284
v2_s271851595
s271851595
s271851595
p02971
p02971
u124992755
u124992755
1,574,775,083
2019-11-26T13:31:23
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = Integer.parseInt(scanner.next()); Integer[][] A = new Integer[N][2]; for (int i = 0; i < N; i++) { A[i][0] ...
Main.java:29: error: cannot find symbol for (int n : ans) { ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124992755|p02971|0
u124992755|p02971|0
codenet
Compile Error
867
v2_s877995534
s877995534
s877995534
p02971
p02971
u147886643
u147886643
1,564,415,004
2019-07-29T15:43:24
Main.java
import java.util.*; class Main { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n];\ int max = 0; int sec = 0; for(int i=0;i<n;i++) { arr[i] = sc.nextInt(); if(arr[i] > max) { sec = max; max = arr[i]; } else if(arr[i] > sec){ ...
Main.java:5: error: illegal character: '\' int[] arr = new int[n];\ ^ Main.java:6: error: <identifier> expected int max = 0; ^ Main.java:8: error: illegal start of type for(int i=0;i<n;i++) { ^ Main.java:8: error: > or ',' expected for(int i=0;i<n;i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u147886643|p02971|0
u147886643|p02971|0
codenet
Compile Error
494
v2_s224240723
s224240723
s224240723
p02971
p02971
u147886643
u147886643
1,564,415,173
2019-07-29T15:46:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; int max = 0; int sec = 0; for(int i=0;i<n;i++) { arr[i] = sc.nextInt(); if(arr[i] > max) { sec = max; max = arr[i]...
Main.java:20: error: cannot find symbol if(a[i] == max) { ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u147886643|p02971|0
u147886643|p02971|0
codenet
Compile Error
541
v2_s139628528
s139628528
s139628528
p02971
p02971
u218740431
u218740431
1,588,461,341
2020-05-02T23:15:41
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int max = 0; int point = -1; for(int i=0;i<a;i++){ in[i] = sc.nextInt(); if(max<=in[i]){max = in[i];...
Main.java:9: error: cannot find symbol in[i] = sc.nextInt(); ^ symbol: variable in location: class Main Main.java:10: error: cannot find symbol if(max<=in[i]){max = in[i];point=i;} ^ symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02971|0
u218740431|p02971|0
codenet
Compile Error
592
v2_s464556685
s464556685
s464556685
p02971
p02971
u274962354
u274962354
1,563,722,545
2019-07-21T15:22:25
Main.java
import java.util.Scanner; public class Main { static Scanner scan=new Scanner(System.in); static int gcd (int a, int b) {return b>0?gcd(b,a%b):a;} static long lcm (int a, int b) {return a*b/gcd(a,b);} static int max(int a,int b) {return a>b?a:b;} static int min(int a,int b) {return a<b?a:b;} static long factorial...
Main.java:48: error: ';' expected for(int i=0i<a;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p02971|1
u274962354|p02971|1
codenet
Compile Error
1,405
v2_s051051752
s051051752
s051051752
p02971
p02971
u274962354
u274962354
1,563,722,612
2019-07-21T15:23:32
Main.java
import java.util.Scanner; public class Main { static Scanner scan=new Scanner(System.in); static int gcd (int a, int b) {return b>0?gcd(b,a%b):a;} static long lcm (int a, int b) {return a*b/gcd(a,b);} static int max(int a,int b) {return a>b?a:b;} static int min(int a,int b) {return a<b?a:b;} static long factorial...
Main.java:51: error: cannot find symbol else System.our.println(max); ^ symbol: variable our location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p02971|1
u274962354|p02971|1
codenet
Compile Error
1,419
v2_s523505602
s523505602
s523505602
p02971
p02971
u274962354
u274962354
1,595,210,771
2020-07-20T02:06:11
Main.java
2 5 5
Main.java:1: error: class, interface, enum, or record expected 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p02971|2
u274962354|p02971|2
codenet
Compile Error
5
v2_s179467477
s179467477
s179467477
p02971
p02971
u305052967
u305052967
1,569,068,293
2019-09-21T12:18:13
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[] A = new int[N]; int max = 0; int second = 0; for(int i=0; i<N; i++){ A[i] = sc.nextInt(); ...
Main.java:16: error: incompatible types: int cannot be converted to boolean else if(A[max] = A[i]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305052967|p02971|0
u305052967|p02971|0
codenet
Compile Error
689
v2_s093533885
s093533885
s093533885
p02971
p02971
u342374988
u342374988
1,565,811,568
2019-08-14T19:39:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int coursol = sc.nextInt(); ArrayList<Integer> list = new ArrayList<Integer>(); int AnsMin = 0; for( int i = 0 ; i < coursol ; i++){ list.add(sc.nextIn...
Main.java:21: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342374988|p02971|0
u342374988|p02971|0
codenet
Compile Error
590
v2_s473442425
s473442425
s473442425
p02971
p02971
u347452770
u347452770
1,563,671,790
2019-07-21T01:16:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int[n]; for(int i = 0; i < n; i ++){ a[i] = scan.nextInt(); } for(int j = 0;j < n; j++){ int swap = a...
Main.java:15: error: package Sysmtem does not exist Sysmtem.out.print(a[n]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02971|0
u347452770|p02971|0
codenet
Compile Error
448
v2_s857056279
s857056279
s857056279
p02971
p02971
u369712616
u369712616
1,584,722,550
2020-03-20T16:42:30
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextint; int[] seq = new int[n]; int f = 0; int index = 0; int s = 0; for(int i = 0 ; i < n;; i++){ seq[i]= sc.nextInt(); if(seq[i] >= f){ s = f...
Main.java:10: error: illegal start of expression for(int i = 0 ; i < n;; i++){ ^ Main.java:10: error: ';' expected for(int i = 0 ; i < n;; i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02971|0
u369712616|p02971|0
codenet
Compile Error
496
v2_s589475095
s589475095
s589475095
p02971
p02971
u369712616
u369712616
1,584,722,584
2020-03-20T16:43:04
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextint; int[] seq = new int[n]; int f = 0; int index = 0; int s = 0; for(int i = 0 ; i < n; i++){ seq[i]= sc.nextInt(); if(seq[i] >= f){ s = f;...
Main.java:5: error: cannot find symbol int n = sc.nextint; ^ symbol: variable nextint location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02971|0
u369712616|p02971|0
codenet
Compile Error
495
v2_s680787235
s680787235
s680787235
p02971
p02971
u369712616
u369712616
1,584,722,605
2020-03-20T16:43:25
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt; int[] seq = new int[n]; int f = 0; int index = 0; int s = 0; for(int i = 0 ; i < n; i++){ seq[i]= sc.nextInt(); if(seq[i] >= f){ s = f;...
Main.java:5: error: cannot find symbol int n = sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02971|0
u369712616|p02971|0
codenet
Compile Error
495
v2_s775411266
s775411266
s775411266
p02971
p02971
u387775763
u387775763
1,578,610,438
2020-01-09T22:53:58
Main.java
import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } for (int i = 0; i < n; i++) { for (int j = ...
Main.java:18: error: cannot find symbol max = Math.max(max,a[j]); ^ symbol: variable max location: class Main Main.java:18: error: cannot find symbol max = Math.max(max,a[j]); ^ symbol: variable max location: class Main Main.java:20: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p02971|1
u387775763|p02971|1
codenet
Compile Error
460
v2_s501325063
s501325063
s501325063
p02971
p02971
u387775763
u387775763
1,578,610,471
2020-01-09T22:54:31
Main.java
import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } for (int i = 0; i < n; i++) { int count = 0...
Main.java:19: error: cannot find symbol max = Math.max(max,a[j]); ^ symbol: variable max location: class Main Main.java:19: error: cannot find symbol max = Math.max(max,a[j]); ^ symbol: variable max location: class Main Main.java:21: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p02971|1
u387775763|p02971|1
codenet
Compile Error
481
v2_s486040902
s486040902
s486040902
p02971
p02971
u397604928
u397604928
1,593,279,594
2020-06-27T17:39:54
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) throws FileNotFoundException { // File file = new File("src/in.txt"); // Scanner sc = new Scanner(file); Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; ...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws FileNotFoundException { ^ symbol: class FileNotFoundException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397604928|p02971|0
u397604928|p02971|0
codenet
Compile Error
617
v2_s691778422
s691778422
s691778422
p02971
p02971
u474492589
u474492589
1,565,100,642
2019-08-06T14:10:42
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[] a = new int[n]; for(int i = 0; i < n; i++) a[i] = sc.nextInt(); int max1 = max(a); int max2 = sec_max(...
Main.java:23: error: cannot find symbol return max1.sec_max(a); ^ symbol: variable max1 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02971|0
u474492589|p02971|0
codenet
Compile Error
928
v2_s243892272
s243892272
s243892272
p02971
p02971
u506422818
u506422818
1,599,109,499
2020-09-03T05:04:59
Main.java
a = [] t = int(input()) s = "" for i in range(t): a.append(int(input())) for i in range(t): b = a[i] del a[i] print(max(a)) a.insert(i,b)
Main.java:1: error: class, interface, enum, or record expected a = [] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u506422818|p02971|0
u506422818|p02971|0
codenet
Compile Error
158
v2_s364329380
s364329380
s364329380
p02971
p02971
u521142491
u521142491
1,563,673,020
2019-07-21T01:37:00
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; Integer[] B = new Integer[N]; for(int i=0;i<N;i++) { int a = sc.nextInt(); A[i] = a; B[i] = a; } Arrays.sort(B, Comparator.reverseOrder()); int ma...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521142491|p02971|0
u521142491|p02971|0
codenet
Compile Error
529
v2_s587484555
s587484555
s587484555
p02971
p02971
u641619467
u641619467
1,563,674,577
2019-07-21T02:02:57
Main.java
public class Main { Scanner scan = new Scanner(System.in); void compute() { int N = scan.nextInt(); int[] t = new int[N]; for(int i=0; i<N; i++) { t[i] = scan.nextInt(); } for(int i=0; i<N; i++) { int m = 0;; for(int n=0; n<N; n++) { if(n != i) { if(t[n] > m) { m = t[n]; } ...
Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u641619467|p02971|0
u641619467|p02971|0
codenet
Compile Error
437
v2_s244569991
s244569991
s244569991
p02971
p02971
u641619467
u641619467
1,563,674,647
2019-07-21T02:04:07
Main.java
public class Main { Scanner scan = new Scanner(System.in); void compute() { int N = scan.nextInt(); int m = 0; int[] t = new int[N]; for(int i=0; i<N; i++) { t[i] = scan.nextInt(); } for(int i=0; i<N; i++) { m = 0; for(int n=0; n<N; n++) { if(n != i) { if(t[n] > m) { m = t[n];...
Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u641619467|p02971|0
u641619467|p02971|0
codenet
Compile Error
445
v2_s781341621
s781341621
s781341621
p02971
p02971
u641619467
u641619467
1,563,675,527
2019-07-21T02:18:47
Main.java
public class Main { Scanner scan = new Scanner(System.in); void compute() { int N = scan.nextInt(); int m = 0; int[] t = new int[N]; for(int i=0; i<N; i++) { t[i] = scan.nextInt(); } for(int i=0; i<N; i++) { m = t[1]; for (int index = 0; index < N; index ++) { if(index != i...
Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u641619467|p02971|0
u641619467|p02971|0
codenet
Compile Error
494
v2_s524954643
s524954643
s524954643
p02971
p02971
u686175224
u686175224
1,564,030,429
2019-07-25T04:53:49
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ //最大公約数・最小公倍数(セットで使う) public static long gcm(long a, long b) { long result = a; long k = 0; long n = b; do { k = result % n; result = n; n = k; } while(k != 0); return result; } public static long lcm(long a, long ...
Main.java:115: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686175224|p02971|1
u686175224|p02971|1
codenet
Compile Error
2,100
v2_s519928745
s519928745
s519928745
p02971
p02971
u818640918
u818640918
1,563,676,000
2019-07-21T02:26:40
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; Integer b[] = new Integer[N]; for(int i=0;i<N;i++){ a[i]= sc.nextint(); b[i]= a[i]; } Arrays.sort(a, Comparator.reverseOrder()); for(int i=0;i<N;i++){ if(a[0...
Main.java:9: error: cannot find symbol a[i]= sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02971|0
u818640918|p02971|0
codenet
Compile Error
408
v2_s635800668
s635800668
s635800668
p02971
p02971
u825262731
u825262731
1,563,961,008
2019-07-24T09:36:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int n = sc.nextInt(); ArrayList<Integer> arr = new ArrayList<Integer>(); ArrayList<Integer> arr1 = new ArrayList<Integer>(); for(int i=0;i<n;i++){ int a = sc.nextInt(); arr.add(a); arr1.add(a); } C...
Main.java:14: error: ')' expected if(arr1.get(i)==arr.get(arr.size()-1){ ^ Main.java:15: error: ')' or ',' expected System.out.println(arr.get(arr.size()-2); ^ Main.java:18: error: ')' or ',' expected Ssyste...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02971|0
u825262731|p02971|0
codenet
Compile Error
732
v2_s613147830
s613147830
s613147830
p02971
p02971
u825262731
u825262731
1,563,961,059
2019-07-24T09:37:39
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int n = sc.nextInt(); ArrayList<Integer> arr = new ArrayList<Integer>(); ArrayList<Integer> arr1 = new ArrayList<Integer>(); for(int i=0;i<n;i++){ int a = sc.nextInt(); arr.add(a); arr1.add(a); } C...
Main.java:4: error: cannot find symbol int n = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:8: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:18: error: package Ssystem does not exist Ssys...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02971|0
u825262731|p02971|0
codenet
Compile Error
730
v2_s584722126
s584722126
s584722126
p02971
p02971
u862553306
u862553306
1,563,920,986
2019-07-23T22:29:46
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; int copy[] = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); copy[i] = a[i]; } Arrays.so...
Main.java:27: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u862553306|p02971|0
u862553306|p02971|0
codenet
Compile Error
515
v2_s149208239
s149208239
s149208239
p02971
p02971
u943619988
u943619988
1,565,362,860
2019-08-09T15:01:00
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] A = new int[N]; int[] a = new int[N]; for(int i = 0; i < N; i++){ A[i] = scanner.nextInt(); a[i]...
Main.java:32: error: illegal character: '\u3000' a[max_first_position] = 0;?//a?????1??????????0??? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u943619988|p02971|0
u943619988|p02971|0
codenet
Compile Error
1,347
v2_s181533133
s181533133
s181533133
p02971
p02971
u958210291
u958210291
1,563,673,014
2019-07-21T01:36:54
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<Integer> nSeq = new ArrayList<>(); int n = sc.nextInt(); for(int i = 0;i < n;i++){ nSeq.add(sc.nextInt()); } ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02971|0
u958210291|p02971|0
codenet
Compile Error
460
v2_s196281017
s196281017
s196281017
p02971
p02971
u958210291
u958210291
1,563,673,037
2019-07-21T01:37:17
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<Integer> nSeq = new ArrayList<>(); int n = sc.nextInt(); for(int i = 0;i < n;i++){ nSeq.add(sc.nextInt()); } ...
Main.java:14: error: size has private access in ArrayList for(int i = 0;i < nSeq.size;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02971|0
u958210291|p02971|0
codenet
Compile Error
461
v2_s223822137
s223822137
s223822137
p02971
p02971
u958210291
u958210291
1,563,673,912
2019-07-21T01:51:52
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); List<Integer> nSeq = new ArrayList<>(); int n = sc.nextInt(); for(int i = 0;i < n;i++){ nSeq.add(sc.nextInt()); } in...
Main.java:8: error: cannot find symbol List<Integer> nSeq = new ArrayList<>(); ^ symbol: class List location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02971|0
u958210291|p02971|0
codenet
Compile Error
500
v2_s682223349
s682223349
s682223349
p02971
p02971
u958210291
u958210291
1,563,675,520
2019-07-21T02:18:40
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nseq = new nSeq[n]; for(int i = 0;i < n;i++){ nSeq[i] = sc.nextInt(); } System.out.println("--------------"); int box = 0; for(int i = 0;...
Main.java:7: error: cannot find symbol int[] nseq = new nSeq[n]; ^ symbol: class nSeq location: class Main Main.java:10: error: cannot find symbol nSeq[i] = sc.nextInt(); ^ symbol: variable nSeq location: class Main Main.java:15: error: cannot find symbol box = nSe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02971|0
u958210291|p02971|0
codenet
Compile Error
544
v2_s854829965
s854829965
s854829965
p02972
p02972
u072631296
u072631296
1,578,862,385
2020-01-12T20:53:05
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int[] a = Stream.of(sc.nextLine().split(" ")).mapToInt(I...
Main.java:12: error: not a statement int ^ Main.java:12: error: ';' expected int ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u072631296|p02972|0
u072631296|p02972|0
codenet
Compile Error
739
v2_s618423145
s618423145
s618423145
p02972
p02972
u381467237
u381467237
1,563,683,823
2019-07-21T04:37:03
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String [] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int [] a = new int[n + 1]; ...
Main.java:49: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381467237|p02972|1
u381467237|p02972|0
codenet
Compile Error
1,334
v2_s072382673
s072382673
s072382673
p02972
p02972
u420105436
u420105436
1,563,736,067
2019-07-21T19:07:47
Main.java
import java.io.*; import java.util.*; class Main { private static PrintWriter out; private static <T> void mprintln(T... ar) { for (T i : ar) { out.print(i + " "); } out.println(); } public static void main(String[] args) throws FileNotFoundException { //...
Main.java:47: error: cannot find symbol for (int j = i; j <= n; j += i) total += br[j]; ^ symbol: variable br location: class Main Main.java:49: error: cannot find symbol br[i] = 1; ^ symbol: variable br locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420105436|p02972|0
u420105436|p02972|0
codenet
Compile Error
3,365
v2_s169450164
s169450164
s169450164
p02972
p02972
u448863865
u448863865
1,563,677,264
2019-07-21T02:47:44
Main.java
import java.util.*; class Main{ static int mod=1000000007; public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] q = new int[n]; Arrays.setAll(q, i -> s.nextInt()); boolean[] a = new boolean[n+1]; int c = 0; for(int i = n; i > 0; i--) ...
Main.java:27: error: cannot find symbol sb.append(i).append("\n"); ^ symbol: variable sb location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448863865|p02972|0
u448863865|p02972|0
codenet
Compile Error
655
v2_s671454857
s671454857
s671454857
p02972
p02972
u795978684
u795978684
1,580,708,786
2020-02-03T05:46:26
Main.java
class Main { static int mod = (int) (Math.pow(10,9)+7); public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N= sc.nextInt(); int[] a = new int[N]; int[] b = new int[N]; int M = 0; int k = 0; for(int i=0;i<N;i++){ a[i]=sc.ne...
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 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
u795978684|p02972|1
u795978684|p02972|1
codenet
Compile Error
814