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_s955886306
s955886306
s955886306
p02688
p02688
u532667821
u532667821
1,591,216,873
2020-06-03T20:41:13
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(); int K = scanner.nextInt(); ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); for(i...
Main.java:8: error: cannot find symbol ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); ^ symbol: class ArrayList location: class Main Main.java:8: error: cannot find symbol ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02688|0
u532667821|p02688|0
codenet
Compile Error
909
v2_s773338195
s773338195
s773338195
p02688
p02688
u532667821
u532667821
1,591,217,027
2020-06-03T20:43:47
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(); int K = scanner.nextInt(); int d = 0; ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); ...
Main.java:9: error: cannot find symbol ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); ^ symbol: class ArrayList location: class Main Main.java:9: error: cannot find symbol ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02688|0
u532667821|p02688|0
codenet
Compile Error
910
v2_s327155253
s327155253
s327155253
p02688
p02688
u532667821
u532667821
1,591,217,123
2020-06-03T20:45:23
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int K = scanner.nextInt(); int d = 0; ArrayList<ArrayList<Integer>> arraylist = new ArrayList...
Main.java:21: error: cannot find symbol arraylist.get(scan.nextInt() - 1).add(i); ^ symbol: variable scan location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02688|0
u532667821|p02688|0
codenet
Compile Error
938
v2_s346063566
s346063566
s346063566
p02688
p02688
u532667821
u532667821
1,591,217,274
2020-06-03T20:47:54
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int K = scanner.nextInt(); int d = 0; ArrayList<ArrayList<Integer>> arraylist = new ArrayLis...
Main.java:22: error: cannot find symbol arraylist.get(scan.nextInt() - 1).add(i); ^ symbol: variable scan location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02688|0
u532667821|p02688|0
codenet
Compile Error
939
v2_s001246978
s001246978
s001246978
p02688
p02688
u545166351
u545166351
1,591,834,940
2020-06-11T00:22:20
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 K = sc.nextInt(); // int d = new int[K]; Arraylist<Integer> a = new ArrayList<>(); for (int i = 0; i < K; i++) { ...
Main.java:21: error: <identifier> expected System.out.println(N-a.size)(); ^ Main.java:21: error: <identifier> expected System.out.println(N-a.size)(); ^ Main.java:23: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u545166351|p02688|0
u545166351|p02688|0
codenet
Compile Error
513
v2_s189022389
s189022389
s189022389
p02688
p02688
u557792203
u557792203
1,588,554,664
2020-05-04T01:11:04
Main.java
import java.util.*; public class Main{ public static void main(String arg[]) { Scannet sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextint(); int a[]=new int[n+1]; for(int i=0;i<n;i++) { int t=sc.nextInt(); for(int i=0;i<t;i++)a[sc.nextInt]++; } int m=0; for(int ...
Main.java:6: error: cannot find symbol Scannet sc=new Scanner(System.in); ^ symbol: class Scannet location: class Main Main.java:14: error: variable i is already defined in method main(String[]) for(int i=0;i<t;i++)a[sc.nextInt]++; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u557792203|p02688|0
u557792203|p02688|0
codenet
Compile Error
390
v2_s347926060
s347926060
s347926060
p02688
p02688
u557792203
u557792203
1,588,554,723
2020-05-04T01:12:03
Main.java
import java.util.*; public class Main{ public static void main(String arg[]) { Scannet sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextint(); int a[]=new int[n+1]; for(int i=0;i<n;i++) { int t=sc.nextInt(); for(int i=0;i<t;i++)a[sc.nextInt]++; } int m=0; for(int...
Main.java:6: error: cannot find symbol Scannet sc=new Scanner(System.in); ^ symbol: class Scannet location: class Main Main.java:14: error: variable i is already defined in method main(String[]) for(int i=0;i<t;i++)a[sc.nextInt]++; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u557792203|p02688|0
u557792203|p02688|0
codenet
Compile Error
391
v2_s874456091
s874456091
s874456091
p02688
p02688
u557792203
u557792203
1,588,554,817
2020-05-04T01:13:37
Main.java
import java.util.*; public class Main{ public static void main(String arg[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextint(); int a[]=new int[n+1]; for(int i=0;i<n;i++) { int t=sc.nextInt(); for(int i=0;i<t;i++)a[sc.nextInt]++; } int m=0; for(int...
Main.java:8: error: cannot find symbol int k=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:14: error: variable i is already defined in method main(String[]) for(int i=0;i<t;i++)a[sc.nextInt]++; ^ Main.java:14: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u557792203|p02688|0
u557792203|p02688|0
codenet
Compile Error
399
v2_s254209279
s254209279
s254209279
p02688
p02688
u564268164
u564268164
1,588,554,421
2020-05-04T01:07:01
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.HashSet; import java.util.StringTokenizer; import java.util.Set; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /**...
Main.java:58: error: reached end of file while parsing while (tokenizer == null || !tokenizer.hasMoreTokens()) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u564268164|p02688|0
u564268164|p02688|0
codenet
Compile Error
1,500
v2_s262213840
s262213840
s262213840
p02688
p02688
u587721314
u587721314
1,592,012,285
2020-06-13T01:38:05
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { private static final int MOD = (int) Math.pow(10, 9); private static final int[][] DIRS = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}}; public static void main(String[] args) { ...
Main.java:149: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p02688|0
u587721314|p02688|0
codenet
Compile Error
3,552
v2_s253377634
s253377634
s253377634
p02688
p02688
u593014976
u593014976
1,589,738,117
2020-05-17T17:55:17
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(); int N = scan.nextInt(); int K = scan.nextInt(); int sunuke[N]; int num; for(int k = 0; k < K; k++){ num = scan.nextInt(); for(int n = 0; n < num; n++){...
Main.java:10: error: ']' expected int sunuke[N]; ^ Main.java:10: error: ';' expected int sunuke[N]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593014976|p02688|0
u593014976|p02688|0
codenet
Compile Error
440
v2_s940036466
s940036466
s940036466
p02688
p02688
u593014976
u593014976
1,589,738,210
2020-05-17T17:56:50
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(); int N = scan.nextInt(); int K = scan.nextInt(); int sunuke[] = new int[N]; int num; for(int k = 0; k < K; k++){ num = scan.nextInt(); for(int n = 0; n ...
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner scan = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593014976|p02688|0
u593014976|p02688|0
codenet
Compile Error
452
v2_s368257698
s368257698
s368257698
p02688
p02688
u632131476
u632131476
1,588,554,743
2020-05-04T01:12:23
Main.java
3 3 1 3 1 3 1 3
Main.java:1: error: class, interface, enum, or record expected 3 3 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u632131476|p02688|0
u632131476|p02688|0
codenet
Compile Error
15
v2_s409860437
s409860437
s409860437
p02688
p02688
u665359819
u665359819
1,588,726,115
2020-05-06T00:48:35
Main.java
import sun.util.resources.CalendarData; import java.io.*; import java.util.*; import static java.lang.Math.*; import static java.util.Arrays.fill; public class Main { static void run() throws IOException { file("", ""); long time = System.currentTimeMillis(); // int t = nextInt(); // ...
Main.java:1: error: package sun.util.resources is not visible import sun.util.resources.CalendarData; ^ (package sun.util.resources is declared in module java.base, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u665359819|p02688|0
u665359819|p02688|0
codenet
Compile Error
3,557
v2_s813405979
s813405979
s813405979
p02688
p02688
u706766041
u706766041
1,589,714,279
2020-05-17T11:17:59
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(); String brank = sc.nextLine(); int max = 0; int d = 0; for(int i =1; i <= k; i++){ d =...
Main.java:16: error: incompatible types: int cannot be converted to String brank = sc.nextInt(); ^ Main.java:17: error: incompatible types: int cannot be converted to String brank = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u706766041|p02688|0
u706766041|p02688|0
codenet
Compile Error
528
v2_s342352793
s342352793
s342352793
p02688
p02688
u718602525
u718602525
1,588,555,930
2020-05-04T01:32:10
Main.java
public class Main { public static void main(final String args[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int K = scan.nextInt(); int d[]; d = new int[K]; int A[][]; A = new int[K][N]; for(int k = 0; k < K;k++){ d[k]...
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
u718602525|p02688|0
u718602525|p02688|0
codenet
Compile Error
743
v2_s849573374
s849573374
s849573374
p02688
p02688
u734615707
u734615707
1,588,962,716
2020-05-08T18:31:56
Main.java
java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); HashSet<Integer> map =new HashSet<Integer>(); for(int i = 1 ; i<=k; i++) { int d = sc.nextInt(); for(int j = 1 ; j<=d ;j++) { ...
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
u734615707|p02688|0
u734615707|p02688|0
codenet
Compile Error
417
v2_s730637392
s730637392
s730637392
p02688
p02688
u739508435
u739508435
1,595,302,004
2020-07-21T03:26:44
Main.java
import java.util.*; public class Main { public static void main(String[] args){ int N = 3; int K = 2; int[] d; int[] a; for(int i = 0;i < K ;i++){ int } } }
Main.java:11: error: not a statement int ^ Main.java:11: error: ';' expected int ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739508435|p02688|0
u739508435|p02688|0
codenet
Compile Error
221
v2_s082436076
s082436076
s082436076
p02688
p02688
u808111259
u808111259
1,588,719,034
2020-05-05T22:50:34
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var N = scanner.nextInt(); var K = scanner.nextInt(); var candy = new int[N+1]; candy[0] = 1; for(int i = 1; i <= K; i++) { var d = scanner.nextInt()...
Main.java:18: error: ')' expected long target = (Arrays.stream(candy).filter(t -> t==0).count(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02688|0
u808111259|p02688|0
codenet
Compile Error
537
v2_s401508949
s401508949
s401508949
p02688
p02688
u860874998
u860874998
1,589,292,229
2020-05-12T14:03:49
Main.java
//164B(Atcoder) import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int K = sc.nextInt(); int[] d=new int[K]; int[][]A=new int[K][K]; for(int i=0;i<K;i++){ int d[i]=sc.nextInt(); ...
Main.java:12: error: ']' expected int d[i]=sc.nextInt(); ^ Main.java:12: error: ';' expected int d[i]=sc.nextInt(); ^ Main.java:14: error: ']' expected int A[i][j]=sc.nextInt(); ^ Main.java:14: error: ';' expected int A[i][j]=sc.ne...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02688|0
u860874998|p02688|0
codenet
Compile Error
656
v2_s012479965
s012479965
s012479965
p02688
p02688
u860874998
u860874998
1,589,292,940
2020-05-12T14:15:40
Main.java
//164B(Atcoder) import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int K = sc.nextInt(); int[] A=new int[K]; for(int i=0;i<K;i++){ int d=sc.nextInt(); for(int j=0;j<K;j+...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02688|0
u860874998|p02688|0
codenet
Compile Error
594
v2_s312130229
s312130229
s312130229
p02688
p02688
u860874998
u860874998
1,589,292,996
2020-05-12T14:16:36
Main.java
//164B(Atcoder) import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int K = sc.nextInt(); int[] A=new int[K]; for(int i=0;i<K;i++){ int d=sc.nextInt(); for(int j=0;j<K;j+...
Main.java:14: error: cannot find symbol a[sc.nextInt() - 1] += 1; ^ symbol: variable a location: class Main Main.java:20: error: cannot find symbol if (a[i] == 0) { ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02688|0
u860874998|p02688|0
codenet
Compile Error
602
v2_s612647635
s612647635
s612647635
p02689
p02689
u001317235
u001317235
1,590,175,237
2020-05-22T19:20:37
Main.java
ort java.util.*; public class Main { public static void main(String[] args) { //コード Scanner scanner = new Scanner(System.in); Integer N = Integer.parseInt(scanner.next()); Integer M = Integer.parseInt(scanner.next()); Map<Integer, Integer> H = new HashMap<Integer, Integer>()...
Main.java:1: error: class, interface, enum, or record expected ort java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001317235|p02689|1
u001317235|p02689|1
codenet
Compile Error
1,052
v2_s346670398
s346670398
s346670398
p02689
p02689
u058849447
u058849447
1,588,557,006
2020-05-04T01:50:06
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int tenboudai = sc.nextInt(); int miti = sc.nextInt(); int[] hyoukou = new int[tenboudai]; int ans = 0; for (int i=0; i<tenboudai; i++){ int c = sc.nextInt(); ...
Main.java:11: error: ';' expected hyoukou[c] = 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u058849447|p02689|0
u058849447|p02689|0
codenet
Compile Error
725
v2_s329561840
s329561840
s329561840
p02689
p02689
u058849447
u058849447
1,588,558,844
2020-05-04T02:20:44
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int tenboudai = sc.nextInt(); int miti = sc.nextInt(); int[] hyoukou = new int[tenboudai]; int[][] yoi = new int[tenboudai][miti]; int ans = 0; for (int i=0; i<tenbouda...
Main.java:21: error: cannot find symbol boolen aa = false; ^ symbol: class boolen location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u058849447|p02689|0
u058849447|p02689|0
codenet
Compile Error
1,082
v2_s353793810
s353793810
s353793810
p02689
p02689
u076303440
u076303440
1,588,558,861
2020-05-04T02:21:01
Main.java
import java.util.Scanner; import sun.jvm.hotspot.ui.table.LongCellRenderer; public class Main { public static void main(String[] args){ int N,M; Scanner scn = new Scanner(System.in); N = scn.nextInt(); M = scn.nextInt(); long[] h = new long[N]; int[] a = new int[M];...
Main.java:3: error: package sun.jvm.hotspot.ui.table is not visible import sun.jvm.hotspot.ui.table.LongCellRenderer; ^ (package sun.jvm.hotspot.ui.table is declared in module jdk.hotspot.agent, which is not in the module graph) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u076303440|p02689|0
u076303440|p02689|0
codenet
Compile Error
1,046
v2_s339899952
s339899952
s339899952
p02689
p02689
u089230684
u089230684
1,598,138,434
2020-08-22T23:20:34
Main.java
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Collections; import java.util.HashMap; import java.util.PriorityQueue; import java.util.StringTokenizer; public clas...
Main.java:2: error: package com.sun.xml.internal.ws.policy.privateutil does not exist import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02689|0
u089230684|p02689|0
codenet
Compile Error
2,855
v2_s792371747
s792371747
s792371747
p02689
p02689
u114722370
u114722370
1,594,673,224
2020-07-13T20:47:04
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = 100010; int n = sc.nextInt(); int m = sc.nextInt(); int[] h = new int[N]; int[] ma = new int[N]; for(int i = 1; i <= n; i++) { h[i] = sc....
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
u114722370|p02689|0
u114722370|p02689|0
codenet
Compile Error
747
v2_s791572407
s791572407
s791572407
p02689
p02689
u124208943
u124208943
1,588,557,386
2020-05-04T01:56:26
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long M = sc.nextLong(); Map<Integer,Long> H = new HashMap<>(); Set<Integer> s = new HashSet<>(); Set<Integer> none = new HashSet<>(); for(int i = 1; i <= N; i++){ H.put...
Main.java:20: error: cannot find symbol remove(b); ^ symbol: method remove(int) location: class Main Main.java:23: error: cannot find symbol remove(a); ^ symbol: method remove(int) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p02689|0
u124208943|p02689|0
codenet
Compile Error
645
v2_s730638578
s730638578
s730638578
p02689
p02689
u186052266
u186052266
1,589,157,111
2020-05-11T00:31:51
Main.java
public class Main { public static void main(final String[] args){ final Scanner s = new Scanner(System.in); final int N = Integer.parseInt(s.next()); final int M = Integer.parseInt(s.next()); HashSet<Integer> peak = new HashSet<Integer>(); HashMap<Integer,Integer> nameAndHigh...
Main.java:3: error: cannot find symbol final Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol final Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02689|0
u186052266|p02689|0
codenet
Compile Error
1,279
v2_s369126331
s369126331
s369126331
p02689
p02689
u186052266
u186052266
1,589,157,227
2020-05-11T00:33:47
Main.java
public class Main { public static void main(final String[] args){ final Scanner s = new Scanner(System.in); final int N = Integer.parseInt(s.next()); final int M = Integer.parseInt(s.next()); HashSet<Integer> peak = new HashSet<Integer>(); HashMap<Integer,Integer> nameAndHigh...
Main.java:3: error: cannot find symbol final Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol final Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02689|0
u186052266|p02689|0
codenet
Compile Error
1,279
v2_s327548571
s327548571
s327548571
p02689
p02689
u392769697
u392769697
1,593,072,218
2020-06-25T08:03: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 m = sc.nextInt(); int[] h = new int[n]; int[] m = new int[n]; for (int i = 0; i < n; i++) { h[i] = sc.next...
Main.java:10: error: variable m is already defined in method main(String[]) int[] m = new int[n]; ^ Main.java:16: error: bad operand types for binary operator '<' for (int i = 0; i < m; i++) { ^ first type: int second type: int[] 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u392769697|p02689|0
u392769697|p02689|0
codenet
Compile Error
710
v2_s566208158
s566208158
s566208158
p02689
p02689
u520480375
u520480375
1,588,559,834
2020-05-04T02:37:14
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] hight = new int[n]; //高さ入力 for (int i = 0; i < n; i++) { hight[i] = sc.nextInt()...
Main.java:61: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02689|0
u520480375|p02689|0
codenet
Compile Error
1,567
v2_s085460546
s085460546
s085460546
p02689
p02689
u556125658
u556125658
1,588,559,637
2020-05-04T02:33:57
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int M = Integer.parseInt(sc.next()); ArrayList<Integer> list = new ArrayList<>(); for(int i = 0; i < N; i++) { list.add(Integer.parseInt(sc.nex...
Main.java:9: error: cannot find symbol ArrayList<Integer> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:9: error: cannot find symbol ArrayList<Integer> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556125658|p02689|0
u556125658|p02689|0
codenet
Compile Error
827
v2_s599463067
s599463067
s599463067
p02689
p02689
u588081069
u588081069
1,588,559,300
2020-05-04T02:28:20
Main.java
import java.util.HashMap; 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 M = scanner.nextInt(); Map<Integer, Integer> H = new HashMap<>(); ...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u588081069|p02689|0
u588081069|p02689|0
codenet
Compile Error
1,067
v2_s166846826
s166846826
s166846826
p02689
p02689
u593014976
u593014976
1,589,739,781
2020-05-17T18:23:01
Main.java
import java.util.Scanner; class Tower{ int hight; boolean good = True; } public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); Tower[] tower = new Tower[N]; for(int n = 0; n < N; n++){ ...
Main.java:5: error: cannot find symbol boolean good = True; ^ symbol: variable True location: class Tower Main.java:30: error: cannot find symbol tower[pt].good = False; ^ symbol: variable False location: class Main Main.java:35: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593014976|p02689|0
u593014976|p02689|0
codenet
Compile Error
1,020
v2_s528629312
s528629312
s528629312
p02689
p02689
u629614915
u629614915
1,588,566,898
2020-05-04T04:34:58
Main.java
if __name__ == '__main__': ## input N, M = map(int,input().split()) HEIGHT_LIST = list(map(int,input().split())) ROAD_LIST = [] for j in range(M): ROAD_LIST.append( set(map(int,input().split())) ) ## business logic COUNT = 0 for i in list(rang...
Main.java:1: error: class, interface, enum, or record expected if __name__ == '__main__': ^ Main.java:1: error: unclosed character literal if __name__ == '__main__': ^ Main.java:1: error: unclosed character literal if __name__ == '__main__': ^ Main.java:3: error: illegal character...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u629614915|p02689|0
u629614915|p02689|0
codenet
Compile Error
732
v2_s641863170
s641863170
s641863170
p02689
p02689
u630904352
u630904352
1,588,560,578
2020-05-04T02:49:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] arrH = new int[N]; for(int i = 0; i < N; i++) { arrH[i] = sc.nextInt(); } int tmpA = ...
Main.java:30: error: cannot find symbol if(arrS[k] == false) { ^ symbol: variable arrS location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u630904352|p02689|0
u630904352|p02689|0
codenet
Compile Error
954
v2_s787334943
s787334943
s787334943
p02689
p02689
u679312480
u679312480
1,588,559,286
2020-05-04T02:28:06
Main.java
import java.util.*; import java.math.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ long n = Long.parseLong(sc.next()); long m = Long.parseLong(sc.next()); ArrayList<Long> height = new ArrayList<>(); ...
Main.java:25: error: incompatible types: long cannot be converted to Integer if(height.get((Integer)a) > height.get((Integer)b)) { ^ Main.java:25: error: incompatible types: long cannot be converted to Integer if(height.get((Integer)a) > height.get(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02689|0
u679312480|p02689|0
codenet
Compile Error
1,149
v2_s882754486
s882754486
s882754486
p02689
p02689
u679312480
u679312480
1,588,559,409
2020-05-04T02:30:09
Main.java
import java.util.*; import java.math.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ long n = Long.parseLong(sc.next()); long m = Long.parseLong(sc.next()); HashMap<Long, Long> height = new HashMap<>(); ...
Main.java:16: error: cannot find symbol height.set(i + 1, Long.parseLong(sc.next())); ^ symbol: method set(long,long) location: variable height of type HashMap<Long,Long> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02689|0
u679312480|p02689|0
codenet
Compile Error
1,087
v2_s450235573
s450235573
s450235573
p02689
p02689
u679312480
u679312480
1,588,559,498
2020-05-04T02:31:38
Main.java
import java.util.*; import java.math.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ long n = Long.parseLong(sc.next()); long m = Long.parseLong(sc.next()); HashMap<Long, Long> height = new HashMap<>(); ...
Main.java:16: error: incompatible types: int cannot be converted to Long height.set((Long)i, (Long)Long.parseLong(sc.next())); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02689|0
u679312480|p02689|0
codenet
Compile Error
1,098
v2_s087648127
s087648127
s087648127
p02689
p02689
u679312480
u679312480
1,588,559,531
2020-05-04T02:32:11
Main.java
import java.util.*; import java.math.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ long n = Long.parseLong(sc.next()); long m = Long.parseLong(sc.next()); HashMap<Long, Long> height = new HashMap<>(); ...
Main.java:16: error: cannot find symbol height.set((Long)i, (Long)Long.parseLong(sc.next())); ^ symbol: method set(Long,Long) location: variable height of type HashMap<Long,Long> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02689|0
u679312480|p02689|0
codenet
Compile Error
1,099
v2_s596874115
s596874115
s596874115
p02689
p02689
u699628455
u699628455
1,588,558,427
2020-05-04T02:13:47
Main.java
import java.util.*; class Main{ static Scanner sc=new Scanner(System.in); public static void main(String[] args){ long N = sc.nextLong(); long M = sc.nextLong(); long[] H = new long[N+1]; long[] A = new long[N]; long[] B = new long[N]; long[] C = new long[N+1]; ...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] H = new long[N+1]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] A = new long[N]; ^ Main.java:9: error: incompa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02689|0
u699628455|p02689|0
codenet
Compile Error
931
v2_s817032842
s817032842
s817032842
p02689
p02689
u708615801
u708615801
1,588,812,689
2020-05-07T00:51:29
Main.java
import java.util.*; import java.util.List; public class Main { // l, r in [0, 100] static int getKey(int l, int r) { return l > r ? l * 1000 + r : r * 1000 + l; } static Map<Integer, Integer> hs; public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
Main.java:14: error: incompatible types: cannot infer type arguments for ArrayList<> Main.hs = new ArrayList<>(); ^ reason: no instance(s) of type variable(s) E exist so that ArrayList<E> conforms to Map<Integer,Integer> where E is a type-variable: E extends Object decla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u708615801|p02689|0
u708615801|p02689|0
codenet
Compile Error
1,420
v2_s957037823
s957037823
s957037823
p02689
p02689
u808111259
u808111259
1,588,726,289
2020-05-06T00:51:29
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var N = scanner.nextInt(); var M = scanner.nextInt(); var height = new int[N+1]; var good = new int[N+1]; Arrays.fill(good, 1); good[0] = 0; for(i...
Main.java:13: error: cannot find symbol for(int i = 1; i <= K; i++) { ^ symbol: variable K location: class Main Main.java:22: error: cannot find symbol var target = Arrays.stream(candy).sum(); ^ symbol: variable candy location: class Main 2 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02689|0
u808111259|p02689|0
codenet
Compile Error
664
v2_s577891352
s577891352
s577891352
p02689
p02689
u808111259
u808111259
1,588,726,330
2020-05-06T00:52:10
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var N = scanner.nextInt(); var M = scanner.nextInt(); var height = new int[N+1]; var good = new int[N+1]; Arrays.fill(good, 1); good[0] = 0; for(i...
Main.java:13: error: cannot find symbol for(int i = 1; i <= K; i++) { ^ symbol: variable K location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02689|0
u808111259|p02689|0
codenet
Compile Error
663
v2_s203747542
s203747542
s203747542
p02689
p02689
u872271866
u872271866
1,588,556,166
2020-05-04T01:36:06
Main.java
import java.util.HashSet; import java.util.Scanner; import java.util.Set; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); Set<Integer> set = new HashSet<>(); int n = sc.nextInt(); int m = sc.nextInt(); int[] h = new int[n]; for(int i = 0; i < n; i++) { h[i] = sc....
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u872271866|p02689|0
u872271866|p02689|0
codenet
Compile Error
501
v2_s928082141
s928082141
s928082141
p02689
p02689
u961778625
u961778625
1,588,558,743
2020-05-04T02:19:03
Main.java
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { // your code goes here try { Scanner sc=new Scanner(System.in); long n=sc.nextLong(); ...
Main.java:15: error: incompatible types: possible lossy conversion from long to int long ar[]=new long[n]; ^ Main.java:16: error: incompatible types: possible lossy conversion from long to int long d[]=new long[n]; ^ Main.java:19: error: incompatible types: p...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u961778625|p02689|0
u961778625|p02689|0
codenet
Compile Error
1,010
v2_s357551777
s357551777
s357551777
p02690
p02690
u018679195
u018679195
1,597,282,133
2020-08-13T01:28:53
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); solve(N); } public void solve(int N) { for (int i = -120; i <120 ; i++) { for (int j = -120; j < 120; j++) { long ans = i*i*i*i*i - j*j*j*j*j; if (ans =...
Main.java:7: error: non-static method solve(int) cannot be referenced from a static context solve(N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02690|1
u018679195|p02690|1
codenet
Compile Error
406
v2_s668323671
s668323671
s668323671
p02690
p02690
u073606136
u073606136
1,588,559,071
2020-05-04T02:24:31
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = 0; int B = 0; for(int i = 0; i < X; i++){ for(int j = j < X; i++){ if((i*i*...
Main.java:10: error: ';' expected for(int j = j < X; i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02690|0
u073606136|p02690|0
codenet
Compile Error
503
v2_s670753062
s670753062
s670753062
p02690
p02690
u073606136
u073606136
1,588,559,339
2020-05-04T02:28:59
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = 0; int B = 0; for(int i = 1; i < X; i++){ for(int j = 1; j > -X; j--){ if(...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02690|0
u073606136|p02690|0
codenet
Compile Error
435
v2_s538899224
s538899224
s538899224
p02690
p02690
u073606136
u073606136
1,588,559,925
2020-05-04T02:38:45
Main.java
public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = 0; int B = 0; for(int i = 0; i < X / 2; i++){ for(int j = 0;j > -X / 2; j--){ if((i*i*i*i*i) -(j...
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...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02690|0
u073606136|p02690|0
codenet
Compile Error
492
v2_s016525143
s016525143
s016525143
p02690
p02690
u269106673
u269106673
1,588,995,080
2020-05-09T03:31:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long X = sc.nextInt(); int A = 0; int B = 0; boolean tf = false; for(int i=-100; i<100; i++){ for(int j=-100; j<100; j++){ if(...
Main.java:16: error: ';' expected tf = true ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u269106673|p02690|0
u269106673|p02690|0
codenet
Compile Error
540
v2_s065206799
s065206799
s065206799
p02690
p02690
u465572759
u465572759
1,590,370,457
2020-05-25T01:34:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long X = sc.nextLong(); for(int a = -120 ; a < 120 ; a++){ for(int b = -120 ; b < 120 ; b++){ if(gojyou(a) - gojyou(b) == X){ System.out.println(a + " " + b); ret...
Main.java:15: error: cannot find symbol System.out.println(fa + " " + fb); ^ symbol: variable fa location: class Main Main.java:15: error: cannot find symbol System.out.println(fa + " " + fb); ^ symbol: variable fb location: class Main Main.java:19: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465572759|p02690|0
u465572759|p02690|0
codenet
Compile Error
473
v2_s462879066
s462879066
s462879066
p02690
p02690
u534918612
u534918612
1,588,634,798
2020-05-04T23:26:38
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scn = new Scanner(System.in); int x=scn.nextDouble(); int a=0,b=0; boolean flg=true; while(flg){ for(b=0;b>=(-Math.pow(x,(1/5)));b--){ if(Math.pow(a,5)-...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int x=scn.nextDouble(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02690|0
u534918612|p02690|0
codenet
Compile Error
520
v2_s242148599
s242148599
s242148599
p02690
p02690
u534918612
u534918612
1,588,635,269
2020-05-04T23:34:29
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scn = new Scanner(System.in); int x=scn.nextInt(); int xr=Math.pow(x,(1/5)); int a=0,b=0; boolean flg=true; while(flg){ for(b=0;b>=xr;b--){ if(Mat...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int xr=Math.pow(x,(1/5)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534918612|p02690|0
u534918612|p02690|0
codenet
Compile Error
531
v2_s585685532
s585685532
s585685532
p02690
p02690
u542110638
u542110638
1,588,795,105
2020-05-06T19:58:25
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int X=sc.nextInt(); int ansA=0; int ansB=0; Out: for(int A=0;A<300;A++){ for(int B=-300;B<300;B++){ if(A*A*A*A*A - B*B*B*B*B == X){ ...
Main.java:19: error: cannot find symbol System.out.println(A+" "+B); ^ symbol: variable A location: class Main Main.java:19: error: cannot find symbol System.out.println(A+" "+B); ^ symbol: variable B location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u542110638|p02690|0
u542110638|p02690|0
codenet
Compile Error
493
v2_s406996929
s406996929
s406996929
p02690
p02690
u568577053
u568577053
1,588,559,171
2020-05-04T02:26:11
Main.java
ipackage AtCoder2020May3Beginner; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scn= new Scanner(System.in); int n =scn.nextInt(); ArrayList<Integer> al = new ArrayLi...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. ipackage AtCoder2020May3Beginner; ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:4: error: class, interface, enum, or record...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568577053|p02690|0
u568577053|p02690|0
codenet
Compile Error
890
v2_s847615369
s847615369
s847615369
p02690
p02690
u614748348
u614748348
1,588,813,184
2020-05-07T00:59:44
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int X=sc.nextInt(); int ansA=0; int ansB=0; Out: for(int A=0;A<300;A++){ for(int B=-300;B<300;B++){ if(A*A*A*A*A - B*B*B*B*B == X){...
Main.java:22: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u614748348|p02690|0
u614748348|p02690|0
codenet
Compile Error
1,001
v2_s331729617
s331729617
s331729617
p02690
p02690
u625091358
u625091358
1,588,559,933
2020-05-04T02:38:53
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; public class Main{ public static void main(final String[] args){ Scanner sc = new Scanner(System.in); int sum = 0; int x = sc.nextInt(); int a = 1; int b = 1; int result = 0...
Main.java:35: error: empty character literal System.println(a + '' + b); ^ Main.java:35: error: not a statement System.println(a + '' + b); ^ Main.java:35: error: ';' expected System.println(a + '' + b); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625091358|p02690|0
u625091358|p02690|0
codenet
Compile Error
665
v2_s193436147
s193436147
s193436147
p02690
p02690
u676749446
u676749446
1,588,560,401
2020-05-04T02:46:41
Main.java
import java.io.*; import java.util.*; import java.util.stream.*; class Main{ static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { hayami saori = new haya...
Main.java:15: error: cannot find symbol if(res == X){ ^ symbol: variable X location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676749446|p02690|0
u676749446|p02690|0
codenet
Compile Error
2,637
v2_s085887179
s085887179
s085887179
p02690
p02690
u808111259
u808111259
1,588,773,198
2020-05-06T13:53:18
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var x = scanner.nextInt(); var amax = (int) pow( x+0.9, 0.2 ); for(int a = 1; a <= amax; a++) { var b = fact5(x - a*a*a*a*a); if(b >= 0) { Sys...
Main.java:25: error: illegal start of expression static int fact5(int x) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02690|0
u808111259|p02690|0
codenet
Compile Error
743
v2_s829194799
s829194799
s829194799
p02690
p02690
u808111259
u808111259
1,588,773,252
2020-05-06T13:54:12
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var x = scanner.nextInt(); var amax = (int) pow( x+0.9, 0.2 ); for(int a = 1; a <= amax; a++) { var b = fact5(x - a*a*a*a*a); if(b >= 0) { Sys...
Main.java:8: error: cannot find symbol var amax = (int) pow( x+0.9, 0.2 ); ^ symbol: method pow(double,double) location: class Main Main.java:16: error: cannot find symbol var bmax = (int) pow( x/5+0.9, 0.25 ); ^ symbol: method pow(double,double) location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02690|0
u808111259|p02690|0
codenet
Compile Error
747
v2_s518142113
s518142113
s518142113
p02690
p02690
u808111259
u808111259
1,588,774,700
2020-05-06T14:18:20
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var x = scanner.nextInt(); // var amax = (int) Math.pow( x+0.9, 0.2 ); var amax = 120; for(int a = 1; a <= amax; a++) { var b5 = a*a*a*a*a - x; if...
Main.java:27: error: illegal start of expression static int fact5(int x) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02690|0
u808111259|p02690|0
codenet
Compile Error
756
v2_s440271832
s440271832
s440271832
p02690
p02690
u808111259
u808111259
1,588,784,841
2020-05-06T17:07:21
Main.java
import java.util.*; import java.util.stream.*; class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var x = scanner.nextLong(); var amax = (long) Math.pow( x+0.9, 0.2 ); for(long a = 1; a <= amax; a++) { var b = fact(x - a*a*a*a*a, ...
Main.java:28: error: method exp in class Math cannot be applied to given types; var f = (long) Math.exp(x+0.9, (double) p); ^ required: double found: double,double reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808111259|p02690|1
u808111259|p02690|0
codenet
Compile Error
914
v2_s346501298
s346501298
s346501298
p02691
p02691
u016163861
u016163861
1,588,555,709
2020-05-04T01:28:29
Main.java
public static void main(String[] args){ Scanner in=new Scanner(System.in); int number=Integer.parseInt(in.nextLine()); String height=in.nextLine(); String[] heights=height.split(" "); int[] heightss=new int[heights.length]; for (int i=0;i<heights.length;i++){ ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016163861|p02691|0
u016163861|p02691|0
codenet
Compile Error
655
v2_s958610107
s958610107
s958610107
p02691
p02691
u016163861
u016163861
1,588,555,740
2020-05-04T01:29:00
EC.java
public class EC { public static void main(String[] args){ Scanner in=new Scanner(System.in); int number=Integer.parseInt(in.nextLine()); String height=in.nextLine(); String[] heights=height.split(" "); int[] heightss=new int[heights.length]; for (int i=0;i<heights.len...
EC.java:3: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: class Scanner location: class EC EC.java:3: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: class Scanner location: class EC 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016163861|p02691|0
u016163861|p02691|0
codenet
Compile Error
680
v2_s359872248
s359872248
s359872248
p02691
p02691
u016163861
u016163861
1,588,555,875
2020-05-04T01:31:15
Main.java
public class Main { public static void main(String[] args){ Scanner in=new Scanner(System.in); int number=Integer.parseInt(in.nextLine()); String height=in.nextLine(); String[] heights=height.split(" "); int[] heightss=new int[heights.length]; for (int i=0;i<heights.l...
Main.java:3: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u016163861|p02691|0
u016163861|p02691|0
codenet
Compile Error
682
v2_s367570283
s367570283
s367570283
p02691
p02691
u039628609
u039628609
1,588,558,740
2020-05-04T02:19:00
Main.java
import java.util.*; import static java.lang.*; class Main { public static void main (String args[]) { Scanner in = new Scanner(System.in); int n=in.nextInt(); int nn=0; int[] N=new int[n]; while(n-->0) { N[nn]=in.nextInt(); nn++...
Main.java:2: error: cannot find symbol import static java.lang.*; ^ symbol: class lang location: package java 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039628609|p02691|0
u039628609|p02691|0
codenet
Compile Error
568
v2_s353312940
s353312940
s353312940
p02691
p02691
u123743472
u123743472
1,588,565,638
2020-05-04T04:13:58
Main.java
class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); Map<Long, Integer> map = new HashMap<>(); long count = 0; for (int i = 0; i < n; i++) { long saveme = sc.nextLong(); long former = i - saveme; long latter = i + saveme; count +...
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 Main.java:8: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u123743472|p02691|0
u123743472|p02691|0
codenet
Compile Error
477
v2_s748978335
s748978335
s748978335
p02691
p02691
u156931988
u156931988
1,589,773,988
2020-05-18T03:53:08
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); Long N =Long.parseLong(sc.next()); long[] l = new long[N]; for(int i = 0 ;i < N ; i++){ l[i] = Long....
Main.java:9: error: incompatible types: Long cannot be converted to int long[] l = new long[N]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u156931988|p02691|0
u156931988|p02691|0
codenet
Compile Error
778
v2_s331799391
s331799391
s331799391
p02691
p02691
u218740431
u218740431
1,588,559,901
2020-05-04T02:38: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(); long [] in = new long [n]; long ans = 0; for(int i=0;i<a;i++){in[i] = sc.nextLong(); } for(int i=0;i<a-1;i++){for(int j=i...
Main.java:8: error: cannot find symbol for(int i=0;i<a;i++){in[i] = sc.nextLong(); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol for(int i=0;i<a-1;i++){for(int j=i+1;j<a;j++){if(in[i]+in[j]==j-i){ans++;} ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02691|0
u218740431|p02691|0
codenet
Compile Error
480
v2_s733888642
s733888642
s733888642
p02691
p02691
u218740431
u218740431
1,588,559,945
2020-05-04T02:39:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long [] in = new long [n]; long ans = 0; for(int i=0;i<n;i++){in[i] = sc.nextLong(); } for(int i=0;i<n-1;;i++){for(int j=...
Main.java:10: error: illegal start of expression for(int i=0;i<n-1;;i++){for(int j=i+1;j<a;j++){if(in[i]+in[j]==j-i){ans++;} ^ Main.java:10: error: ';' expected for(int i=0;i<n-1;;i++){for(int j=i+1;j<a;j++){if(in[i]+in[j]==j-i){ans++;} ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02691|0
u218740431|p02691|0
codenet
Compile Error
481
v2_s355480596
s355480596
s355480596
p02691
p02691
u263333739
u263333739
1,589,117,085
2020-05-10T13:24:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] vis = new int[2000001]; int N = input.nextInt(); long cnt = 0; for (int i = 1; i <= N; i++) int x = input.nextInt(); if (i+x<=200000) vis[i+x]++; if (i-x>=0) cnt+=vis...
Main.java:9: error: variable declaration not allowed here int x = input.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u263333739|p02691|4
u263333739|p02691|2
codenet
Compile Error
358
v2_s161979591
s161979591
s161979591
p02691
p02691
u369190981
u369190981
1,588,561,558
2020-05-04T03:05:58
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; class FastScanner { 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 ...
Main.java:131: error: cannot find symbol Map<Integer, Integer> map = new HashMap<>(); ^ symbol: class Map location: class Main Main.java:131: error: cannot find symbol Map<Integer, Integer> map = new HashMap<>(); ^ symbol: class HashMap locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p02691|0
u369190981|p02691|0
codenet
Compile Error
3,542
v2_s252152906
s252152906
s252152906
p02691
p02691
u459316341
u459316341
1,588,645,242
2020-05-05T02:20:42
Main.java
public class Main { final static int maxn=(int)2e5+10; static int l[]=new int [maxn];static int r[]=new int [maxn]; static int slove(int len,int num) { int left=1;int right=len; while(left<right) { int mid=(left+right)/2; if(r[mid]>=num)right=mid; else left=mid+1; } return left; } public st...
Main.java:18: error: cannot find symbol Scanner input=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:18: error: cannot find symbol Scanner input=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:26: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459316341|p02691|0
u459316341|p02691|0
codenet
Compile Error
781
v2_s148861763
s148861763
s148861763
p02691
p02691
u459316341
u459316341
1,588,645,295
2020-05-05T02:21:35
Main.java
public class Main { final static int maxn=(int)2e5+10; static int l[]=new int [maxn];static int r[]=new int [maxn]; static int slove(int len,int num) { int left=1;int right=len; while(left<right) { int mid=(left+right)/2; if(r[mid]>=num)right=mid; else left=mid+1; } return left; } public st...
Main.java:18: error: cannot find symbol Scanner input=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:18: error: cannot find symbol Scanner input=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:26: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459316341|p02691|0
u459316341|p02691|0
codenet
Compile Error
781
v2_s058367892
s058367892
s058367892
p02691
p02691
u626353997
u626353997
1,588,560,017
2020-05-04T02:40:17
Main.java
import java.util.*; import jdk.internal.net.http.common.Pair; class Main{ static int n; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); int pair = n*(n-1)/2; int[] A = new int[n]; int ans = 0; for(int i = 0;i < n;i...
Main.java:3: error: package jdk.internal.net.http.common is not visible import jdk.internal.net.http.common.Pair; ^ (package jdk.internal.net.http.common is declared in module java.net.http, which does not export it) Main.java:23: error: cannot find symbol if(count == pair) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02691|0
u626353997|p02691|0
codenet
Compile Error
666
v2_s993108050
s993108050
s993108050
p02691
p02691
u626353997
u626353997
1,588,560,067
2020-05-04T02:41:07
Main.java
import java.util.*; import jdk.internal.net.http.common.Pair; class Main{ static int n,pair; public static void main(String[] args) { Scanner sc = new Scanner(System.in); n = sc.nextInt(); pair = n*(n-1)/2; int[] A = new int[n]; int ans = 0; for(int i = 0;i < n;...
Main.java:3: error: package jdk.internal.net.http.common is not visible import jdk.internal.net.http.common.Pair; ^ (package jdk.internal.net.http.common is declared in module java.net.http, which does not export it) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02691|0
u626353997|p02691|0
codenet
Compile Error
667
v2_s762341291
s762341291
s762341291
p02691
p02691
u649769812
u649769812
1,588,559,087
2020-05-04T02:24:47
Main.java
import java.util.*; class Main { final Scanner sc = new Scanner(System.in); public static void main(String[] args) { new Main().run(); } private void run() { int n = sc.nextInt(); Map<Long, Long> add = new HashMap<>(); Map<Long, Long> sub = new HashMap<>(); fo...
Main.java:17: error: incompatible types: int cannot be converted to Long add.put(i+a, add.getOrDefault(i + a, 0)+1); ^ Main.java:18: error: incompatible types: int cannot be converted to Long sub.put(i-a, sub.getOrDefault(i - a, 0)+1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u649769812|p02691|0
u649769812|p02691|0
codenet
Compile Error
784
v2_s870983434
s870983434
s870983434
p02691
p02691
u653981267
u653981267
1,588,620,468
2020-05-04T19:27:48
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long ans = 0; HashMap<Long, Long> map = new HashMap<Long, Long>(); long a = sc.nextLong(); map.put(a, 1); for(int i = 1; i < n; i++) { long a =...
Main.java:10: error: incompatible types: int cannot be converted to Long map.put(a, 1); ^ Main.java:12: error: variable a is already defined in method main(String[]) long a = sc.nextLong(); ^ Main.java:17: error: incompatible types: int cannot be converted to Long map.put(i +...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02691|0
u653981267|p02691|0
codenet
Compile Error
561
v2_s945882540
s945882540
s945882540
p02691
p02691
u873167698
u873167698
1,588,559,009
2020-05-04T02:23:29
Main.java
for(int i = 1; i <= N-2; i++) { if(A[i] > N-i-1) { continue; } for(int j = i+(int)A[i]+1; j <= N; j++) { if(j - i == A[j]+A[i]) { ans++; } } } System.out.println(ans);
Main.java:1: error: class, interface, enum, or record expected for(int i = 1; i <= N-2; i++) { ^ Main.java:1: error: class, interface, enum, or record expected for(int i = 1; i <= N-2; i++) { ^ Main.java:1: error: class, interface, enum, or record expected for(int i = 1; i <= N-2; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u873167698|p02691|0
u873167698|p02691|0
codenet
Compile Error
299
v2_s102022225
s102022225
s102022225
p02692
p02692
u218740431
u218740431
1,588,538,164
2020-05-03T20:36:04
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long d = a+b; long e = b+c; long f = c+a; String ju...
Main.java:41: error: ')' expected if(jud.equals("Yes"){for(int i=0;i<n;i++){System.out.println(ans[i]);} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02692|0
u218740431|p02692|0
codenet
Compile Error
2,400
v2_s678310993
s678310993
s678310993
p02692
p02692
u452505906
u452505906
1,588,538,832
2020-05-03T20:47:12
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; import java.util.Scanner; import atCoder.abc166.f.Main2.State; public class Main { public static class State { int a; int b; int c; public State(int a, int b, int c) { super(); this.a = a; this....
Main.java:7: error: package atCoder.abc166.f.Main2 does not exist import atCoder.abc166.f.Main2.State; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452505906|p02692|0
u452505906|p02692|0
codenet
Compile Error
1,943
v2_s394347886
s394347886
s394347886
p02692
p02692
u591075912
u591075912
1,588,539,799
2020-05-03T21:03:19
Main.java
8 6 9 1 AC BC AB BC AC BC AB AB
Main.java:1: error: class, interface, enum, or record expected 8 6 9 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591075912|p02692|0
u591075912|p02692|0
codenet
Compile Error
31
v2_s834289585
s834289585
s834289585
p02692
p02692
u726872801
u726872801
1,588,539,241
2020-05-03T20:54:01
Main.java
import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.*; public class Main { long MOD = (long) 1e9 + 7; InputStream in; OutputStream out; public Main() { this(System.in, System.out); } public Main(InputStream in, OutputStream out) { ...
Main.java:87: error: variable s is already defined in method run() for (String s : ans) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u726872801|p02692|0
u726872801|p02692|0
codenet
Compile Error
3,651
v2_s234183515
s234183515
s234183515
p02692
p02692
u981808900
u981808900
1,588,536,549
2020-05-03T20:09:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOper...
Main.java:52: error: 'else' without 'if' } else { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02692|0
u981808900|p02692|0
codenet
Compile Error
5,609
v2_s680252255
s680252255
s680252255
p02692
p02692
u982630224
u982630224
1,588,538,550
2020-05-03T20:42:30
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; import java.util.*; public class Main { public static void main(String[] args) { ...
Main.java:34: error: unreachable statement out.println("Yes"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02692|0
u982630224|p02692|0
codenet
Compile Error
4,706
v2_s130324906
s130324906
s130324906
p02693
p02693
u001317235
u001317235
1,588,732,598
2020-05-06T02:36:38
Main.java
public class Main { public static void main(String[] args) { //コード Scanner scanner = new Scanner(System.in); Integer k = Integer.parseInt(scanner.next()); Integer a = Integer.parseInt(scanner.next()); Integer b = Integer.parseInt(scanner.next()); int total = 0; ...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001317235|p02693|0
u001317235|p02693|0
codenet
Compile Error
632
v2_s312478023
s312478023
s312478023
p02693
p02693
u004932113
u004932113
1,588,471,339
2020-05-03T02:02:19
Main.java
import java.util.Scanner public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); //数値の入力 int K = stdIn.nextInt(); //倍数 int A = stdIn.nextInt(); int B = stdIn.nextInt(); //計算 int num = 0; for (int i = 0; i <= (B / K); i++){ if( i * k >= A) num = num +1; }...
Main.java:1: error: ';' expected import java.util.Scanner ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02693|0
u004932113|p02693|0
codenet
Compile Error
420
v2_s736599603
s736599603
s736599603
p02693
p02693
u004932113
u004932113
1,588,471,372
2020-05-03T02:02:52
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); //数値の入力 int K = stdIn.nextInt(); //倍数 int A = stdIn.nextInt(); int B = stdIn.nextInt(); //計算 int num = 0; for (int i = 0; i <= (B / K); i++){ if( i * k >= A) num = num +1; ...
Main.java:16: error: cannot find symbol if( i * k >= A) ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02693|0
u004932113|p02693|0
codenet
Compile Error
422
v2_s076457664
s076457664
s076457664
p02693
p02693
u004932113
u004932113
1,588,471,475
2020-05-03T02:04:35
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); //数値の入力 int K = stdIn.nextInt(); //倍数 int A = stdIn.nextInt(); int B = stdIn.nextInt(); //計算 int num = 0; for (int i = 0; i <= (B / K); i++){ if( i * k >= A) num = num +1; } if...
Main.java:16: error: cannot find symbol if( i * k >= A) ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02693|0
u004932113|p02693|0
codenet
Compile Error
415
v2_s444260035
s444260035
s444260035
p02693
p02693
u012999123
u012999123
1,588,471,802
2020-05-03T02:10:02
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n=sc.nextLong(); long m=sc.nextLong(); if(n%2==1){ for(int i=0;i<m;i++){ System.out.println((i+1)+" "+(n-(i+1))); } }else{ for(int i=0;i<m;i++){ if(i%2=0){ System.o...
Main.java:14: error: unexpected type if(i%2=0){ ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02693|0
u012999123|p02693|0
codenet
Compile Error
432
v2_s994479928
s994479928
s994479928
p02693
p02693
u044982943
u044982943
1,589,230,175
2020-05-11T20:49:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(new File(System.in)); long X = scan.nextLong(); int year= 0; long money=100; System.out.println(X); while(money<X){ money= (long) (money*1.0...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(new File(System.in)); ^ symbol: class File location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044982943|p02693|0
u044982943|p02693|0
codenet
Compile Error
397
v2_s331048338
s331048338
s331048338
p02693
p02693
u047746316
u047746316
1,591,137,290
2020-06-02T22:34:50
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 k = sc.nextInt(); if(i % k == 0 && a>= 0 && b ){ System.out.println("OK"); } else{ ...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047746316|p02693|0
u047746316|p02693|0
codenet
Compile Error
363
v2_s285909028
s285909028
s285909028
p02693
p02693
u061172855
u061172855
1,588,469,819
2020-05-03T01:36:59
Main.java
K = input() # A = input() # B = input() # a = int(A) # b = int(B) k = int(K) a,b=map(int,input().split()) for i in range(a,b+1): if i % k == 0: print('OK') break else: if i == b: print('NG')
Main.java:1: error: class, interface, enum, or record expected K = input() ^ Main.java:2: error: illegal character: '#' # A = input() ^ Main.java:3: error: illegal character: '#' # B = input() ^ Main.java:5: error: illegal character: '#' # a = int(A) ^ Main.java:6: error: illegal character: '#' # b = int(B) ^ Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u061172855|p02693|0
u061172855|p02693|0
codenet
Compile Error
205
v2_s845858502
s845858502
s845858502
p02693
p02693
u064404510
u064404510
1,589,760,008
2020-05-18T00:00:08
Main.java
import java.util.Scanner; class Main{ public static main(String[] args){ Scanner sc = new Scanner(System.in); final int K = sc.nextInt(); final int A = sc.nextInt(); final int B = sc.nextInt(); sc.close(); String is_ok = "NG"; for(int i=A;i<=B;i++){ if(i%K == 0){ is_ok = "OK...
Main.java:4: error: invalid method declaration; return type required public static main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u064404510|p02693|0
u064404510|p02693|0
codenet
Compile Error
373
v2_s035103972
s035103972
s035103972
p02693
p02693
u073606136
u073606136
1,588,468,871
2020-05-03T01:21:11
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); for(; a <= b+1; a++){ if(a % k == 0){ Sy...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02693|0
u073606136|p02693|0
codenet
Compile Error
494
v2_s302194397
s302194397
s302194397
p02693
p02693
u079120594
u079120594
1,588,476,822
2020-05-03T03:33:42
Main.java
class Main{ public static void main(String[] args) { int K = K(600, 700); if (number(K)){ System.out.println("OK"); } else { System.out.println("NG"); } public static int number(int K) { return number K % 8 == 0 > 600 && K % 8 == 0 < 700; } } }
Main.java:11: error: illegal start of expression public static int number(int K) { ^ Main.java:12: error: ';' expected return number K % 8 == 0 > 600 && K % 8 == 0 < 700; ^ Main.java:12: error: not a statement return number K % 8 == 0 > 600 && K % 8 == 0 < 700; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079120594|p02693|0
u079120594|p02693|0
codenet
Compile Error
297
v2_s863620822
s863620822
s863620822
p02693
p02693
u079120594
u079120594
1,588,477,137
2020-05-03T03:38:57
Main.java
class Main{ public static void main(String[] args) { int K = K(600, 700); if (number(K)){ System.out.println("OK"); } else { System.out.println("NG"); } public static boolean number(int K) { return number K % 8 == 0 > 600 && K % 8 == 0 < 700; } } }
Main.java:11: error: illegal start of expression public static boolean number(int K) { ^ Main.java:12: error: ';' expected return number K % 8 == 0 > 600 && K % 8 == 0 < 700; ^ Main.java:12: error: not a statement return number K % 8 == 0 > 600 && K % 8 == 0 < 700; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079120594|p02693|0
u079120594|p02693|0
codenet
Compile Error
302