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_s805604042
s805604042
s805604042
p03238
p03238
u276492340
u276492340
1,538,878,711
2018-10-07T02:18:31
Main.java
import java.util.Scanner; import java.io.BufferedReader; import java.util.*; public class Main { public static void main(String[] args){ MyScanner scanner = new MyScanner(); int N = scanner.nextInt(); int A = scanner.nextInt(); int B =...
Main.java:8: error: cannot find symbol MyScanner scanner = new MyScanner(); ^ symbol: class MyScanner location: class Main Main.java:8: error: cannot find symbol MyScanner scanner = new MyScanner(); ^ symbol: class MyScanner location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p03238|0
u276492340|p03238|0
codenet
Compile Error
677
v2_s625491563
s625491563
s625491563
p03238
p03238
u327244943
u327244943
1,538,874,162
2018-10-07T01:02:42
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int mode = Integer.parseInt(scanner.nextLine()); if (mode == 1) { new Main().helloWorld(); return; } int a = Integer.pars...
Main.java:18: error: <identifier> expected public void helloWorld(void) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327244943|p03238|0
u327244943|p03238|0
codenet
Compile Error
604
v2_s215834358
s215834358
s215834358
p03238
p03238
u387806792
u387806792
1,538,874,621
2018-10-07T01:10:21
Main.java
import java.util.*; class Main { public static viod main(String[] args) { Scanner sc = new Scanner(system.in); int n = sc.nextInt(); if (n == 1) { System.out.println("Hello World"); } eles if (n == 2) { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); } } }
Main.java:11: error: not a statement } eles if (n == 2) { ^ Main.java:11: error: ';' expected } eles if (n == 2) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387806792|p03238|0
u387806792|p03238|0
codenet
Compile Error
314
v2_s197471227
s197471227
s197471227
p03238
p03238
u411637381
u411637381
1,557,272,634
2019-05-07T23:43:54
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(); if(N==1) { System.out.println("Hello World") }else { int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(A+B); } } }
Main.java:10: error: ';' expected System.out.println("Hello World") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u411637381|p03238|0
u411637381|p03238|0
codenet
Compile Error
310
v2_s800766252
s800766252
s800766252
p03238
p03238
u463844166
u463844166
1,575,903,851
2019-12-09T15:04:11
Main.java
import java.util.*; public class Main { public static void main(String args[]) { int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); if (n == 1) { System.out.println("Hello World"); } else { System.out.println(a + b); } } }
Main.java:4: error: cannot find symbol int n = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:6: error: cannot find symbol int b = sc.nextInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463844166|p03238|0
u463844166|p03238|0
codenet
Compile Error
281
v2_s857481136
s857481136
s857481136
p03238
p03238
u463939378
u463939378
1,582,868,829
2020-02-28T05:47:09
Main.java
import java.util.*; public class Main{ public static void main(String...args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); switch(n){ case 1: System.out.println("Hello World"); break; case 2: int a = s.nextInt, b = s.nextInt(); System.out.println(a + b); break; } } }
Main.java:9: error: cannot find symbol case 2: int a = s.nextInt, b = s.nextInt(); System.out.println(a + b); break; ^ symbol: variable nextInt location: variable s of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463939378|p03238|0
u463939378|p03238|0
codenet
Compile Error
313
v2_s206432391
s206432391
s206432391
p03238
p03238
u486448566
u486448566
1,541,296,442
2018-11-04T01:54:02
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int input_N = Integer.parseInt(sc.next()); // programming List<Params> l = new ArrayList<Params>(); int max_h = -1; int max_h_x = -1; int max_h_y = -1; ...
Main.java:8: error: cannot find symbol List<Params> l = new ArrayList<Params>(); ^ symbol: class Params location: class Main Main.java:8: error: cannot find symbol List<Params> l = new ArrayList<Params>(); ^ symbol: class Params location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486448566|p03238|0
u486448566|p03238|0
codenet
Compile Error
864
v2_s999670654
s999670654
s999670654
p03238
p03238
u494228200
u494228200
1,592,834,709
2020-06-22T14:05:09
Main.java
import java.util.*; public class Main{ pubic static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N == 1){ System.out.println("Hello World"); }else if(N == 2){ int A = sc.nextInt(); int B = sc.next...
Main.java:5: error: <identifier> expected pubic static void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u494228200|p03238|0
u494228200|p03238|0
codenet
Compile Error
387
v2_s168270842
s168270842
s168270842
p03238
p03238
u494228200
u494228200
1,592,834,788
2020-06-22T14:06:28
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N == 1){ System.out.println("Hello World"); }else if(N == 2){ int A = sc.nextInt(); int B = sc.nextInt(); Sys...
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
u494228200|p03238|0
u494228200|p03238|0
codenet
Compile Error
359
v2_s854583939
s854583939
s854583939
p03238
p03238
u499009346
u499009346
1,540,477,021
2018-10-25T14:17:01
main.java
public class main { public static void main(String[] args) { int x = A + B; int N = 0; if (N == 1) { System.out.println(Hello World); } else { System.out.println(x); } } }
main.java:6: error: ')' or ',' expected System.out.println(Hello World); ^ main.java:6: error: not a statement System.out.println(Hello World); ^ main.java:6: error: ';' expected System.out.println(Hello World); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03238|0
u499009346|p03238|0
codenet
Compile Error
189
v2_s727951170
s727951170
s727951170
p03238
p03238
u499009346
u499009346
1,540,477,045
2018-10-25T14:17:25
main.java
public class main { public static void main(String[] args) { int x = A + B; int N = 0; if (N == 1) { System.out.println("Hello World"); } else { System.out.println(x); } } }
main.java:3: error: cannot find symbol int x = A + B; ^ symbol: variable A location: class main main.java:3: error: cannot find symbol int x = A + B; ^ symbol: variable B location: class main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03238|0
u499009346|p03238|0
codenet
Compile Error
191
v2_s234805321
s234805321
s234805321
p03238
p03238
u499009346
u499009346
1,540,478,064
2018-10-25T14:34:24
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) { Scannenr sc = new Scanner (System.in); int N = sc.nextInt(); if (N == 1) { System.out.println ("Hello World"); } else { int A = sc.nextInt(), B = sc.nextInt(); System.out.println(A + ...
Main.java:6: error: cannot find symbol Scannenr sc = new Scanner (System.in); ^ symbol: class Scannenr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03238|0
u499009346|p03238|0
codenet
Compile Error
332
v2_s890493607
s890493607
s890493607
p03238
p03238
u499009346
u499009346
1,540,478,165
2018-10-25T14:36:05
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) { Scannenr sc = new Scanner (System.in); int N = sc.nextInt(); if (N == 1) { System.out.println ("Hello World"); } else { int A = sc.nextInt(), B = sc.nextInt(); System.out.println(A + ...
Main.java:6: error: cannot find symbol Scannenr sc = new Scanner (System.in); ^ symbol: class Scannenr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03238|0
u499009346|p03238|0
codenet
Compile Error
332
v2_s483692833
s483692833
s483692833
p03238
p03238
u522636435
u522636435
1,580,682,358
2020-02-02T22:25:58
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n == 1) { System.out.println("Hello World"); } else { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a + b); } s...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u522636435|p03238|0
u522636435|p03238|0
codenet
Compile Error
336
v2_s161130602
s161130602
s161130602
p03238
p03238
u526723014
u526723014
1,538,874,190
2018-10-07T01:03:10
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.io.IOException; import java.io.BufferedReader; import java.io.Reader; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.NoSuc...
Main.java:15: error: package sample.Main does not exist import sample.Main.FastScanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526723014|p03238|0
u526723014|p03238|0
codenet
Compile Error
4,055
v2_s933155809
s933155809
s933155809
p03238
p03238
u539616549
u539616549
1,540,156,300
2018-10-21T21:11:40
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 = sc.nextInt(); int b = sc.nextInt(); if(n == 1){ System.out.println(Hello World); } else { int a ...
Main.java:9: error: ')' or ',' expected System.out.println(Hello World); ^ Main.java:9: error: not a statement System.out.println(Hello World); ^ Main.java:9: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539616549|p03238|0
u539616549|p03238|0
codenet
Compile Error
429
v2_s499537277
s499537277
s499537277
p03238
p03238
u539616549
u539616549
1,540,156,413
2018-10-21T21:13:33
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n == 1){ System.out.println(Hello World); } else { int a = sc.nextInt(); int b = sc.nextInt(); ...
Main.java:7: error: ')' or ',' expected System.out.println(Hello World); ^ Main.java:7: error: not a statement System.out.println(Hello World); ^ Main.java:7: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539616549|p03238|0
u539616549|p03238|0
codenet
Compile Error
389
v2_s501017029
s501017029
s501017029
p03238
p03238
u582940224
u582940224
1,538,876,542
2018-10-07T01:42:22
Main.java
import java.util.Scanner; class test{ public static void main(String args[]){ int N; int A,B; Scanner sc = new Scanner(System.in); num = sc.nextInt(); if(N == 1){ System.out.println("Hello World"); return; }else if(N == 2){ A = sc.nextInt(); B = sc.nextInt();...
Main.java:9: error: cannot find symbol num = sc.nextInt(); ^ symbol: variable num location: class test 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03238|0
u582940224|p03238|0
codenet
Compile Error
385
v2_s782003987
s782003987
s782003987
p03238
p03238
u646483356
u646483356
1,543,562,313
2018-11-30T07:18:33
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if(x==1){ System.out.println("Hello World"); }else{ int y = sc.nextInt() int z = sc.nextInt() Syst...
Main.java:12: error: ';' expected int y = sc.nextInt() ^ Main.java:13: error: ';' expected int z = sc.nextInt() ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03238|1
u646483356|p03238|1
codenet
Compile Error
366
v2_s300434553
s300434553
s300434553
p03238
p03238
u722378741
u722378741
1,541,190,767
2018-11-02T20:32:47
Test.java
public class Test{ public static void main(String[] args){ int age = N; int a = A; int b = B; if(N == 1){ System.out.plintln("Hello World"); }else if(N == 2){ System.out.println(a + b); } } }
Test.java:3: error: cannot find symbol int age = N; ^ symbol: variable N location: class Test Test.java:4: error: cannot find symbol int a = A; ^ symbol: variable A location: class Test Test.java:5: error: cannot find symbol int b = B; ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u722378741|p03238|0
u722378741|p03238|0
codenet
Compile Error
243
v2_s391818027
s391818027
s391818027
p03238
p03238
u722378741
u722378741
1,541,191,256
2018-11-02T20:40:56
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n == 1){ System.out.println("Hello World"); }else{ int a = sc.nextInt(); int b = sc.nextINt(); System.out.println(a+b); ...
Main.java:11: error: cannot find symbol int b = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u722378741|p03238|0
u722378741|p03238|0
codenet
Compile Error
328
v2_s450347404
s450347404
s450347404
p03238
p03238
u722378741
u722378741
1,541,191,318
2018-11-02T20:41:58
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n == 1){ System.out.println("Hello World"); }else{ int a = sc.nextInt(); int b = sc.nextINt(); System.out.println(a + b); ...
Main.java:11: error: cannot find symbol int b = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u722378741|p03238|0
u722378741|p03238|0
codenet
Compile Error
330
v2_s063038243
s063038243
s063038243
p03238
p03238
u725859287
u725859287
1,541,299,639
2018-11-04T02:47:19
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n==1) { System.out.println("Hello World") } else { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a+b) } } }
Main.java:7: error: ';' expected System.out.println("Hello World") ^ Main.java:11: error: ';' expected System.out.println(a+b) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u725859287|p03238|0
u725859287|p03238|0
codenet
Compile Error
291
v2_s339010549
s339010549
s339010549
p03238
p03238
u725859287
u725859287
1,541,299,717
2018-11-04T02:48:37
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n==1) { System.out.println("Hello World") } else { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a+b); } } }
Main.java:7: error: ';' expected System.out.println("Hello World") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u725859287|p03238|0
u725859287|p03238|0
codenet
Compile Error
292
v2_s901866376
s901866376
s901866376
p03238
p03238
u753946386
u753946386
1,547,396,768
2019-01-13T16:26:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = Integer.parseInt(scan.next()); int[] x = new int[N]; int[] y = new int[N]; long[] h = new long[N]; for (int i = 0; i < N; i++) { x[i] = Integer.parseInt(scan.next()); ...
Main.java:44: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u753946386|p03238|1
u753946386|p03238|1
codenet
Compile Error
1,047
v2_s597550442
s597550442
s597550442
p03238
p03238
u763155753
u763155753
1,542,666,898
2018-11-19T22:34:58
Main.java
import java.io.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in); int a = Integer.parseInt(br.readLine()); if(a == 1){ System.out.println("Hello World"); } if(a == 2){ int b = Integer.parseInt(br.readLine()); int c ...
Main.java:4: error: ')' or ',' expected BufferedReader br = new BufferedReader(new InputStreamReader(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u763155753|p03238|0
u763155753|p03238|0
codenet
Compile Error
387
v2_s193558531
s193558531
s193558531
p03238
p03238
u847535452
u847535452
1,540,687,209
2018-10-28T00:40:09
Main.java
class Main { public static void main (String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); if(N==1){ System.out.println("Hello World"); } if(N==2){ int A = scan.nextInt(); int B = scan.nextInt(); System.out.println(A+B); } } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u847535452|p03238|1
u847535452|p03238|0
codenet
Compile Error
303
v2_s476785049
s476785049
s476785049
p03238
p03238
u884161958
u884161958
1,548,898,190
2019-01-31T01:29:50
Main.java
import java.util.Scanner; public class Main(){ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(n==1 ? "Hello World" : a+b); } }
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u884161958|p03238|0
u884161958|p03238|0
codenet
Compile Error
265
v2_s995911151
s995911151
s995911151
p03238
p03238
u891161439
u891161439
1,539,138,575
2018-10-10T02:29:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n == 1)System.out.println("Hello World"); else{ int a = sc.nextInt(); int b = sc.nextInt(); Sytem.out.println(a+b); } }}
Main.java:10: error: package Sytem does not exist Sytem.out.println(a+b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03238|0
u891161439|p03238|0
codenet
Compile Error
281
v2_s048418636
s048418636
s048418636
p03238
p03238
u895560427
u895560427
1,538,878,507
2018-10-07T02:15:07
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old=1){System.out.print("Hello World"); }else{ if(old=2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); B=sc.nex...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
378
v2_s571148475
s571148475
s571148475
p03238
p03238
u895560427
u895560427
1,538,878,638
2018-10-07T02:17:18
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old=1){System.out.print("Hello World"); }else{ if(old=2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); B=sc.nex...
Main.java:9: error: incompatible types: int cannot be converted to boolean if(old=1){System.out.print("Hello World"); ^ Main.java:11: error: incompatible types: int cannot be converted to boolean if(old=2){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
380
v2_s781518352
s781518352
s781518352
p03238
p03238
u895560427
u895560427
1,538,878,695
2018-10-07T02:18:15
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int A,B; boolean old; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old=1){System.out.print("Hello World"); }else{ if(old=2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); ...
Main.java:9: error: incompatible types: int cannot be converted to boolean old=sc.nextInt(); ^ Main.java:10: error: incompatible types: int cannot be converted to boolean if(old=1){System.out.print("Hello World"); ^ Main.java:12: error: incompatible types: int cannot be converted to boolean i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
390
v2_s720310831
s720310831
s720310831
p03238
p03238
u895560427
u895560427
1,538,879,031
2018-10-07T02:23:51
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B,result; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old==1){System.out.print("Hello World"); }else{ if(old==2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); ...
Main.java:16: error: ';' expected result=A+B, ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
407
v2_s108074794
s108074794
s108074794
p03238
p03238
u895560427
u895560427
1,538,879,502
2018-10-07T02:31:42
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B,r; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old==1){System.out.print("Hello World"); }else{ if(old==2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); B=sc...
Main.java:16: error: cannot find symbol result=A+B; ^ symbol: variable result location: class ABC112A 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
396
v2_s299615955
s299615955
s299615955
p03238
p03238
u895560427
u895560427
1,538,879,957
2018-10-07T02:39:17
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B,r; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old==1){System.out.print("Hello World"); }else{ if(old==2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); B=sc...
Main.java:19: error: 'else' without 'if' }else{return;} ^ Main.java:20: error: 'else' without 'if' else{return;} ^ Main.java:23: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
433
v2_s248523597
s248523597
s248523597
p03238
p03238
u895560427
u895560427
1,538,880,014
2018-10-07T02:40:14
Main.java
import java.util.Scanner; class ABC112A{ public void main(String args[]){ int old,A,B,r; Scanner sc=new Scanner(System.in); System.err.print("old:"); old=sc.nextInt(); if(old==1){System.out.print("Hello World"); }else{ if(old==2){ System.err.print("A:"); A=sc.nextInt(); System.err.print("B:"); B=sc...
Main.java:19: error: 'else' without 'if' }else{return;} ^ Main.java:20: error: 'else' without 'if' else{return;} ^ Main.java:23: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u895560427|p03238|0
u895560427|p03238|0
codenet
Compile Error
433
v2_s233157113
s233157113
s233157113
p03238
p03238
u913110564
u913110564
1,538,881,119
2018-10-07T02:58:39
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); if(a==1){ System.out.println("Hello World!") } else{ System.out.println((sc.nextInt()+sc.nextInt())); } } }
Main.java:8: error: ';' expected System.out.println("Hello World!") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03238|0
u913110564|p03238|0
codenet
Compile Error
255
v2_s581763850
s581763850
s581763850
p03238
p03238
u913110564
u913110564
1,538,886,793
2018-10-07T04:33:13
Main.java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner s=new Scanner(System.in);long N=s.nextLong();long M=s.nextLong();long g=m/n; while(m%g!=0){g--;System.out.println(g);break;} } }
Main.java:4: error: cannot find symbol Scanner s=new Scanner(System.in);long N=s.nextLong();long M=s.nextLong();long g=m/n; ^ symbol: variable m location: class Main Main.java:4: error: cannot find symbol Scanner s=new Scanner(System....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p03238|0
u913110564|p03238|0
codenet
Compile Error
211
v2_s387531163
s387531163
s387531163
p03238
p03238
u980385246
u980385246
1,591,785,040
2020-06-10T10:30:40
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if(N==1){ System.out.println("Hello World"); }else{ int A = sc.nextInt(); int B = sc.nextInt(); System.out.pr...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980385246|p03238|2
u980385246|p03238|2
codenet
Compile Error
339
v2_s228259041
s228259041
s228259041
p03238
p03238
u995853796
u995853796
1,538,875,961
2018-10-07T01:32:41
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); char N = sc.next().charAt(0); if(N == '1'){ System.out.println("Hello World"); } else if(N == '2'){ int A = sc.nextInt(); int B = sc.nextInt(); System.out.println...
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
u995853796|p03238|0
u995853796|p03238|0
codenet
Compile Error
344
v2_s306128802
s306128802
s306128802
p03238
p03238
u995853796
u995853796
1,538,876,016
2018-10-07T01:33:36
Main.java
Scanner sc = new Scanner(System.in); char N = sc.next().charAt(0); if(N == '1'){ System.out.println("Hello World"); } else if(N == '2'){ int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(A + B); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner sc = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected if(N == '1'){ ^ Main.java:5: error: class, interface, enum, or r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u995853796|p03238|0
u995853796|p03238|0
codenet
Compile Error
289
v2_s196511475
s196511475
s196511475
p03239
p03239
u018916376
u018916376
1,562,955,560
2019-07-12T18:19:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(); int num = in.nextInt(); int timelimit = in.nextInt(); int costmin; for (int i = 0; i < num; i++) { int cost = in.nextInt(); int time = in.nextInt(); if (timelimit < time)...
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner in = 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
u018916376|p03239|0
u018916376|p03239|0
codenet
Compile Error
547
v2_s651726839
s651726839
s651726839
p03239
p03239
u018916376
u018916376
1,562,955,599
2019-07-12T18:19:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int num = in.nextInt(); int timelimit = in.nextInt(); int costmin; for (int i = 0; i < num; i++) { int cost = in.nextInt(); int time = in.nextInt(); if (timelimi...
Main.java:15: error: variable costmin might not have been initialized if (costmin == 0 || costmin > cost) { ^ Main.java:19: error: variable costmin might not have been initialized if (costmin == 0) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018916376|p03239|0
u018916376|p03239|0
codenet
Compile Error
556
v2_s991654964
s991654964
s991654964
p03239
p03239
u065842329
u065842329
1,538,876,814
2018-10-07T01:46:54
Main.java
import java.util.*; import java.io.*; class Main { public static void main( String[] args ) { Main m = new Main(); m.A(); } Scanner in = new Scanner(System.in); void B() { int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE; int cost = inf; for(int i = 0; i < n; i++) { int ci = in.ne...
Main.java:27: error: ';' expected eles System.out.printf("%d\n", cost); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065842329|p03239|0
u065842329|p03239|0
codenet
Compile Error
1,211
v2_s307607991
s307607991
s307607991
p03239
p03239
u065842329
u065842329
1,538,876,828
2018-10-07T01:47:08
Main.java
import java.util.*; import java.io.*; class Main { public static void main( String[] args ) { Main m = new Main(); m.B(); } Scanner in = new Scanner(System.in); void B() { int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE; int cost = inf; for(int i = 0; i < n; i++) { int ci = in.ne...
Main.java:27: error: ';' expected eles System.out.printf("%d\n", cost); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065842329|p03239|0
u065842329|p03239|0
codenet
Compile Error
1,211
v2_s624616539
s624616539
s624616539
p03239
p03239
u065842329
u065842329
1,538,876,847
2018-10-07T01:47:27
Main.java
import java.util.*; import java.io.*; class Main { public static void main( String[] args ) { Main m = new Main(); m.B(); } void B() { Scanner in = new Scanner(System.in); int n = in.nextInt(), t = in.nextInt(), inf = Integer.MAX_VALUE; int cost = inf; for(int i = 0; i < n; i++) { int ci = in.ne...
Main.java:26: error: ';' expected eles System.out.printf("%d\n", cost); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065842329|p03239|0
u065842329|p03239|0
codenet
Compile Error
1,211
v2_s593478146
s593478146
s593478146
p03239
p03239
u186270452
u186270452
1,538,879,312
2018-10-07T02:28:32
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Object> list = new ArrayList<>(); int finish =0; int N = sc.nextInt(); int T = sc.nextInt(); while( sc.next() !=null) { Map aa = new...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186270452|p03239|0
u186270452|p03239|0
codenet
Compile Error
635
v2_s876115812
s876115812
s876115812
p03239
p03239
u207391881
u207391881
1,541,023,968
2018-10-31T22:12: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(); int t = sc.nextInt(); int[][] a = new int[n][2]; for(int i=0; i<n; i++){ a[i][0] = sc.nextInt(); a[i][1] = sc.nextInt(); } } int min=1001; for(int i=0; i...
Main.java:17: error: illegal start of type for(int i=0; i<n; i++){ ^ Main.java:17: error: > or ',' expected for(int i=0; i<n; i++){ ^ Main.java:17: error: <identifier> expected for(int i=0; i<n; i++){ ^ Main.java:25: error: illegal start of type if(min == 1001){ ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207391881|p03239|0
u207391881|p03239|0
codenet
Compile Error
507
v2_s175644326
s175644326
s175644326
p03239
p03239
u249447366
u249447366
1,538,875,450
2018-10-07T01:24:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { new InputText(); Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int t = Integer.parseInt(sc.next()); int[] costAr = new int[n]; int[] timeAr = new int[...
Main.java:5: error: cannot find symbol new InputText(); ^ symbol: class InputText location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u249447366|p03239|0
u249447366|p03239|0
codenet
Compile Error
785
v2_s936847080
s936847080
s936847080
p03239
p03239
u276492340
u276492340
1,538,879,995
2018-10-07T02:39:55
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int t = sc.nextInt(); int ce = 0; int ci = 0; for(int a=1; a>=n; a++) { ...
Main.java:24: error: ';' expected break: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p03239|0
u276492340|p03239|0
codenet
Compile Error
661
v2_s787865542
s787865542
s787865542
p03239
p03239
u276492340
u276492340
1,538,880,112
2018-10-07T02:41:52
Main.java
public void solve(String[] args) { MyScanner scanner = new MyScanner(); int n = scanner.nextInt(); int t = scanner.nextInt(); int cst = 0; int tmp1=0; int tmp2=0; for (int i = 0;i<n;i++) { tmp1 = scanner.nextInt(); tmp2 = scanner.n...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void solve(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p03239|0
u276492340|p03239|0
codenet
Compile Error
650
v2_s226969358
s226969358
s226969358
p03239
p03239
u371791265
u371791265
1,594,215,394
2020-07-08T13:36:34
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); //取得 int N = sc.nextInt(); int T = sc.nextInt(); int min = 10001; for(int i=0;i<N;i++){ int cost = sc.nextInt(); if(sc.nextInt()<=T){ mi...
Main.java:13: error: ';' expected min = Math.min(min,cost) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03239|0
u371791265|p03239|0
codenet
Compile Error
498
v2_s237549606
s237549606
s237549606
p03239
p03239
u391386177
u391386177
1,540,503,729
2018-10-25T21:42:09
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int[] c = new int[N]; int[] t = new int[N]; int p = 1100; for(int i = 0; i < N; i++){ c[i] = sc.nextInt...
Main.java:18: error: ')' expected if((t[i] < T) && (c[i] < p){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u391386177|p03239|0
u391386177|p03239|0
codenet
Compile Error
527
v2_s832252558
s832252558
s832252558
p03239
p03239
u391386177
u391386177
1,540,505,361
2018-10-25T22:09:21
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int[] c = new int[N]; int[] t = new int[N]; int p = 1100; for(int i = 0; i < N; i++){ c[i] = sc.nextInt...
Main.java:23: error: illegal start of type if(p == 1100){ ^ Main.java:23: error: <identifier> expected if(p == 1100){ ^ Main.java:25: error: illegal start of type }else{ ^ Main.java:29: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u391386177|p03239|0
u391386177|p03239|0
codenet
Compile Error
536
v2_s998208534
s998208534
s998208534
p03239
p03239
u499009346
u499009346
1,540,479,673
2018-10-25T15:01:13
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner (System.in); int N = sc.nextInt(); int T = sc.nextInt(); int[] c = new int [N]; int[] t = new int[N]; int p = 1100; for (int i = 0; i < N ; i++) { int j = i +...
Main.java:18: error: cannot find symbol j = i +1; ^ symbol: variable j location: class Main Main.java:19: error: cannot find symbol if (t [j] <= T) { ^ symbol: variable j location: class Main Main.java:20: error: cannot find symbol if (c[j] < p) { ^ symbol: variable j ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03239|0
u499009346|p03239|0
codenet
Compile Error
587
v2_s411415418
s411415418
s411415418
p03239
p03239
u499009346
u499009346
1,540,505,851
2018-10-25T22:17:31
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main (String[] args){ Scanner sc = new Scanner (System.in); int N = sc.nextInt(); int T = sc.nextInt(); c[] = new int[N]; t[] = new int[N]; int p = 1001; for (int i = 0; i < N; i++) { c[i] = sc.nextInt();...
Main.java:9: error: not a statement c[] = new int[N]; ^ Main.java:9: error: ';' expected c[] = new int[N]; ^ Main.java:9: error: not a statement c[] = new int[N]; ^ Main.java:10: error: not a statement t[] = new int[N]; ^ Main.java:10: error: ';' expected t[] = new int[N]; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499009346|p03239|1
u499009346|p03239|0
codenet
Compile Error
566
v2_s445210320
s445210320
s445210320
p03239
p03239
u533482278
u533482278
1,539,978,884
2018-10-19T19:54:44
Main.java
class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int time = sc.nextInt(); int c[] = new int[n]; int t[] = new int[n]; int min = -1; for (int i = 0; i < n; i++) { c[i] = sc.nextInt(); t[i] = sc.nextInt(); if (t[i] <= time && (c[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
u533482278|p03239|0
u533482278|p03239|0
codenet
Compile Error
411
v2_s325446277
s325446277
s325446277
p03239
p03239
u533482278
u533482278
1,539,978,925
2018-10-19T19:55:25
Main.java
import Java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int time = sc.nextInt(); int c[] = new int[n]; int t[] = new int[n]; int min = -1; for (int i = 0; i < n; i++) { c[i] = sc.nextInt(); t[i] = sc.nextInt(); ...
Main.java:1: error: package Java.util does not exist import Java.util.Scanner; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u533482278|p03239|0
u533482278|p03239|0
codenet
Compile Error
438
v2_s611085262
s611085262
s611085262
p03239
p03239
u547167033
u547167033
1,566,411,600
2019-08-21T18:20:00
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 T = sc.nextInt(); int[] c = new int[n]; int[] t = new int[n]; int min = 100000; for(int i = 0;i < n;i++){ c[i] = sc.nextInt(); ...
Main.java:7: error: cannot find symbol int[] c = new int[n]; ^ symbol: variable n location: class Main Main.java:8: error: cannot find symbol int[] t = new int[n]; ^ symbol: variable n location: class Main Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03239|0
u547167033|p03239|0
codenet
Compile Error
531
v2_s910375961
s910375961
s910375961
p03239
p03239
u582940224
u582940224
1,538,878,905
2018-10-07T02:21:45
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,T,C,i,c,t,min; Scanner sc = new Scanner(System.in); n = sc.nextInt(); T = sc.nextInt(); while(i < n){ t = sc.nextInt(); c = sc.nextINt(); if(t <= T){ min = c; } } return; } }
Main.java:12: error: cannot find symbol c = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03239|0
u582940224|p03239|0
codenet
Compile Error
293
v2_s197344774
s197344774
s197344774
p03239
p03239
u582940224
u582940224
1,538,879,014
2018-10-07T02:23:34
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,T,C,i,c,t,min; i = 0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); T = sc.nextInt(); while(i < n){ t = sc.nextInt(); c = sc.nextINt(); if(t <= T){ min = c; } i++; } return;...
Main.java:13: error: cannot find symbol c = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03239|0
u582940224|p03239|0
codenet
Compile Error
325
v2_s240140100
s240140100
s240140100
p03239
p03239
u582940224
u582940224
1,538,879,155
2018-10-07T02:25:55
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,T,i,c,t,min; i = 0; Scanner sc = new Scanner(System.in); n = sc.nextInt(); T = sc.nextInt(); while(i < n){ t = sc.nextInt(); c = sc.nextINt(); if(t <= T){ min = c; } i++; } Syste...
Main.java:13: error: cannot find symbol c = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03239|0
u582940224|p03239|0
codenet
Compile Error
354
v2_s893900758
s893900758
s893900758
p03239
p03239
u582940224
u582940224
1,538,879,618
2018-10-07T02:33:38
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,T,i,c,t,min,temp; i = 0; temp = 1001; Scanner sc = new Scanner(System.in); n = sc.nextInt(); T = sc.nextInt(); while(i < n){ t = sc.nextInt(); c = sc.nextINt(); if(t <= T && c < temp){ ...
Main.java:14: error: cannot find symbol c = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03239|0
u582940224|p03239|0
codenet
Compile Error
436
v2_s903631665
s903631665
s903631665
p03239
p03239
u582940224
u582940224
1,538,879,738
2018-10-07T02:35:38
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { int n,T,i,c,t,min,temp; i = 0; temp = 1001; Scanner sc = new Scanner(System.in); n = sc.nextInt(); T = sc.nextInt(); while(i < n){ t = sc.nextInt(); c = sc.nextInt(); if(t <= T && c < temp){ ...
Main.java:20: error: variable c might not have been initialized min = c; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03239|0
u582940224|p03239|0
codenet
Compile Error
436
v2_s304506729
s304506729
s304506729
p03239
p03239
u659156129
u659156129
1,594,215,515
2020-07-08T13:38:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int T = scn.nextInt(); int x = 1000000; int y = 0; int[] a = new int[n*2]; for(int i=0; i<a.length; ++i){ a[i] = scn.nex...
Main.java:12: error: cannot find symbol a[i] = scn.nextInt; ^ symbol: variable nextInt location: variable scn of type Scanner Main.java:21: error: package Sytem does not exist Sytem.out.println(y); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03239|0
u659156129|p03239|0
codenet
Compile Error
562
v2_s311168488
s311168488
s311168488
p03239
p03239
u686064770
u686064770
1,552,673,706
2019-03-15T18:15:06
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 t = sc.nextInt(); int minCost = 1001; for(int i=0; i<n; i++){ int cost = sc.nextInt(); int time = sc.nextInt...
Main.java:12: error: illegal character: '\uff1d' if(t >? time){ ^ Main.java:12: error: not a statement if(t >? time){ ^ Main.java:12: error: ';' expected if(t >? time){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686064770|p03239|0
u686064770|p03239|0
codenet
Compile Error
532
v2_s238966843
s238966843
s238966843
p03239
p03239
u918923596
u918923596
1,594,128,454
2020-07-07T13:27:34
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 T = sc.nextInt(); int result = 1001; for (int i=0;i<n;i++){ int c = sc.nextInt(); if (sc.nextInt()...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p03239|0
u918923596|p03239|0
codenet
Compile Error
510
v2_s309639444
s309639444
s309639444
p03239
p03239
u934782869
u934782869
1,596,112,938
2020-07-30T12:42:18
Main099.java
mport java.util.Scanner; public class Main099 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int T = sc.nextInt(); int[] c = new int[n]; int[] t = new int[n]; int min = Integer.MAX_VALUE; int ans = Integ...
Main099.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934782869|p03239|0
u934782869|p03239|0
codenet
Compile Error
713
v2_s413089202
s413089202
s413089202
p03239
p03239
u934782869
u934782869
1,596,112,961
2020-07-30T12:42:41
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int T = sc.nextInt(); int[] c = new int[n]; int[] t = new int[n]; int min = Integer.MAX_VALUE; int ans = Integer....
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934782869|p03239|0
u934782869|p03239|0
codenet
Compile Error
710
v2_s848998072
s848998072
s848998072
p03239
p03239
u980960666
u980960666
1,538,876,549
2018-10-07T01:42:29
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int t = sc.nextInt(); int c1; int t1; int cmin = 1024; for(int i=0; i<n-1; i++){ c1 = sc.nextInt(); t1 = sc.nextInt(); if(t1 <= time)...
Main.java:13: error: cannot find symbol if(t1 <= time){ ^ symbol: variable time location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980960666|p03239|0
u980960666|p03239|0
codenet
Compile Error
479
v2_s132137454
s132137454
s132137454
p03240
p03240
u042370792
u042370792
1,566,767,389
2019-08-25T21:09:49
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { void solve() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] x = new int[N]; int[] y = new int[N]; int[] h = new int[N]; for (int i = 0; i < N; i++) { x[i] = sc.nex...
Main.java:44: error: cannot find symbol new Main.solve(); ^ symbol: class solve location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042370792|p03240|0
u042370792|p03240|0
codenet
Compile Error
1,402
v2_s566198721
s566198721
s566198721
p03240
p03240
u088330160
u088330160
1,566,675,810
2019-08-24T19:43:30
Main.java
public class Main { public static void main(String[] args) { InputReader sc = new InputReader(System.in); int n = sc.nextInt(); int[][] table = new int[n][4]; for(int i = 0; i < n; i++){ table[i][0] = sc.nextInt(); table[i][1] = sc.nextInt(); table[i][2] = sc.nextInt(); } ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088330160|p03240|0
u088330160|p03240|0
codenet
Compile Error
933
v2_s106605893
s106605893
s106605893
p03240
p03240
u091010228
u091010228
1,556,787,295
2019-05-02T08:54:55
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 [] x = new int[n]; int[] y = new int[n]; int[] h = new int[n]; int H = 0, a = 0; for (int i = 0; i < n; i++) { x[i] = sc.nextInt(); y[i] = sc.nextInt...
Main.java:34: error: reached end of file while parsing ????????? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u091010228|p03240|0
u091010228|p03240|0
codenet
Compile Error
811
v2_s078032978
s078032978
s078032978
p03240
p03240
u125928177
u125928177
1,539,199,178
2018-10-10T19:19:38
Main2.java
import java.io.*; import java.util.ArrayList; import java.util.Comparator; import java.util.jar.Pack200; class Point extends Object{ int x; int y; int h; public Point(int x,int y, int h) { // TODO 自動生成されたコンストラクター・スタブ this.x=x; this.y=y; this.h=h; } @Override public String toString() { // TODO 自動生成された...
Main2.java:4: error: cannot find symbol import java.util.jar.Pack200; ^ symbol: class Pack200 location: package java.util.jar 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u125928177|p03240|1
u125928177|p03240|1
codenet
Compile Error
3,286
v2_s803915568
s803915568
s803915568
p03240
p03240
u324881146
u324881146
1,585,106,702
2020-03-25T03:25:02
Main.java
import java.*; public class Main { public static final long mod = (long)1e9+7; public static final long INF = Long.MAX_VALUE/10; public static final int inf = Integer.MAX_VALUE/10; static void solve(InputReader in, PrintWriter out){ int n = in.ni(), x, y, h, H; pair sp = new pair(); ...
Main.java:7: error: cannot find symbol static void solve(InputReader in, PrintWriter out){ ^ symbol: class PrintWriter location: class Main Main.java:46: error: cannot find symbol private BufferedReader br; ^ symbol: class BufferedReader loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p03240|0
u324881146|p03240|0
codenet
Compile Error
2,897
v2_s469531466
s469531466
s469531466
p03240
p03240
u324881146
u324881146
1,585,106,765
2020-03-25T03:26:05
Main.java
import java.io.*; import java.util.*; public class Main { public static final long mod = (long)1e9+7; public static final long INF = Long.MAX_VALUE/10; public static final int inf = Integer.MAX_VALUE/10; static void solve(InputReader in, PrintWriter out){ int n = in.ni(), x, y, h, H; pa...
Main.java:33: error: variable h might not have been initialized out.printf("%d %d %d", i, j, h); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p03240|0
u324881146|p03240|0
codenet
Compile Error
2,921
v2_s085305387
s085305387
s085305387
p03240
p03240
u345932819
u345932819
1,553,047,358
2019-03-20T02:02:38
Main.java
import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) throws IOException { new Main().solve(); } private void solve() throws IOException { try { // solveA(); // solveB(); ...
Main.java:9: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:13: error: cannot find symbol private void solve() throws IOException { ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p03240|0
u345932819|p03240|0
codenet
Compile Error
4,807
v2_s601293066
s601293066
s601293066
p03240
p03240
u387806792
u387806792
1,539,066,352
2018-10-09T06:25:52
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[] xA = new int[n]; int[] yA = new int[n]; int[] hA = new int[n]; for (int i = 0; i < n; i++) { xA[i] = sc....
Main.java:21: error: cannot find symbol int h = Math.Max(hA[i] + Math.abs(xA[i] - x) + Math.abs(yA[i] - y), 0); ^ symbol: method Max(int,int) location: class Math Main.java:30: error: cannot find symbol } while (h == Math.Max(hA[i] + Math.abs(xA[i] - x) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387806792|p03240|0
u387806792|p03240|0
codenet
Compile Error
1,004
v2_s425068619
s425068619
s425068619
p03240
p03240
u387806792
u387806792
1,539,067,160
2018-10-09T06:39:20
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[] xA = new int[n]; int[] yA = new int[n]; int[] hA = new int[n]; for (int i = 0; i < n; i++) { xA[i] = sc....
Main.java:22: error: cannot find symbol if (h > MAth.abs(xA[i] - x) + Math.abs(yA[i] - y)) ^ symbol: variable MAth location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387806792|p03240|0
u387806792|p03240|0
codenet
Compile Error
1,103
v2_s206007398
s206007398
s206007398
p03240
p03240
u434662823
u434662823
1,538,880,696
2018-10-07T02:51:36
Main.java
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] x = new int[N]; int[] y = new int[N]; long[] h = new long[N]; int cnth = 0; for(int i = 0; i < N; i++){ ...
Main.java:54: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03240|0
u434662823|p03240|0
codenet
Compile Error
1,481
v2_s918526130
s918526130
s918526130
p03240
p03240
u480847874
u480847874
1,548,342,155
2019-01-24T15:02:35
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.*; public class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { ...
Main.java:5: error: class FastScanner is public, should be declared in a file named FastScanner.java public class FastScanner { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480847874|p03240|1
u480847874|p03240|1
codenet
Compile Error
3,472
v2_s279889457
s279889457
s279889457
p03240
p03240
u480847874
u480847874
1,548,342,195
2019-01-24T15:03:15
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.*; public class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNex...
Main.java:6: error: class FastScanner is public, should be declared in a file named FastScanner.java public class FastScanner { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480847874|p03240|1
u480847874|p03240|1
codenet
Compile Error
3,513
v2_s934783588
s934783588
s934783588
p03240
p03240
u480847874
u480847874
1,548,342,279
2019-01-24T15:04:39
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); int N = sc.nextInt(); List<Integer[]> values = new ArrayList<Integer[]>(); ...
Main.java:50: error: class FastScanner is public, should be declared in a file named FastScanner.java public class FastScanner { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480847874|p03240|1
u480847874|p03240|1
codenet
Compile Error
3,514
v2_s254201699
s254201699
s254201699
p03240
p03240
u495186373
u495186373
1,579,252,629
2020-01-17T09:17:09
Main.java
import java.io.*; import java.util.*; import java.math.*; import java.awt.Point; public class Main { //static final long MOD = 998244353L; //static final long INF = -1000000000000000007L; static final long MOD = 1000000007L; //static final int INF = 1000000007; public static void main(String[] args) { FastSca...
Main.java:23: error: cannot find symbol minH = Math.max(h,minH); ^ symbol: variable h location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495186373|p03240|0
u495186373|p03240|0
codenet
Compile Error
3,718
v2_s648801593
s648801593
s648801593
p03240
p03240
u573545768
u573545768
1,538,879,922
2018-10-07T02:38:42
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(); String result =""; switch (n){ case 2: int x = sc.nextInt(); int y = sc.nextInt(); int h = sc.nextInt(); int xx = sc.ne...
Main.java:35: error: variable x is already defined in method main(String[]) int x = sc.nextInt(); ^ Main.java:36: error: variable y is already defined in method main(String[]) int y = sc.nextInt(); ^ Main.java:37: error: variable h is already defined in method main(String[]) int h = sc.nextI...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u573545768|p03240|0
u573545768|p03240|0
codenet
Compile Error
1,052
v2_s313926538
s313926538
s313926538
p03240
p03240
u575909439
u575909439
1,545,628,282
2018-12-24T05:11:22
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 flag = true; for (int k = 1; k < n; k++) { int x = sc.nextInt(); int y = sc.nextInt(); int h = sc.nextInt(); if (h == 0) { continue; } if (flag...
Main.java:8: error: incompatible types: boolean cannot be converted to int int flag = true; ^ Main.java:16: error: incompatible types: int cannot be converted to boolean if (flag) { ^ Main.java:17: error: cannot find symbol py[i][j] = abs(x, i) + abs(y, j) + h; ^ symbol: variable py...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575909439|p03240|0
u575909439|p03240|0
codenet
Compile Error
951
v2_s162256190
s162256190
s162256190
p03240
p03240
u725859287
u725859287
1,541,300,685
2018-11-04T03:04:45
Main.java
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] xyh = new int[300]; for (int i=0; i<n; i++) { xyh[i*3] = sc.nextInt(); xyh[i*3+1] = sc.nextInt(); xyh[i*3+2] = sc.nextInt(); } ...
Main.java:18: error: no suitable method found for abs(int,int) int h = Math.abs(i, xyh[0]) + Math.abs(j, xyh[1]) + xyh[2]; ^ method Math.abs(int) is not applicable (actual and formal argument lists differ in length) method Math.abs(long) is not applicable (actual and formal argum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u725859287|p03240|0
u725859287|p03240|0
codenet
Compile Error
699
v2_s028413227
s028413227
s028413227
p03240
p03240
u725859287
u725859287
1,541,300,777
2018-11-04T03:06:17
Main.java
import java.util.*; import static java.lang.Math.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] xyh = new int[300]; for (int i=0; i<n; i++) { xyh[i*3] = sc.nextInt(); xyh[i*3+1] = sc.nextInt(); xyh[i*3+2] = sc.nextInt...
Main.java:18: error: no suitable method found for abs(int,int) int h = Math.abs(i, xyh[0]) + Math.abs(j, xyh[1]) + xyh[2]; ^ method Math.abs(int) is not applicable (actual and formal argument lists differ in length) method Math.abs(long) is not applicable (actual and formal argum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u725859287|p03240|0
u725859287|p03240|0
codenet
Compile Error
708
v2_s310080621
s310080621
s310080621
p03240
p03240
u735295316
u735295316
1,551,937,379
2019-03-07T05:42:59
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int nextInt () {return Integer.parseInt(sc.next());} public static void main(String[] args) { int N = nextInt(); int[][] values = new int[N][3]; for (int i = 0; i < N; i++) { va...
Main.java:37: error: variable H might not have been initialized int estimatedH = Math.max((H - Math.abs(x - centerPosi[0]) - Math.abs(y - centerPosi[1])), 0); ^ Main.java:41: error: variable H might not have been initialized System.o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u735295316|p03240|0
u735295316|p03240|0
codenet
Compile Error
1,438
v2_s094913361
s094913361
s094913361
p03240
p03240
u784448849
u784448849
1,538,878,203
2018-10-07T02:10:03
Main.java
import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Set; import java.util.HashSet; public class Main { public static void main(String[] args) throws IOException { try...
Main.java:27: error: unreachable statement return;; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03240|0
u784448849|p03240|0
codenet
Compile Error
4,160
v2_s093027031
s093027031
s093027031
p03240
p03240
u784448849
u784448849
1,546,320,146
2019-01-01T05:22:26
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { new Main().solve(sc); } } void solve(Scanner sc) { int n = sc.nextInt(); Point[] ps = new Point[n]; ...
Main.java:51: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03240|1
u784448849|p03240|1
codenet
Compile Error
1,673
v2_s727988375
s727988375
s727988375
p03240
p03240
u786981739
u786981739
1,573,016,079
2019-11-06T04:54:39
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) { try (CustomReader in = new CustomReader()) { new Main().execute(in); } catch (IOException e) { ...
Main.java:59: error: illegal start of expression static class CustomReader extends BufferedReader { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786981739|p03240|1
u786981739|p03240|1
codenet
Compile Error
3,238
v2_s273046367
s273046367
s273046367
p03240
p03240
u786981739
u786981739
1,573,016,103
2019-11-06T04:55:03
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) { try (CustomReader in = new CustomReader()) { new Main().execute(in); } catch (IOException e) { ...
Main.java:43: error: cannot find symbol if ((ch[i] == 0 && (Math.abs(x - cx[i]) + Math.abs(y - cy[i]) < h)) ^ symbol: variable h location: class Main Main.java:44: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786981739|p03240|1
u786981739|p03240|1
codenet
Compile Error
3,052
v2_s668523721
s668523721
s668523721
p03240
p03240
u948522631
u948522631
1,588,901,349
2020-05-08T01:29:09
Main.java
import sys n = int(input()) xyh = [] for _ in range(n): xyh.append(list(map(int,input().split()))) for Cx in range(101): for Cy in range(101): for x,y,h in xyh: if h == 0: continue H = h + abs(x - Cx) + abs(y - Cy) break ok = True for x,y,h in xyh: if H - abs(x - Cx) -abs(y - Cy) != h: ok...
Main.java:1: error: '.' expected import sys ^ Main.java:2: error: ';' expected n = int(input()) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u948522631|p03240|0
u948522631|p03240|0
codenet
Compile Error
403
v2_s126178219
s126178219
s126178219
p03241
p03241
u108617242
u108617242
1,538,881,097
2018-10-07T02:58:17
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); int ans = 1; if(N == 1){ System.out.println(M); }else{ int thr = Math.ceil((double)M / N); for(int i = 2; i <= ...
Main.java:12: error: incompatible types: possible lossy conversion from double to int int thr = Math.ceil((double)M / N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u108617242|p03241|0
u108617242|p03241|0
codenet
Compile Error
431
v2_s728344966
s728344966
s728344966
p03241
p03241
u273816974
u273816974
1,589,593,560
2020-05-16T01:46:00
Main.java
5 22import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int n = sc.nextInt(); long tmp1 = n/m; long tmp2 = n%m; System.out.println(gcd(...
Main.java:1: error: class, interface, enum, or record expected 5 22import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03241|1
u273816974|p03241|1
codenet
Compile Error
558
v2_s466923884
s466923884
s466923884
p03241
p03241
u273816974
u273816974
1,589,594,162
2020-05-16T01:56:02
Main.java
2 9import java.util.*; public class Main { static int border; public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); border = m / n; List<Long...
Main.java:1: error: class, interface, enum, or record expected 2 9import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03241|1
u273816974|p03241|1
codenet
Compile Error
1,025
v2_s840014679
s840014679
s840014679
p03241
p03241
u289230585
u289230585
1,538,953,492
2018-10-07T23:04:52
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long m = sc.nextLong(); for (int i = m/n; i >= 2 ; i--) { if (m%i == 0) { Syste...
Main.java:10: error: incompatible types: possible lossy conversion from long to int for (int i = m/n; i >= 2 ; i--) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289230585|p03241|1
u289230585|p03241|1
codenet
Compile Error
414
v2_s479435829
s479435829
s479435829
p03241
p03241
u292252214
u292252214
1,538,878,877
2018-10-07T02:21:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int answer; for(int i=N; i<=M; i++){ if(M%i==0){ answer = M/i; break; } } System.out.println(answer); return; } }
Main.java:14: error: variable answer might not have been initialized System.out.println(answer); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292252214|p03241|0
u292252214|p03241|0
codenet
Compile Error
305
v2_s280585743
s280585743
s280585743
p03241
p03241
u327244943
u327244943
1,538,878,726
2018-10-07T02:18:46
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String firstLine[] = scanner.nextLine().split(" ", 2); int n = Integer.parseInt(firstLine[0]); long m = Long.parseLong(firstLine[1]); long max =...
Main.java:19: error: cannot find symbol if (sum > m && (m - sum) % base == 0) { ^ symbol: variable base location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327244943|p03241|0
u327244943|p03241|0
codenet
Compile Error
647