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_s775782290
s775782290
s775782290
p02257
p02257
u928579315
u928579315
1,515,093,506
2018-01-04T19:18:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] array = new int[num]; int count = 0; Outer: for(int i = 0; i < num; i++){ int x = sc.nextInt()...
Main.java:18: error: ';' expected count++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02257|0
u928579315|p02257|0
codenet
Compile Error
535
v2_s543554195
s543554195
s543554195
p02257
p02257
u928579315
u928579315
1,515,095,130
2018-01-04T19:45:30
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int count = 0; BigInteger bi = new BigInteger(sc.next()); for(int i = 0; i < num; i++){ String x = sc.next(); ...
Main.java:8: error: cannot find symbol BigInteger bi = new BigInteger(sc.next()); ^ symbol: class BigInteger location: class Main Main.java:8: error: cannot find symbol BigInteger bi = new BigInteger(sc.next()); ^ symbol: class BigInteger location: class M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02257|0
u928579315|p02257|0
codenet
Compile Error
460
v2_s330329203
s330329203
s330329203
p02257
p02257
u933366037
u933366037
1,501,230,604
2017-07-28T08:30:04
Main.java
import java.util.*; import java.lang.*; class Main { static boolean isPrime(int x) { for(int i = 2; i <= Math.sqrt(x); i++) { if(x % i == 0) return false; } return true; } public static void main (String[] args) { Scanner sc = new Scanner(System.in); int...
Main.java:19: error: <identifier> expected System.out.println(sum); ^ Main.java:19: error: <identifier> expected System.out.println(sum); ^ Main.java:21: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u933366037|p02257|0
u933366037|p02257|0
codenet
Compile Error
486
v2_s738485904
s738485904
s738485904
p02257
p02257
u933808920
u933808920
1,516,715,360
2018-01-23T13:49:20
Main.java
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner nyuryoku = new Scanner(System.in); int n = nyuryoku.nextInt(); int[] num = new int[n]; for (int i = 0; i < n; i++){ num[i] = nyuryoku.nextInt(); } int ans = prime(n, num); System.out.println(ans);...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u933808920|p02257|0
u933808920|p02257|0
codenet
Compile Error
554
v2_s826935678
s826935678
s826935678
p02257
p02257
u944658202
u944658202
1,524,753,423
2018-04-26T14:37: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 num,cnt=0; for(int i=0;i<n;i++){ num=sc.nextInt(); j=2; while(j<=Math.sqrt(num)){ if(nu...
Main.java:10: error: cannot find symbol j=2; ^ symbol: variable j location: class Main Main.java:11: error: cannot find symbol while(j<=Math.sqrt(num)){ ^ symbol: variable j location: class Main Main.java:12: error: cannot find symbol if(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02257|0
u944658202|p02257|0
codenet
Compile Error
466
v2_s321145155
s321145155
s321145155
p02257
p02257
u944658202
u944658202
1,524,753,921
2018-04-26T14:45: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 num,cnt=0,j; for(int i=0;i<n;i++){ num=sc.nextInt(); j=2; if((num==2)||(num==3)){ cnt++...
Main.java:13: error: '(' expected }else if{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02257|0
u944658202|p02257|0
codenet
Compile Error
612
v2_s886527893
s886527893
s886527893
p02257
p02257
u992049423
u992049423
1,534,872,475
2018-08-21T17:27:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String [] args){ Scanner in = new Scanner(System.in); int count = 0; while(in.hasNextLine()){ if( i == 2 || i == 3 || i == 5 || i == 7 || (((i % 10 == 1) || (i % 10 == 3) || (i % 10 == 7) || (i % 10 == 9)) && (i % 3 != 0 || i % 7 != 0))){ ...
Main.java:16: error: reached end of file while parsing System.out.println(count); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992049423|p02257|0
u992049423|p02257|0
codenet
Compile Error
367
v2_s425189895
s425189895
s425189895
p02257
p02257
u992049423
u992049423
1,534,872,997
2018-08-21T17:36:37
Main.java
public class Main{ public static void main (String [] args) { Scanner in = new Scanner(System.in); int count = 0; while(in.hasNextInt()) { int i = in.nextInt(); if( i == 2 || i == 3 || i == 5 || i == 7 || (((i % 10 == 1) || (i % 10 == 3) || (i % 10 == 7) || (i % 10 == 9)) && (i % 3 != 0...
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
u992049423|p02257|0
u992049423|p02257|0
codenet
Compile Error
399
v2_s995610612
s995610612
s995610612
p02258
p02258
u011621222
u011621222
1,507,734,271
2017-10-11T15:04:31
Main.java
public class Main { public static void main(String[] args) { int n; Scanner in = new Scanner(System.in); n = in.nextInt(); int [] a =new int[n]; for(int i=0;i<n;i++){ a[i] = in.nextInt(); } int maxV=a[1]-a[0]; for(int i=0;i<n;i++){ ...
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: 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
u011621222|p02258|0
u011621222|p02258|0
codenet
Compile Error
531
v2_s952960817
s952960817
s952960817
p02258
p02258
u051654626
u051654626
1,497,665,989
2017-06-17T02:19:49
Main.java
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int[] R = new int[t]; int i, j; R[0] = Integer.parseInt(br.readLine(...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
663
v2_s499567738
s499567738
s499567738
p02258
p02258
u051654626
u051654626
1,497,666,657
2017-06-17T02:30:57
Main.java
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int[] R = new int[t]; int i, j; R[0] = Integer.parseInt(br...
Main.java:16: error: cannot find symbol if(R[i] < min) {min = R[i]; mint=i; max=R[i];} ^ symbol: variable mint location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
752
v2_s780346549
s780346549
s780346549
p02258
p02258
u051654626
u051654626
1,497,666,939
2017-06-17T02:35:39
Main.java
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int[] R = new int[t]; int i, j; R[0] = Integer.parseInt(...
Main.java:18: error: cannot find symbol if(R[i] < min) {min = R[i]; mint=i; max=R[i];} ^ symbol: variable mint location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
841
v2_s113468010
s113468010
s113468010
p02258
p02258
u051654626
u051654626
1,497,668,269
2017-06-17T02:57:49
Main.java
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int[] R = new int[t]; int i, j; for(i=0; i<t...
Main.java:11: error: cannot find symbol bnf = R[1] - R[0]; ^ symbol: variable bnf location: class Main Main.java:15: error: cannot find symbol a = R[j] - R[i]; ^ symbol: variable a location: class Main Main.java:16: error: cannot find symbol if...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
621
v2_s424019307
s424019307
s424019307
p02258
p02258
u051654626
u051654626
1,497,668,335
2017-06-17T02:58:55
Main.java
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine()); int[] R = new int[t]; int i, j; for(i=0; i...
Main.java:15: error: cannot find symbol a = R[j] - R[i]; ^ symbol: variable a location: class Main Main.java:16: error: cannot find symbol if(bnf < a) bnf = a; ^ symbol: variable a location: class Main Main.java:16: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
629
v2_s948804606
s948804606
s948804606
p02258
p02258
u051654626
u051654626
1,497,670,525
2017-06-17T03:35:25
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] R = new int[t]; int i, j, a, bnf; R[0] = sc.nextInt(); R[1] = sc.nextInt(); int max = R[1]; int ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
852
v2_s932791941
s932791941
s932791941
p02258
p02258
u051654626
u051654626
1,497,672,254
2017-06-17T04:04:14
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] R = new int[t]; int i, j, a, bnf; R[0] = sc.nextInt(); R[1] = sc.nextInt(); bnf = R[1] - R[0]; ...
Main.java:22: error: cannot find symbol max = R[i-1]; ^ symbol: variable max location: class Main Main.java:23: error: cannot find symbol a = max - min; ^ symbol: variable max location: class Main Main.java:23: error: cannot...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
850
v2_s116551874
s116551874
s116551874
p02258
p02258
u051654626
u051654626
1,497,673,955
2017-06-17T04:32:35
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); int[] R = new int[t]; int i, min, bnf; for(i=0; i<t; i++) R[i] = sc.nextInt(); min = R[0]; bnf = Integer.MIN_V...
Main.java:13: error: cannot find symbol bnf = Math.max(max, R[i]-min); ^ symbol: variable max location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u051654626|p02258|0
u051654626|p02258|0
codenet
Compile Error
506
v2_s667166961
s667166961
s667166961
p02258
p02258
u065450711
u065450711
1,427,931,511
2015-04-01T23:38:31
ALDS1_1_D.java
package love.d28jp.martin; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class ALDS1_1_D { public static void main(String[] args) { List<String> input = input(); int inputLength = input.si...
ALDS1_1_D.java:37: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|0
u065450711|p02258|0
codenet
Compile Error
1,241
v2_s769729808
s769729808
s769729808
p02258
p02258
u065450711
u065450711
1,427,931,569
2015-04-01T23:39:29
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { public static void main(String[] args) { List<String> input = input(); int inputLength = input.size(); int maxSubtruction...
Main.java:36: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|0
u065450711|p02258|0
codenet
Compile Error
1,209
v2_s766687180
s766687180
s766687180
p02258
p02258
u065450711
u065450711
1,427,931,597
2015-04-01T23:39:57
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { public static void main(String[] args) { List<String> input = input(); int inputLength = input.size(); int maxSubtruction...
Main.java:36: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|0
u065450711|p02258|0
codenet
Compile Error
1,209
v2_s421963518
s421963518
s421963518
p02258
p02258
u065450711
u065450711
1,427,986,334
2015-04-02T14:52:14
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { public static void main(String[] args) { List<String> input = input(); // List<String> input = mockuop(); int input...
Main.java:22: error: array required, but List<String> found int Ri = input[i]; ^ Main.java:41: error: array required, but List<String> found int Ri = input[i]; ^ Main.java:47: error: array required, but List<String> found int Rj...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|1
u065450711|p02258|1
codenet
Compile Error
2,184
v2_s541969632
s541969632
s541969632
p02258
p02258
u065450711
u065450711
1,427,986,360
2015-04-02T14:52:40
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { // int[] input = input(); int[] input = mockuop(); int minValue = Integer.MAX_VALUE; int maxValue = -Integer.MA...
Main.java:18: error: illegal start of type for (int i=1; i <= inputLength; i++) { ^ Main.java:18: error: <identifier> expected for (int i=1; i <= inputLength; i++) { ^ Main.java:18: error: <identifier> expected for (int i=1; i <= inputLength; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|1
u065450711|p02258|1
codenet
Compile Error
2,042
v2_s724371737
s724371737
s724371737
p02258
p02258
u065450711
u065450711
1,427,986,422
2015-04-02T14:53:42
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; /** * Created by martin-d28jp-love on 15/04/01. */ public class Main { int[] input = input(); // int[] input = mockuop(); int inputLength = input.length; int minValue = Integer.MAX_V...
Main.java:19: error: illegal start of type for (int i=1; i <= inputLength; i++) { ^ Main.java:19: error: <identifier> expected for (int i=1; i <= inputLength; i++) { ^ Main.java:19: error: <identifier> expected for (int i=1; i <= inputLength; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02258|1
u065450711|p02258|1
codenet
Compile Error
2,082
v2_s687919456
s687919456
s687919456
p02258
p02258
u113796319
u113796319
1,440,491,893
2015-08-25T08:38:13
Main.java
import java.util.*; class Main{ void Main(){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int y; int min=200000; int x=-200000; for(int i=0;i<N;i++){ y=sc.nextInt(); if(y-min>x)x=y-min; if(min>y)min=y; } System.out.println(x); } public static void main(String[]arg){ Main m=new Ma...
Main.java:18: error: cannot find symbol m.aaaa(); ^ symbol: method aaaa() location: variable m of type Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113796319|p02258|1
u113796319|p02258|1
codenet
Compile Error
342
v2_s399369854
s399369854
s399369854
p02258
p02258
u150625525
u150625525
1,528,280,522
2018-06-06T10:22:02
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { // your code goes here Scanner scanner = new Scan...
Main.java:19: error: ')' or ',' expected num.add(Integer.parseInt(scanner.nextLine());); ^ Main.java:19: error: illegal start of expression num.add(Integer.parseInt(scanner.nextLine());); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u150625525|p02258|0
u150625525|p02258|0
codenet
Compile Error
888
v2_s487312436
s487312436
s487312436
p02258
p02258
u150625525
u150625525
1,528,280,589
2018-06-06T10:23:09
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { // your code goes here Scanner scanner = new Scan...
Main.java:19: error: ')' or ',' expected num.add(Integer.parseInt(scanner.nextLine());); ^ Main.java:19: error: illegal start of expression num.add(Integer.parseInt(scanner.nextLine());); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u150625525|p02258|0
u150625525|p02258|0
codenet
Compile Error
896
v2_s171190007
s171190007
s171190007
p02258
p02258
u158899978
u158899978
1,499,500,428
2017-07-08T07:53:48
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] r = new int[n]; for (int i = 0; i < n; i++) { r[i] = sc.nextInt(); } int maxv = r[1] - r[0]; int minv = r[0]; for (int j = 2; j < n; j++) { maxv = Math.max(maxv, r[j] - ...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u158899978|p02258|0
u158899978|p02258|0
codenet
Compile Error
398
v2_s020025120
s020025120
s020025120
p02258
p02258
u162151793
u162151793
1,508,824,710
2017-10-24T05:58:30
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[...
Main.java:16: error: cannot find symbol Arrays.sort(numbers); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162151793|p02258|0
u162151793|p02258|0
codenet
Compile Error
492
v2_s228562756
s228562756
s228562756
p02258
p02258
u162151793
u162151793
1,508,839,218
2017-10-24T10:00:18
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int n = ...
Main.java:17: error: integer number too large int max = -999999999999; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162151793|p02258|1
u162151793|p02258|0
codenet
Compile Error
673
v2_s590281733
s590281733
s590281733
p02258
p02258
u162151793
u162151793
1,508,839,241
2017-10-24T10:00:41
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int n = ...
Main.java:17: error: integer number too large long max = -999999999999; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162151793|p02258|1
u162151793|p02258|0
codenet
Compile Error
674
v2_s349088985
s349088985
s349088985
p02258
p02258
u162151793
u162151793
1,508,839,334
2017-10-24T10:02:14
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scanner = new Scanner(System.in); int n = ...
Main.java:17: error: integer number too large Long max = -999999999999; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162151793|p02258|1
u162151793|p02258|0
codenet
Compile Error
674
v2_s228057385
s228057385
s228057385
p02258
p02258
u184564568
u184564568
1,511,843,347
2017-11-28T04:29:07
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 min = 10000000000; long ret = -10000000000; for (int i = 0; i<n; i++){ long r = sc.nextInt(); if (r - min ...
Main.java:8: error: integer number too large long min = 10000000000; ^ Main.java:9: error: integer number too large long ret = -10000000000; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184564568|p02258|0
u184564568|p02258|0
codenet
Compile Error
426
v2_s280642408
s280642408
s280642408
p02258
p02258
u211138527
u211138527
1,439,561,231
2015-08-14T14:07:11
Main.java
import java.io.*; class Main{ static final PrintWriter out=new PrintWriter(System.out); public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line=""; while(line=br.readLine())!=null&&!line.isEmpty()){ int n=Integer.parseInt(line); i...
Main.java:10: error: illegal start of expression while(line=br.readLine())!=null&&!line.isEmpty()){ ^ Main.java:10: error: not a statement while(line=br.readLine())!=null&&!line.isEmpty()){ ^ Main.java:10: error: ';' expected while(line=br.readLine())!=null&&!line...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02258|0
u211138527|p02258|0
codenet
Compile Error
543
v2_s963606451
s963606451
s963606451
p02258
p02258
u211138527
u211138527
1,439,561,993
2015-08-14T14:19:53
Main.java
import java.io.*; class Main{ static final PrintWriter out=new PrintWriter(System.out); public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line=""; while((line=br.readLine())!=null&&!line.isEmpty()){ int n=Integer.parseInt(l...
Main.java:18: error: cannot find symbol min=Mat.min(min,r[i]); ^ symbol: variable Mat location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02258|0
u211138527|p02258|0
codenet
Compile Error
557
v2_s919372238
s919372238
s919372238
p02258
p02258
u213503793
u213503793
1,409,325,990
2014-08-29T15:26:30
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStream...
Main.java:26: error: cannot find symbol System.out.println(nummax); ^ symbol: variable nummax location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|0
u213503793|p02258|0
codenet
Compile Error
716
v2_s363975071
s363975071
s363975071
p02258
p02258
u213503793
u213503793
1,409,326,798
2014-08-29T15:39:58
Main.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) th...
Main.java:2: error: class, interface, enum, or record expected 1 ^ Main.java:36: error: class, interface, enum, or record expected import java.io.FileNotFoundException; ^ Main.java:37: error: class, interface, enum, or record expected import java.io.FileReader; ^ Main.java:38: error: class, interface, enum, or record e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|0
u213503793|p02258|0
codenet
Compile Error
966
v2_s828905853
s828905853
s828905853
p02258
p02258
u213503793
u213503793
1,409,327,539
2014-08-29T15:52:19
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(ne...
Main.java:33: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|0
u213503793|p02258|0
codenet
Compile Error
921
v2_s161219295
s161219295
s161219295
p02258
p02258
u213503793
u213503793
1,409,376,457
2014-08-30T05:27:37
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new Input...
Main.java:34: error: incompatible types: boolean cannot be converted to int else if(max+in[i<in[j]]){ ^ Main.java:34: error: incompatible types: int cannot be converted to boolean else if(max+in[i<in[j]]){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|1
u213503793|p02258|1
codenet
Compile Error
1,025
v2_s991429476
s991429476
s991429476
p02258
p02258
u213503793
u213503793
1,409,376,493
2014-08-30T05:28:13
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new Input...
Main.java:42: error: <identifier> expected System.out.println(max); ^ Main.java:42: error: <identifier> expected System.out.println(max); ^ Main.java:46: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|1
u213503793|p02258|1
codenet
Compile Error
992
v2_s438505053
s438505053
s438505053
p02258
p02258
u213503793
u213503793
1,409,376,596
2014-08-30T05:29:56
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new Input...
Main.java:41: error: <identifier> expected System.out.println(max); ^ Main.java:41: error: <identifier> expected System.out.println(max); ^ Main.java:45: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|1
u213503793|p02258|1
codenet
Compile Error
987
v2_s408517568
s408517568
s408517568
p02258
p02258
u213503793
u213503793
1,409,377,459
2014-08-30T05:44:19
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int[] in = new int[n]; i...
Main.java:24: error: 'else' without 'if' else if(max+in[i]<in[j]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02258|1
u213503793|p02258|1
codenet
Compile Error
738
v2_s772298134
s772298134
s772298134
p02258
p02258
u213849509
u213849509
1,423,218,853
2015-02-06T10:34:13
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int minv = Integer.MAX_VALUE; int maxv = Integer.MIN_VALUE; for (int i = 0; i < n; i++) { int j = scanner.nextInt(); maxv = Math.max(maxv, j - minv); minv = Math.min(min...
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
u213849509|p02258|0
u213849509|p02258|0
codenet
Compile Error
363
v2_s623097087
s623097087
s623097087
p02258
p02258
u252368621
u252368621
1,484,105,366
2017-01-11T03:29:26
Main.java
public class Main { static int[] a; static int n; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n=Integer.parseInt(br.readLine()); a=new int[n]; for(int i=0;i<n;i++){ a[i]=Integer.parseI...
Main.java:6: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:7: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(Syst...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252368621|p02258|0
u252368621|p02258|0
codenet
Compile Error
601
v2_s023854324
s023854324
s023854324
p02258
p02258
u252368621
u252368621
1,484,105,384
2017-01-11T03:29:44
Main.java
class Main { static int[] a; static int n; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); n=Integer.parseInt(br.readLine()); a=new int[n]; for(int i=0;i<n;i++){ a[i]=Integer.parseInt(br.r...
Main.java:6: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:7: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(Syst...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252368621|p02258|0
u252368621|p02258|0
codenet
Compile Error
594
v2_s021285355
s021285355
s021285355
p02258
p02258
u282272858
u282272858
1,460,433,340
2016-04-12T03:55:40
ALDS1_1_D.java
import java.util.Arrays; import java.util.List; import util.FastReader; /** * @see <a href='http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ALDS1_1_D'>?????§?????????</a> */ public class ALDS1_1_D { static FastReader in = new FastReader(); public static void main(String[] args) throws Exception { ALDS...
ALDS1_1_D.java:4: error: package util does not exist import util.FastReader; ^ ALDS1_1_D.java:10: error: cannot find symbol static FastReader in = new FastReader(); ^ symbol: class FastReader location: class ALDS1_1_D ALDS1_1_D.java:10: error: cannot find symbol static FastReader in = new Fas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u282272858|p02258|1
u282272858|p02258|1
codenet
Compile Error
757
v2_s040452284
s040452284
s040452284
p02258
p02258
u286589639
u286589639
1,493,287,814
2017-04-27T10:10:14
test.java
import java.util.*; public class test { public static void main(String[] args) { Scanner sc = new Scanner(); int n = sc.nextInt(); int max_profit = 0; int min = 1000000000; for (int i = 0; i < n; ++i) { int data = sc.nextInt(); int profit =...
test.java:6: 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
u286589639|p02258|0
u286589639|p02258|0
codenet
Compile Error
576
v2_s895438141
s895438141
s895438141
p02258
p02258
u312158419
u312158419
1,519,301,454
2018-02-22T12:10:54
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int max = 1 - Math.pow(10, 9); int ri = scanner.nextInt(); for (int i = 1; i < n; i++) { int rj = scanner.nextInt(); max = Math.max(max, rj ...
Main.java:9: error: incompatible types: possible lossy conversion from double to int int max = 1 - Math.pow(10, 9); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u312158419|p02258|0
u312158419|p02258|0
codenet
Compile Error
415
v2_s556114014
s556114014
s556114014
p02258
p02258
u342612692
u342612692
1,529,223,741
2018-06-17T08:22:21
Main.java
#include<stdio.h> int main() { int n,i,k,max=0; scanf("%d",&n); int a[n]; for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ int b=a[i]; for(k=i+1;k<n;k++){ if(i==0 && k==1)max=a[k]-b; if(a[k]-b>max)max=a[k]-b; } } printf("%d\n",max); return 0; }
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected scanf("%d",&n); ^ Main.java:6: error: class, interface, enum, or record expected int a[n]; ^ Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342612692|p02258|0
u342612692|p02258|0
codenet
Compile Error
299
v2_s685574544
s685574544
s685574544
p02258
p02258
u345663362
u345663362
1,499,402,037
2017-07-07T04:33:57
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); int buy,ben; ben = Integer.MIN_VALUE; int[] R = new int[n]; for(int i = 0 ; i < n ; i++ ) { R[i] = sc.nextInt(); } for(int i = 0 ; i < n-1 ; i++...
Main.java:11: error: incompatible types: possible lossy conversion from long to int int[] R = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345663362|p02258|0
u345663362|p02258|0
codenet
Compile Error
475
v2_s484220677
s484220677
s484220677
p02258
p02258
u352522848
u352522848
1,446,646,189
2015-11-04T14:09:49
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new Array[count]; int result = 0; for(int i = 0; i < count; i++) { ...
Main.java:22: error: <identifier> expected } catch (IOException) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
761
v2_s934935714
s934935714
s934935714
p02258
p02258
u352522848
u352522848
1,446,646,202
2015-11-04T14:10:02
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new Array[count]; int result = 0; for(int i = 0; i < count; i++) { ...
Main.java:8: error: cannot find symbol int[] arr = new Array[count]; ^ symbol: class Array location: class Main Main.java:15: error: cannot find symbol int end = max(Array.copyOfRange(arr, i+1, count-1)); ^ symbol: variable Array location: class Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
763
v2_s429447452
s429447452
s429447452
p02258
p02258
u352522848
u352522848
1,446,646,296
2015-11-04T14:11:36
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i = 0; i < count; i++) { ...
Main.java:15: error: cannot find symbol int end = max(Array.copyOfRange(arr, i+1, count-1)); ^ symbol: variable Array location: class Main Main.java:27: error: cannot find symbol Array.sort(arr); ^ symbol: variable Array location: class Main Main.java:28: error: cannot ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
761
v2_s032524187
s032524187
s032524187
p02258
p02258
u352522848
u352522848
1,446,646,364
2015-11-04T14:12:44
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i = 0; i < count; i++) { ...
Main.java:15: error: cannot find symbol int end = max(Arrays.copyOfRange(arr, i+1, count-1)); ^ symbol: variable Arrays location: class Main Main.java:27: error: cannot find symbol Arrays.sort(arr); ^ symbol: variable Arrays location: class Main Main.java:28: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
763
v2_s244022299
s244022299
s244022299
p02258
p02258
u352522848
u352522848
1,446,646,448
2015-11-04T14:14:08
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i = 0; i < count; i++) { ...
Main.java:15: error: cannot find symbol int end = max(Arrays.copyOfRange(arr, i+1, count-1)); ^ symbol: variable Arrays location: class Main Main.java:27: error: cannot find symbol Arrays.sort(arr); ^ symbol: variable Arrays location: class Main Main.java:28: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
763
v2_s010376435
s010376435
s010376435
p02258
p02258
u352522848
u352522848
1,446,646,508
2015-11-04T14:15:08
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i ...
Main.java:16: error: non-static method max(int[]) cannot be referenced from a static context int end = max(Arrays.copyOfRange(arr, i+1, count-1)); ^ Main.java:29: error: cannot find symbol return arr[arr.length() - 1]; ^ symbol: method length() location: variable ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
788
v2_s928040631
s928040631
s928040631
p02258
p02258
u352522848
u352522848
1,446,646,577
2015-11-04T14:16:17
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i ...
Main.java:16: error: non-static method max(int[]) cannot be referenced from a static context int end = max(Arrays.copyOfRange(arr, i+1, count-1)); ^ Main.java:29: error: cannot find symbol return arr[arr.length() - 1]; ^ symbol: method length() location: variable ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
788
v2_s092581989
s092581989
s092581989
p02258
p02258
u352522848
u352522848
1,446,646,633
2015-11-04T14:17:13
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = 0; for(int i ...
Main.java:29: error: cannot find symbol return arr[arr.length() - 1]; ^ symbol: method length() location: variable arr of type int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
795
v2_s309230061
s309230061
s309230061
p02258
p02258
u352522848
u352522848
1,446,648,319
2015-11-04T14:45:19
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = -Math.pow(10, 9); ...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int result = -Math.pow(10, 9); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
802
v2_s019846443
s019846443
s019846443
p02258
p02258
u352522848
u352522848
1,446,648,398
2015-11-04T14:46:38
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; int result = Math.pow(-10, 9); ...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int result = Math.pow(-10, 9); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
802
v2_s509586486
s509586486
s509586486
p02258
p02258
u352522848
u352522848
1,446,648,456
2015-11-04T14:47:36
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] arr = new int[count]; long result = Math.pow(-10, 9); ...
Main.java:10: error: incompatible types: possible lossy conversion from double to long long result = Math.pow(-10, 9); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02258|0
u352522848|p02258|0
codenet
Compile Error
803
v2_s974802424
s974802424
s974802424
p02258
p02258
u354136358
u354136358
1,509,403,818
2017-10-30T22:50:18
Main.java
import java.util.List; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public Main { public static void main(String[] args) { Input stdIn = new Input(); int n = stdIn.getValue(); List<Integer> r = stdIn.getValueLin...
Main.java:8: error: class, interface, enum, or record expected public Main { ^ Main.java:10: 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) 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02258|0
u354136358|p02258|0
codenet
Compile Error
1,636
v2_s373603600
s373603600
s373603600
p02258
p02258
u418625354
u418625354
1,498,609,321
2017-06-28T00:22:01
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math; /*Question /FX????????§????????°?????????????????¨????????????????????¨??§????????????????????????????????¨?????§???????????? /????????°????????????100???????????? 1000???????????????????????????????????? 1?????? 108???????????£???...
Main.java:49: error: incompatible types: possible lossy conversion from long to int return s; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418625354|p02258|0
u418625354|p02258|0
codenet
Compile Error
1,929
v2_s418395321
s418395321
s418395321
p02258
p02258
u418625354
u418625354
1,498,609,361
2017-06-28T00:22:41
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math; /*Question /FX????????§????????°?????????????????¨????????????????????¨??§????????????????????????????????¨?????§???????????? /????????°????????????100???????????? 1000???????????????????????????????????? 1?????? 108???????????£???...
Main.java:32: error: incompatible types: possible lossy conversion from long to int k = fxariganetokasu(r); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418625354|p02258|0
u418625354|p02258|0
codenet
Compile Error
1,930
v2_s680381273
s680381273
s680381273
p02258
p02258
u422881805
u422881805
1,518,350,562
2018-02-11T12:02:42
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 min = sc.nextInt(); int ans = Integer.MIN_VALUE; for (int i = 0; i < n - 1; i++) { int input = sc.next...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u422881805|p02258|2
u422881805|p02258|2
codenet
Compile Error
458
v2_s973351891
s973351891
s973351891
p02258
p02258
u497195381
u497195381
1,479,789,051
2016-11-22T04:30:51
Main.java
public class Main{ main( String[] args ){ int n = args.length; int dif; int m=0; for( int i =0;i<n-1;i++){ dif=args[i+1]-args[i]; if(dif>m || (dif<0&&-dif>m )) m=dif; } return dif; } }
Main.java:2: error: invalid method declaration; return type required main( String[] args ){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497195381|p02258|0
u497195381|p02258|0
codenet
Compile Error
247
v2_s398513897
s398513897
s398513897
p02258
p02258
u559106458
u559106458
1,528,639,715
2018-06-10T14:08:35
Main.java
n = input() n = int(n) maxv = -20000000 list = [] i = 1 while(i<n): x = input() x = int(x) list = list.append(x) i = i + 1 minv = list[0] i = 1 while(i<n): maxv = max(maxv, list[i]-minv) minv = min(minv, list[i]) i = i + 1 print(maxv)
Main.java:1: error: class, interface, enum, or record expected n = input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02258|0
u559106458|p02258|0
codenet
Compile Error
245
v2_s999313374
s999313374
s999313374
p02258
p02258
u559106458
u559106458
1,528,640,778
2018-06-10T14:26:18
Main.java
n = input() n = int(n) list = [] i = 0 while(i<n): x = input() x = int(x) list[i] = x i = i + 1 maxv = -20000000 minv = list[0] i = 1 while(i<n): if(maxv >= list[i]-minv): maxv = maxv else: maxv = list[i]-minv if(minv <= list[i]): minv = minv else: minv = list[i] i = i + 1 print(maxv)
Main.java:1: error: class, interface, enum, or record expected n = input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02258|0
u559106458|p02258|0
codenet
Compile Error
309
v2_s609875629
s609875629
s609875629
p02258
p02258
u559106458
u559106458
1,528,641,267
2018-06-10T14:34:27
Main.java
n = input() n = int(n) list = [] i = 0 while(i<n): x = input() x = int(x) list.append(x) i = i + 1 maxv = -20000000 minv = list[0] i = 1 while(i<n): maxv = max(maxv, list[i]-minv) minv = min(minv, list[i]) i = i + 1 print(maxv)
Main.java:1: error: class, interface, enum, or record expected n = input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02258|0
u559106458|p02258|0
codenet
Compile Error
261
v2_s270873698
s270873698
s270873698
p02258
p02258
u559106458
u559106458
1,528,641,307
2018-06-10T14:35:07
Main.java
n = input() n = int(n) list = [] i = 0 while(i<n): x = input() x = int(x) list.append(x) i = i + 1 maxv = -2000000000 minv = list[0] i = 1 while(i<n): maxv = max(maxv, list[i]-minv) minv = min(minv, list[i]) i = i + 1 print(maxv)
Main.java:1: error: class, interface, enum, or record expected n = input() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u559106458|p02258|0
u559106458|p02258|0
codenet
Compile Error
263
v2_s465985453
s465985453
s465985453
p02258
p02258
u594816808
u594816808
1,525,930,304
2018-05-10T05:31:44
Main.java
public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int t = sc.nextInt(); int[] R = inpNum(t); int mp = maxProfit(R); System.out.println(mp); sc.close(); } private static int maxProfit(int[] R) { int max_p = R[1] - R[0]; int min_p = R[0]; for(...
Main.java:3: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol static 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
u594816808|p02258|0
u594816808|p02258|0
codenet
Compile Error
606
v2_s631614184
s631614184
s631614184
p02258
p02258
u606460153
u606460153
1,522,325,036
2018-03-29T12:03:56
Main.java
#include<stdio.h> #include<stdlib.h> #include<math.h> #define N 13 #define pi M_PI int main(){ int n; scanf("%d",&n); int a[200000]; long max,kari; kari=0; for(int i=0;i<n;i++){ scanf("%d",&a[i]); if(kari<a[i]){ kari=a[i]; } } max=-200000; for(int...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:4: error: illegal character: '...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u606460153|p02258|0
u606460153|p02258|0
codenet
Compile Error
555
v2_s050868112
s050868112
s050868112
p02258
p02258
u636240697
u636240697
1,525,057,085
2018-04-30T02:58:05
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int maxv = -2000000000; ArrayList<Integer> numbers = new ArrayList<Integer>(); for(int i =0;i<N;i++){ numbers.add(sc.nextInt()); }...
Main.java:15: error: ')' or ',' expected maxv = Math.max(maxv, numbers.get(i)-numbers.get(i-1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u636240697|p02258|0
u636240697|p02258|0
codenet
Compile Error
518
v2_s540267044
s540267044
s540267044
p02258
p02258
u647456682
u647456682
1,535,072,308
2018-08-24T00:58:28
Math.java
import java.util.*; public class Math { public static void main(String args[]) { // input int num; Scanner inp = new Scanner(System.in); num = inp.nextInt(); int min = inp.nextInt(); int max = (int) -(Math.pow(10,9)); for (int i = 0; i < num-1; i++) { ...
Math.java:14: error: cannot find symbol int max = (int) -(Math.pow(10,9)); ^ symbol: method pow(int,int) location: class Math Math.java:18: error: cannot find symbol max = Math.max(max, r-min); ^ symbol: method max(int,int) location: cl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u647456682|p02258|0
u647456682|p02258|0
codenet
Compile Error
480
v2_s725117756
s725117756
s725117756
p02258
p02258
u648085996
u648085996
1,423,980,063
2015-02-15T06:01:03
Main.java
class Main{ public static void main(String[] args){ //final int MAX =200000; int n; Scanner sc = new Scanner(System.in); n=sc.nextInt(); int R[]=new int[n]; Scanner sc1 = new Scanner(System.in); for(int i=0;i<n;i++){ R[i]=sc1.nextInt(); } int maxv=-200000000...
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 Main.java:9: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648085996|p02258|0
u648085996|p02258|0
codenet
Compile Error
497
v2_s124704509
s124704509
s124704509
p02258
p02258
u648085996
u648085996
1,423,982,688
2015-02-15T06:44:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ //final int MAX =200000; Scanner sc = new Scanner(System.in); //int n = Integer.parseInt(sc.next()); int n =sc.nextInt(); int[] R=new int[n]; for(int i=0;i<n;i++){ // R[i]=Integer.parseInt(sc...
Main.java:26: error: reached end of file while parsing }s ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648085996|p02258|0
u648085996|p02258|0
codenet
Compile Error
567
v2_s935292710
s935292710
s935292710
p02258
p02258
u673578222
u673578222
1,525,926,225
2018-05-10T04:23:45
Main.java
// This file is a "Hello, world!" in Java language by OpenJDK for wandbox. import java.util.*; publc class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i;//循環変数 int max1=0;//本来の最大値 int maxIndex= 0;//本来の最大値のインデ...
Main.java:4: error: class, interface, enum, or record expected publc class Main ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u673578222|p02258|0
u673578222|p02258|0
codenet
Compile Error
1,824
v2_s498726066
s498726066
s498726066
p02258
p02258
u677344977
u677344977
1,494,080,331
2017-05-06T14:18:51
Main.java
import java.util.Scanner; public static void main(String[] args) { // ?????\??°??? Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] arr = new int[n]; for (int i = 0; i < n; i++) { arr[i] = scan.nextInt(); } } public int ma...
Main.java:5: 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
u677344977|p02258|0
u677344977|p02258|0
codenet
Compile Error
941
v2_s401995510
s401995510
s401995510
p02258
p02258
u699160354
u699160354
1,519,695,532
2018-02-27T01:38:52
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.nextLine()); int num; int ori=200001; int big=1; int answer; for(int i=0;i<n;i++){ num = Integer.parseInt(sc.nextLine()); if(ori>num){ ori=num; } ...
Main.java:17: error: bad operand types for binary operator '==' if(answer==null){ ^ first type: int second type: <null> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699160354|p02258|0
u699160354|p02258|0
codenet
Compile Error
454
v2_s892051955
s892051955
s892051955
p02258
p02258
u699160354
u699160354
1,519,695,597
2018-02-27T01:39:57
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.nextLine()); int num; int ori=200001; int big=1; int answer; for(int i=0;i<n;i++){ num = Integer.parseInt(sc.nextLine()); if(ori>num){ ori=num; } ...
Main.java:19: error: variable answer might not have been initialized }else if(answer<num-ori){ ^ Main.java:23: error: variable answer might not have been initialized System.out.println(answer); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699160354|p02258|0
u699160354|p02258|0
codenet
Compile Error
446
v2_s494235356
s494235356
s494235356
p02258
p02258
u704237261
u704237261
1,425,783,431
2015-03-08T02:57:11
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ int n; int[] R; Scanner sc = new Scanner(System.in); n = sc.nextInt(); R = new int[n]; for( int i = 0; i < n; i++) R[i] = sc.nextInt(); int a = ...
Main.java:26: error: <identifier> expected System.out.println(a); ^ Main.java:26: error: <identifier> expected System.out.println(a); ^ Main.java:29: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u704237261|p02258|0
u704237261|p02258|0
codenet
Compile Error
557
v2_s424459094
s424459094
s424459094
p02258
p02258
u711403954
u711403954
1,551,366,635
2019-02-28T15:10:35
Main.java
public static void main(Integer[] list) { // write your code here Integer size = list.length; Integer max = 0; for (Integer i = 0; i < size; i++) { for (Integer j = i; j >= 0; j--) { Integer v = list[i] - list[j]; max = v > max ? v : max; ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(Integer[] list) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711403954|p02258|0
u711403954|p02258|0
codenet
Compile Error
371
v2_s631216535
s631216535
s631216535
p02258
p02258
u768801062
u768801062
1,528,434,608
2018-06-08T05:10:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer.parseInt(br.readLine()); ...
Main.java:19: error: cannot find symbol if ( r-minv > maxv ) maxv = mv; ^ symbol: variable mv location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768801062|p02258|0
u768801062|p02258|0
codenet
Compile Error
683
v2_s237897513
s237897513
s237897513
p02258
p02258
u816319288
u816319288
1,471,275,011
2016-08-15T15:30:11
Main.java
import java.io.BufferedReader; public class Main { public static final int MAXN = 200000; public static final int MINN = 2; public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = readInt(r); int[] price1 = new int[n]; for(...
Main.java:9: error: cannot find symbol BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class InputStreamReader location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816319288|p02258|0
u816319288|p02258|0
codenet
Compile Error
698
v2_s934569735
s934569735
s934569735
p02258
p02258
u910402677
u910402677
1,486,090,809
2017-02-03T03:00:09
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int maxv, minv; for(int i = 0; i < n; i++){ int n = scan.nextInt(); if(i == 0) minv = n; maxv = Math.max(maxv, n - minv); minv =...
Main.java:11: error: variable n is already defined in method main(String[]) int n = scan.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02258|0
u910402677|p02258|0
codenet
Compile Error
383
v2_s608897774
s608897774
s608897774
p02258
p02258
u910402677
u910402677
1,486,090,917
2017-02-03T03:01:57
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int maxv, minv; for(int i = 0; i < n; i++){ int r = scan.nextInt(); if(i == 0) minv = n; maxv = Math.max(maxv, r - minv); minv =...
Main.java:14: error: variable maxv might not have been initialized maxv = Math.max(maxv, r - minv); ^ Main.java:14: error: variable minv might not have been initialized maxv = Math.max(maxv, r - minv); ^ Main.java:17: error: variable maxv might not have been initial...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02258|0
u910402677|p02258|0
codenet
Compile Error
383
v2_s021371724
s021371724
s021371724
p02258
p02258
u910402677
u910402677
1,486,091,511
2017-02-03T03:11:51
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int maxv = -1E-9; int minv = 1E-9; for(int i = 0; i < n; i++){ int r = scan.nextInt(); if(i == 0) minv = n; maxv = Math.max(maxv,...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int maxv = -1E-9; ^ Main.java:9: error: incompatible types: possible lossy conversion from double to int int minv = 1E-9; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02258|0
u910402677|p02258|0
codenet
Compile Error
404
v2_s936029530
s936029530
s936029530
p02258
p02258
u910402677
u910402677
1,486,092,100
2017-02-03T03:21:40
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int maxv = 1E-6; int minv = 1E+6; for(int i = 0; i < n; i++){ int r = scan.nextInt(); if(i == 0) minv = n; maxv = Math.max(maxv, ...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int maxv = 1E-6; ^ Main.java:9: error: incompatible types: possible lossy conversion from double to int int minv = 1E+6; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02258|0
u910402677|p02258|0
codenet
Compile Error
403
v2_s386828717
s386828717
s386828717
p02258
p02258
u910791852
u910791852
1,540,650,463
2018-10-27T14:27: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 maxNum = 0; int minNum = 10000000000; for(int i = 0; i < n; i++){ int num = sc.nextInt(); if(num > maxNum){ maxNum = num; } if(num < minNum){ minNum = num; } ...
Main.java:8: error: integer number too large int minNum = 10000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|0
u910791852|p02258|0
codenet
Compile Error
363
v2_s133212151
s133212151
s133212151
p02258
p02258
u910791852
u910791852
1,540,866,301
2018-10-30T02:25:01
Main.java
import java.util.Scanner; public class Main{ public static main(String[] args){ Scanner sc = new Scanner(System.in); int min = 10000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0;i<n;I++){ int val = sc.nextInt(); profit = val - min; if(profit > maxP){ maxP = profit; } i...
Main.java:4: error: invalid method declaration; return type required public static main(String[] args){ ^ Main.java:6: error: integer number too large int min = 10000000000; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
356
v2_s232457480
s232457480
s232457480
p02258
p02258
u910791852
u910791852
1,540,866,344
2018-10-30T02:25:44
Main.java
import java.util.Scanner; public class Main{ public static main(String[] args){ Scanner sc = new Scanner(System.in); int min = 10000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0;i<n;I++){ int val = sc.nextInt(); profit = val - min; if(profit > maxP){ maxP = profit; } i...
Main.java:4: error: invalid method declaration; return type required public static main(String[] args){ ^ Main.java:6: error: integer number too large int min = 10000000000; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
356
v2_s923936879
s923936879
s923936879
p02258
p02258
u910791852
u910791852
1,540,866,423
2018-10-30T02:27:03
Main.java
import java.util.Scanner; public class Main{ public static main(String[] args){ Scanner sc = new Scanner(System.in); int min = 1000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0;i<n;I++){ int val = sc.nextInt(); profit = val - min; if(profit > maxP){ maxP = profit; } if...
Main.java:4: error: invalid method declaration; return type required public static main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
355
v2_s097038821
s097038821
s097038821
p02258
p02258
u910791852
u910791852
1,540,866,457
2018-10-30T02:27:37
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 1000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0;i<n;I++){ int val = sc.nextInt(); profit = val - min; if(profit > maxP){ maxP = profit; ...
Main.java:10: error: cannot find symbol for(int i = 0;i<n;I++){ ^ symbol: variable I location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
360
v2_s215808940
s215808940
s215808940
p02258
p02258
u910791852
u910791852
1,540,866,593
2018-10-30T02:29:53
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 1000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0; i < n ; I++){ int val = sc.nextInt(); profit = val - min; if(profit > maxP){ maxP = pro...
Main.java:10: error: cannot find symbol for(int i = 0; i < n ; I++){ ^ symbol: variable I location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
365
v2_s701243233
s701243233
s701243233
p02258
p02258
u910791852
u910791852
1,540,867,946
2018-10-30T02:52:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 1000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0; i < n ; i++){ int val = sc.nextInt(); if(i = 0){ min = val; continue } profit = val - mi...
Main.java:14: error: ';' expected continue ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
424
v2_s191792340
s191792340
s191792340
p02258
p02258
u910791852
u910791852
1,540,867,973
2018-10-30T02:52:53
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 1000000000; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0; i < n ; i++){ int val = sc.nextInt(); if(i = 0){ min = val; continue; } profit = val - m...
Main.java:12: error: incompatible types: int cannot be converted to boolean if(i = 0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
425
v2_s217969965
s217969965
s217969965
p02258
p02258
u910791852
u910791852
1,540,869,207
2018-10-30T03:13:27
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 0; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); for(int i = 0; i < n; i++){ int R[i] =sc.nextInt() } min = R[0]; for(int i = 1; i < n; i++){ maxP = Math.max(m...
Main.java:11: error: ']' expected int R[i] =sc.nextInt() } ^ Main.java:11: error: ';' expected int R[i] =sc.nextInt() } ^ Main.java:11: error: ';' expected int R[i] =sc.nextInt() } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
394
v2_s038762366
s038762366
s038762366
p02258
p02258
u910791852
u910791852
1,540,870,410
2018-10-30T03:33:30
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 0; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); list<String> R[] = new Arraylist<String>(); for(int i = 0; i < n; i++){ R[i] =sc.nextInt() } min = R[0]; for(i...
Main.java:12: error: ';' expected R[i] =sc.nextInt() } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
434
v2_s094964284
s094964284
s094964284
p02258
p02258
u910791852
u910791852
1,540,870,592
2018-10-30T03:36:32
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 0; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); list<String> R[] = new Arraylist<String>(){ for(int i = 0; i < n; i++){ add R[i] =sc.nextInt() } } min = R[0]; ...
Main.java:11: error: illegal start of type for(int i = 0; i < n; i++){ ^ Main.java:11: error: > or ',' expected for(int i = 0; i < n; i++){ ^ Main.java:11: error: <identifier> expected for(int i = 0; i < n; i++){ ^ Main.java:12: error: ']' expected add R[i] =sc.nextInt() } ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
439
v2_s442853043
s442853043
s442853043
p02258
p02258
u910791852
u910791852
1,540,870,761
2018-10-30T03:39:21
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 0; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); list<String> R[] = new Arraylist<String>(200000); for(int i = 0; i < n; i++){ R[i] =sc.nextInt() } min = R[0];...
Main.java:12: error: ';' expected R[i] =sc.nextInt() } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
442
v2_s608473874
s608473874
s608473874
p02258
p02258
u910791852
u910791852
1,540,871,149
2018-10-30T03:45:49
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int min = 0; int profit = -1000000000; int maxP = -1000000000; int n = sc.nextInt(); list<String> R[] = new Arraylist<String>(200000); for(int i = 0; i < n; i++){ R.add(sc.nextInt()) } min = R[0]...
Main.java:12: error: ';' expected R.add(sc.nextInt()) } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910791852|p02258|1
u910791852|p02258|1
codenet
Compile Error
443