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_s129847728
s129847728
s129847728
p02886
p02886
u532873044
u532873044
1,571,843,553
2019-10-23T15:12:33
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i = ...
Main.java:22: error: cannot find symbol sum = list(i) * list(j); ^ symbol: method list(int) location: class Main Main.java:22: error: cannot find symbol sum = list(i) * list(j); ^ symbol: method list(int) location: class Main Note: Main.java uses unchecked or unsafe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
484
v2_s663137204
s663137204
s663137204
p02886
p02886
u532873044
u532873044
1,571,843,819
2019-10-23T15:16:59
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(Integer ...
Main.java:17: error: incompatible types: Object cannot be converted to Integer for(Integer i : list) { ^ Main.java:18: error: cannot find symbol for(Integet j : list) { ^ symbol: class Integet location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile w...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
442
v2_s258403008
s258403008
s258403008
p02886
p02886
u532873044
u532873044
1,571,843,943
2019-10-23T15:19:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i : ...
Main.java:17: error: incompatible types: Object cannot be converted to int for(int i : list) { ^ Main.java:18: error: incompatible types: Object cannot be converted to int for(int j : list) { ^ Main.java:22: error: incompatible types: Object cannot be converted to int int one = li...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
495
v2_s006805974
s006805974
s006805974
p02886
p02886
u532873044
u532873044
1,571,851,152
2019-10-23T17:19:12
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] delicious = new int[n]; int sum = 0; for(int i=0; i<n; i++){ delicious[i] = scanner.nextInt(); } for(int i=0; i<n; i++){ for(int j=i+1; j<n;...
Main.java:17: error: ';' expected sum += delicious[i] * delicious[j] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|1
u532873044|p02886|0
codenet
Compile Error
406
v2_s594130975
s594130975
s594130975
p02886
p02886
u532873044
u532873044
1,571,942,346
2019-10-24T18:39:06
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[] y = new int[n]; for(int i=0; i<n; i++){ y[i] = sc.nextInt(); } int t = 0; for(int i=0; i<n; i++){ for(int j=i++; j<n; j++){ if(j != null){ t = y...
Main.java:16: error: bad operand types for binary operator '!=' if(j != null){ ^ first type: int second type: <null> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|2
u532873044|p02886|1
codenet
Compile Error
352
v2_s598083484
s598083484
s598083484
p02886
p02886
u532873044
u532873044
1,571,942,428
2019-10-24T18:40:28
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[] y = new int[n]; for(int i=0; i<n; i++){ y[i] = sc.nextInt(); } int t = 0; for(int i=0; i<n; i++){ for(int j=i++; j<n; j++){ if(!(j = null)){ t =...
Main.java:16: error: incompatible types: <null> cannot be converted to int if(!(j = null)){ ^ Main.java:16: error: bad operand type int for unary operator '!' if(!(j = null)){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|2
u532873044|p02886|1
codenet
Compile Error
354
v2_s324440089
s324440089
s324440089
p02886
p02886
u532873044
u532873044
1,571,942,640
2019-10-24T18:44:00
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[] y = new int[n]; for(int i=0; i<n; i++){ y[i] = sc.nextInt(); } int t = 0; for(int i=0; i<n; i++){ for(int j=i++; j<n; j++){ t += y[i] * y[j]; } ...
Main.java:19: error: cannot find symbol System.out.pritnln(t); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|2
u532873044|p02886|1
codenet
Compile Error
353
v2_s476879276
s476879276
s476879276
p02886
p02886
u582883426
u582883426
1,571,691,478
2019-10-21T20:57:58
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for (int i=0; i<N; i++) { a[i] = sc.nextInt(); } int sum = 0; for (int i = 0; i < N-1; i++) { ...
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:13: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582883426|p02886|0
u582883426|p02886|0
codenet
Compile Error
447
v2_s853122902
s853122902
s853122902
p02886
p02886
u582883426
u582883426
1,571,691,502
2019-10-21T20:58:22
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for (int i=0; i<N; i++) { a[i] = sc.nextInt(); } int sum = 0; for (int i = 0; i < N-1; i++) { ...
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
u582883426|p02886|0
u582883426|p02886|0
codenet
Compile Error
447
v2_s083794310
s083794310
s083794310
p02886
p02886
u599968009
u599968009
1,571,534,145
2019-10-20T01:15:45
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d[] = new int[n]; for(int i=0; i<n; i++) { d[i] = sc.nextInt(); } int p = 0; for (int i=0; i<n-1;i++) { for(int j=i+1;j<n;j++) { p += d[i]*d[j]; } } ...
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
u599968009|p02886|0
u599968009|p02886|0
codenet
Compile Error
351
v2_s194808848
s194808848
s194808848
p02886
p02886
u650353079
u650353079
1,571,539,994
2019-10-20T02:53:14
MAIN.java
import java.util.Scanner; public class MAIN { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); int d[]=new int[n]; for(int i=0;i<n;i++) d[i]=sc.nextInt(); long int ans=0; for(int i=0;i<n-1;i++) { for(int j=i+1;j<n;j++)...
MAIN.java:12: error: not a statement long int ans=0; ^ MAIN.java:12: error: ';' expected long int ans=0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650353079|p02886|0
u650353079|p02886|0
codenet
Compile Error
358
v2_s771614502
s771614502
s771614502
p02886
p02886
u659156129
u659156129
1,598,015,975
2020-08-21T13:19:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int[] d = new int[n]; for(int i=0; i<n; i++){ d[i] = scn.nextInt(); } int sum = 0; for(int i=0; i<n-1; i++){ for(int j=i+1;...
Main.java:14: error: cannot find symbol sum += a[i]*a[j]; ^ symbol: variable a location: class Main Main.java:14: error: cannot find symbol sum += a[i]*a[j]; ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02886|0
u659156129|p02886|0
codenet
Compile Error
420
v2_s478626546
s478626546
s478626546
p02886
p02886
u760718569
u760718569
1,571,551,736
2019-10-20T06:08:56
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[] = new int[a-1]; int c = 0; for(int i = 0;i < b.length;i++){ b[i] = sc.nextInt(); if(i > 0){ c += b[i-1]*b[i]; } } ...
Main.java:4: error: cannot find symbol Scanner sc = new scanner(System.in); ^ symbol: class scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02886|0
u760718569|p02886|0
codenet
Compile Error
350
v2_s879662007
s879662007
s879662007
p02886
p02886
u787005274
u787005274
1,573,368,569
2019-11-10T06: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[] = new int[n]; int heal = 0; for(int i = 0; i < n; i++){ d[i] = sc.nextInt(); } for(int i = 0; i < n - 1; i++){ for(int j = i + 1; j ...
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02886|0
u787005274|p02886|0
codenet
Compile Error
416
v2_s433208473
s433208473
s433208473
p02886
p02886
u796481713
u796481713
1,572,023,637
2019-10-25T17:13:57
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 sum =0; int number[] = new int[N]; for (int i=0;i<N;i++) { int[i] = sc.nextInt(); for (j=0;i<j;j<N;j++) { int con = number[i]*number[j...
Main.java:9: error: ']' expected int[i] = sc.nextInt(); ^ Main.java:9: error: ';' expected int[i] = sc.nextInt(); ^ Main.java:10: error: not a statement for (j=0;i<j;j<N;j++) { ^ Main.java:10: error: ')' expected for (j=0;i<j;j<N;j++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796481713|p02886|0
u796481713|p02886|0
codenet
Compile Error
401
v2_s994453913
s994453913
s994453913
p02886
p02886
u812805378
u812805378
1,571,539,243
2019-10-20T02:40:43
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[] = new int[N]; int ans = 0; int tmp = 0; for(int i=0;i<N;i++){ d[i]=sc.nextInt(); } for(int i=0;i<N;i++){ tmp += d[i]*d[i]; for(in...
Main.java:22: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:43: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812805378|p02886|0
u812805378|p02886|0
codenet
Compile Error
854
v2_s360398676
s360398676
s360398676
p02886
p02886
u812805378
u812805378
1,571,539,264
2019-10-20T02:41:04
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[] = new int[N]; int ans = 0; int tmp = 0; for(int i=0;i<N;i++){ d[i]=sc.nextInt(); } for(int i=0;i<N;i++){ tmp += d[i]*d[i]; for(in...
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
u812805378|p02886|0
u812805378|p02886|0
codenet
Compile Error
841
v2_s660821559
s660821559
s660821559
p02886
p02886
u816631826
u816631826
1,572,489,717
2019-10-31T02:41:57
Main.java
public static void main(String[] args) { Scanner in1 = new Scanner(System.in); int N = in1.nextInt(); int D[]=new int [N]; Scanner d = new Scanner(System.in); int sum=0; for (int x=0;x<N;x++) { D[x]=d.nextInt(); } for (int y=0;y<N-1...
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
u816631826|p02886|0
u816631826|p02886|0
codenet
Compile Error
478
v2_s715664546
s715664546
s715664546
p02886
p02886
u880909682
u880909682
1,573,080,574
2019-11-06T22:49:34
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[] a; for(i=0; i < n; i++) { a[i] = sc.nextInt(); } int S1 =0; int S2 = 0; for(i=0; i < n; i++) { S1 += a[i]*a[i]; } for(i=0;...
Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02886|0
u880909682|p02886|0
codenet
Compile Error
429
v2_s828655898
s828655898
s828655898
p02886
p02886
u880909682
u880909682
1,573,080,703
2019-11-06T22:51:43
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[] a; for(int i=0; i < n; i++) { a[i] = sc.nextInt(); } int S1 =0; int S2 = 0; for( int i = 0; i < n; i++) { S1 += a[i]*a[i]; } ...
Main.java:8: error: variable a might not have been initialized a[i] = sc.nextInt(); ^ Main.java:13: error: variable a might not have been initialized S1 += a[i]*a[i]; ^ Main.java:16: error: variable a might not have been initialized S2 += a[i]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02886|0
u880909682|p02886|0
codenet
Compile Error
448
v2_s689702075
s689702075
s689702075
p02886
p02886
u880909682
u880909682
1,573,080,886
2019-11-06T22:54:46
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[] a = new int[n]; for(i=0; i < n; i++) { a[i] = sc.nextInt(); } int S1 =0; int S2 = 0; for( int i = 0; i < n; i++) { S1 += a[i]*a[i...
Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02886|0
u880909682|p02886|0
codenet
Compile Error
457
v2_s265229297
s265229297
s265229297
p02886
p02886
u891161439
u891161439
1,572,038,082
2019-10-25T21:14: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[] d = new int[n]; int sum = 0; for(int i = 0; i++; i<n){ d[i] = sc.nextInt(); sum += d[i]; } int ans = 0; for(int i = 0;i++;i<n){ ans += d[i]*(sum - d[i...
Main.java:8: error: not a statement for(int i = 0; i++; i<n){ ^ Main.java:13: error: not a statement for(int i = 0;i++;i<n){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p02886|0
u891161439|p02886|0
codenet
Compile Error
362
v2_s334291030
s334291030
s334291030
p02887
p02887
u139478771
u139478771
1,571,533,721
2019-10-20T01:08:41
Main.java
fun main(args: Array<String>) { abc143c() } fun abc143c() { val n = readLine()!!.toInt() val s = readLine()!! val slimes = mutableListOf<Char>() s.forEachIndexed { index, c -> if (index > 0) { if (slimes.last() != c) slimes.add(c) } else { slimes.add(c) ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. fun main(args: Array<String>) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected fun main(args: Array<String>) { ^ Main.java:1: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139478771|p02887|0
u139478771|p02887|0
codenet
Compile Error
360
v2_s168221061
s168221061
s168221061
p02887
p02887
u163308921
u163308921
1,572,224,162
2019-10-28T00:56:02
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args){ FastScanner sc = new FastScanner(); int N = sc.nextInt(); ...
Main.java:13: error: cannot find symbol String S = sc.next(); ^ symbol: method next() location: variable sc of type FastScanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163308921|p02887|1
u163308921|p02887|1
codenet
Compile Error
1,398
v2_s089760137
s089760137
s089760137
p02887
p02887
u200239931
u200239931
1,580,064,974
2020-01-26T18:56:14
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader reader = new BufferedReader(is)...
Main.java:51: error: class, interface, enum, or record expected import java.io.BufferedReader; ^ Main.java:52: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:53: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:54: error: class, i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200239931|p02887|1
u200239931|p02887|1
codenet
Compile Error
2,592
v2_s052814510
s052814510
s052814510
p02887
p02887
u303741068
u303741068
1,572,314,963
2019-10-29T02:09:23
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { System.out.println(solve); } private static long solve() { FastReader fr = new FastReader(); int N = fr.nextIn...
Main.java:8: error: cannot find symbol System.out.println(solve); ^ symbol: variable solve location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02887|0
u303741068|p02887|0
codenet
Compile Error
1,552
v2_s778213099
s778213099
s778213099
p02887
p02887
u369712616
u369712616
1,584,625,642
2020-03-19T13:47:22
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int n = new sc.nextInt(); int[] x = new int[n]; int[] y = new int[n]; for(int i = 0; i < n; i++){ x[i] = sc.nextInt(); y[i] = sc.nextInt(); } long sum = 0; for(int i = ...
Main.java:4: error: no suitable constructor found for Scanner(no arguments) Scanner sc = 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
u369712616|p02887|0
u369712616|p02887|0
codenet
Compile Error
525
v2_s142812927
s142812927
s142812927
p02887
p02887
u369712616
u369712616
1,584,672,585
2020-03-20T02:49:45
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(Sytem.in); int n = sc.nextInt(); int[] in = new int[n]; String input = sc.next(); int cnt = 0; for(int i = 0; i < n; i++){ in[i] = input.charAt(i); if(i == 0){ cnt++; }else{ if(in[i...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(Sytem.in); ^ symbol: variable Sytem location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02887|1
u369712616|p02887|1
codenet
Compile Error
400
v2_s103234701
s103234701
s103234701
p02887
p02887
u532873044
u532873044
1,571,853,188
2019-10-23T17:53:08
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); Char[] c = s.toCharArray(); int count = 1; for(int i=0; i<n-1; i++){ if(c[i].equals(c[i+1]){ ans++; } } System.out.println(ans)...
Main.java:15: error: ')' expected if(c[i].equals(c[i+1]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02887|0
u532873044|p02887|0
codenet
Compile Error
327
v2_s455904288
s455904288
s455904288
p02887
p02887
u532873044
u532873044
1,571,853,265
2019-10-23T17:54: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(); String s = sc.next(); Char[] c = s.toCharArray(); int count = 1; for(int i=0; i<n-1; i++){ if(c[i].equals(c[i+1]){ count++; } } System.out.println(co...
Main.java:15: error: ')' expected if(c[i].equals(c[i+1]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02887|0
u532873044|p02887|0
codenet
Compile Error
331
v2_s314544923
s314544923
s314544923
p02887
p02887
u532873044
u532873044
1,571,853,385
2019-10-23T17:56: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(); String s = sc.next(); Char[] c = s.toCharArray(); int count = 1; for(int i=0; i<n-1; i++){ if(!(c[i]==c[i+1])){ count++; } } System.out.println(coun...
Main.java:10: error: cannot find symbol Char[] c = s.toCharArray(); ^ symbol: class Char location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02887|0
u532873044|p02887|0
codenet
Compile Error
329
v2_s082173675
s082173675
s082173675
p02887
p02887
u532873044
u532873044
1,572,270,688
2019-10-28T13:51:28
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Stirng s = sc.next(); char[] c = s.toCharArray(); int count = 0; for(int i=0; i<n; i++){ if(c[i] == c[i+1]){ count++; } } } }
Main.java:7: error: cannot find symbol Stirng s = sc.next(); ^ symbol: class Stirng location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02887|1
u532873044|p02887|1
codenet
Compile Error
318
v2_s903828605
s903828605
s903828605
p02887
p02887
u532873044
u532873044
1,572,270,838
2019-10-28T13:53:58
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); char[] c = s.toCharArray(); int count = 0; for(int i=0; i<c.lnegth; i++){ if(c[i] == c[i+1]){ count++; } } ...
Main.java:12: error: cannot find symbol for(int i=0; i<c.lnegth; i++){ ^ symbol: variable lnegth location: variable c of type char[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02887|1
u532873044|p02887|1
codenet
Compile Error
325
v2_s119140533
s119140533
s119140533
p02887
p02887
u582883426
u582883426
1,571,693,602
2019-10-21T21:33:22
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(); char a[] = new char[N+1]; String s = sc.next(); a = Arrays.copyOf(s.toCharArray(), N+1); char tmp = a[0]; String...
Main.java:9: error: cannot find symbol a = Arrays.copyOf(s.toCharArray(), N+1); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582883426|p02887|0
u582883426|p02887|0
codenet
Compile Error
542
v2_s055187967
s055187967
s055187967
p02887
p02887
u659156129
u659156129
1,597,154,626
2020-08-11T14:03:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); String s = scn.next(); String[] list = s.split(""); int count = 0; for(int i=0; i<n; i++){ if(list[i].equals(a[i-1])) count++; } ...
Main.java:11: error: cannot find symbol if(list[i].equals(a[i-1])) count++; ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02887|0
u659156129|p02887|0
codenet
Compile Error
356
v2_s811848709
s811848709
s811848709
p02887
p02887
u760718569
u760718569
1,571,602,364
2019-10-20T20:12:44
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(); char b[] = new b[a]; int counter; for(int i = 0;i < b.length;i++){ b[i] = sc.next(); } for{int j = 0;j < b.length;j++){ if(b[i-1]==b[i]...
Main.java:11: error: '(' expected for{int j = 0;j < b.length;j++){ ^ Main.java:11: error: > or ',' expected for{int j = 0;j < b.length;j++){ ^ Main.java:11: error: not a statement for{int j = 0;j < b.length;j++){ ^ Main.java:11: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02887|0
u760718569|p02887|0
codenet
Compile Error
410
v2_s798469277
s798469277
s798469277
p02887
p02887
u760718569
u760718569
1,571,602,417
2019-10-20T20:13:37
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(); char b[] = new b[a]; int counter; for(int i = 0;i < b.length;i++){ b[i] = sc.next(); } for(int j = 0;j < b.length;j++){ if(b[i-1]==b[i]...
Main.java:6: error: cannot find symbol char b[] = new b[a]; ^ symbol: class b location: class Main Main.java:9: error: incompatible types: String cannot be converted to char b[i] = sc.next(); ^ Main.java:12: error: cannot find symbol if(b[i-1]==b[i] && j != 0){...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02887|0
u760718569|p02887|0
codenet
Compile Error
409
v2_s471512956
s471512956
s471512956
p02887
p02887
u760718569
u760718569
1,571,602,568
2019-10-20T20:16:08
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(); char b[] = new b[a]; int counter; for(int i = 0;i < b.length;i++){ b[i] = sc.nextChar(); } for(int j = 0;j < b.length;j++){ if(b[j-1]==...
Main.java:6: error: cannot find symbol char b[] = new b[a]; ^ symbol: class b location: class Main Main.java:9: error: cannot find symbol b[i] = sc.nextChar(); ^ symbol: method nextChar() location: variable sc of type Scanner Main.java:16: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02887|0
u760718569|p02887|0
codenet
Compile Error
413
v2_s296222773
s296222773
s296222773
p02887
p02887
u778449457
u778449457
1,571,534,803
2019-10-20T01:26:43
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] s = sc.next().toCharArray(); List<Character> list = new ArrayList<Character>(); for ...
Main.java:6: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u778449457|p02887|0
u778449457|p02887|0
codenet
Compile Error
542
v2_s765215930
s765215930
s765215930
p02887
p02887
u934782869
u934782869
1,592,743,565
2020-06-21T12:46:05
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); char[] ch = new char[n]; for(int i=0; i<n; i++) { ch[i] = s.charAt(i); } int cou...
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|p02887|0
u934782869|p02887|0
codenet
Compile Error
489
v2_s051024875
s051024875
s051024875
p02888
p02888
u131881594
u131881594
1,589,427,500
2020-05-14T03:38:20
Main.java
7 218 786 704 233 645 728 389
Main.java:1: error: class, interface, enum, or record expected 7 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131881594|p02888|0
u131881594|p02888|0
codenet
Compile Error
29
v2_s028182983
s028182983
s028182983
p02888
p02888
u139478771
u139478771
1,571,549,328
2019-10-20T05:28:48
Main.java
fun main(args: Array<String>) { abc143d() } fun abc143d() { val n = readLine()!!.toInt() val lines = readLine()!!.split(" ").map { it.toInt() } .sorted().toIntArray() var answer = 0 for (bi in 0 until n) { var right = bi + 1 for (ai in 0 until bi) { while (right...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. fun main(args: Array<String>) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected fun main(args: Array<String>) { ^ Main.java:1: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139478771|p02888|0
u139478771|p02888|0
codenet
Compile Error
478
v2_s888370751
s888370751
s888370751
p02888
p02888
u164047433
u164047433
1,574,891,486
2019-11-27T21:51:26
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int count = 0; for(int i = 0;i < n;i++){ a[i] = sc.nextInt(); } Arrays.sort(a); for(int ...
Main.java:16: error: cannot find symbol Arrays.sort(a); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164047433|p02888|0
u164047433|p02888|0
codenet
Compile Error
580
v2_s029379951
s029379951
s029379951
p02888
p02888
u173574510
u173574510
1,585,795,756
2020-04-02T02:49:16
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Stack; import java.util.StringTokenizer; public class Main implements Runnable { // クラス名はMain1 public ...
Main.java:245: error: not a statement int[] package Atcoder.abc.contest143; ^ Main.java:245: error: ';' expected int[] package Atcoder.abc.contest143; ^ Main.java:245: error: not a statement int[] package Atcoder.abc.contest143; ^ Main.java:247: error: illegal start of expre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u173574510|p02888|1
u173574510|p02888|0
codenet
Compile Error
11,876
v2_s066363603
s066363603
s066363603
p02888
p02888
u197964561
u197964561
1,571,729,777
2019-10-22T07:36:17
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[] nums = new int[n]; int ans = 0; for(int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums); for(int i = ...
Main.java:38: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u197964561|p02888|1
u197964561|p02888|1
codenet
Compile Error
717
v2_s415476170
s415476170
s415476170
p02888
p02888
u218740431
u218740431
1,585,725,363
2020-04-01T07:16:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long b = 0; int c = 0; int d = 2; int e; int [] in = new long [a]; for(int i=0;i<a;i++){ in[i] = sc.nextI...
Main.java:15: error: ')' expected for(int i=0;i<j;i++){for(int j=1;j<k;j++){if(in[j+1]<in[i]+in[j]{c=0;d=4; ^ Main.java:16: error: illegal start of expression (while c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02888|0
u218740431|p02888|0
codenet
Compile Error
1,501
v2_s483377427
s483377427
s483377427
p02888
p02888
u218740431
u218740431
1,585,725,410
2020-04-01T07:16:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long b = 0; int c = 0; int d = 2; int e; int [] in = new long [a]; for(int i=0;i<a;i++){ in[i] = sc.nextI...
Main.java:15: error: ')' expected for(int i=0;i<j;i++){for(int j=1;j<k;j++){if(in[j+1]<in[i]+in[j]{c=0;d=4; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02888|0
u218740431|p02888|0
codenet
Compile Error
1,501
v2_s984095984
s984095984
s984095984
p02888
p02888
u218740431
u218740431
1,585,725,452
2020-04-01T07:17:32
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long b = 0; int c = 0; int d = 2; int e; int [] in = new long [a]; for(int i=0;i<a;i++){ in[i] = sc.nextI...
Main.java:10: error: incompatible types: long[] cannot be converted to int[] int [] in = new long [a]; ^ Main.java:15: error: cannot find symbol for(int i=0;i<j;i++){for(int j=1;j<k;j++){if(in[j+1]<in[i]+in[j]){c=0;d=4; ^ symbol: variable j location: class Main Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02888|0
u218740431|p02888|0
codenet
Compile Error
1,502
v2_s099252199
s099252199
s099252199
p02888
p02888
u218740431
u218740431
1,585,725,531
2020-04-01T07:18:51
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long b = 0; int c = 0; int d = 2; int e; int [] in = new long [a]; for(int i=0;i<a;i++){ in[i] = sc.nextI...
Main.java:10: error: incompatible types: long[] cannot be converted to int[] int [] in = new long [a]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02888|0
u218740431|p02888|0
codenet
Compile Error
1,508
v2_s331130486
s331130486
s331130486
p02888
p02888
u228127260
u228127260
1,571,535,874
2019-10-20T01:44:34
Main.java
import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; import java.util.Set; import library.search.LowerBound; public class Main { static final Scanner sc = new Scanner(System.in); static final int MOD = (int) 1E9 + 7; public static void main(String[] args) { int N ...
Main.java:6: error: package library.search does not exist import library.search.LowerBound; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228127260|p02888|0
u228127260|p02888|0
codenet
Compile Error
4,487
v2_s246500163
s246500163
s246500163
p02888
p02888
u287979658
u287979658
1,571,538,448
2019-10-20T02:27:28
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[] b; b=new int [a]; long total=0; for(int i=0;i<a;i++) { b[i]= sc.nextInt(); } for(int i=0;i<a;i++) ...
Main.java:22: error: ')' expected if((b[i]<b[j]+b[k]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u287979658|p02888|0
u287979658|p02888|0
codenet
Compile Error
762
v2_s840913910
s840913910
s840913910
p02888
p02888
u302684639
u302684639
1,571,535,068
2019-10-20T01:31:08
Main.java
import java.io.*; import java.awt.geom.Point2D; import java.io.IOException; import java.io.InputStream; import java.util.*; import java.util.stream.*; import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Supplier; class Main { final static int INF = 1 << 28; final...
Main.java:35: error: no suitable method found for binarySearch(long[],long,int,long) long idx = Arrays.binarySearch(L, j+1, L.length, L[(int) i] + L[(int) j]); ^ method Arrays.binarySearch(long[],int,int,long) is not applicable (argument mismatch; possible loss...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u302684639|p02888|0
u302684639|p02888|0
codenet
Compile Error
20,259
v2_s950084737
s950084737
s950084737
p02888
p02888
u303741068
u303741068
1,572,319,595
2019-10-29T03:26:35
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int N = fr.nextInt(); int sticks = new int[N]; for (int i = 0; i < N; i++) { ...
Main.java:78: error: <identifier> expected return Character. ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02888|0
u303741068|p02888|0
codenet
Compile Error
1,976
v2_s734127422
s734127422
s734127422
p02888
p02888
u303741068
u303741068
1,572,319,649
2019-10-29T03:27:29
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int N = fr.nextInt(); int sticks = new int[N]; for (int i = 0; i < N; i++) { ...
Main.java:10: error: incompatible types: int[] cannot be converted to int int sticks = new int[N]; ^ Main.java:12: error: array required, but int found sticks[i] = fr.nextInt(); ^ Main.java:15: error: cannot find symbol Arrays.sort(sticks); // sort sticks in ascending order ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02888|0
u303741068|p02888|0
codenet
Compile Error
1,929
v2_s760399595
s760399595
s760399595
p02888
p02888
u303741068
u303741068
1,572,319,693
2019-10-29T03:28:13
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int N = fr.nextInt(); int[] sticks = new int[N]; for (int i = 0; i < N; i++) {...
Main.java:15: error: cannot find symbol Arrays.sort(sticks); // sort sticks in ascending order ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02888|0
u303741068|p02888|0
codenet
Compile Error
1,931
v2_s310973834
s310973834
s310973834
p02888
p02888
u417414025
u417414025
1,575,647,155
2019-12-06T15:45:55
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[] sticks = new int[N]; for(int i = 0; i < N; i++) { sticks[i] = Integer.parseInt(sc.next()); }...
Main.java:18: error: cannot find symbol Arrays.sort(sticks); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u417414025|p02888|2
u417414025|p02888|2
codenet
Compile Error
742
v2_s457843896
s457843896
s457843896
p02888
p02888
u452505906
u452505906
1,590,264,735
2020-05-23T20:12:15
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[] l = new int[n]; for (int i = 0; i < n; i++) { l[i] = sc.nextInt(); } int cnt=0; for (int a = 0; a < n-2; a++) { for (int b = a+1; b < n-1; ...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452505906|p02888|0
u452505906|p02888|0
codenet
Compile Error
579
v2_s908377914
s908377914
s908377914
p02888
p02888
u476482490
u476482490
1,571,539,184
2019-10-20T02:39:44
Main.java
package ABC147.D; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer; public class Main { public static void main(final String[] args) { final FastScanner ...
Main.java:32: error: ';' expected answer += i * (i - 1)*(i-2) / 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p02888|0
u476482490|p02888|0
codenet
Compile Error
2,200
v2_s078385070
s078385070
s078385070
p02888
p02888
u476482490
u476482490
1,571,539,199
2019-10-20T02:39:59
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; import java.util.StringTokenizer; public class Main { public static void main(final String[] args) { final FastScanner scanner = new Fas...
Main.java:32: error: ';' expected answer += i * (i - 1)*(i-2) / 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p02888|0
u476482490|p02888|0
codenet
Compile Error
2,183
v2_s633446404
s633446404
s633446404
p02888
p02888
u477516105
u477516105
1,573,593,562
2019-11-12T21:19:22
Main.java
#include <bits/stdc++.h> using namespace std; int n,k,ng=0,ok=1234,l[2020],a[2020020],A=0,b[2020020]; int main(){ cin>>n; for(int i=0;i<n;i++)cin>>l[i]; sort(l,l+1); for(int i=0;i<n;i++){ for(int j=(i-1);j<n;j++){ a[A]=(i+j); A++; } } for(int i=0;i<=A;i++){ while((ok-ng)!=1){ int m=(ng+ok)/2; if...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected int n,k,ng=0,ok=1234,l[2020],a[2020020],A=0,b[2020020]; ^ Main.java:5: error: not a stat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u477516105|p02888|0
u477516105|p02888|0
codenet
Compile Error
387
v2_s253466529
s253466529
s253466529
p02888
p02888
u532873044
u532873044
1,572,985,420
2019-11-05T20:23: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[] nums = new int[n]; for(int i=0; i<n; i++){ nums[i] = sc.nextInt(); } int cnt = 0; for(int i=0; i<n-2; i++){ for(int j=0; j<n-1; j++...
Main.java:27: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02888|0
u532873044|p02888|0
codenet
Compile Error
568
v2_s837802048
s837802048
s837802048
p02888
p02888
u532873044
u532873044
1,574,461,075
2019-11-22T22:17:55
Main.java
import java.util.Scanner; import java.util.Array; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] L = new int[n]; for(int i=0; i<n; i++){ L[i] = sc.nextInt(); } Arrays.sort(L); int count = 0; for...
Main.java:2: error: cannot find symbol import java.util.Array; ^ symbol: class Array location: package java.util Main.java:14: error: cannot find symbol Arrays.sort(L); ^ symbol: variable Arrays location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02888|2
u532873044|p02888|2
codenet
Compile Error
540
v2_s905518012
s905518012
s905518012
p02888
p02888
u579583524
u579583524
1,571,537,513
2019-10-20T02:11:53
Triangle.java
import java.util.*; public class Triangle{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<Integer> array = new ArrayList<>(); // 整数の入力 int number = sc.nextInt(); for(int i = 0; i < number; i++){ array.add(sc.nextInt()); } Collections.sort(array, Collec...
Triangle.java:17: error: cannot find symbol if(array.get(i) < array.get(k)+array.get(k+1)){ ^ symbol: variable k location: class Triangle Triangle.java:17: error: cannot find symbol if(array.get(i) < array.get(k)+array.get(k+1)){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u579583524|p02888|0
u579583524|p02888|0
codenet
Compile Error
956
v2_s936330923
s936330923
s936330923
p02888
p02888
u633565318
u633565318
1,571,538,384
2019-10-20T02:26:24
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int L[] = new int[N]; int count = 0; int a = 0; int b = 0; int c = 0; for(int i=0; i<N; i++){ L[i] = sc....
Main.java:21: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(L, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int up...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633565318|p02888|0
u633565318|p02888|0
codenet
Compile Error
814
v2_s392104387
s392104387
s392104387
p02888
p02888
u732142494
u732142494
1,571,534,734
2019-10-20T01:25:34
Main.java
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); try { final int N = sc.nextInt(); int [] L = new int[N]; for (int i=0; i<N; i++) { L[i] = sc.nextInt()...
Main.java:15: error: no suitable method found for parallelSort(int[],Comparator<T#1>) Arrays.parallelSort(L, Comparator.reverseOrder()); ^ method Arrays.<T#2>parallelSort(T#2[]) is not applicable (cannot infer type-variable(s) T#2 (actual and formal argument lists differ in length)) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u732142494|p02888|0
u732142494|p02888|0
codenet
Compile Error
759
v2_s186973380
s186973380
s186973380
p02888
p02888
u740900993
u740900993
1,580,753,307
2020-02-03T18:08:27
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[] l = new int[n]; for(int i=0;i<n;i++)l[i]=sc.nextInt(); Arrays.sort(l); long ans=0; for(long i=0;i<n-2;i++){ ...
Main.java:17: error: incompatible types: possible lossy conversion from long to int int max = l[i]+l[j]-1; ^ Main.java:17: error: incompatible types: possible lossy conversion from long to int int max = l[i]+l[j]-1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740900993|p02888|1
u740900993|p02888|1
codenet
Compile Error
614
v2_s600079232
s600079232
s600079232
p02888
p02888
u808976884
u808976884
1,571,850,923
2019-10-23T17:15:23
Main.java
import java.util.*; import java.util.ArrayList; public class Main { public static void main(String[] args) throws Exception { // 宣言 Scanner sc = new Scanner(System.in); int count = 0; ArrayList<Integer> lists = new ArrayList<>(); // 入力値取得 int rod = sc.nextInt(); ...
Main.java:18: error: cannot find symbol Array.sort(lens); ^ symbol: variable Array location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02888|0
u808976884|p02888|0
codenet
Compile Error
990
v2_s678566958
s678566958
s678566958
p02888
p02888
u865557263
u865557263
1,572,140,591
2019-10-27T01:43:11
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int N = sc.nextInt(); int[] L = new int[N + 1]; for (int i = 0; i < N; i++) { L[i] = sc.nextInt(); } L[N] = 10000; Arrays.so...
Main.java:28: error: ';' expected System.out.println(cnt) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u865557263|p02888|0
u865557263|p02888|0
codenet
Compile Error
629
v2_s520711722
s520711722
s520711722
p02888
p02888
u931521251
u931521251
1,575,536,142
2019-12-05T08:55:42
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in))); int n = sc.nextInt(); sc.nextLine(); int[] L = toArray(sc.nextLine()); int res = 0; fo...
Main.java:10: error: cannot find symbol int[] L = toArray(sc.nextLine()); ^ symbol: method toArray(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u931521251|p02888|0
u931521251|p02888|0
codenet
Compile Error
674
v2_s021577085
s021577085
s021577085
p02888
p02888
u981866345
u981866345
1,572,232,912
2019-10-28T03:21:52
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //標準入力取得 int num = sc.nextInt(); int edge[] = new int[num]; for (int i = 0; i < num; i++) { edge[i] = sc.nextInt(); } Arrays.sort(edge); int triangle = 0; for (int i = 0; i < num - 2; i++) { fo...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:13: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981866345|p02888|0
u981866345|p02888|0
codenet
Compile Error
752
v2_s698378846
s698378846
s698378846
p02889
p02889
u042524994
u042524994
1,571,604,160
2019-10-20T20:42:40
Main.java
public class Main{ static final int MAX = (int)1e9+1; /* 이문제는 도시를 여행하는데, 도시를 여행할때마다 L이라는 연료가 소모되고 각 도시를 지나갈때마다 연료를 충전할 수 있다. 우리가 찾고자 하는것은 최소한의 연료충전으로 도시를 까지 여행할 수 있는 충전 횟수를 구하는것이 목표이다. Q로 여러개의 질답이 나오기 때문에 미리 행렬에 최단거리 ( L을 거리로 친다.)를 기록하는것이 더 유리하다. */ public static int[][] m...
Main.java:14: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:14: 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
u042524994|p02889|0
u042524994|p02889|0
codenet
Compile Error
2,163
v2_s988303479
s988303479
s988303479
p02889
p02889
u276152693
u276152693
1,598,703,064
2020-08-29T12:11:04
Main.java
public Main(FastScanner in, PrintWriter out) { N = in.nextInt(); M = in.nextInt(); L = in.nextInt(); adj = new List[N]; for (int i = 0; i < N; i++) adj[i] = new ArrayList<>(); for (int i = 0; i < M; i++) { int a = in.nextInt() - 1; ...
Main.java:2: error: class, interface, enum, or record expected public Main(FastScanner in, PrintWriter out) { ^ Main.java:4: error: class, interface, enum, or record expected M = in.nextInt(); ^ Main.java:5: error: class, interface, enum, or record expected L = in.nextInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276152693|p02889|0
u276152693|p02889|0
codenet
Compile Error
5,324
v2_s379985278
s379985278
s379985278
p02889
p02889
u303741068
u303741068
1,572,234,995
2019-10-28T03:56:35
TravelByCar.java
// https://atcoder.jp/contests/abc143/tasks/abc143_e import EdgeWeightedGraph.EdgeWeightedGraph; import java.io.PrintWriter; import java.util.Arrays; import java.util.List; public class TravelByCar { static FastReader fr = new FastReader(); public static void main(String [] args) { int N = fr.nextInt(); ...
TravelByCar.java:2: error: package EdgeWeightedGraph does not exist import EdgeWeightedGraph.EdgeWeightedGraph; ^ TravelByCar.java:9: error: cannot find symbol static FastReader fr = new FastReader(); ^ symbol: class FastReader location: class TravelByCar TravelByCar.java:9: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02889|0
u303741068|p02889|0
codenet
Compile Error
1,668
v2_s044397251
s044397251
s044397251
p02889
p02889
u482226328
u482226328
1,571,545,490
2019-10-20T04:24:50
Main.java
public class Main { public static void main(String[] args) { solve(System.in, System.out); } private static class Edge { int fr; int to; int cost; } static void solve(InputStream is, PrintStream os) { Scanner sc = new Scanner(is); /* read */ int n = sc.nextInt(); int m = sc...
Main.java:13: error: cannot find symbol static void solve(InputStream is, PrintStream os) { ^ symbol: class InputStream location: class Main Main.java:13: error: cannot find symbol static void solve(InputStream is, PrintStream os) { ^ symbol: class P...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u482226328|p02889|0
u482226328|p02889|0
codenet
Compile Error
3,153
v2_s364764963
s364764963
s364764963
p02889
p02889
u550314572
u550314572
1,571,539,210
2019-10-20T02:40:10
Main.java
import java.awt.Point; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Serializable; import java.util.AbstractList; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.u...
Main.java:139: error: cannot find symbol io.println(dp[s][t] != null && dp[s][y].supply < INF ? dp[s][t].supply : -1); ^ symbol: variable y location: class Main Main.java:353: warning: [removal] finalize() in Object has been deprecated and marked for removal protected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u550314572|p02889|0
u550314572|p02889|0
codenet
Compile Error
61,641
v2_s403733379
s403733379
s403733379
p02889
p02889
u762187782
u762187782
1,572,432,681
2019-10-30T10:51:21
Main.java
import org.jetbrains.annotations.NotNull; import java.io.*; import java.util.*; import java.util.function.Function; public class Main { static int N, M, L; static Edge[] E; static int Q; static int[] S, T; public static void main(String[] args) { FastScanner sc = new FastScanner(System.i...
Main.java:1: error: package org.jetbrains.annotations does not exist import org.jetbrains.annotations.NotNull; ^ Main.java:130: error: cannot find symbol public int compareTo(@NotNull State o) { ^ symbol: class NotNull location: class State 2 e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762187782|p02889|0
u762187782|p02889|0
codenet
Compile Error
6,636
v2_s168310211
s168310211
s168310211
p02889
p02889
u787576502
u787576502
1,571,601,573
2019-10-20T19:59:33
Main.java
import javafx.scene.layout.Priority; import java.util.*; import java.io.*; public class Main { static class Town implements Comparable<Town>{ int dist; int i; public Town(int i){ dist = Integer.MAX_VALUE; this.i = i; } public int compareTo(Town t)...
Main.java:1: error: package javafx.scene.layout does not exist import javafx.scene.layout.Priority; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787576502|p02889|0
u787576502|p02889|0
codenet
Compile Error
2,750
v2_s238793522
s238793522
s238793522
p02890
p02890
u241874341
u241874341
1,579,869,123
2020-01-24T12:32:03
Main.java
import java.util.*; public class Main implements Runnable { private static int MOD = 1_000_000_007; public static void main(String[] args) { // Run with 32MB stack Thread thread = new Thread(null, new Main(), "", 32 * 1024 * 1024); thread.start(); } @Override public void ...
Main.java:37: error: cannot find symbol int index = binarySearch(A, 0, A.length, mid); ^ symbol: method binarySearch(int[],int,int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241874341|p02890|0
u241874341|p02890|0
codenet
Compile Error
1,848
v2_s319924444
s319924444
s319924444
p02890
p02890
u517219904
u517219904
1,571,538,452
2019-10-20T02:27:32
Main.java
import java.util.HashMap; import java.util.PriorityQueue; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int[] A = new int[N]; HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); for (int i = 0...
Main.java:92: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517219904|p02890|0
u517219904|p02890|0
codenet
Compile Error
1,765
v2_s000537381
s000537381
s000537381
p02890
p02890
u824477366
u824477366
1,571,538,767
2019-10-20T02:32:47
Main.java
import java.util.*; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] l = new int[n]; for (int i =0;i<n;i++){ l[i] = sc.nextInt(); } judge(l,n); //System.out.println(ret); ...
Main.java:25: error: ')' expected if((l.length / b >= dep){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824477366|p02890|0
u824477366|p02890|0
codenet
Compile Error
855
v2_s000415099
s000415099
s000415099
p02891
p02891
u109314200
u109314200
1,570,325,691
2019-10-06T01:34:51
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder st = new StringBuilder(""); StringBuilder ss = new StringBuilder(s); long k = sc.nextLong(); int temp = k; // while (k-- > 0){ // ss.append(st); // } ...
Main.java:9: error: incompatible types: possible lossy conversion from long to int int temp = k; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109314200|p02891|0
u109314200|p02891|0
codenet
Compile Error
590
v2_s641535263
s641535263
s641535263
p02891
p02891
u109314200
u109314200
1,570,339,153
2019-10-06T05:19:13
Main.java
import java.util.*; class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder st = new StringBuilder(""); StringBuilder ss = new StringBuilder(s); long k = sc.nextLong(); long count = 0; char del = '$'; int n = (int) s.length(); for...
Main.java:28: error: ';' expected count1++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109314200|p02891|1
u109314200|p02891|0
codenet
Compile Error
826
v2_s677549351
s677549351
s677549351
p02891
p02891
u109314200
u109314200
1,570,339,171
2019-10-06T05:19:31
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder st = new StringBuilder(""); StringBuilder ss = new StringBuilder(s); long k = sc.nextLong(); long count = 0; char del = '$'; int n = (int) s.length(); for...
Main.java:28: error: ';' expected count1++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109314200|p02891|1
u109314200|p02891|0
codenet
Compile Error
826
v2_s684830417
s684830417
s684830417
p02891
p02891
u168525123
u168525123
1,570,330,307
2019-10-06T02:51:47
Main.java
#include <bits/stdc++.h> #define rep(i, n) for(int i=0;i<(n); i++) #define sz(x) int(x.size()) using namespace std; typedef long long ll; int main(){ string s; int k; ll ans1=0, ans2=0, left=0, right=0; char bgn = 0; cin >> s; cin >> k; bool b = true; for(int i = 0; i<sz(s)-1; i++){ ...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define rep(i, n) for(int i=0;i<(n); i++) ^ Main.java:2: error: class, interface, enum, or record expected #...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u168525123|p02891|0
u168525123|p02891|0
codenet
Compile Error
1,719
v2_s934016501
s934016501
s934016501
p02891
p02891
u325942975
u325942975
1,599,577,636
2020-09-08T15:07:16
Main.java
public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)) { String s = sc.next(); int k = sc.nextInt(); String[] splited = s.split(""); int num = 1; long ans = 0; String pre = null; String first = s.substring(0, 1); String end = s.substring(s.leng...
Main.java:5: error: cannot find symbol try(Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol try(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
u325942975|p02891|0
u325942975|p02891|0
codenet
Compile Error
868
v2_s768630778
s768630778
s768630778
p02891
p02891
u369190981
u369190981
1,570,332,434
2019-10-06T03:27:14
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; 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; ...
Main.java:123: error: cannot find symbol in = in + abin; ^ symbol: variable abin location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369190981|p02891|0
u369190981|p02891|0
codenet
Compile Error
3,636
v2_s892984833
s892984833
s892984833
p02891
p02891
u474492589
u474492589
1,570,915,481
2019-10-12T21:24:41
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.next(); long k = sc.nextLong(); long n = s.length(); sc.close(); long ans = 0; if(s.charAt(0) != s.charAt(n-1)){ ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int if(s.charAt(0) != s.charAt(n-1)){ ^ Main.java:28: error: incompatible types: possible lossy conversion from long to int int r = n-1; ^ Note: Some messa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p02891|0
u474492589|p02891|0
codenet
Compile Error
1,571
v2_s262981296
s262981296
s262981296
p02891
p02891
u504228740
u504228740
1,570,325,167
2019-10-06T01:26:07
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] s=sc.next().toCharArray(); long k=sc.nextLong(); long count=0; int cc=0; boolean k=false; for(int i=0; i<s.length-1; i++){ if(!kk && s[i]==s[0]){ cc++; }else{ k=t...
Main.java:9: error: variable k is already defined in method main(String[]) boolean k=false; ^ Main.java:11: error: cannot find symbol if(!kk && s[i]==s[0]){ ^ symbol: variable kk location: class Main Main.java:28: error: bad operand types for binary operator '*' System.out.println(count*k+...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p02891|0
u504228740|p02891|0
codenet
Compile Error
519
v2_s886447338
s886447338
s886447338
p02891
p02891
u507351098
u507351098
1,571,197,295
2019-10-16T03:41:35
Main.java
public class Main{ public static void main (String[] args) { String S = new java.util.Scanner(System.in).nextLine(); String KString = new java.util.Scanner(System.in).nextLine(); int K = Integer.parseInt(ageString); String X = ""; for(int i = 0; i < K; i++){ X += S; } char previous ...
Main.java:10: error: empty character literal char previous = ''; ^ Main.java:11: error: empty character literal char now = ''; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507351098|p02891|0
u507351098|p02891|0
codenet
Compile Error
506
v2_s930217004
s930217004
s930217004
p02891
p02891
u507351098
u507351098
1,571,197,366
2019-10-16T03:42:46
Main.java
public class Main{ public static void main (String[] args) { String S = new java.util.Scanner(System.in).nextLine(); String KString = new java.util.Scanner(System.in).nextLine(); int K = Integer.parseInt(ageString); String X = ""; for(int i = 0; i < K; i++){ X += S; } char previous ...
Main.java:10: error: empty character literal char previous = ''; ^ Main.java:11: error: empty character literal char now = ''; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507351098|p02891|0
u507351098|p02891|0
codenet
Compile Error
533
v2_s127301529
s127301529
s127301529
p02891
p02891
u507351098
u507351098
1,571,197,434
2019-10-16T03:43:54
Main.java
public class Main{ public static void main (String[] args) { String S = new java.util.Scanner(System.in).nextLine(); String KString = new java.util.Scanner(System.in).nextLine(); int K = Integer.parseInt(ageString); String X = ""; for(int i = 0; i < K; i++){ X += S; } char previous ...
Main.java:5: error: cannot find symbol int K = Integer.parseInt(ageString); ^ symbol: variable ageString location: class Main Main.java:13: error: cannot find symbol for(int i=0 ; i < X.length; i++){ ^ symbol: variable length location: variable X...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507351098|p02891|0
u507351098|p02891|0
codenet
Compile Error
537
v2_s169883134
s169883134
s169883134
p02891
p02891
u568545273
u568545273
1,572,017,827
2019-10-25T15:37:07
Main.java
#include<iostream> #include<string> using namespace std; #define INF 1000000007 #define int long long #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) FOR(i, 0, n) int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a / gcd(a, b) * b; } signed main() { string...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<string> ^ Main.java:6: error: illegal character: '#' #define INF 1000000007 ^ Main.java:6: error: class, interface, enum, or record expected #define INF 1000000007 ^ Main.java:7: error: illegal ch...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568545273|p02891|0
u568545273|p02891|0
codenet
Compile Error
955
v2_s652170860
s652170860
s652170860
p02891
p02891
u584924463
u584924463
1,570,324,581
2019-10-06T01:16:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int K = sc.nextInt(); long ans = 0; int count =1; char prev='$'; for (int i = 0; i < S.length(); i++) { char c = S.charAt(i); if(...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p02891|0
u584924463|p02891|0
codenet
Compile Error
506
v2_s824029181
s824029181
s824029181
p02891
p02891
u738719052
u738719052
1,570,325,692
2019-10-06T01:34:52
Main.java
import java.io.*; import java.lang.reflect.Array; import java.util.*; class Main { public static void main(String[] args) throws IOException { // Reader in = new Reader(); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s = in.readLine(); int k = I...
Main.java:26: error: ';' expected ans += ((long)B.get(0) * k) / 2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738719052|p02891|0
u738719052|p02891|0
codenet
Compile Error
28,852
v2_s264550541
s264550541
s264550541
p02891
p02891
u770423799
u770423799
1,570,327,442
2019-10-06T02:04:02
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String S = sc.next(); int length = S.length(); int K = sc.nextInt(); if (length == 1) { System.out.print(K / 2); return; } char head = S.charAt(0); boolean[] bls =...
Main.java:72: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770423799|p02891|0
u770423799|p02891|0
codenet
Compile Error
1,697
v2_s900703448
s900703448
s900703448
p02891
p02891
u883102594
u883102594
1,570,328,421
2019-10-06T02:20:21
Main.java
import java.io.*; class ConnAndDis{ public static void main()throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int S = br.readLine(); int T = Integer.parseInt(br.readLine()); char ch[] = new char[S.length()]; ch[0] = S.charAt(0); for(int i=1;i<S.leng...
Main.java:5: error: incompatible types: String cannot be converted to int int S = br.readLine(); ^ Main.java:7: error: int cannot be dereferenced char ch[] = new char[S.length()]; ^ Main.java:8: error: int cannot be dereferenced ch[0] = S.charAt(0); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u883102594|p02891|0
u883102594|p02891|0
codenet
Compile Error
809
v2_s036802964
s036802964
s036802964
p02891
p02891
u915369024
u915369024
1,580,899,851
2020-02-05T10:50:51
Main.java
#include <bits/stdc++.h> using namespace std; typedef long long LL; const int MOD = 1e9 + 7; class Task { public: void solve() { string s; cin >> s; int k; cin >> k; int n = s.length(); int x = 0; while (x < n && s[x] == s[0]) ++x; int y = n - 1; while (y >= x && s[y] == s[n - 1]) --y; ...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: class, interface, enum, or record expected typedef long long LL; ^ Main.java:6: error: class, interface, enum, or record expected c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u915369024|p02891|0
u915369024|p02891|0
codenet
Compile Error
839
v2_s721765348
s721765348
s721765348
p02891
p02891
u940481940
u940481940
1,573,604,825
2019-11-13T00:27:05
Main.java
public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String s = br.readLine(); long k = Integer.parseInt(br.readLine()); int[] arr = new ...
Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u940481940|p02891|0
u940481940|p02891|0
codenet
Compile Error
886
v2_s398629821
s398629821
s398629821
p02892
p02892
u228127260
u228127260
1,570,329,837
2019-10-06T02:43:57
Main.java
import java.util.ArrayDeque; import java.util.Arrays; import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Scanner; import java.util.Set; import java.util.stream.IntStream; public class { static final Scanner sc = new Scanner(System.in); static fi...
Main.java:12: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228127260|p02892|0
u228127260|p02892|0
codenet
Compile Error
5,332
v2_s462874834
s462874834
s462874834
p02892
p02892
u541055501
u541055501
1,570,332,340
2019-10-06T03:25:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=Integer.parseInt(sc.next()); int[][] s=new int[n][n]; int[][] edges=new int[n]; int edge=0; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){...
Main.java:8: error: incompatible types: int[] cannot be converted to int[][] int[][] edges=new int[n]; ^ Main.java:17: error: incompatible types: int cannot be converted to int[] edges[i]=edge; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02892|0
u541055501|p02892|0
codenet
Compile Error
1,533