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_s694430818
s694430818
s694430818
p02958
p02958
u459100168
u459100168
1,584,477,624
2020-03-17T20:40:24
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new java.util.Scanner(System.in); int n = scan.nextInt(); int[] p = new int[n]; int a = 0; for(int i = 0; i < n; i++){ p[i] = scan.nextInt(); } for(int i...
Main.java:16: error: illegal character: '\' }\ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459100168|p02958|0
u459100168|p02958|0
codenet
Compile Error
545
v2_s643535611
s643535611
s643535611
p02958
p02958
u462723267
u462723267
1,574,735,431
2019-11-26T02:30:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for ( i =1; i<=50 ; i++){ int pi = sc.nextInt(); } } }
Main.java:8: error: cannot find symbol for ( i =1; i<=50 ; i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for ( i =1; i<=50 ; i++){ ^ symbol: variable i location: class Main Main.java:8: error: cannot find symbol for ( i =1; i<=50 ; i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462723267|p02958|0
u462723267|p02958|0
codenet
Compile Error
274
v2_s881966252
s881966252
s881966252
p02958
p02958
u487433273
u487433273
1,576,264,138
2019-12-13T19:08:58
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[] Ni = new int[N]; for(int i = 0; i<S.length();i++) { Ni[i] = sc.nextInt(); } int count =0; for(int i = 0; i<S.length();i++) { if(Ni[...
Main.java:7: error: cannot find symbol for(int i = 0; i<S.length();i++) ^ symbol: variable S location: class Main Main.java:12: error: cannot find symbol for(int i = 0; i<S.length();i++) ^ symbol: variable S location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02958|1
u487433273|p02958|1
codenet
Compile Error
426
v2_s996569541
s996569541
s996569541
p02958
p02958
u517779586
u517779586
1,564,873,381
2019-08-03T23:03:01
Main.java
class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int num = sc.nextInt(); List<Integer> alist = new ArrayList<Integer>(); for(int i = 0; i <= num;i++) { alist.add(sc.nextInt()); } List<Integer> list ...
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:6: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02958|0
u517779586|p02958|0
codenet
Compile Error
649
v2_s869515147
s869515147
s869515147
p02958
p02958
u517779586
u517779586
1,564,882,034
2019-08-04T01:27:14
Main.java
class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int num = sc.nextInt(); List<Integer> alist = new ArrayList<Integer>(); for(int i = 0; i < num;i++) { alist.add(sc.nextInt()); } for(int i =0;i < num;i++) { ...
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:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02958|0
u517779586|p02958|0
codenet
Compile Error
475
v2_s244861612
s244861612
s244861612
p02958
p02958
u517779586
u517779586
1,564,882,065
2019-08-04T01:27:45
Main.java
class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int num = sc.nextInt(); List<Integer> alist = new ArrayList<Integer>(); for(int i = 0; i < num;i++) { alist.add(sc.nextInt()); } for(int i =0;i < num;i++) { ...
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:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02958|0
u517779586|p02958|0
codenet
Compile Error
476
v2_s097024320
s097024320
s097024320
p02958
p02958
u517779586
u517779586
1,564,882,132
2019-08-04T01:28:52
Main.java
class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int num = sc.nextInt(); List<Integer> alist = new ArrayList<Integer>(); for(int i = 0; i < num;i++) { alist.add(sc.nextInt()); } for(int i =0;i < num;i++) { ...
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:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02958|0
u517779586|p02958|0
codenet
Compile Error
475
v2_s923217485
s923217485
s923217485
p02958
p02958
u517779586
u517779586
1,564,882,224
2019-08-04T01:30:24
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int num = sc.nextInt(); List<Integer> alist = new ArrayList<Integer>(); for(int i = 0; i < num;i++) { alist.add(sc.nextInt()); } for(int...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02958|0
u517779586|p02958|0
codenet
Compile Error
495
v2_s495639596
s495639596
s495639596
p02958
p02958
u760718569
u760718569
1,578,514,563
2020-01-08T20:16:03
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[] p = new int[n]; int downcounter = 0; boolean ans = true; for(int i = 0;i < n;i++){ p[i] = sc.nextInt(); } for(int j = 0;j < n - 1...
Main.java:17: error: not a statement ans == false; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02958|0
u760718569|p02958|0
codenet
Compile Error
572
v2_s551344860
s551344860
s551344860
p02958
p02958
u774422855
u774422855
1,564,286,457
2019-07-28T04:00:57
Main.java
import java.util.*; import java.math.Arrays; class prob { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++) a[i]=sc.nextInt(); int b[]=new int[n]; b=Arrays.copyOfRange(a,0,n); Arrays.sort(b); int x[]=new int[n]; for(int i=0;i<n;i++)...
Main.java:2: error: cannot find symbol import java.math.Arrays; ^ symbol: class Arrays location: package java.math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u774422855|p02958|0
u774422855|p02958|0
codenet
Compile Error
500
v2_s072559322
s072559322
s072559322
p02958
p02958
u816631826
u816631826
1,592,458,521
2020-06-18T05:35:21
Main.java
import java.util.ArrayList; import java.util.List; class Swap0and1 { public static void main(String[] args) { int[] arr = {5, 2, 3, 4, 1}; int n = 5; List<Integer>arr2 = new ArrayList<>(); for (int count = 1; count <= n; count++) { arr2.add(count); } int[] toArr2 = new int[arr2.size()]; for (int i ...
Main.java:36: error: cannot find symbol return swap(x.get(0), x.get(1), arr); ^ symbol: method swap(Integer,Integer,int[]) location: class Swap0and1 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02958|2
u816631826|p02958|2
codenet
Compile Error
1,159
v2_s549324671
s549324671
s549324671
p02958
p02958
u816631826
u816631826
1,599,663,786
2020-09-09T15:03:06
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); int numberOfInput = input.nextInt(); int[] array = new int[numberOfInput]; for(int i=0;i<numberOfInput;i++) { array[i]=input.ne...
Main.java:27: error: <identifier> expected input.close(); ^ Main.java:31: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02958|6
u816631826|p02958|5
codenet
Compile Error
571
v2_s124496414
s124496414
s124496414
p02958
p02958
u818640918
u818640918
1,564,276,433
2019-07-28T01:13:53
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int f = 0; Integer A[] = new Integer[N]; Integer B[] = new Integer[N]; for(int i=0;i<N;i++){ a[i] = sc.nextint(); b[i] = a[i]; } Arrays.sort(a,Comparator,reverseOrder()); for(int i=0;i<N;...
Main.java:10: error: cannot find symbol a[i] = sc.nextint(); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol a[i] = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:11: error: cannot find symbol b[i] = a[i]; ^ symbol: var...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02958|0
u818640918|p02958|0
codenet
Compile Error
421
v2_s652041249
s652041249
s652041249
p02958
p02958
u818640918
u818640918
1,564,276,542
2019-07-28T01:15:42
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int f = 0; Integer a[] = new Integer[N]; Integer b[] = new Integer[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); b[i] = a[i]; } Arrays.sort(a,Comparator,reverseOrder()); for(int i=0;i<N;...
Main.java:13: error: cannot find symbol Arrays.sort(a,Comparator,reverseOrder()); ^ symbol: variable Comparator location: class Main Main.java:13: error: cannot find symbol Arrays.sort(a,Comparator,reverseOrder()); ^ symbol: method reverseOrder() location: class Main M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02958|0
u818640918|p02958|0
codenet
Compile Error
421
v2_s250236334
s250236334
s250236334
p02958
p02958
u863370423
u863370423
1,592,458,464
2020-06-18T05:34:24
Main.java
class Swap0and1 { public static void main(String[] args) { int[] arr = {5, 2, 3, 4, 1}; int n = 5; List<Integer>arr2 = new ArrayList<>(); for (int count = 1; count <= n; count++) { arr2.add(count); } int[] toArr2 = new int[arr2.size()]; for (int i = 0; i < arr.length; i++) { toArr2[i] = arr2.get...
Main.java:5: error: cannot find symbol List<Integer>arr2 = new ArrayList<>(); ^ symbol: class List location: class Swap0and1 Main.java:5: error: cannot find symbol List<Integer>arr2 = new ArrayList<>(); ^ symbol: class ArrayList location: class Swap0and1 Main.java:21: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02958|2
u863370423|p02958|2
codenet
Compile Error
1,108
v2_s232039839
s232039839
s232039839
p02958
p02958
u864358830
u864358830
1,564,281,527
2019-07-28T02:38:47
Main.java
int[] a = sc.nextIntArray(n+1); int[] b = sc.nextIntArray(n); long res = 0; for(int i = 0; i < n; i++) { //勇者i if(a[i] - b[i] >= 0) { res+=b[i]; b[i]=0; a[i]-=b[i]; }else{ res+=a[i]; ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int[] a = sc.nextIntArray(n+1); ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expected for(int i = 0; i < n; i++) { //??i ^ Main.java:6: error: class, inter...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u864358830|p02958|0
u864358830|p02958|0
codenet
Compile Error
693
v2_s147247587
s147247587
s147247587
p02958
p02958
u892395063
u892395063
1,564,276,636
2019-07-28T01:17:16
Main.java
mport java.util.*; import static java.lang.Integer.*; //import static java.lang.Long.*; import static java.lang.Math.*; import static java.lang.System.*; public class Main { public static void main(String[] args) { int i,j,k; Scanner sc = new Scanner(System.in); int n = parseInt(sc.next()); int[] p = new int[...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ Main.java:2: error: class, interface, enum, or record expected import static java.lang.Integer.*; ^ Main.java:4: error: class, interface, enum, or record expected import static java.lang.Math.*; ^ Main.java:5: error: class, interface, e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u892395063|p02958|0
u892395063|p02958|0
codenet
Compile Error
659
v2_s307244088
s307244088
s307244088
p02958
p02958
u958210291
u958210291
1,564,278,199
2019-07-28T01:43:19
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] x = new int[n]; int[] copyX = new int[n]; for(int i = 0;i < n;i++){ x[i] = sc.nextInt(); } System.arraycopy(x,0,copyX...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02958|0
u958210291|p02958|0
codenet
Compile Error
796
v2_s705307391
s705307391
s705307391
p02958
p02958
u958210291
u958210291
1,564,278,236
2019-07-28T01:43:56
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] x = new int[n]; int[] copyX = new int[n]; for(int i = 0;i < n;i++){ x[i] = sc.nextInt(); } System.arraycopy(x,0,copyX...
Main.java:20: error: variable i is already defined in method main(String[]) for(int i = 1;i < n;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p02958|0
u958210291|p02958|0
codenet
Compile Error
794
v2_s591854750
s591854750
s591854750
p02959
p02959
u008878924
u008878924
1,564,281,574
2019-07-28T02:39:34
Main.java
import java.util.*; import java.io.*; class hero { public static void main(String args[])throws IOException { int n,max=0,i; Scanner sc=new Scanner(System.in); n=sc.nextInt(); int a[]=new int[n+1]; int b[]=new int[n]; for(int i=0;i<n+1;i++) { a[i]=sc.nextInt(); } for( i=0;i<n;i++) b[i]=sc.nex...
Main.java:12: error: variable i is already defined in method main(String[]) for(int i=0;i<n+1;i++) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008878924|p02959|0
u008878924|p02959|0
codenet
Compile Error
559
v2_s200686359
s200686359
s200686359
p02959
p02959
u008878924
u008878924
1,564,281,595
2019-07-28T02:39:55
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String args[])throws IOException { int n,max=0,i; Scanner sc=new Scanner(System.in); n=sc.nextInt(); int a[]=new int[n+1]; int b[]=new int[n]; for(int i=0;i<n+1;i++) { a[i]=sc.nextInt(); } for( i=0;i<n;i++) b[i]=sc.nex...
Main.java:12: error: variable i is already defined in method main(String[]) for(int i=0;i<n+1;i++) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008878924|p02959|0
u008878924|p02959|0
codenet
Compile Error
559
v2_s564151157
s564151157
s564151157
p02959
p02959
u018916376
u018916376
1,564,279,782
2019-07-28T02:09:42
Main.java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = in.nextInt(); int[] city = new int[num + 1]; int[] brave = new int[num]; for (int i = 0; i <= num; i++) { city[i] = Integer.parseInt(in.next()); } ...
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
u018916376|p02959|0
u018916376|p02959|0
codenet
Compile Error
1,064
v2_s287865123
s287865123
s287865123
p02959
p02959
u035254639
u035254639
1,564,910,522
2019-08-04T09:22:02
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); long[] cities = new int[num+1]; long[] heroes = new int[num]; for(int i=0;i<num+1;i++) cities[i]=sc.nextInt(); for(int i=...
Main.java:6: error: incompatible types: int[] cannot be converted to long[] long[] cities = new int[num+1]; ^ Main.java:7: error: incompatible types: int[] cannot be converted to long[] long[] heroes = new int[num]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u035254639|p02959|0
u035254639|p02959|0
codenet
Compile Error
1,097
v2_s831284830
s831284830
s831284830
p02959
p02959
u057671932
u057671932
1,564,279,072
2019-07-28T01:57:52
Main.java
public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int N = keyboard.nextInt(); int[] A = new int[N+1]; int[] B = new int[N]; for(int i=0; i<N+1; i++) { A[i] = keyboard.nextInt(); } for(int j=0; j<N; j++) { B[j] = keyboard.nextInt(); ...
Main.java:4: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u057671932|p02959|0
u057671932|p02959|0
codenet
Compile Error
668
v2_s439235595
s439235595
s439235595
p02959
p02959
u060101808
u060101808
1,564,638,991
2019-08-01T05:56:31
Main.java
public class Main { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[n+1], B[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tvil+=A[i]; } for(int i = 0; i < n; i++) { B[i] = sc.nextInt(); } ...
Main.java:6: error: ']' expected int A[n+1], B[n]; ^ Main.java:6: error: not a statement int A[n+1], B[n]; ^ Main.java:6: error: ';' expected int A[n+1], B[n]; ^ Main.java:6: error: not a statement int A[n+1], B[n]; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
574
v2_s238625465
s238625465
s238625465
p02959
p02959
u060101808
u060101808
1,564,644,200
2019-08-01T07:23:20
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tVil += A[i]; } for(int i = 0; i <...
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 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
626
v2_s197180030
s197180030
s197180030
p02959
p02959
u060101808
u060101808
1,564,644,504
2019-08-01T07:28:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0, tVil2; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tVil += A[i];...
Main.java:30: error: cannot find symbol int result = tVil2-tVil1; ^ symbol: variable tVil1 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
707
v2_s137224191
s137224191
s137224191
p02959
p02959
u060101808
u060101808
1,564,644,543
2019-08-01T07:29:03
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0, tVil2; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tVil += A[i];...
Main.java:30: error: variable tVil2 might not have been initialized int result = tVil2-tVil; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
706
v2_s785128234
s785128234
s785128234
p02959
p02959
u060101808
u060101808
1,564,646,213
2019-08-01T07:56:53
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); } for(int i = 0; i < n; i++) { ...
Main.java:28: error: ']' expected if(A[i+1) >= 0) count += rem; ^ Main.java:28: error: illegal start of expression if(A[i+1) >= 0) count += rem; ^ Main.java:28: error: ';' expected if(A[i+1) >= 0) count += rem; ^ Main.java:29: error: 'else'...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
697
v2_s211963622
s211963622
s211963622
p02959
p02959
u060101808
u060101808
1,564,646,261
2019-08-01T07:57:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); } for(int i = 0; i < n; i++) { ...
Main.java:20: error: incompatible types: int cannot be converted to boolean if(A[i] - B[i]) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02959|0
u060101808|p02959|0
codenet
Compile Error
697
v2_s902721693
s902721693
s902721693
p02959
p02959
u153302617
u153302617
1,564,458,833
2019-07-30T03:53:53
Main.java
import java.util.*; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long N = scanner.nextLong(); Map<Long,Long> map_A = new HashMap<>(); Map<Long,Long> map_B = new HashMap<>(); ...
Main.java:25: error: cannot find symbol ans += Math.min(map_A.get(i+1), extra); ^ symbol: variable extra location: class Main Main.java:28: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum location: class Main 2 er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153302617|p02959|0
u153302617|p02959|0
codenet
Compile Error
891
v2_s542889700
s542889700
s542889700
p02959
p02959
u209067041
u209067041
1,564,276,632
2019-07-28T01:17:12
Main.java
#include<bits/stdc++.h> #define pi acos(-1.0) using namespace std; const int maxn = 1e5 + 10; int a[maxn], b[maxn]; int main() { #ifdef LOCAL freopen("in", "r", stdin); freopen("out", "w", stdout); #endif ios::sync_with_stdio(false); int n; cin >> n; for (int i = 0; i <= n; ++i) cin >> a[i]; for (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 pi acos(-1.0) ^ Main.java:5: error: class, interface, enum, or record expected const int maxn = 1e5 + 1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209067041|p02959|0
u209067041|p02959|0
codenet
Compile Error
602
v2_s652306828
s652306828
s652306828
p02959
p02959
u213440300
u213440300
1,564,421,029
2019-07-29T17:23:49
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter out = PrintWriter(System.out); int N = sc.nextInt(); int[] monsters = new int[N + 1]; int[] strength = new int[N]; for (int i = 0; i <...
Main.java:6: error: cannot find symbol PrintWriter out = PrintWriter(System.out); ^ symbol: method PrintWriter(PrintStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213440300|p02959|0
u213440300|p02959|0
codenet
Compile Error
888
v2_s463601726
s463601726
s463601726
p02959
p02959
u218740431
u218740431
1,587,487,908
2020-04-21T16:51: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 [] a = new int [n+1]; long [] b = new int [n]; long ans = 0; for(int i=0;i<n+1;i++){a[i] = sc.nextLong(); } ...
Main.java:6: error: incompatible types: int[] cannot be converted to long[] long [] a = new int [n+1]; ^ Main.java:7: error: incompatible types: int[] cannot be converted to long[] long [] b = new int [n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02959|0
u218740431|p02959|0
codenet
Compile Error
625
v2_s403392825
s403392825
s403392825
p02959
p02959
u343463670
u343463670
1,584,199,823
2020-03-14T15:30:23
Main.java
public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); int[] a = new int[100005]; int[] b = new int[100005]; for(int i = 0; i < n + 1; ++i){ a[i] = input.nextInt(); } for(int i = 0; i < n; ++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
u343463670|p02959|0
u343463670|p02959|0
codenet
Compile Error
1,257
v2_s396500331
s396500331
s396500331
p02959
p02959
u343463670
u343463670
1,584,201,849
2020-03-14T16:04:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int n = input.nextInt(); long[] a = new long[100005]; long[] b = new long[100005]; for(int i = 0; i < n + 1; ++i){ a[i] = input.nextLong...
Main.java:10: error: ';' expected a[i] = input.nextLong() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u343463670|p02959|0
u343463670|p02959|0
codenet
Compile Error
917
v2_s698819394
s698819394
s698819394
p02959
p02959
u382169090
u382169090
1,564,868,112
2019-08-03T21:35:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.next(); long[] A = new long[N+1]; long[] B = new long[N]; long result = 0; for(int i=0; i<=N; i++){ A[i]=sc.nextInt(); ...
Main.java:7: error: incompatible types: String cannot be converted to int int N = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u382169090|p02959|0
u382169090|p02959|0
codenet
Compile Error
713
v2_s091835908
s091835908
s091835908
p02959
p02959
u382169090
u382169090
1,564,868,146
2019-08-03T21:35:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.next(); long[] A = new long[N+1]; long[] B = new long[N]; long result = 0; for(int i=0; i<=N; i++){ A[i]=sc.nextLong(); ...
Main.java:7: error: incompatible types: String cannot be converted to int int N = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u382169090|p02959|0
u382169090|p02959|0
codenet
Compile Error
715
v2_s424412367
s424412367
s424412367
p02959
p02959
u387775763
u387775763
1,586,208,645
2020-04-06T21:30:45
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(); long[] a = new long[n+1]; long[] b = new long[n]; for (int i = 0; i < n+1; i++) { a[i] = sc.nextInt(); } for (int i = 0;...
Main.java:20: error: incompatible types: int[] cannot be converted to long[] long[] data = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p02959|1
u387775763|p02959|1
codenet
Compile Error
670
v2_s656491391
s656491391
s656491391
p02959
p02959
u459100168
u459100168
1,593,782,286
2020-07-03T13:18:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long n = scan.nextInt(); long[] a = new int[n + 1]; long[] b = new int[n]; long sum = 0; for(int i = 0; i < n + 1; i++){ a[i] = scan.next...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] a = new int[n + 1]; ^ Main.java:7: error: incompatible types: int[] cannot be converted to long[] long[] a = new int[n + 1]; ^ Main.java:8: error: incompatible types:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459100168|p02959|1
u459100168|p02959|1
codenet
Compile Error
791
v2_s111970408
s111970408
s111970408
p02959
p02959
u459100168
u459100168
1,593,782,334
2020-07-03T13:18:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long n = scan.nextInt(); long[] a = new long[n + 1]; long[] b = new long[n]; long sum = 0; for(int i = 0; i < n + 1; i++){ a[i] = scan.ne...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n + 1]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int long[] b = new long[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459100168|p02959|1
u459100168|p02959|1
codenet
Compile Error
795
v2_s642631182
s642631182
s642631182
p02959
p02959
u487433273
u487433273
1,564,279,189
2019-07-28T01:59:49
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[] a = new int[N]; int[] b = new int[N-1]; for(int i = 0; i<N ; i++){ a[i] = sc.nextInt(); } for(int i = 0; i<N-1 ; i++){ b[i] = sc.nextInt(); ...
Main.java:44: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02959|0
u487433273|p02959|0
codenet
Compile Error
842
v2_s204845597
s204845597
s204845597
p02959
p02959
u487433273
u487433273
1,564,279,330
2019-07-28T02:02:10
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[] a = new int[N]; int[] b = new int[N-1]; for(int i = 0; i<N ; i++){ a[i] = sc.nextInt(); } for(int i = 0; i<N-1 ; i++){ b[i] = sc.nextInt(); ...
Main.java:43: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02959|0
u487433273|p02959|0
codenet
Compile Error
837
v2_s264866783
s264866783
s264866783
p02959
p02959
u487433273
u487433273
1,564,279,457
2019-07-28T02:04:17
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[] a = new int[N]; int[] b = new int[N-1]; for(int i = 0; i<N ; i++){ a[i] = sc.nextInt(); } for(int i = 0; i<N-1 ; i++){ b[i] = sc.nextInt(); ...
Main.java:20: error: variable tmpa1 is already defined in method main(String[]) int tmpa1 = a[i]; ^ Main.java:21: error: variable tmpa2 is already defined in method main(String[]) int tmpa2 = a[i+1]; ^ Main.java:22: error: variable tmpb1 is already defined in method main(String[]) int tmpb1 = b[i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02959|0
u487433273|p02959|0
codenet
Compile Error
842
v2_s182979573
s182979573
s182979573
p02959
p02959
u487433273
u487433273
1,576,605,785
2019-12-17T18:03:05
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[] a = new int[N+1]; int[] b = new int[N]; for(int i = 0; i<N+1 ; i++){ a[i] = sc.nextInt(); } for(int i = 0; i<N ; i++){ b[i] = sc.nextInt(); ...
Main.java:43: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02959|1
u487433273|p02959|1
codenet
Compile Error
814
v2_s671131105
s671131105
s671131105
p02959
p02959
u521142491
u521142491
1,564,452,179
2019-07-30T02:02:59
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[] numMonsters = new int[N+1]; int[] capasityHero = new int[N]; for(int i=0;i<N+1;i++) { numMonsters[i] = sc.nextInt(); } for(int i=0;i<N; i++) ...
Main.java:20: error: incompatible types: possible lossy conversion from long to int int capasity = capasityHero[i] + extra; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521142491|p02959|1
u521142491|p02959|1
codenet
Compile Error
787
v2_s431543134
s431543134
s431543134
p02959
p02959
u552730117
u552730117
1,564,278,519
2019-07-28T01:48:39
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int a[] = new int[n+1]; int b[] = new int[n]; int sb = 0; int sa = 0; for (int i=0; i<n+1; i++){ a[i] = Integer.parseInt(sc.next()); ...
Main.java:14: error: ';' expected sb += a[i] ^ Main.java:38: error: ';' expected sa += a[i] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552730117|p02959|0
u552730117|p02959|0
codenet
Compile Error
838
v2_s936754506
s936754506
s936754506
p02959
p02959
u552730117
u552730117
1,564,279,936
2019-07-28T02:12:16
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int a[] = new int[n+1]; int b[] = new int[n]; Long sb = 0; Long sa = 0; for (int i=0; i<n+1; i++){ a[i] = Integer.parseInt(sc.next())...
Main.java:9: error: incompatible types: int cannot be converted to Long Long sb = 0; ^ Main.java:10: error: incompatible types: int cannot be converted to Long Long sa = 0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552730117|p02959|0
u552730117|p02959|0
codenet
Compile Error
839
v2_s000283410
s000283410
s000283410
p02959
p02959
u553314348
u553314348
1,593,224,356
2020-06-27T02:19:16
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = Integer.parseInt(scanner.next()); long[] A = new long[N+1]; long[] B = new long[N]; for (int i=0; i<N+1; i++) { A[i]=Long.parseLong(scanner.next()); } for (i...
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 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553314348|p02959|0
u553314348|p02959|0
codenet
Compile Error
822
v2_s942857241
s942857241
s942857241
p02959
p02959
u605327527
u605327527
1,570,855,072
2019-10-12T04:37:52
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); Integer n = sc.nextInt(); Integer a[] = new int[n + 1]; Integer b[] = new int[n]; int c = 0; //倒した数 for(int i = 0; i < n +...
Main.java:7: error: incompatible types: int[] cannot be converted to Integer[] Integer a[] = new int[n + 1]; ^ Main.java:8: error: incompatible types: int[] cannot be converted to Integer[] Integer b[] = new int[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u605327527|p02959|0
u605327527|p02959|0
codenet
Compile Error
968
v2_s142062304
s142062304
s142062304
p02959
p02959
u618325650
u618325650
1,564,281,621
2019-07-28T02:40:21
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[] moster = new int[N+1]; int[] yusha = new int[N]; for(int i=0;i<N+1;i++) { moster[i] = sc.nextInt(); } for(int i=0;i<N;i++) { yusha[i] = s...
Main.java:34: error: illegal start of expression if(yusha[i-1]>=yusha[i-2])) { ^ Main.java:37: error: 'else' without 'if' }else { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618325650|p02959|0
u618325650|p02959|0
codenet
Compile Error
1,095
v2_s701394068
s701394068
s701394068
p02959
p02959
u680352927
u680352927
1,564,279,409
2019-07-28T02:03:29
Main.java
import java.io.*; public class Main { public static void main(String[] args){ try{ String str; String str1,str2; BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "UTF-8")); str = br.readLine(); str1 = br.readLine(); str2 = br.readLine() String[] ...
Main.java:13: error: ';' expected str2 = br.readLine() ^ Main.java:54: error: ';' expected else {count += ints2[i]} ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u680352927|p02959|0
u680352927|p02959|0
codenet
Compile Error
1,453
v2_s257920663
s257920663
s257920663
p02959
p02959
u725499585
u725499585
1,564,283,319
2019-07-28T03:08:39
Main.java
import java.io.*; import java.util.ArrayList; //password:53VHEnd4 public class Main{ public static void main(String args[]){ String str; try{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in,"UTF-8")); str=br.readLine(); int length=Integer.parseInt(str); str=br.read...
Main.java:32: error: ';' expected for(int i==0;i<human.length;i++){ ^ Main.java:32: error: not a statement for(int i==0;i<human.length;i++){ ^ Main.java:32: error: ')' expected for(int i==0;i<human.length;i++){ ^ Main.java:32: error: ';' expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u725499585|p02959|0
u725499585|p02959|0
codenet
Compile Error
1,257
v2_s303087369
s303087369
s303087369
p02959
p02959
u728264684
u728264684
1,584,507,300
2020-03-18T04:55:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int yusha = s.nextInt(); long monsters[] = new long[yusha + 1]; long strength[] = new long[yusha]; // モンスターを倒した数 int count = 0; fo...
Main.java:37: error: incompatible types: possible lossy conversion from long to int yoryoku = strength[i] - monsters[i+j]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02959|0
u728264684|p02959|0
codenet
Compile Error
1,360
v2_s960152552
s960152552
s960152552
p02959
p02959
u767158816
u767158816
1,565,287,977
2019-08-08T18:12:57
Main.java
import java.util.*; public class Main { public static void main (String[] arg) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); long A[] = new int[N+1]; long B[] = new int[N]; long Kc = 0; for (int i = 0; i < N+1; i++){ A[i] = scan.nextLong(); } for (int i = 0...
Main.java:7: error: incompatible types: int[] cannot be converted to long[] long A[] = new int[N+1]; ^ Main.java:8: error: incompatible types: int[] cannot be converted to long[] long B[] = new int[N]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u767158816|p02959|1
u767158816|p02959|0
codenet
Compile Error
703
v2_s007976664
s007976664
s007976664
p02959
p02959
u770423799
u770423799
1,564,278,374
2019-07-28T01:46:14
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[] As = new int[N+1]; for(int i=0; i<=N; i++) { As[i] = Integer.parseInt(sc.next()); } long last =...
Main.java:12: error: ';' expected long monsters = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770423799|p02959|0
u770423799|p02959|0
codenet
Compile Error
782
v2_s945754648
s945754648
s945754648
p02959
p02959
u825262731
u825262731
1,564,349,676
2019-07-28T21:34:36
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[] arr = new int[n+1]; int[] arr1 = new int[n]; for(int i=0;i<n+1;i++){ arr[i]=sc.nextInt(); } for(int i=0;i<n;i++){ arr1[i]=sc.nextInt()...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02959|0
u825262731|p02959|0
codenet
Compile Error
703
v2_s135346266
s135346266
s135346266
p02959
p02959
u915981080
u915981080
1,564,289,225
2019-07-28T04:47:05
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[] A = new int[N + 1]; int[] B = new int[N]; for (int i = 0; i < A.length; i++) { A[i] = sc.nextInt(); } for (int i = 0; i < B.length;...
Main.java:44: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u915981080|p02959|1
u915981080|p02959|0
codenet
Compile Error
996
v2_s940927267
s940927267
s940927267
p02959
p02959
u935077873
u935077873
1,592,333,428
2020-06-16T18:50:28
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int city = sc.nextInt(); long[] monster = new long[city+1]; long[] brave = new long[city]; long anser = 0; for(int i=0;i<city+1;i++) { monster[i] = sc.nextLong(); } for(in...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935077873|p02959|0
u935077873|p02959|0
codenet
Compile Error
848
v2_s363694246
s363694246
s363694246
p02959
p02959
u935077873
u935077873
1,592,333,463
2020-06-16T18:51:03
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int city = sc.nextInt(); long[] monster = new long[city+1]; long[] brave = new long[city]; long anser = 0; for(int i=0;i<city+1;i++) { monster[i] = sc.nextLong(); } for(in...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935077873|p02959|0
u935077873|p02959|0
codenet
Compile Error
848
v2_s038094021
s038094021
s038094021
p02959
p02959
u998733244
u998733244
1,570,854,655
2019-10-12T04:30:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n + 1]; int b[] = new int[n]; int c = 0; //倒した数 for(int i = 0; i < n + 1; i++){ ...
Main.java:23: error: ';' expected a[i] -= b[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u998733244|p02959|0
u998733244|p02959|0
codenet
Compile Error
949
v2_s845768734
s845768734
s845768734
p02960
p02960
u228127260
u228127260
1,567,892,300
2019-09-07T21:38:20
Main.java
import java.util.Scanner; import library.common.Predef; public class Main { static final Scanner sc = new Scanner(System.in); static final int MOD = (int) 1E9 + 7; public static void main(String[] args) { char[] input = nstr().toCharArray(); int len = input.length; char[] s = new...
Main.java:3: error: package library.common does not exist import library.common.Predef; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228127260|p02960|0
u228127260|p02960|0
codenet
Compile Error
1,223
v2_s643463076
s643463076
s643463076
p02960
p02960
u653981267
u653981267
1,571,274,688
2019-10-17T01:11:28
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[] mod = new long[s.length()]; mod[0] = 1; for(int i = 1; i < s.length(); i++) { mod[i] = (mod[i - 1] * 10) % 13; } long M = (long)Math.pow...
Main.java:29: error: incompatible types: possible lossy conversion from long to int dp[i][(k + mod[i] * j) % 13] = (dp[i][(k + mod[i - 1] * j) % 13] + dp[i - 1][k]) % M; ^ Main.java:29: error: incompatible types: possible lossy conversion from long to int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02960|0
u653981267|p02960|0
codenet
Compile Error
1,264
v2_s544366641
s544366641
s544366641
p02960
p02960
u653981267
u653981267
1,578,707,584
2020-01-11T01:53:04
Main.java
import java.util.*; public class Main { public static void main(String[] args) { long MOD = (long)Math.pow(10, 9) + 7; Scanner sc = new Scanner(System.in); String s = sc.next(); long len = s.length(); long[][] dp = new long[len][13]; if(s.charAt(0) == '?') { for(int j = 0; j < 10; j++) ...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[][] dp = new long[len][13]; ^ Main.java:15: error: incompatible types: char cannot be converted to String int d = Integer.parseInt(s.charAt(0)); ^ Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02960|1
u653981267|p02960|1
codenet
Compile Error
964
v2_s390658964
s390658964
s390658964
p02960
p02960
u860782770
u860782770
1,564,426,204
2019-07-29T18:50:04
Main.java
package AtCodr.agc135; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String v = scan.next(); int[] dp = new int[13]; int[] nx = new int[13]; v = reverseS(v); ...
Main.java:19: error: cannot find symbol nx[(j * 10 + k) % 13] = (nx[(j * 10 + k) % 13] + dp[j])%mod; ^ symbol: variable mod location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860782770|p02960|0
u860782770|p02960|0
codenet
Compile Error
993
v2_s414708685
s414708685
s414708685
p02960
p02960
u860782770
u860782770
1,564,426,217
2019-07-29T18:50:17
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String v = scan.next(); int[] dp = new int[13]; int[] nx = new int[13]; v = reverseS(v); for (int i = 0; i ...
Main.java:17: error: cannot find symbol nx[(j * 10 + k) % 13] = (nx[(j * 10 + k) % 13] + dp[j])%mod; ^ symbol: variable mod location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860782770|p02960|0
u860782770|p02960|0
codenet
Compile Error
969
v2_s124662769
s124662769
s124662769
p02960
p02960
u895447390
u895447390
1,566,091,865
2019-08-18T01:31:05
Main.java
import java.util.*; import java.lang.*; public class Main{ static long mod = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String inp = sc.nextLine(); long[][] dp = new long[inp.length()+1][13]; dp[0][0] = 1; int n = inp.le...
Main.java:32: error: cannot find symbol p("ans",dp[n][5]%mod); ^ symbol: method p(String,long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895447390|p02960|0
u895447390|p02960|0
codenet
Compile Error
982
v2_s082926018
s082926018
s082926018
p02960
p02960
u982630224
u982630224
1,564,286,929
2019-07-28T04:08:49
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int N = S.length(); int mod = 13; int mod_num = 1_000_000_007; int[][] mod_table = new int[N][10]; for (int j=0;j<10;j++) { mod_table[0][j] = j; } for (int i=0;i<N...
Main.java:43: error: no suitable method found for toString(int) System.out.println(Arrays.toString(dp[6])); ^ method Arrays.toString(long[]) is not applicable (argument mismatch; int cannot be converted to long[]) method Arrays.toString(int[]) is not applicable (argument...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02960|0
u982630224|p02960|0
codenet
Compile Error
1,098
v2_s975991162
s975991162
s975991162
p02961
p02961
u541055501
u541055501
1,584,572,678
2020-03-18T23:04:38
Main.java
import lib.FastScanner; public class Main { public static void main(String[] args) { FastScanner fsc = new FastScanner(); long k = fsc.nextLong(); int x = fsc.nextInt(); int y = fsc.nextInt(); int rx = x >= 0 ? 1 : -1; int ry = y >= 0 ? 1 : -1; x *= rx; ...
Main.java:1: error: package lib does not exist import lib.FastScanner; ^ Main.java:5: error: cannot find symbol FastScanner fsc = new FastScanner(); ^ symbol: class FastScanner location: class Main Main.java:5: error: cannot find symbol FastScanner fsc = new FastScanner(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02961|0
u541055501|p02961|0
codenet
Compile Error
2,939
v2_s293486021
s293486021
s293486021
p02961
p02961
u981808900
u981808900
1,564,639,318
2019-08-01T06:01:58
Main.java
import java.util.*; class Main{ static int a,b; static boolean s; public static void main(String[]$){ Scanner c=new Scanner(System.in); int k=c.nextInt(),x=c.nextInt(),y=c.nextInt(); x*=a=x<0?-1:1; y*=b=y<0?-1:1; if (x < y) { swap = true; int t = x; x = y; ...
Main.java:11: error: cannot find symbol swap = true; ^ symbol: variable swap location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02961|1
u981808900|p02961|1
codenet
Compile Error
817
v2_s839171812
s839171812
s839171812
p02961
p02961
u981808900
u981808900
1,564,639,480
2019-08-01T06:04:40
Main.java
import java.util.*; class Main{ static int a,b; static boolean s; public static void main(String[]$){ Scanner c=new Scanner(System.in); int k=c.nextInt(),x=c.nextInt(),y=c.nextInt(); x*=a=x<0?-1:1; y*=b=y<0?-1:1; if(s=x<y)x^=y^(y=x); int n=(x+y+k-1)/k; if(k%2==0&&(x+y)%2==1){ System.out.println(-1);...
Main.java:24: error: variable i is already defined in method main(String[]) for (int i = 1; i <= n; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02961|1
u981808900|p02961|1
codenet
Compile Error
889
v2_s738201526
s738201526
s738201526
p02962
p02962
u018916376
u018916376
1,564,282,923
2019-07-28T03:02:03
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String S = in.nextLine(); String T = in.nextLine(); String S2 = S.concat(S); if (!S2.contains(T)) { System.out.println(0); } else {...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018916376|p02962|0
u018916376|p02962|0
codenet
Compile Error
928
v2_s951035258
s951035258
s951035258
p02962
p02962
u591717585
u591717585
1,564,281,543
2019-07-28T02:39:03
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.InputMismatchException; import java.util.List; import java.util.NoSuchElementException; import java.util.Rando...
Main.java:39: error: incompatible types: possible lossy conversion from long to int for(int i=0;i<n;i++)hashs[i]=rhs.calcHash(i + 1, i + m); ^ Main.java:75: warning: [strictfp] as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not requ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591717585|p02962|0
u591717585|p02962|0
codenet
Compile Error
8,990
v2_s057795303
s057795303
s057795303
p02962
p02962
u591717585
u591717585
1,564,281,584
2019-07-28T02:39:44
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.InputMismatchException; import java.util.List; import java.util.NoSuchElementException; import java.util.Rando...
Main.java:39: error: incompatible types: possible lossy conversion from long to int for(int i=0;i<n;i++){hashs[i]=rhs.calcHash(i + 1, i + m);} ^ Main.java:75: warning: [strictfp] as of release 17, all floating-point expressions are evaluated strictly and 'strictfp' is not r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591717585|p02962|0
u591717585|p02962|0
codenet
Compile Error
8,992
v2_s872436532
s872436532
s872436532
p02962
p02962
u727456114
u727456114
1,564,281,113
2019-07-28T02:31:53
CuCse.java
import java.util.Scanner; public class CuCse { public static void main(String[] args){ Scanner inp = new Scanner(System.in); String s= inp.nextLine(); String t= inp.nextLine(); int k=(s.length()-temp.length()) ; k=k/t.length(); System.out.println(k); } }
CuCse.java:8: error: cannot find symbol int k=(s.length()-temp.length()) ; ^ symbol: variable temp location: class CuCse 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727456114|p02962|0
u727456114|p02962|0
codenet
Compile Error
311
v2_s171482605
s171482605
s171482605
p02963
p02963
u302684639
u302684639
1,576,210,458
2019-12-13T04:14:18
Main.java
import java.io.*; import java.io.IOException; import java.util.*; @SuppressWarnings({"rawtypes", "unchecked"}) class Main { final static int INF = 1 << 28; final static long LNF = 1L << 60; final static double EPS = 1e-9; final static double GOLDEN_RATIO = (1.0 + Math.sqrt(5)) / 2.0; static final ...
Main.java:23: error: incompatible types: possible lossy conversion from long to int int hoge = S / e; ^ Main.java:24: error: incompatible types: possible lossy conversion from long to int int fuga = S % e; ^ Main.java:27: error: incompatible types: possible loss...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u302684639|p02963|0
u302684639|p02963|0
codenet
Compile Error
2,866
v2_s857603119
s857603119
s857603119
p02963
p02963
u333277287
u333277287
1,564,154,880
2019-07-26T15:28:00
Main.java
test
Main.java:1: error: reached end of file while parsing test ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u333277287|p02963|0
u333277287|p02963|0
codenet
Compile Error
4
v2_s209850078
s209850078
s209850078
p02963
p02963
u422413213
u422413213
1,566,716,951
2019-08-25T07:09:11
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int64_t pivot = 1000000000; int64_t S; cin >> S; int64_t x1, y1, x2, y2, x3, y3; x1 = 0; y1 = 0; x3 = pivot; y3 = 1; int64_t r = S % pivot; int64_t q = (S-r)/pivot; x2 = pivot - r; y2 = q + 1; cout << x1 << " " << y1 << " " << x2 <...
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:7: error: not a statement cin >> S; ^ Main.java:18: error: not a statement cout << x1 << " " << y1 << " " << x2 << " " << y2 << " "...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u422413213|p02963|0
u422413213|p02963|0
codenet
Compile Error
368
v2_s416275784
s416275784
s416275784
p02963
p02963
u476482490
u476482490
1,563,871,248
2019-07-23T08:40:48
Main.java
import java.util.Scanner; public class Main { private static long MAX = 1000000000; public static void main(final String[] args) { final Scanner scanner = new Scanner(System.in); final long s = scanner.nextLong(); if (s < MAX) { System.out.println("0 0 " + s + " 0 0 1");...
Main.java:36: error: unreachable statement System.out.println("0 " + (-1) * y2 + " 0 0 " + x3 + " " + (x3 - y2)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476482490|p02963|0
u476482490|p02963|0
codenet
Compile Error
1,228
v2_s520090019
s520090019
s520090019
p02963
p02963
u578423830
u578423830
1,563,760,174
2019-07-22T01:49:34
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { long s = sc.nextLong(); long rootS = (long) Math.sqrt((double) s); if (rootS * rootS == s) { System.out.println("0 " +...
Main.java:70: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578423830|p02963|0
u578423830|p02963|0
codenet
Compile Error
1,205
v2_s682707826
s682707826
s682707826
p02963
p02963
u584924463
u584924463
1,563,757,876
2019-07-22T01:11:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long S = sc.nextLong() System.out.println("0 0 1 0 0 "+S); } }
Main.java:8: error: ';' expected long S = sc.nextLong() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p02963|0
u584924463|p02963|0
codenet
Compile Error
228
v2_s690757253
s690757253
s690757253
p02963
p02963
u626353997
u626353997
1,563,759,651
2019-07-22T01:40:51
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner (System.in); int s = sc.nextInt()/2; final int x1 = 0; final int y1 = 0; final int x2 = 0; final int y2 = 1; final int y3 = 0; int x3 = 0; while(x...
Main.java:19: error: class, interface, enum, or record expected }import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02963|0
u626353997|p02963|0
codenet
Compile Error
874
v2_s337363237
s337363237
s337363237
p02963
p02963
u675751622
u675751622
1,563,759,986
2019-07-22T01:46:26
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long area; if(area % 2 == 0) { System.out.println("0 0 " + area/2 + " 0 0 " + 2); } else { area++; System.out.println("0 0 " + area/2 + " 1 1 " + 2); } } }
Main.java:7: error: variable area might not have been initialized if(area % 2 == 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02963|0
u675751622|p02963|0
codenet
Compile Error
317
v2_s727327338
s727327338
s727327338
p02963
p02963
u803314854
u803314854
1,563,767,237
2019-07-22T03:47:17
Main.java
import java.util.*;public class Main{public static void main(String[]a){long s=Long.parseLong(new Scanner(System.in).next());int a=1000000000;System.out.println("0 0 "+a+" 1 "+s%a+" "+s/a);}}
Main.java:1: error: variable a is already defined in method main(String[]) import java.util.*;public class Main{public static void main(String[]a){long s=Long.parseLong(new Scanner(System.in).next());int a=1000000000;System.out.println("0 0 "+a+" 1 "+s%a+" "+s/a);}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p02963|0
u803314854|p02963|0
codenet
Compile Error
191
v2_s264948695
s264948695
s264948695
p02963
p02963
u825262731
u825262731
1,563,924,578
2019-07-23T23:29:38
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long s = sc.nextLong(); int x1 =0; int y1=0; int x2=1000000000; int y2 =1; int x3=s/x2; int y3=s%x2; System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3); } }
Main.java:10: error: incompatible types: possible lossy conversion from long to int int x3=s/x2; ^ Main.java:11: error: incompatible types: possible lossy conversion from long to int int y3=s%x2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02963|0
u825262731|p02963|0
codenet
Compile Error
317
v2_s357978561
s357978561
s357978561
p02963
p02963
u825262731
u825262731
1,563,926,106
2019-07-23T23:55:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long s = sc.nextLong(); long x1 =0; long y1=0; long x2=1000000000; long y2 =1; long start = s/x2; for(long i=start;i<=x2;i++){ long x3 = i*x2-s; if(x3>=0 && x...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02963|0
u825262731|p02963|0
codenet
Compile Error
399
v2_s785133277
s785133277
s785133277
p02963
p02963
u825262731
u825262731
1,563,926,176
2019-07-23T23:56:16
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long s = sc.nextLong(); long x1 =0; long y1=0; long x2=1000000000; long y2 =1; long start = s/x2; for(long i=start;i<=x2;i++){ long x3 = i*x2-s; if(x3>=0 && x...
Main.java:14: error: cannot find symbol System.out.print(x1+" "+y1+" "+x2+" "+y2+" "+x3+" "+y3); ^ symbol: variable y3 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02963|0
u825262731|p02963|0
codenet
Compile Error
412
v2_s550631389
s550631389
s550631389
p02963
p02963
u843125357
u843125357
1,563,760,080
2019-07-22T01:48:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long S = sc.nextLong(); long N = 3; long T = S % 1000000000; S = S / 1000000000 System.out.print...
Main.java:10: error: ';' expected S = S / 1000000000 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843125357|p02963|0
u843125357|p02963|0
codenet
Compile Error
357
v2_s106720491
s106720491
s106720491
p02963
p02963
u965001777
u965001777
1,563,758,714
2019-07-22T01:25:14
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int[] answer = new int[6]; int x = 0; for (int i = 1; i < 1000000000; i++) { if (i * i >= S) { answer[0] = i; an...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u965001777|p02963|0
u965001777|p02963|0
codenet
Compile Error
714
v2_s909393428
s909393428
s909393428
p02963
p02963
u987890555
u987890555
1,563,759,982
2019-07-22T01:46:22
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("0 0 1 0 1 " + sc.nextLong();); } }
Main.java:5: error: ')' or ',' expected System.out.println("0 0 1 0 1 " + sc.nextLong();); ^ Main.java:5: error: illegal start of expression System.out.println("0 0 1 0 1 " + sc.nextLong();); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u987890555|p02963|0
u987890555|p02963|0
codenet
Compile Error
185
v2_s783753529
s783753529
s783753529
p02964
p02964
u951672936
u951672936
1,563,769,696
2019-07-22T04:28:16
Main.java
/** * Created at 23:59 on 2019-07-21 */ import javafx.util.Pair; import java.io.*; import java.util.*; public class Main { static FastScanner sc = new FastScanner(); static PrintStream out = System.out; static PrintWriter pw = new PrintWriter(out); static final int[] dx = {0, 1, 0, -1}; static final in...
Main.java:5: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:48: error: cannot find symbol Pair<Integer, Boolean>[] nextIndex = new Pair[N+1]; ^ symbol: class Pair location: class Solver Main.java:48: error: cannot find symbol Pair<Integer, Boolea...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951672936|p02964|0
u951672936|p02964|0
codenet
Compile Error
5,774
v2_s383282052
s383282052
s383282052
p02969
p02969
u018769544
u018769544
1,564,941,665
2019-08-04T18:01:05
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(3 * n * n); } }
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: 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
u018769544|p02969|0
u018769544|p02969|0
codenet
Compile Error
184
v2_s582643553
s582643553
s582643553
p02969
p02969
u018773111
u018773111
1,593,154,832
2020-06-26T07:00:32
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(3*r*r)l } }
Main.java:7: error: ';' expected System.out.println(3*r*r)l ^ Main.java:7: error: ';' expected System.out.println(3*r*r)l ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02969|0
u018773111|p02969|0
codenet
Compile Error
185
v2_s304827342
s304827342
s304827342
p02969
p02969
u083787899
u083787899
1,563,671,008
2019-07-21T01:03: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 result = 3 * Math.pow(a); System.out.println(result); } }
Main.java:10: error: method pow in class Math cannot be applied to given types; int result = 3 * Math.pow(a); ^ required: double,double found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u083787899|p02969|0
u083787899|p02969|0
codenet
Compile Error
248
v2_s769831084
s769831084
s769831084
p02969
p02969
u117657834
u117657834
1,563,681,092
2019-07-21T03:51:32
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(3 * a * a); sc.close(); } }
Main.java:8: error: cannot find symbol System.out.println(3 * a * a); ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol System.out.println(3 * a * a); ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u117657834|p02969|0
u117657834|p02969|0
codenet
Compile Error
204
v2_s406167069
s406167069
s406167069
p02969
p02969
u130588436
u130588436
1,563,672,177
2019-07-21T01:22:57
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int s = 3 * r * r; System.out.println(s); }
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130588436|p02969|0
u130588436|p02969|0
codenet
Compile Error
201
v2_s260826011
s260826011
s260826011
p02969
p02969
u147886643
u147886643
1,564,415,104
2019-07-29T15:45:04
Main.java
import java.util.*; class Main { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] arr = new int[n]; int max = 0; int sec = 0; for(int i=0;i<n;i++) { arr[i] = sc.nextInt(); if(arr[i] > max) { sec = max; max = arr[i]; } else if(arr[i] > sec){ ...
Main.java:8: error: illegal start of type for(int i=0;i<n;i++) { ^ Main.java:8: error: > or ',' expected for(int i=0;i<n;i++) { ^ Main.java:8: error: <identifier> expected for(int i=0;i<n;i++) { ^ Main.java:18: error: illegal start of type for(int i=0;i<n;i++) { ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u147886643|p02969|0
u147886643|p02969|0
codenet
Compile Error
494
v2_s109158286
s109158286
s109158286
p02969
p02969
u171945635
u171945635
1,569,517,075
2019-09-26T16:57:55
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String [] Args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); System.out.println(3*a*a); } }
Main.java:10: error: cannot find symbol System.out.println(3*a*a); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol System.out.println(3*a*a); ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u171945635|p02969|0
u171945635|p02969|0
codenet
Compile Error
197
v2_s211966250
s211966250
s211966250
p02969
p02969
u305758815
u305758815
1,588,751,574
2020-05-06T07:52:54
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int sum = r * r; int sum *= 3; System.out.println(sum); } }
Main.java:6: error: ';' expected int sum *= 3; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305758815|p02969|0
u305758815|p02969|0
codenet
Compile Error
203
v2_s347162057
s347162057
s347162057
p02969
p02969
u369190981
u369190981
1,566,565,974
2019-08-23T13:12:54
Main.java
public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println(3*a*a); } }
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
u369190981|p02969|0
u369190981|p02969|0
codenet
Compile Error
174