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_s863978131
s863978131
s863978131
p02898
p02898
u720420025
u720420025
1,586,171,033
2020-04-06T11:03:53
BRollerCoaster.java
import java.util.Scanner; public class BRollerCoaster { static Scanner reader =new Scanner (System.in); public static void main(String[] args) { int arr[]=new int [101010]; int k; int n; int cnt=0; n=reader.nextInt(); k=reader.nextInt(); for(int i=0;i<n;i++) ...
BRollerCoaster.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720420025|p02898|0
u720420025|p02898|0
codenet
Compile Error
526
v2_s488474090
s488474090
s488474090
p02898
p02898
u760718569
u760718569
1,571,875,696
2019-10-24T00:08:16
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt{); int c[] = new int[a]; int counter = 0; for(int i = 0;i < c.length;i++){ c[i] = nextInt(); if(c[i]...
Main.java:6: error: ';' expected int b = sc.nextInt{); ^ Main.java:6: error: illegal start of expression int b = sc.nextInt{); ^ Main.java:17: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02898|0
u760718569|p02898|0
codenet
Compile Error
418
v2_s086230319
s086230319
s086230319
p02898
p02898
u760718569
u760718569
1,571,875,748
2019-10-24T00:09:08
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c[] = new int[a]; int counter = 0; for(int i = 0;i < c.length;i++){ c[i] = nextInt(); if(c[i]...
Main.java:10: error: cannot find symbol c[i] = nextInt(); ^ symbol: method nextInt() location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02898|0
u760718569|p02898|0
codenet
Compile Error
418
v2_s877628044
s877628044
s877628044
p02898
p02898
u787005274
u787005274
1,570,577,683
2019-10-08T23:34:43
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int N = sc.nextInt(); int h[] = new int[N]; int s = 0; for(int i = 0; i < 500; i++){ h[i] = sc.nextInt(); } for(int j = 0; j < 500; j++){ ...
Main.java:14: error: cannot find symbol if(h[i] > K){ ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02898|0
u787005274|p02898|0
codenet
Compile Error
381
v2_s909532747
s909532747
s909532747
p02898
p02898
u787005274
u787005274
1,573,098,750
2019-11-07T03:52:30
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 k = sc.nextInt(); int h[] = new int[n]; int count = 0; for(int i = 0; i < n; i++){ h[i] = sc.nextInt(); if(h[i] >= k){ count++; ...
Main.java:6: error: ';' expected int n - sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02898|2
u787005274|p02898|2
codenet
Compile Error
367
v2_s051801901
s051801901
s051801901
p02898
p02898
u787005274
u787005274
1,573,098,782
2019-11-07T03:53:02
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 k = sc.nextInt(); int h[] = new int[n]; int count = 0; for(int i = 0; i < n; i++){ h[i] = sc.nextInt(); if(h[i] >= k){ count++; ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02898|2
u787005274|p02898|2
codenet
Compile Error
331
v2_s200917433
s200917433
s200917433
p02898
p02898
u811622556
u811622556
1,594,226,232
2020-07-08T16:37:12
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int friends = sc.nextInt(); int heigth = sc.nextInt(); int fh[] = new int[friends]; int count = 0; for(int i = 0; i < friends; i++){ fh[i] = sc.nextIn...
Main.java:12: error: cannot find symbol if(fh[i] >= height){ ^ symbol: variable height location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u811622556|p02898|0
u811622556|p02898|0
codenet
Compile Error
443
v2_s417332252
s417332252
s417332252
p02898
p02898
u880909682
u880909682
1,573,081,430
2019-11-06T23:03:50
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new.Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < n ; i++) { a[i] = sc.nextInt(); } int c = 0; for(int i =0 ; i < n ; i++) { ...
Main.java:4: error: <identifier> expected Scanner sc = new.Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02898|0
u880909682|p02898|0
codenet
Compile Error
370
v2_s776992242
s776992242
s776992242
p02898
p02898
u908039151
u908039151
1,569,719,371
2019-09-29T01:09:31
Main.java
import java.io.PrintStream; import java.util.Scanner; public class Main { static final PrintStream out = System.out; static final Scanner sc = new Scanner(System.in); static final long Mod = 1000_000_007L; public static void main(String[] args) { Main main = new Main(); main.solve(); System.exit(0); } voi...
Main.java:17: error: cannot find symbol int[] h = nextIntArray(N); ^ symbol: method nextIntArray(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u908039151|p02898|0
u908039151|p02898|0
codenet
Compile Error
671
v2_s324719800
s324719800
s324719800
p02898
p02898
u914911051
u914911051
1,570,033,380
2019-10-02T16:23:00
Main2.java
import java.util.*; import java.util.Collections; // sorting use import java.io.*; import static java.lang.System.*; public class Main2 { public static void main(String args[]) { int i, cnt = 0; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int h[] = new int[n]; for (i = 0...
Main2.java:21: error: reached end of file while parsing out.println(cnt); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u914911051|p02898|0
u914911051|p02898|0
codenet
Compile Error
431
v2_s634618147
s634618147
s634618147
p02899
p02899
u001317235
u001317235
1,588,211,816
2020-04-30T01:56:56
Main.java
public class Main { public static void main(String[] args) { //コード Scanner scanner = new Scanner(System.in); Integer x = Integer.parseInt(scanner.next()); Map<Integer, Integer> map = new HashMap<>(); for(int i=1; i <= x; i++) { map.put(Integer.parseInt(scanner.ne...
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 Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001317235|p02899|0
u001317235|p02899|0
codenet
Compile Error
504
v2_s717003277
s717003277
s717003277
p02899
p02899
u011996008
u011996008
1,584,044,048
2020-03-12T20:14:08
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; for (int i=0; i<N; i++) { a[sc.nextInt()-1] = i; } for (a : A) { System.out.println(a + " "); } } }
Main.java:12: error: bad initializer for for-loop for (a : A) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02899|0
u011996008|p02899|0
codenet
Compile Error
280
v2_s685584243
s685584243
s685584243
p02899
p02899
u011996008
u011996008
1,584,044,121
2020-03-12T20:15:21
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; for (int i=1; i<=N; i++) { a[sc.nextInt()-1] = i; } for (int a : A) { System.out.println(a + " "); } } }
Main.java:10: error: cannot find symbol a[sc.nextInt()-1] = i; ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02899|0
u011996008|p02899|0
codenet
Compile Error
285
v2_s445483920
s445483920
s445483920
p02899
p02899
u015418292
u015418292
1,572,047,485
2019-10-25T23:51:25
Main.java
import java.util.Scanner; public class Main throws Exception { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i = 0; i < a.length; i ++) { a[i] = sc.nextInt(); } int count = 1; do { for(int...
Main.java:3: error: '{' expected public class Main throws Exception { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02899|0
u015418292|p02899|0
codenet
Compile Error
469
v2_s723546740
s723546740
s723546740
p02899
p02899
u037681517
u037681517
1,569,726,170
2019-09-29T03:02:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Map<Integer, Integer> mMap = new HashMap<Integer, Integer>(); for (int i = 0;...
Main.java:5: error: illegal start of expression public static void main(String[] args) { ^ Main.java:24: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037681517|p02899|0
u037681517|p02899|0
codenet
Compile Error
671
v2_s003761034
s003761034
s003761034
p02899
p02899
u110653681
u110653681
1,571,036,882
2019-10-14T07:08:02
Main.java
#include<iostream> #include<map> #include<string> #include<vector> #include<algorithm> using namespace std; int main(){ int n; cin>>n; vector<int>a(n); map<int,int>b; for(int i=0;i<n;i++){ cin>>a[i]; b[a[i]]=i; } for(int i=0;i<n;i++){ cout<<b[i+1]+1<<endl; } ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<map> ^ Main.java:3: error: illegal character: '#' #include<string> ^ Main.java:4: error: illegal character: '#' #include<vector> ^ Main.java:5: error: illegal character: '#' #include<algorithm> ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110653681|p02899|0
u110653681|p02899|0
codenet
Compile Error
331
v2_s318941699
s318941699
s318941699
p02899
p02899
u137120346
u137120346
1,582,946,328
2020-02-29T03:18:48
Main.java
import java.util.*.; class problem { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int arr [] = new int [n]; for(int i=0; i<arr.length; i++) { arr [i] = sc.nextInt(); } int ans [] = new int [n]; for(int i=0; i<arr.length; i++) { ans[arr[i]-1] = i+1; ...
Main.java:1: error: ';' expected import java.util.*.; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137120346|p02899|1
u137120346|p02899|1
codenet
Compile Error
406
v2_s312141004
s312141004
s312141004
p02899
p02899
u139533511
u139533511
1,570,693,049
2019-10-10T07:37:29
Main.java
import java.util.Scanner; /** * * @author HP */ public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=0; if(sc.hasNextInt()) { N=sc.nextInt(); } int[]Arr=new int[N]; for(int i=0;i<N;i++) ...
Main.java:22: error: cannot find symbol ArrayList<Integer> Arr1=new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:22: error: cannot find symbol ArrayList<Integer> Arr1=new ArrayList<>(); ^ symbol: class ArrayList location:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139533511|p02899|0
u139533511|p02899|0
codenet
Compile Error
841
v2_s200945768
s200945768
s200945768
p02899
p02899
u139533511
u139533511
1,570,693,743
2019-10-10T07:49:03
Main.java
public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int N=0; if(sc.hasNextInt()) { N=sc.nextInt(); } int[]Arr=new int[N]; for(int i=0;i<N;i++) { Arr[i]=sc.nextInt(); } ...
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
u139533511|p02899|0
u139533511|p02899|0
codenet
Compile Error
597
v2_s756984878
s756984878
s756984878
p02899
p02899
u165298656
u165298656
1,585,263,192
2020-03-26T22:53:12
Main.java
public class Main{ public static void main(String[] args) throws Exception { Scanner sc =new Scanner(System.in); int N=sc.nextInt(); int[] A =new int[N]; for(int i=0;i<N;i++){ A[i] = sc.nextInt(); } sc.close(); int k = 1; for(int i=0;i<N;...
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
u165298656|p02899|0
u165298656|p02899|0
codenet
Compile Error
546
v2_s172699833
s172699833
s172699833
p02899
p02899
u209464686
u209464686
1,571,818,302
2019-10-23T08:11:42
Main.java
public class Main { public static void main(String[] args) { // write your code here Scanner scr = new Scanner(System.in); int s =scr.nextInt(); int[] ip= new int[s]; for(int i=0;i<s;i++){ ip[i]= scr.nextInt(); } int[] op= new int[s]; for(int i=...
Main.java:6: error: cannot find symbol Scanner scr = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scr = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209464686|p02899|0
u209464686|p02899|0
codenet
Compile Error
410
v2_s783337384
s783337384
s783337384
p02899
p02899
u212904724
u212904724
1,574,178,840
2019-11-19T15:54:00
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[N]; System.out.println(out); sc.close(); } }
Main.java:10: error: cannot find symbol System.out.println(out); ^ symbol: variable out location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212904724|p02899|0
u212904724|p02899|0
codenet
Compile Error
227
v2_s816788770
s816788770
s816788770
p02899
p02899
u212904724
u212904724
1,574,178,988
2019-11-19T15:56:28
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[N]; String out = ""; for(int i = 0; i < N; i++) { A[sc.nextInt()-1] = i + 1; } for(int i = 0; i < N; i++) { Ststem.out.println(A[i]);...
Main.java:14: error: package Ststem does not exist Ststem.out.println(A[i]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212904724|p02899|0
u212904724|p02899|0
codenet
Compile Error
372
v2_s623929232
s623929232
s623929232
p02899
p02899
u223247368
u223247368
1,572,757,363
2019-11-03T05:02:43
Main.java
Scanner s = new Scanner(System.in); int n = s.nextInt(); String str = s.nextLine(); // String str = "2 3 1"; int[] arr = new int[n+1]; arr[0] = 0; String sss[] = str.split("\\s"); for(int i=1;i<=n;i++) { arr[i] = Integer.parseInt(sss[i-1]); } int[] a = new int[n+1]; a[0] = 0; for(int ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner s = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expected arr[0] = 0; ^ Main.java:7: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223247368|p02899|0
u223247368|p02899|0
codenet
Compile Error
420
v2_s385921168
s385921168
s385921168
p02899
p02899
u223247368
u223247368
1,572,757,517
2019-11-03T05:05:17
Main.java
public static void main(String[] args) { // TODO Auto-generated method stub Scanner s = new Scanner(System.in); int n = s.nextInt(); String str = s.nextLine(); // String str = "2 3 1"; int[] arr = new int[n+1]; arr[0] = 0; String sss[] = str.split("\\s"); for(int i=1;i<=n;i++) { arr[i] = Integer....
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
u223247368|p02899|0
u223247368|p02899|0
codenet
Compile Error
502
v2_s904959432
s904959432
s904959432
p02899
p02899
u259138563
u259138563
1,582,944,194
2020-02-29T02:43:14
Main.java
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { InputStreamReader read=new InputStreamReader(System.in); BufferedReader in=new BufferedReader(read)...
Main.java:22: error: ';' expected System.out.print((j+1)+" ") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u259138563|p02899|0
u259138563|p02899|0
codenet
Compile Error
618
v2_s772683617
s772683617
s772683617
p02899
p02899
u292902179
u292902179
1,570,319,777
2019-10-05T23:56:17
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int num=scan.nextInt(); int mem[]=new int[num]; int come[]=new int[num]; for(int a=0;a<num;a++){ mem[a]=scan.nextInt(); } for(int a=1;a<num+1;a++){ come...
Main.java:16: error: class, interface, enum, or record expected for(int a=0;a<num;a++){ ^ Main.java:16: error: class, interface, enum, or record expected for(int a=0;a<num;a++){ ^ Main.java:16: error: class, interface, enum, or record expected for(int a=0;a<num;a++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02899|0
u292902179|p02899|0
codenet
Compile Error
434
v2_s165334084
s165334084
s165334084
p02899
p02899
u305384049
u305384049
1,584,076,052
2020-03-13T05:07:32
Main.java
N = gets.to_i A = gets.split(' ').map(&:to_i) B = [] (1..N).each{|i| B << [i, A[i-1]]} B.sort!{|a,b| a[1] - b[1]} puts B.map{|o|o[0]}.join ' '
Main.java:1: error: class, interface, enum, or record expected N = gets.to_i ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305384049|p02899|1
u305384049|p02899|1
codenet
Compile Error
144
v2_s080211843
s080211843
s080211843
p02899
p02899
u325586706
u325586706
1,570,807,342
2019-10-11T15:22:22
Main.java
import java.util.*; import java.io.*; class Main { public static void main(String argv[]) { int n; Scanner sc = new Scanner(System.in); n = Integer.parseInt(sc.next()); int a[] = new int[n]; for (int i = 0;i < n;i++) { a[i] = Integer.parseInt(sc.next()); } PrintWriter out = ne...
Main.java:17: error: '.class' expected if (int i = 1;i <= n;i++) { ^ Main.java:17: error: not a statement if (int i = 1;i <= n;i++) { ^ Main.java:17: error: ';' expected if (int i = 1;i <= n;i++) { ^ Main.java:26: error: <id...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325586706|p02899|0
u325586706|p02899|0
codenet
Compile Error
633
v2_s038343460
s038343460
s038343460
p02899
p02899
u369712616
u369712616
1,584,672,974
2020-03-20T02:56:14
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[] order = new int[n]; String out = ""; for(int i = 0; i < n; i++){ order[sc.nextInt()] = i + 1; out += "" + order[i] + " "; } System.ou...
Main.java:12: error: cannot find symbol System.out.pritnln(out); ^ symbol: method pritnln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02899|0
u369712616|p02899|0
codenet
Compile Error
341
v2_s370333973
s370333973
s370333973
p02899
p02899
u387775763
u387775763
1,569,723,594
2019-09-29T02:19: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(); int[] data = new int[100000]; int[] table = new int[100000]; for(int i = 1;i <= n;i++){ data[i] = sc.nextInt(); } for(int i = 1;i <= n;i++)...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p02899|0
u387775763|p02899|0
codenet
Compile Error
424
v2_s887151994
s887151994
s887151994
p02899
p02899
u444386009
u444386009
1,572,999,388
2019-11-06T00:16:28
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); int a[][] = new int[2][n]; for (int i = 0; i < n; i++) { a[0][i] = sc.nextInt(); a[1][i] = i + 1; } //ソートする([0]の値でソート) //sort(a, n); ...
Main.java:19: error: cannot find symbol quickSort2(a, 0, n - 1); ^ symbol: method quickSort2(int[][],int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u444386009|p02899|0
u444386009|p02899|0
codenet
Compile Error
1,637
v2_s194644405
s194644405
s194644405
p02899
p02899
u448324500
u448324500
1,569,809,773
2019-09-30T02:16:13
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; for(int i=0; i<N; i++){ A[i] = sc.nextInt(); B[A[i]-1] = i+1; } for(int i=0; i<N; i++){ System.out.pritnln(B[i]); } } }
Main.java:17: error: cannot find symbol B[A[i]-1] = i+1; ^ symbol: variable B location: class Main Main.java:23: error: cannot find symbol System.out.pritnln(B[i]); ^ symbol: variable B location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02899|0
u448324500|p02899|0
codenet
Compile Error
307
v2_s310393037
s310393037
s310393037
p02899
p02899
u486374018
u486374018
1,569,721,378
2019-09-29T01:42:58
c.java
import jdk.nashorn.internal.parser.Scanner; /** * c */ public class c { public static void main(String[] args) { java.util.Scanner sc = new Scanner(System.in); n = sc.nextInt(); a = sc.nextLine().split(" "); for (int i = 0; i < a.length(); i++) { System.out.println(a...
c.java:1: error: package jdk.nashorn.internal.parser does not exist import jdk.nashorn.internal.parser.Scanner; ^ c.java:9: error: cannot find symbol java.util.Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486374018|p02899|0
u486374018|p02899|0
codenet
Compile Error
357
v2_s294412389
s294412389
s294412389
p02899
p02899
u486374018
u486374018
1,569,721,434
2019-09-29T01:43:54
c.java
import jdk.nashorn.internal.parser.Scanner; /** * c */ public class c { public static void main(String[] args) { java.util.Scanner sc = new Scanner(System.in); n = sc.nextInt(); a = sc.nextLine().split(" "); for (int i = 0; i < a.length(); i++) { System.out.print(a.i...
c.java:1: error: package jdk.nashorn.internal.parser does not exist import jdk.nashorn.internal.parser.Scanner; ^ c.java:9: error: cannot find symbol java.util.Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486374018|p02899|0
u486374018|p02899|0
codenet
Compile Error
420
v2_s964512771
s964512771
s964512771
p02899
p02899
u533017901
u533017901
1,572,485,218
2019-10-31T01:26:58
Main.java
n = int(input()) a=[] for i in range(n): s=int(input()) a+=[[i+1, s] ] import operator as op a.sort(key = op.itemgetter(1)) x="" for i in range(n): x+=str(a[i][0]) if i!=n-1: x+=" " #a = [[3,-9],[2,3],[1,20]] print(x)
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ Main.java:18: error: illegal character: '#' #a = [[3,-9],[2,3],[1,20]] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u533017901|p02899|0
u533017901|p02899|0
codenet
Compile Error
254
v2_s503801493
s503801493
s503801493
p02899
p02899
u533017901
u533017901
1,572,485,375
2019-10-31T01:29:35
Main.java
n = int(input()) a=[] b = list(map(int, input().split())) for i in range(n): 4a+=[[i+1, b[i]] ] import operator as op a.sort(key = op.itemgetter(1)) x="" for i in range(n): x+=str(a[i][0]) if i!=n-1: x+=" " #a = [[3,-9],[2,3],[1,20]] print(x)
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ Main.java:17: error: illegal character: '#' #a = [[3,-9],[2,3],[1,20]] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u533017901|p02899|0
u533017901|p02899|0
codenet
Compile Error
274
v2_s075616127
s075616127
s075616127
p02899
p02899
u633463117
u633463117
1,569,979,526
2019-10-02T01:25:26
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); Map<Integer,Integer> a = new TreeMap<>(); for(int i = 1;i<n+1;i++){ a.put(i,Integer.parseInt(sc.next())); } ...
Main.java:11: error: cannot find symbol for(Integer num: a.values){ ^ symbol: variable values location: variable a of type Map<Integer,Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633463117|p02899|0
u633463117|p02899|0
codenet
Compile Error
410
v2_s857516771
s857516771
s857516771
p02899
p02899
u760718569
u760718569
1,571,890,132
2019-10-24T04:08:52
Main.java
public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b[] = new int[a+1]; int c[] = new int[a+1]; for(int i = 1;i < b.length;i++){ b[i] = sc.nextInt(); } for(int j = 1;j < b.length;j++){ c[b[j]] = j; } ...
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
u760718569|p02899|0
u760718569|p02899|0
codenet
Compile Error
400
v2_s605413041
s605413041
s605413041
p02899
p02899
u780370649
u780370649
1,569,722,038
2019-09-29T01:53:58
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner kbd=new Scanner(System.in); int n=kbd.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++){ a[i]=kbd.nextInt(); } boolean att[]= new boolean[n]; for(int i=0;i<=n;i++){ for(int j=0;j<n;j+...
Main.java:17: error: incompatible types: boolean cannot be converted to boolean[] att=true; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u780370649|p02899|0
u780370649|p02899|0
codenet
Compile Error
459
v2_s074209610
s074209610
s074209610
p02899
p02899
u812805378
u812805378
1,570,811,228
2019-10-11T16:27:08
Main.java
class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<Integer,Integer> a = new HashMap<>(); int []ans = new int [n]; for(int i=0;i<n;i++){ a.put(sc.nextInt()-1,i); } for(int i=0;i<n;i++){...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812805378|p02899|0
u812805378|p02899|0
codenet
Compile Error
409
v2_s733937529
s733937529
s733937529
p02899
p02899
u824477366
u824477366
1,569,737,397
2019-09-29T06:09:57
Main.java
import java.util.*; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int[] ret = new int[a]; int wk; for(int i =0;i<a;i++){ wk =Integer.parseInt(sc.next()) ret[wk-1] = i; ...
Main.java:9: error: ';' expected wk =Integer.parseInt(sc.next()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824477366|p02899|1
u824477366|p02899|0
codenet
Compile Error
503
v2_s270404439
s270404439
s270404439
p02899
p02899
u880909682
u880909682
1,573,261,630
2019-11-09T01:07:10
Main.java
import java.util.Scanner; class Main{ public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i = 0; i < n; i ++) { a[i] = sc.nextInt(); } for(int i = 0; i < n; i ++) { for (int j =...
Main.java:13: error: not a statement b[i] == j; ^ Main.java:23: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02899|0
u880909682|p02899|0
codenet
Compile Error
496
v2_s889978187
s889978187
s889978187
p02899
p02899
u880909682
u880909682
1,573,261,661
2019-11-09T01:07:41
Main.java
import java.util.Scanner; class Main{ public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i = 0; i < n; i ++) { a[i] = sc.nextInt(); } for(int i = 0; i < n; i ++) { for (int j =...
Main.java:23: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02899|0
u880909682|p02899|0
codenet
Compile Error
496
v2_s066905047
s066905047
s066905047
p02899
p02899
u907613785
u907613785
1,587,840,194
2020-04-25T18:43:14
Main.java
import com.sun.deploy.util.StringUtils; import java.util.Arrays; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); String[] a = new String[n]; for (int i = 0; i < n; i++) { ...
Main.java:3: error: package com.sun.deploy.util does not exist import com.sun.deploy.util.StringUtils; ^ Main.java:18: error: cannot find symbol System.out.println(StringUtils.join(Arrays.asList(a), " ")); ^ symbol: variable StringUtils location: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u907613785|p02899|0
u907613785|p02899|0
codenet
Compile Error
458
v2_s185826942
s185826942
s185826942
p02899
p02899
u981866345
u981866345
1,572,327,949
2019-10-29T05:45:49
Map.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Map { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int result = 0; Map<Integer, Integer> map = new HashMap<Integer, Integer>(); for (int i = 0; i < n; i++) { map...
Map.java:2: error: Map is already defined in this compilation unit import java.util.Map; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981866345|p02899|0
u981866345|p02899|0
codenet
Compile Error
475
v2_s404908333
s404908333
s404908333
p02900
p02900
u018679195
u018679195
1,573,438,266
2019-11-11T02:11:06
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String args[]){//double 处理果盘 Scanner in = new Scanner(System.in); int a = in.nextInt(),b = in.nextInt(); long g = gcd(a,b); long ans = 0; for (long i= 2;i<=g/i;i+...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02900|0
u018679195|p02900|0
codenet
Compile Error
541
v2_s244820699
s244820699
s244820699
p02900
p02900
u019098614
u019098614
1,569,723,495
2019-09-29T02:18:15
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = sc.nextLong(); List<Long> commonDivisor = new ArrayList<>(); lon...
Main.java:30: error: incompatible types: possible lossy conversion from long to int if(!tagainiso(commonDivisor.get(x), commonDivisor.get(y))) { ^ Main.java:30: error: incompatible types: possible lossy conversion from long to int if(!tagai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019098614|p02900|0
u019098614|p02900|0
codenet
Compile Error
1,296
v2_s603860980
s603860980
s603860980
p02900
p02900
u110115790
u110115790
1,570,902,837
2019-10-12T17:53:57
Main.java
import java.util.Scanner; class Main { static public void main(String args[]) { Scanner sc = new Scanner(System.in); long A = sc.nextlong(); long B = sc.nextlong(); long gcd = gcd(A, B); int counter = 1; for(int i = 2; i < Math.max(A, B); i++) { if(gcd % i == 0) { counter++; ...
Main.java:6: error: cannot find symbol long A = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.java:7: error: cannot find symbol long B = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110115790|p02900|1
u110115790|p02900|1
codenet
Compile Error
596
v2_s403582943
s403582943
s403582943
p02900
p02900
u128927017
u128927017
1,569,723,453
2019-09-29T02:17:33
Main.java
import math A, B = map(int, input().strip().split()) minAB = min(A,B); hurui = [True] * (minAB+1) upper = int(math.sqrt(minAB+1)) ans = 1 for i in range(2, upper+1): if not(hurui[i]): continue for j in range(2*i, minAB+1, i): hurui[j] = False if A % i == 0 and B % i == 0: ...
Main.java:1: error: '.' expected import math ^ Main.java:2: error: ';' expected A, B = map(int, input().strip().split()) ^ Main.java:6: error: class, interface, enum, or record expected hurui = [True] * (minAB+1) ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128927017|p02900|0
u128927017|p02900|0
codenet
Compile Error
351
v2_s936166305
s936166305
s936166305
p02900
p02900
u146546125
u146546125
1,569,721,707
2019-09-29T01:48:27
Main.java
public static void main(String[] args) { // long ans2 = 0; long ans = 0; Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); // int k = sc.nextInt(); // long d = sc.nextLong(); // String string = sc.next(); // StringBuilder s = new StringBuilder(string); // boolean...
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) Main.java:63: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u146546125|p02900|0
u146546125|p02900|0
codenet
Compile Error
1,097
v2_s185135933
s185135933
s185135933
p02900
p02900
u167206842
u167206842
1,569,724,766
2019-09-29T02:39:26
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); //a,bの最大公約数を素因数分解して出てきた素数の個数+1が答え long c = gcd(a,b); // System.out.println(c); long answer = 0; // System.out.println(c); ...
Main.java:41: error: incompatible types: double cannot be converted to Long primenums.add(i); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02900|0
u167206842|p02900|0
codenet
Compile Error
1,561
v2_s011153915
s011153915
s011153915
p02900
p02900
u167206842
u167206842
1,569,735,582
2019-09-29T05:39:42
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); //a,bの最大公約数を素因数分解して出てきた素数の種類数+1が答え //cが素数の時は2が答え→勘違いしてた //cが1の時は1が答え //cが合成数の時は見つかり次第どんどん割ってく戦法で間に合う long c = gcd(a,b); // System.o...
Main.java:57: error: incompatible types: int cannot be converted to Long primenums.add(1); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02900|0
u167206842|p02900|0
codenet
Compile Error
1,958
v2_s422118465
s422118465
s422118465
p02900
p02900
u261161085
u261161085
1,570,028,263
2019-10-02T14:57:43
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); final long A = scan.nextLong(); final long B = scan.nextLong(); scan.close(); // AとBを素因数分解する LinkedList<Long> primeFactorsA = primeFactorization(A); LinkedList<Long> primeFactorsB = primeFactorization(B)...
Main.java:20: error: cannot find symbol private static LinkedList<Long> primeFactorization(Long n){ ^ symbol: class LinkedList location: class Main Main.java:40: error: cannot find symbol private static long countCommonTerm(LinkedList<Long> a, LinkedList<Long> b) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u261161085|p02900|0
u261161085|p02900|0
codenet
Compile Error
1,312
v2_s753080928
s753080928
s753080928
p02900
p02900
u284795785
u284795785
1,571,083,416
2019-10-14T20:03:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); long a=sc.nextLong(); long b=sc.nextLong(); long c=gcd(a,b); int d=0; for(int i=2; i*i<=c;i++){ if(c%i!=0){continue;} while(c%i==0){ c=c/...
Main.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02900|0
u284795785|p02900|0
codenet
Compile Error
576
v2_s657333961
s657333961
s657333961
p02900
p02900
u451080461
u451080461
1,569,824,927
2019-09-30T06:28:47
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import java.util.StringJoiner; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(); } public void solve() ...
Main.java:18: error: incompatible types: possible lossy conversion from long to int Map<Integer, Integer> map = divisors(gcd); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451080461|p02900|0
u451080461|p02900|0
codenet
Compile Error
1,147
v2_s791376490
s791376490
s791376490
p02900
p02900
u458268106
u458268106
1,569,783,754
2019-09-29T19:02:34
Main.java
//繰り返し二乗法 repow(b,p)(b,p,modder) //ユークリッド互除法で最大公約数 gcd //gcdで最小公倍数 lcm //約数列挙divList(int) //BSA()()()(List<T>,T,int,int,Comparator<T>) //BSF()()()(List<T>,T,int,int,Comparator<T>) //BSL()()()(List<T>,T,int,int,Comparator<T>) //int kmp(String t,String p) //文字列文字ソートStSort(String) //二次元整数座標オブジェクトXy ////マンハッタン距離manht(Xy) /...
Main.java:382: error: break outside switch or loop if(c==1){System.out.println(0);break;} ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02900|0
u458268106|p02900|0
codenet
Compile Error
9,523
v2_s269302348
s269302348
s269302348
p02900
p02900
u458268106
u458268106
1,571,453,951
2019-10-19T02:59:11
Main.java
//繰り返し二乗法 repow(b,p)(b,p,modder) //ユークリッド互除法で最大公約数 gcd //gcdで最小公倍数 lcm //約数列挙divList(int) //約数列挙divSet(int) //素数判定iP(long)とtameshiwari(long) //BSA()()()(List<T>,T,int,int,Comparator<T>) //BSF()()()(List<T>,T,int,int,Comparator<T>) //BSL()()()(List<T>,T,int,int,Comparator<T>) //int kmp(String t,String p) //文字列文字ソートStSor...
Main.java:503: error: bad operand types for binary operator '&' if(c&1==0){ ^ first type: long second type: boolean Main.java:524: error: incompatible types: possible lossy conversion from double to long l=Math.sqrt(l); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02900|5
u458268106|p02900|5
codenet
Compile Error
11,903
v2_s261790072
s261790072
s261790072
p02900
p02900
u487433273
u487433273
1,579,124,774
2020-01-15T21:46:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = sc.nextLong(); long ans = 0; long N ; if(A>B) N = B; else N = A; boolean flg - false; for(int k = 1;k<=Math.sqrt(N);k++) { flg = tr...
Main.java:12: error: ';' expected boolean flg - false; ^ Main.java:29: error: 'else' without 'if' else System.out.println(ans); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02900|0
u487433273|p02900|0
codenet
Compile Error
572
v2_s791006219
s791006219
s791006219
p02900
p02900
u516170499
u516170499
1,569,724,480
2019-09-29T02:34:40
Main.java
import java.util.Scanner; public class Main { static int intN =0; static int sosuCnt =0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); //String n = sc.nextLine(); String[] h1 = sc.nextLine().split(" "); String[] sosu = "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 6...
Main.java:15: error: constant string too long String[] sosu = "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516170499|p02900|0
u516170499|p02900|0
codenet
Compile Error
244,897
v2_s924698713
s924698713
s924698713
p02900
p02900
u516170499
u516170499
1,569,724,612
2019-09-29T02:36:52
Main.java
import java.util.Scanner; public class Main { static int intN =0; static int sosuCnt =0; public static void main(String[] args) { Scanner sc = new Scanner(System.in); //String n = sc.nextLine(); String[] h1 = sc.nextLine().split(" "); String temp = "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 ...
Main.java:15: error: constant string too long String temp = "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 35...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516170499|p02900|0
u516170499|p02900|0
codenet
Compile Error
244,934
v2_s098780935
s098780935
s098780935
p02900
p02900
u517851140
u517851140
1,569,722,714
2019-09-29T02:05:14
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(); long n2 = sc.nextLong(); int[] sosu = new int[]{2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83...
Main.java:5: error: code too large public static void main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517851140|p02900|0
u517851140|p02900|0
codenet
Compile Error
85,869
v2_s696563368
s696563368
s696563368
p02900
p02900
u517851140
u517851140
1,569,723,447
2019-09-29T02:17:27
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(); long n2 = sc.nextLong(); //int[] sosu = new int[]{2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,1...
Main.java:5: error: code too large public static void main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517851140|p02900|0
u517851140|p02900|0
codenet
Compile Error
80,722
v2_s192525452
s192525452
s192525452
p02900
p02900
u521293705
u521293705
1,569,724,095
2019-09-29T02:28:15
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); long f = sc.nextLong(); long s = sc.nextLong(); a = Math.min(f, s); b = Math.max(f, s); Set<Long> set_a = new HashSet<Long>(); // Set<Long> set_b = new ...
Main.java:11: error: cannot find symbol a = Math.min(f, s); ^ symbol: variable a location: class Main Main.java:12: error: cannot find symbol b = Math.max(f, s); ^ symbol: variable b location: class Main Main.java:16: error: cannot find symbol for(long i = 2; i <= a; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521293705|p02900|0
u521293705|p02900|0
codenet
Compile Error
1,233
v2_s851199841
s851199841
s851199841
p02900
p02900
u521293705
u521293705
1,569,726,013
2019-09-29T03:00:13
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); long f = sc.nextLong(); long s = sc.nextLong(); long a = Math.min(f, s); long b = Math.max(f, s); long a_ = a; Set<Long> set_a = new HashSet<Long>(); ...
Main.java:28: error: cannot find symbol if(i * i > b_) break; ^ symbol: variable b_ location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521293705|p02900|0
u521293705|p02900|0
codenet
Compile Error
1,293
v2_s734846166
s734846166
s734846166
p02900
p02900
u531730314
u531730314
1,572,146,809
2019-10-27T03:26:49
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); List<Integer> num1Divisor = new ArrayList<>(); List<Integer> num2Divisor = new ArrayList<>(); List<Integer> commonDivisor = new ArrayList<>(); for(int i = 1;i <= num1; i++) { ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u531730314|p02900|0
u531730314|p02900|0
codenet
Compile Error
717
v2_s262314714
s262314714
s262314714
p02900
p02900
u541055501
u541055501
1,570,321,915
2019-10-06T00:31:55
Main.java
import java.util.*; import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a=Integer.parseInt(sc.next()); int b=Integer.parseInt(sc.next()); int min=math.min(a,b); int max=math.max(a,b); int res=1; ...
Main.java:9: error: cannot find symbol int min=math.min(a,b); ^ symbol: variable math location: class Main Main.java:10: error: cannot find symbol int max=math.max(a,b); ^ symbol: variable math location: class Main Main.java:13: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02900|0
u541055501|p02900|0
codenet
Compile Error
650
v2_s965723895
s965723895
s965723895
p02900
p02900
u541055501
u541055501
1,570,321,987
2019-10-06T00:33:07
Main.java
import java.util.*; import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a=Integer.parseInt(sc.next()); int b=Integer.parseInt(sc.next()); int min=min(a,b); int max=max(a,b); int res=1; for(int ...
Main.java:9: error: cannot find symbol int min=min(a,b); ^ symbol: method min(int,int) location: class Main Main.java:10: error: cannot find symbol int max=max(a,b); ^ symbol: method max(int,int) location: class Main Main.java:13: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02900|0
u541055501|p02900|0
codenet
Compile Error
635
v2_s506134753
s506134753
s506134753
p02900
p02900
u541055501
u541055501
1,570,322,284
2019-10-06T00:38:04
Main_D.java
import java.util.*; public class Main_D{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); long a=Integer.parseInt(sc.next()); long b=Integer.parseInt(sc.next()); long min=Math.min(a,b); long max=Math.max(a,b); int res=1; for(long i=2...
Main_D.java:19: error: illegal character: '\u3000' ?if(i>Math.sqrt(min)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02900|0
u541055501|p02900|0
codenet
Compile Error
637
v2_s280171998
s280171998
s280171998
p02900
p02900
u542279262
u542279262
1,570,050,229
2019-10-02T21:03:49
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)) { long a = sc.nextLong(); long b = sc.nextLong(); long gcd = gcd2(a, b); ...
Main.java:54: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u542279262|p02900|1
u542279262|p02900|1
codenet
Compile Error
1,047
v2_s562904303
s562904303
s562904303
p02900
p02900
u578775554
u578775554
1,586,999,112
2020-04-16T01:05:12
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long x = lcm(a,b); List<Long> li = fact(x); lo...
Main.java:13: error: cannot find symbol System.out.pritnln(ans); ^ symbol: method pritnln(long) location: variable out of type PrintStream Main.java:19: error: incompatible types: int cannot be converted to Long result.add(2); ^ Main.java:23: error: inc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578775554|p02900|0
u578775554|p02900|0
codenet
Compile Error
1,185
v2_s181170263
s181170263
s181170263
p02900
p02900
u578775554
u578775554
1,587,658,448
2020-04-23T16:14:08
Main.java
{ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long max = Math.max(a,b); long min = Math.min(a,b); HashSet<Long> maxl = getPrimeFactorization(max); HashSet<Long> minl = getPrimeFactorization(min); int prime = 1; ...
Main.java:1: error: class, interface, enum, or record expected { ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. long a = sc.nextLong(); ^ (use --enable-preview to enable unnamed classes) Main.java:10: error: class, interface, enum, or record expected f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u578775554|p02900|3
u578775554|p02900|3
codenet
Compile Error
467
v2_s995077019
s995077019
s995077019
p02900
p02900
u645304546
u645304546
1,578,348,027
2020-01-06T22:00:27
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main{ static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args) { long a = sc.nextLong(); lon...
Main.java:29: error: cannot find symbol if (isPrime(num) && num!=copy) ^ symbol: method isPrime(long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u645304546|p02900|1
u645304546|p02900|1
codenet
Compile Error
3,526
v2_s315496841
s315496841
s315496841
p02900
p02900
u711414551
u711414551
1,569,836,737
2019-09-30T09:45:37
Main.java
static final int LIMIT = 1000000; static long gcd(long a, long b) { if (a > b) return gcd(b, a); if (a == 0) return b; return gcd(b % a, a); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B =...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. static final int LIMIT = 1000000; ^ (use --enable-preview to enable unnamed classes) Main.java:29: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711414551|p02900|0
u711414551|p02900|0
codenet
Compile Error
766
v2_s995770576
s995770576
s995770576
p02900
p02900
u736097195
u736097195
1,584,987,430
2020-03-23T18:17:10
Main.java
#include<stdio.h> long gcd(long m,long n) { if(n==0) return m; printf("%ld %ld\n",n,m%n); return gcd(n,m%n); } int main() { long a,b,gCommon,i,j,k,cnt=1; scanf("%ld%ld",&a,&b); gCommon = gcd(a,b); for(i=2; gCommon>1 && gCommon>=i*i ; ) { for(j=0; g...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:6: error: class, interface, enum, or record expected printf("%ld %ld\n",n,m%n); ^ Main.java:7: error: class, interface, enum, or record expe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736097195|p02900|0
u736097195|p02900|0
codenet
Compile Error
639
v2_s678915514
s678915514
s678915514
p02900
p02900
u794652722
u794652722
1,572,481,501
2019-10-31T00:25:01
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); long a = fs.nextLong(); long b = fs.nextLong(); long c = gcd(a,b); if(c == 1l) { System.out.println(1); }else { ...
Main.java:47: error: illegal start of expression public static long gcd(long a,long b) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794652722|p02900|0
u794652722|p02900|0
codenet
Compile Error
3,660
v2_s512648911
s512648911
s512648911
p02900
p02900
u794652722
u794652722
1,572,481,940
2019-10-31T00:32:20
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); long a = fs.nextLong(); long b = fs.nextLong(); long c = gcd(a,b); for(long i=2; i*i<=r; i++) { if (c%i != 0) continue; ...
Main.java:29: error: unnamed classes are a preview feature and are disabled by default. public static long gcd(long a,long b) { ^ (use --enable-preview to enable unnamed classes) Main.java:37: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794652722|p02900|0
u794652722|p02900|0
codenet
Compile Error
3,078
v2_s688161422
s688161422
s688161422
p02900
p02900
u863370423
u863370423
1,574,958,282
2019-11-28T16:24:42
Main.java
#include<iostream> #include<algorithm> using namespace std; int vis[1000005]; void solve() { vis[1] = 0; vis[2] = 0; for(int i = 2;i <= 1000000;i++) { if(vis[i] == 0) { int t = 2; for(int j = t * i;j <= 1000000;j = t * i) { vis[j] = 1; ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<algorithm> ^ Main.java:4: error: class, interface, enum, or record expected int vis[1000005]; ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. void solve() ^ (use...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02900|1
u863370423|p02900|1
codenet
Compile Error
731
v2_s128651014
s128651014
s128651014
p02900
p02900
u870915337
u870915337
1,569,724,026
2019-09-29T02:27:06
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int count = 1; if(A==1 || B==1) else if((A==2 || B==2) && A%2==0 && B%2==0)count++; else if((A==2 |...
Main.java:11: error: 'else' without 'if' else{ ^ Main.java:9: error: 'else' without 'if' else if((A==2 || B==2) && A%2==0 && B%2==0)count++; ^ Main.java:28: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870915337|p02900|0
u870915337|p02900|0
codenet
Compile Error
880
v2_s747329234
s747329234
s747329234
p02900
p02900
u887860190
u887860190
1,569,723,832
2019-09-29T02:23:52
Main.java
import java.util.*; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long c = kys(a,b); long res = 1; res = res + bk(c...
Main.java:24: error: cannot find symbol return wr(c,2,plus); ^ symbol: method wr(long,int,long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u887860190|p02900|0
u887860190|p02900|0
codenet
Compile Error
1,060
v2_s754701804
s754701804
s754701804
p02900
p02900
u979552932
u979552932
1,569,741,368
2019-09-29T07:16:08
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = Long.parseLong(sc.next()); long B = Long.parseLong(sc.next()); long a = A; long b = B; if (A > B) { a = B; b = A; ...
Main.java:23: error: variable declaration not allowed here double sqrtNum = Math.sqrt(i); ^ Main.java:35: error: <identifier> expected System.out.println(c); ^ Main.java:35: error: <identifier> expected System.out.println(c); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979552932|p02900|1
u979552932|p02900|0
codenet
Compile Error
945
v2_s802836083
s802836083
s802836083
p02901
p02901
u003018968
u003018968
1,569,732,440
2019-09-29T04:47:20
Main.java
import java.util.*;class Main{public static void main(String[] $){Scanner s=new Scanner(System.in);int INF=(int)1e9;int N=s.nextInt();int M=s.nextInt(); int[] a = new int[M]; int[] b = new int[M]; int[][] c = new int[M][]; for (int i = 0; i < M; i++) { a[i] = sc.nextInt(); ...
Main.java:6: error: cannot find symbol a[i] = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol b[i] = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:10: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p02901|0
u003018968|p02901|0
codenet
Compile Error
956
v2_s523746627
s523746627
s523746627
p02901
p02901
u003018968
u003018968
1,569,733,029
2019-09-29T04:57:09
Main.java
import java.util.*;class Main{public static void main(String[] $){Scanner s=new Scanner(System.in);int INF=(int)1e9;int N=s.nextInt();int M=s.nextInt();int[] a=new int[M];int[] b=new int[M];int[][] c=new int[M][];for(int i=0;i<M;i++){a[i]=s.nextInt();b[i]=s.nextInt();c[i]=new int[b[i]];for(int j=0;j<b[i];j++){c[i][j]=s...
Main.java:1: error: bad operand types for binary operator '|' import java.util.*;class Main{public static void main(String[] $){Scanner s=new Scanner(System.in);int INF=(int)1e9;int N=s.nextInt();int M=s.nextInt();int[] a=new int[M];int[] b=new int[M];int[][] c=new int[M][];for(int i=0;i<M;i++){a[i]=s.nextInt();b[i]=s....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p02901|0
u003018968|p02901|0
codenet
Compile Error
577
v2_s971919061
s971919061
s971919061
p02901
p02901
u273816974
u273816974
1,581,224,968
2020-02-09T05:09:28
Main.java
import java.util.*; public class Main { 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(); int[][] array = new int[m][13]; for (int i = 0; i < m; i++) ...
Main.java:40: error: bad operand type boolean[] for unary operator '!' if (!ok) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02901|0
u273816974|p02901|0
codenet
Compile Error
1,337
v2_s401986689
s401986689
s401986689
p02901
p02901
u785846901
u785846901
1,573,005,381
2019-11-06T01:56:21
Main.java
import java.util.*; import java.io.*; class Key { int cost; int mask; public Key(int cost,int mask) { this.cost=cost; this.mask=mask; } } public class Main { public static void main(String args[]) { Scanner s1=new Scanner(System.in); int boxes,keys; ...
Main.java:40: error: ']' expected int dp[1<<boxes]; ^ Main.java:40: error: not a statement int dp[1<<boxes]; ^ Main.java:40: error: ';' expected int dp[1<<boxes]; ^ Main.java:63: error: illegal start of type return 0; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785846901|p02901|0
u785846901|p02901|0
codenet
Compile Error
1,343
v2_s664170625
s664170625
s664170625
p02902
p02902
u541055501
u541055501
1,582,964,463
2020-02-29T08:21:03
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.HashSet; import java.util.NoSuchElementException; import java.util.Objects; import java.util.PriorityQueue; import java.util.Queue; import static java.util.Arrays.fill; public class Main ...
Main.java:400: error: class AbstractGraph is public, should be declared in a file named AbstractGraph.java public abstract class AbstractGraph { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02902|0
u541055501|p02902|0
codenet
Compile Error
19,470
v2_s384291781
s384291781
s384291781
p02902
p02902
u541055501
u541055501
1,583,037,770
2020-03-01T04:42:50
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.NoSuchElementException; import java.util.Objects; import java.util.PriorityQueue; import java.util.Queue; imp...
Main.java:415: error: cannot find symbol protected UnionFindTree uft; ^ symbol: class UnionFindTree location: class AbstractGraph Main.java:430: error: cannot find symbol this.uft = new UnionFindTree(n); ^ symbol: class UnionFindTree location: class AbstractG...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02902|1
u541055501|p02902|1
codenet
Compile Error
18,880
v2_s566242793
s566242793
s566242793
p02902
p02902
u550314572
u550314572
1,569,722,046
2019-09-29T01:54:06
Main.java
6 9 1 2 2 3 3 4 4 5 5 6 5 1 5 2 6 1 6 2 6 6 5 4 3 2 1
Main.java:1: error: class, interface, enum, or record expected 6 9 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u550314572|p02902|0
u550314572|p02902|0
codenet
Compile Error
54
v2_s010465683
s010465683
s010465683
p02903
p02903
u428132025
u428132025
1,569,122,804
2019-09-22T03:26:44
Main.java
a
Main.java:1: error: reached end of file while parsing a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u428132025|p02903|0
u428132025|p02903|0
codenet
Compile Error
1
v2_s720291261
s720291261
s720291261
p02903
p02903
u448863865
u448863865
1,569,137,105
2019-09-22T07:25:05
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.TreeSet; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] P = new int[N]; Arrays.setAll(P, i -> sc.nextInt()); int result = 1;...
Main.java:26: error: illegal start of expression if (count => K) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448863865|p02903|1
u448863865|p02903|0
codenet
Compile Error
828
v2_s135266917
s135266917
s135266917
p02903
p02903
u553462852
u553462852
1,569,472,655
2019-09-26T04:37: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(); int K = sc.nextInt(); int P[] = new int[N]; for (int i = 0; i < N; i++) { P[i] = sc.nextInt(); } int s...
Main.java:65: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553462852|p02903|1
u553462852|p02903|1
codenet
Compile Error
1,637
v2_s788711140
s788711140
s788711140
p02903
p02903
u781565606
u781565606
1,569,119,508
2019-09-22T02:31:48
atcorder381.java
import java.util.Scanner; public class atcorder381 { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); int[] p = new int[n]; while(in.hasNext()){ for(int i = 2; i< n;i++) { p[i] = in.nextInt(); } ...
atcorder381.java:23: error: incompatible types: String cannot be converted to boolean if(args[l+2]) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u781565606|p02903|0
u781565606|p02903|0
codenet
Compile Error
458
v2_s265533477
s265533477
s265533477
p02903
p02903
u824956430
u824956430
1,569,119,585
2019-09-22T02:33:05
Main.java
public class Main{ public static void main(String[] args) { Scanner sc =new Scanner(System.in); int H=sc.nextInt(); int W=sc.nextInt(); int A=sc.nextInt(); int B=sc.nextInt(); if(B==0) { for(int i=0;i<H;i++) { int j=0; for(;j<A;j++)System.out.print(1); for(;j<W;j++)System.out.print(0); S...
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
u824956430|p02903|0
u824956430|p02903|0
codenet
Compile Error
1,340
v2_s029974393
s029974393
s029974393
p02903
p02903
u824956430
u824956430
1,569,119,923
2019-09-22T02:38:43
Main.java
import java.util.Scanner; public class Main{ publimport java.util.Scanner; public class Main{ /*public static void main(String[] args) { Scanner sc =new Scanner(System.in); int N=sc.nextInt(); int K=sc.nextInt(); }*/ public static void main(String[] args) { Scanner sc =new Scanner(System.in); int H=sc.nex...
Main.java:3: error: ';' expected publimport java.util.Scanner; ^ Main.java:3: error: <identifier> expected publimport java.util.Scanner; ^ Main.java:82: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824956430|p02903|0
u824956430|p02903|0
codenet
Compile Error
1,547
v2_s076280305
s076280305
s076280305
p02904
p02904
u541055501
u541055501
1,583,350,315
2020-03-04T19:31:55
Main.java
import java.util.*; public class Main{ public static void main(String[]a){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int[] p=new int[n]; for(int i=0;i<n;i++){ p[i]=sc.nextInt(); } TreeSet<Integer> s=new TreeSet<>(); for(int i=0;i<k;i++){ s.a...
Main.java:15: error: variable a is already defined in method main(String[]) int a=1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02904|0
u541055501|p02904|0
codenet
Compile Error
528
v2_s289387083
s289387083
s289387083
p02904
p02904
u982630224
u982630224
1,575,155,244
2019-11-30T23:07:24
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; import java.util.*; public class Main { static int N; static int[] bit = ne...
Main.java:59: error: incompatible types: int cannot be converted to boolean if (cnt=K) sorted++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02904|0
u982630224|p02904|0
codenet
Compile Error
3,125
v2_s487164892
s487164892
s487164892
p02905
p02905
u112714855
u112714855
1,569,119,421
2019-09-22T02:30:21
Main.java
public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); BigInteger []nums = new BigInteger[n]; for (int i = 0 ; i < n ; i++){ nums[i] = in.nextBigInteger(); } BigInteger sum = BigInteger.ZERO; for (int i = 0...
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
u112714855|p02905|0
u112714855|p02905|0
codenet
Compile Error
863
v2_s573153992
s573153992
s573153992
p02905
p02905
u550314572
u550314572
1,569,119,888
2019-09-22T02:38:08
Main.java
import java.awt.Point; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Serializable; import java.util.AbstractList; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.u...
Main.java:72: error: incompatible types: String cannot be converted to int int problem = "konnNaN"; ^ Main.java:286: warning: [removal] finalize() in Object has been deprecated and marked for removal protected void finalize() throws Throwable { ^ Main.java:288: warning: [removal] fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u550314572|p02905|0
u550314572|p02905|0
codenet
Compile Error
61,305
v2_s978233262
s978233262
s978233262
p02905
p02905
u573585716
u573585716
1,569,115,322
2019-09-22T01:22:02
Main.java
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); long[] a = new long[n]; for (int i = 0; i < n; i++) { a[i] = Long.parseLong(sc.next()); } lon...
Main.java:21: error: cannot find symbol answer += C.lcm(a[i], a[j]); ^ symbol: variable C location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u573585716|p02905|0
u573585716|p02905|0
codenet
Compile Error
786
v2_s706840945
s706840945
s706840945
p02905
p02905
u814026219
u814026219
1,569,182,168
2019-09-22T19:56:08
Main.java
MOD = 998244353 inv2 = inv(2i64) n = read_line.to_i a = read_line.split.map(&.to_i) divisor = Array.new(a.max + 1) { Array(Int32).new(initial_capacity: 20) } 2.upto(divisor.size - 1) do |i| i.step(to: divisor.size - 1, by: i) do |j| divisor[j] << i end end sum = Array.new(divisor.size, 0i64) sum2 = Array.new(di...
Main.java:1: error: class, interface, enum, or record expected MOD = 998244353 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814026219|p02905|0
u814026219|p02905|0
codenet
Compile Error
1,151