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_s095841129
s095841129
s095841129
p02922
p02922
u201966856
u201966856
1,592,213,094
2020-06-15T09:24:54
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //入力表示 int A = sc.nextInt(); int B = sc.nextInt(); int ans = 0; int puls = 1; while (puls<B) { puls--; puls +=A; ans++; } System.out.println(ans); } }
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u201966856|p02922|0
u201966856|p02922|0
codenet
Compile Error
353
v2_s453889670
s453889670
s453889670
p02922
p02922
u202826462
u202826462
1,575,320,651
2019-12-02T21:04:11
Main.java
\import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int A = Integer.parseInt(stdin.next()); int B = Integer.parseInt(stdin.next()); int i; if(A == B)...
Main.java:1: error: illegal character: '\' \import java.io.PrintWriter; ^ Main.java:1: error: class, interface, enum, or record expected \import java.io.PrintWriter; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202826462|p02922|0
u202826462|p02922|0
codenet
Compile Error
439
v2_s024756982
s024756982
s024756982
p02922
p02922
u240764465
u240764465
1,570,952,456
2019-10-13T07:40:56
Main.java
mport java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double x = sc.nextDouble(); double y = sc.nextDouble(); System.out.println(y==1?0:(int)Math.ceil(y/x)); } }
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u240764465|p02922|1
u240764465|p02922|1
codenet
Compile Error
238
v2_s550174914
s550174914
s550174914
p02922
p02922
u287979658
u287979658
1,567,370,781
2019-09-01T20:46:21
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 tmp = a; int number = 1 ; while(tmp < b) { tmp=tmp+(a-1); number++; } ...
Main.java:14: error: incompatible types: int cannot be converted to boolean if (b =1) System.out.println(0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u287979658|p02922|0
u287979658|p02922|0
codenet
Compile Error
405
v2_s397497515
s397497515
s397497515
p02922
p02922
u289838402
u289838402
1,587,918,131
2020-04-26T16:22:11
Main.java
Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int i = 1; int c = 0; while(i < b) { i = i+a-1; c++; } System.out.println(c); // Scannerクラスのインスタンスをクローズ scanner.close();
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:8: error: class, interface, enum, or record expected while(i < b) { ^ Main.java:10: error: class, interface, enum, or record...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u289838402|p02922|0
u289838402|p02922|0
codenet
Compile Error
278
v2_s996276479
s996276479
s996276479
p02922
p02922
u292902179
u292902179
1,579,099,629
2020-01-15T14:47:09
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int num=scan.nextInt(); int max=scan.nextInt(); int Ans=0; boolean flag=true; if(){ } while(flag){ Ans++; if(num*Ans-(Ans-1)>=max){ flag=false; }...
Main.java:9: error: illegal start of expression if(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02922|0
u292902179|p02922|0
codenet
Compile Error
361
v2_s177250261
s177250261
s177250261
p02922
p02922
u353919145
u353919145
1,572,659,601
2019-11-02T01:53:21
Main.java
import java.util.*; public class Main(){ public static void main(String[] args){ Scanner obj=new Scanner(System.in); int a=obj.nextInt(); int b=obj.nextInt(); int out=0; int ans=0; while(out<b){ out--; out=out+a; ans++; } System.out.println(ans); } }
Main.java:2: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02922|2
u353919145|p02922|2
codenet
Compile Error
259
v2_s451038382
s451038382
s451038382
p02922
p02922
u369712616
u369712616
1,584,261,217
2020-03-15T08:33:37
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int socket = sc.nextInt(); int need = sc.nextInt(); if(need = 1){ System.out.println(0); }else if(socket == 1){ System.out.println(need); }else if(need <= socket){ ...
Main.java:7: error: incompatible types: int cannot be converted to boolean if(need = 1){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02922|0
u369712616|p02922|0
codenet
Compile Error
535
v2_s883505772
s883505772
s883505772
p02922
p02922
u379254887
u379254887
1,569,662,169
2019-09-28T09:16:09
Main.java
import java.util.Scanner; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); String[] astr = str.split(" "); //状況に合わせて int kuti = 0; int flag = 0; int[] in_dat...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379254887|p02922|0
u379254887|p02922|0
codenet
Compile Error
1,017
v2_s565361472
s565361472
s565361472
p02922
p02922
u480938688
u480938688
1,567,367,830
2019-09-01T19:57:10
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(); sc.close(); if (B == 0) { System.out.println(0); } else if(A>=B){ System...
Main.java:6: error: cannot find symbol int A = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:7: error: cannot find symbol int B = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 2 er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480938688|p02922|0
u480938688|p02922|0
codenet
Compile Error
619
v2_s372549180
s372549180
s372549180
p02922
p02922
u480938688
u480938688
1,567,367,932
2019-09-01T19:58:52
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(); sc.close(); if (B == 1) { System.out.println(0); } else if(A>=B){ System...
Main.java:7: 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
u480938688|p02922|0
u480938688|p02922|0
codenet
Compile Error
619
v2_s638484176
s638484176
s638484176
p02922
p02922
u498108912
u498108912
1,567,716,344
2019-09-05T20:45:44
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int m = a-1; int n = b-1; int result = ceil(n/m); System.out.println(result); } }
Main.java:12: error: cannot find symbol int result = ceil(n/m); ^ symbol: method ceil(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498108912|p02922|1
u498108912|p02922|1
codenet
Compile Error
282
v2_s413477439
s413477439
s413477439
p02922
p02922
u498108912
u498108912
1,567,716,502
2019-09-05T20:48:22
Solution.java
import java.util.*; public class Solution { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int m = a-1; int n = b-1; int result = ceil(n/m); System.out.println(result); } }
Solution.java:12: error: cannot find symbol int result = ceil(n/m); ^ symbol: method ceil(int) location: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498108912|p02922|1
u498108912|p02922|1
codenet
Compile Error
286
v2_s021414045
s021414045
s021414045
p02922
p02922
u507522170
u507522170
1,571,043,520
2019-10-14T08:58:40
Main.java
import java.util.Scanner; import java.Math; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); System.out.print(B / (A - 1)); } }
Main.java:2: error: cannot find symbol import java.Math; ^ symbol: class Math location: package java 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507522170|p02922|0
u507522170|p02922|0
codenet
Compile Error
231
v2_s088503384
s088503384
s088503384
p02922
p02922
u566629764
u566629764
1,567,683,101
2019-09-05T11:31:41
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println(power_socket(Integer.parseInt(scanner.nextLine()), Integer.parseInt(scanner.nextLine()))); scanner.close(); } public static int power_socket(int a, int b) { int taps = 1; while(true) ...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566629764|p02922|0
u566629764|p02922|0
codenet
Compile Error
401
v2_s603590371
s603590371
s603590371
p02922
p02922
u572373398
u572373398
1,567,365,227
2019-09-01T19:13:47
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String input1 = sc.nextLine(); String[] inputs = input1.split(" "); int a = Integer.parseInt(inputs[0]); int b = Integer.parseInt(inputs[1]); if (b ==...
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
u572373398|p02922|0
u572373398|p02922|0
codenet
Compile Error
535
v2_s864402426
s864402426
s864402426
p02922
p02922
u581973832
u581973832
1,589,871,048
2020-05-19T06:50:48
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタ Scanner scan = new Scanner(System.in); int x = scan.nextInt; int y = scan.nextInt; int z = 0; for(;;){ x-y=x; z=z+1; if(y>x){ ...
Main.java:7: error: cannot find symbol int x = scan.nextInt; ^ symbol: variable nextInt location: variable scan of type Scanner Main.java:8: error: cannot find symbol int y = scan.nextInt; ^ symbol: variable nextInt location: variable scan of type Scanner ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u581973832|p02922|0
u581973832|p02922|0
codenet
Compile Error
416
v2_s270328249
s270328249
s270328249
p02922
p02922
u750120744
u750120744
1,567,632,415
2019-09-04T21:26:55
Main.java
import java.util.Scanner; 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 i; for ( ; A<B; i++) { A += A-1; } System.out.println(i); } }
Main.java:9: error: variable i might not have been initialized for ( ; A<B; i++) { ^ Main.java:12: error: variable i might not have been initialized System.out.println(i); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u750120744|p02922|0
u750120744|p02922|0
codenet
Compile Error
282
v2_s784225202
s784225202
s784225202
p02922
p02922
u760238629
u760238629
1,567,365,371
2019-09-01T19:16:11
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDOuble(); double count = 0; int countInt = 0; count = (b-1) / (a-1); while(count > 0){ countInt++; ...
Main.java:7: error: cannot find symbol double b = sc.nextDOuble(); ^ symbol: method nextDOuble() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760238629|p02922|0
u760238629|p02922|0
codenet
Compile Error
397
v2_s815908008
s815908008
s815908008
p02922
p02922
u768496010
u768496010
1,567,365,411
2019-09-01T19:16:51
Main.java
a = input () a, b = a.split(' ') a= int(a) b = int(b) if b%a != 0: print (b//a + 1) else: print (b//a)
Main.java:1: error: class, interface, enum, or record expected a = input () ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768496010|p02922|0
u768496010|p02922|0
codenet
Compile Error
112
v2_s682001722
s682001722
s682001722
p02922
p02922
u795990458
u795990458
1,567,366,197
2019-09-01T19:29:57
Main.java
public class Main { /* * 文字列を分割して回数を数える */ public static void main(String[] args) { /* * Scannerで値取得。 */ Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); s.close(); /* * とりあえずa個あって1つあたりa-1個ずつ増えると考えてみる。 */ int count = 0; int sum = 0; //count タップの個数、sum...
Main.java:11: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795990458|p02922|0
u795990458|p02922|0
codenet
Compile Error
538
v2_s057215772
s057215772
s057215772
p02922
p02922
u795990458
u795990458
1,567,366,234
2019-09-01T19:30:34
Main.java
public class Main { /* * 文字列を分割して回数を数える */ public static void main(String[] args) { /* * Scannerで値取得。 */ Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); s.close(); /* * とりあえずa個あって1つあたりa-1個ずつ増えると考えてみる。 */ int count = 0; int sum = 0; //count タップの個数、sum...
Main.java:11: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795990458|p02922|0
u795990458|p02922|0
codenet
Compile Error
538
v2_s790867534
s790867534
s790867534
p02922
p02922
u808976884
u808976884
1,567,373,342
2019-09-01T21:29:02
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() - 1; int b = sc.nextInt() - 1; int total = 0; if(b != 1){ total = (b+a-1)/a } System.out.println(total); } }
Main.java:13: error: ';' expected total = (b+a-1)/a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u808976884|p02922|0
u808976884|p02922|0
codenet
Compile Error
279
v2_s395110955
s395110955
s395110955
p02922
p02922
u832665816
u832665816
1,567,375,717
2019-09-01T22:08:37
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int socketsInEachStrip = scan.nextInt(); int emptySockets scan.nextInt(); int board = 0; if(emptySockets%socketsInEachStrip==0) { board = emptySockets/socketsInEachStr...
Main.java:6: error: ';' expected int emptySockets scan.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832665816|p02922|0
u832665816|p02922|0
codenet
Compile Error
434
v2_s726438630
s726438630
s726438630
p02922
p02922
u832665816
u832665816
1,567,387,740
2019-09-02T01:29:00
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int socketsInEachStrip = scan.nextInt(); int emptySockets = scan.nextInt(); int board = 0; if(emptySockets==1) { board=0; }else{ while(emptySockets!=0)...
Main.java:14: error: cannot find symbol emptySockets = emptySockets-scoketsInEachStrip; ^ symbol: variable scoketsInEachStrip location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832665816|p02922|1
u832665816|p02922|0
codenet
Compile Error
547
v2_s282648577
s282648577
s282648577
p02922
p02922
u863370423
u863370423
1,572,659,574
2019-11-02T01:52:54
Main.java
import java.util.*; public class Main(){ public static void main(String[] args){ Scanner obj=new Scanner(System.in); int a=obj.nextInt(); int b=obj.nextInt(); int out=0; int ans=0; while(outlet<b){ out--; out=out+a; ans++; } System.out.println(ans); } }
Main.java:2: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02922|3
u863370423|p02922|3
codenet
Compile Error
262
v2_s262752755
s262752755
s262752755
p02922
p02922
u863964720
u863964720
1,567,698,084
2019-09-05T15:41:24
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int s1 = sc.nextLine(); int s2 = sc.nextLine(); int count = 0; int sum = 1; While(s2<=sum){ sum = (sum-1)+4; count++; } System.out.println(count); }...
Main.java:9: error: ';' expected While(s2<=sum){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863964720|p02922|0
u863964720|p02922|0
codenet
Compile Error
323
v2_s178996197
s178996197
s178996197
p02922
p02922
u870981361
u870981361
1,588,695,127
2020-05-05T16:12:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in);B int A = Integer.parseInt(sc.next()); int B = Integer.parseInt(sc.next()); int ans = (B-1)/A + 1; System.out.println(ans); } }
Main.java:4: error: not a statement Scanner sc = new Scanner(System.in);B ^ Main.java:4: error: ';' expected Scanner sc = new Scanner(System.in);B ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02922|0
u870981361|p02922|0
codenet
Compile Error
272
v2_s791193883
s791193883
s791193883
p02922
p02922
u870981361
u870981361
1,588,695,329
2020-05-05T16:15:29
Main.java
import java.util.*; 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()); if(A==B){ System.out.println(1); }else{ int ans = B/A+1; System.out.println(ans); } }...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02922|0
u870981361|p02922|0
codenet
Compile Error
322
v2_s556040711
s556040711
s556040711
p02922
p02922
u891161439
u891161439
1,592,153,488
2020-06-14T16:51:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); ans = 0; if(b!=1){ ans = (b/a)+1; } System.out.println(ans); } }
Main.java:8: error: cannot find symbol ans = 0; ^ symbol: variable ans location: class Main Main.java:10: error: cannot find symbol ans = (b/a)+1; ^ symbol: variable ans location: class Main Main.java:12: error: cannot find symbol System.out.println(ans); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p02922|0
u891161439|p02922|0
codenet
Compile Error
303
v2_s201316821
s201316821
s201316821
p02922
p02922
u891161439
u891161439
1,592,153,575
2020-06-14T16:52:55
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(); ans = 0; if(b!=1){ ans = (b/(a-1))+1; } System.out.println(ans); } }
Main.java:8: error: cannot find symbol ans = 0; ^ symbol: variable ans location: class Main Main.java:10: error: cannot find symbol ans = (b/(a-1))+1; ^ symbol: variable ans location: class Main Main.java:12: error: cannot find symbol System.out.println(ans); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p02922|0
u891161439|p02922|0
codenet
Compile Error
308
v2_s798842710
s798842710
s798842710
p02922
p02922
u891161439
u891161439
1,592,153,858
2020-06-14T16:57:38
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 ans = (int)Math.ceal(b-1/a-1); System.out.println(ans); } }
Main.java:8: error: cannot find symbol int ans = (int)Math.ceal(b-1/a-1); ^ symbol: method ceal(int) location: class Math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p02922|0
u891161439|p02922|0
codenet
Compile Error
275
v2_s325884177
s325884177
s325884177
p02922
p02922
u901705471
u901705471
1,590,337,982
2020-05-24T16:33:02
main.java
import java.util.Scanner; public class main { public static void main(String[] args) { Scanner scan = new Scanner(System.in) int A = scan.nextInt(); int B = scan.nextInt(); int X = 0; while(0 < B){ X += 1; B -= A; } ...
main.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u901705471|p02922|0
u901705471|p02922|0
codenet
Compile Error
363
v2_s410826544
s410826544
s410826544
p02922
p02922
u919877025
u919877025
1,593,380,072
2020-06-28T21:34:32
Main.java
import java.util.Scanner public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int useTap = sc.nextInt(); int nonTap = sc.nextInt(); double d1 = (nonTap - 1) / (useTap - 1) int number = Math.ceil(d1); System.out.prin...
Main.java:1: error: ';' expected import java.util.Scanner ^ Main.java:11: error: ';' expected double d1 = (nonTap - 1) / (useTap - 1) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u919877025|p02922|0
u919877025|p02922|0
codenet
Compile Error
364
v2_s420311831
s420311831
s420311831
p02922
p02922
u919877025
u919877025
1,593,380,190
2020-06-28T21:36:30
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int useTap = sc.nextInt(); int nonTap = sc.nextInt(); double d1 = (nonTap - 1) / (useTap - 1); int number = Math.ceil(d1); System.out....
Main.java:12: error: incompatible types: possible lossy conversion from double to int int number = Math.ceil(d1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u919877025|p02922|0
u919877025|p02922|0
codenet
Compile Error
368
v2_s412047269
s412047269
s412047269
p02922
p02922
u997005069
u997005069
1,588,972,427
2020-05-08T21:13:47
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 sum = 1; for(int i; b < sum; i++) { sum += a - 1; } System.out.println(i-1); } }
Main.java:13: error: cannot find symbol System.out.println(i-1); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
291
v2_s427668518
s427668518
s427668518
p02922
p02922
u997005069
u997005069
1,588,972,477
2020-05-08T21:14:37
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 sum = 1; int = i for(i; b < sum; i++) { sum += a - 1; } System.out.println(i-1); } }
Main.java:9: error: not a statement int = i ^ Main.java:9: error: ';' expected int = i ^ Main.java:9: error: not a statement int = i ^ Main.java:9: error: ';' expected int = i ^ Main.java:10: error: not a statement for(i; b < sum; i++) { ^ 5 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
294
v2_s449475677
s449475677
s449475677
p02922
p02922
u997005069
u997005069
1,588,972,510
2020-05-08T21:15:10
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 sum = 1; int i; for(i; b < sum; i++) { sum += a - 1; } System.out.println(i-1); } }
Main.java:10: error: not a statement for(i; b < sum; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
293
v2_s934491843
s934491843
s934491843
p02922
p02922
u997005069
u997005069
1,588,972,589
2020-05-08T21:16:29
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 sum = 1; int count = 0; for(int i; b < sum; i++) { sum += a - 1; count++; } System.out.println(count)...
Main.java:11: error: variable i might not have been initialized for(int i; b < sum; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
327
v2_s163165861
s163165861
s163165861
p02922
p02922
u997005069
u997005069
1,588,972,648
2020-05-08T21:17:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 1; for(int i = 0; b < sum; i++) { sum += a - 1; } System.out.println(count); } }
Main.java:13: error: cannot find symbol System.out.println(count); ^ symbol: variable count location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
297
v2_s162174755
s162174755
s162174755
p02922
p02922
u997005069
u997005069
1,588,972,669
2020-05-08T21:17:49
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 sum = 1; for(int i = 0; b < sum; i++) { sum += a - 1; } System.out.println(i); } }
Main.java:13: error: cannot find symbol System.out.println(i); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02922|0
u997005069|p02922|0
codenet
Compile Error
293
v2_s278418256
s278418256
s278418256
p02923
p02923
u011996008
u011996008
1,584,101,732
2020-03-13T12:15:32
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] H = new int[N]; Arrays.setAll(H, i->sc.nextInt()); int ans = 0; int tmp = 0; for (int j=0; j<N-i-1; j++) { if (H[i+j] >= H[i+j+1]) { tmp++; } else { ...
Main.java:12: error: cannot find symbol for (int j=0; j<N-i-1; j++) { ^ symbol: variable i location: class Main Main.java:13: error: cannot find symbol if (H[i+j] >= H[i+j+1]) { ^ symbol: variable i location: class Main Main.java:13: error: cannot find symbol if (H[i+j] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02923|0
u011996008|p02923|0
codenet
Compile Error
397
v2_s087810289
s087810289
s087810289
p02923
p02923
u012232498
u012232498
1,567,885,017
2019-09-07T19:36:57
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { logic pos = new logic(); System.out.println(pos.move()); } public static class logic{ int num; int ans = 0; private int move(){ Scanner sc = new Scanner(Syste...
Main.java:21: error: cannot find symbol for (int i = 0; i < mass.length - now; i++) { ^ symbol: variable now location: class logic Main.java:22: error: cannot find symbol if (mass[now - 1 + i] >= mass[now + i]) { ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012232498|p02923|0
u012232498|p02923|0
codenet
Compile Error
757
v2_s128618381
s128618381
s128618381
p02923
p02923
u033645522
u033645522
1,568,073,932
2019-09-10T00:05:32
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long a[]=new long[n]; for(int i=0;i<n;i++){ a[i]=sc.nextLong(); } int c =0; for(int i=0;i<n-1;i++){ if(a[i]>=a[i+1]){ c++; ...
Main.java:15: error: cannot find symbol if(c>ans) ans=c; ^ symbol: variable ans location: class Main Main.java:15: error: cannot find symbol if(c>ans) ans=c; ^ symbol: variable ans location: class Main Main.java:20: error: cannot find symbol System.out.prin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033645522|p02923|0
u033645522|p02923|0
codenet
Compile Error
416
v2_s257813879
s257813879
s257813879
p02923
p02923
u165298656
u165298656
1,586,279,314
2020-04-07T17:08:34
Main.java
public class Main { public static void main(String[] args) throws Exception { Scanner sc =new Scanner(System.in); int N = sc.nextInt(); int[] H = new int[N]; int preH = 0; int x=0; int y=0; for(int i=0;i<N;i++){ if(i==0){ preH = H[i...
Main.java:3: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u165298656|p02923|0
u165298656|p02923|0
codenet
Compile Error
716
v2_s016770738
s016770738
s016770738
p02923
p02923
u176590289
u176590289
1,583,844,859
2020-03-10T12:54:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { new Thread(null, new Main(), "", 16 * 1024 * 1024).start(); //16MBスタックを確保して実行 } public void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); ...
Main.java:5: error: incompatible types: Main cannot be converted to Runnable new Thread(null, new Main(), "", 16 * 1024 * 1024).start(); //16MB??????????? ^ 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
u176590289|p02923|0
u176590289|p02923|0
codenet
Compile Error
816
v2_s890995791
s890995791
s890995791
p02923
p02923
u176590289
u176590289
1,583,846,737
2020-03-10T13:25:37
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[] H = new int[N]; for(int i = 0; i < N; i++) { H[i] = sc.nextInt(); ...
Main.java:16: error: cannot find symbol h1 = H[i]; ^ symbol: variable h1 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176590289|p02923|0
u176590289|p02923|0
codenet
Compile Error
695
v2_s868431192
s868431192
s868431192
p02923
p02923
u250483945
u250483945
1,568,891,666
2019-09-19T11:14:26
Main.java
import java.util.*; class Main.java{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] h = new int[n]; for(int i = 0; i < n; i++){ h[i] = sc.nextInt(); } int max = 0; for(int i = 0; i < n-1; i++){ int count = 0; for(int j = i; j < n; j++){ ...
Main.java:3: error: '{' expected class Main.java{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u250483945|p02923|0
u250483945|p02923|0
codenet
Compile Error
465
v2_s389665571
s389665571
s389665571
p02923
p02923
u276492340
u276492340
1,567,707,239
2019-09-05T18:13:59
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner a = new Scanner(System.in); int n = a.nextInt(); int[] h = new int[n]; for(int i = 0;i < n;i++){ h[i] = a.nextInt(); } int max = 0L; int count = 0L; ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int int max = 0L; ^ Main.java:14: error: incompatible types: possible lossy conversion from long to int int count = 0L; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02923|0
u276492340|p02923|0
codenet
Compile Error
683
v2_s194147897
s194147897
s194147897
p02923
p02923
u276492340
u276492340
1,567,707,608
2019-09-05T18:20:08
Main.java
import java.util.Scanner; class Main { public static void main(String Args[]) { int n = a.nextInt(); int array[] = new int[n]; int max =0; int pre = in.nextInt(); int currcount=0; for(int i =1;i<n;i++) { int val =in.nextInt(); if(val<=pre) { currcount++; } else {...
Main.java:7: error: cannot find symbol int n = a.nextInt(); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol int pre = in.nextInt(); ^ symbol: variable in location: class Main Main.java:14: error: cannot find symbol int val =in.nextInt...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02923|0
u276492340|p02923|0
codenet
Compile Error
506
v2_s661155766
s661155766
s661155766
p02923
p02923
u276492340
u276492340
1,567,707,671
2019-09-05T18:21:11
Main.java
import java.util.Scanner; class Main { public static void main(String Args[]) { int n = a.nextInt(); int array[] = new int[n]; int max =0; int pre = in.nextInt(); int currcount=0; for(int i =1;i<n;i++) { int val =in.nextInt(); if(val<=pre) { currcount++; } ...
Main.java:7: error: cannot find symbol int n = a.nextInt(); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol int pre = in.nextInt(); ^ symbol: variable in location: class Main Main.java:13: error: cannot find symbol int val =in.nextInt...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02923|0
u276492340|p02923|0
codenet
Compile Error
528
v2_s459591159
s459591159
s459591159
p02923
p02923
u276492340
u276492340
1,567,707,740
2019-09-05T18:22:20
Main.java
import java.util.Scanner; class Main { public static void main(String Args[]) { int n = a.nextInt(); int array[] = new int[n]; int max =0; int pre = in.nextInt(); int currcount=0; for(int i =1;i<n;i++) { int val =in.nextInt(); if(val<=pre) { currcount++; ...
Main.java:7: error: cannot find symbol int n = a.nextInt(); ^ symbol: variable a location: class Main Main.java:10: error: cannot find symbol int pre = in.nextInt(); ^ symbol: variable in location: class Main Main.java:14: error: cannot find symbol int val =in.nextInt()...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02923|0
u276492340|p02923|0
codenet
Compile Error
526
v2_s163975965
s163975965
s163975965
p02923
p02923
u276492340
u276492340
1,567,707,861
2019-09-05T18:24:21
Main.java
import java.util.Scanner; class Main { public static void main(String Args[]) { Scanner a = new Scanner(System.in); int n = a.nextInt(); int arr[] = new int[n]; int max =0;int prevval = in.nextInt(); int currcount=0; for(int i =1;i<n;i++) { int val =in.nextInt(); if(val...
Main.java:10: error: cannot find symbol int max =0;int prevval = in.nextInt(); ^ symbol: variable in location: class Main Main.java:13: error: cannot find symbol int val =in.nextInt(); ^ symbol: variable in location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p02923|0
u276492340|p02923|0
codenet
Compile Error
559
v2_s926197753
s926197753
s926197753
p02923
p02923
u293437551
u293437551
1,569,955,086
2019-10-01T18:38:06
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Optional; import java.util.Scanner; import java.util.stream.Collectors; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { Scanner std = new Scanner(System.in); ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293437551|p02923|0
u293437551|p02923|0
codenet
Compile Error
1,129
v2_s045969864
s045969864
s045969864
p02923
p02923
u431125128
u431125128
1,573,134,805
2019-11-07T13:53:25
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] n=new int[N]; for(int i=0;i<N;i++){ n[i]=sc.nextInt(); } int answer=0; for(int i=0;i<N){ int counter=0; for(int j=1;j<N;j++){...
Main.java:12: error: ';' expected for(int i=0;i<N){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02923|0
u431125128|p02923|0
codenet
Compile Error
530
v2_s404316661
s404316661
s404316661
p02923
p02923
u431125128
u431125128
1,573,134,825
2019-11-07T13:53:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] n=new int[N]; for(int i=0;i<N;i++){ n[i]=sc.nextInt(); } int answer=0; for(int i=0;i<N;){ int counter=0; for(int j=1;j<N;j++)...
Main.java:21: error: cannot find symbol i+=j; ^ symbol: variable j location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02923|0
u431125128|p02923|0
codenet
Compile Error
531
v2_s447097997
s447097997
s447097997
p02923
p02923
u487433273
u487433273
1,567,365,601
2019-09-01T19:20:01
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[] Hi = new int Hi[N]; int count =0; int countmem =0; for(int i=0;i<N;i++) Hi[i]= sc.nextInt(); for(int i =0;i<N-1;i++){ if(Hi[i] >= Hi[i+1]) count...
Main.java:6: error: '[' expected int[] Hi = new int Hi[N]; ^ Main.java:6: error: ']' expected int[] Hi = new int Hi[N]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02923|0
u487433273|p02923|0
codenet
Compile Error
453
v2_s854804687
s854804687
s854804687
p02923
p02923
u613243166
u613243166
1,572,960,849
2019-11-05T13:34:09
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int length = sc.nextInt(); int[] bruh = int[length]; for(int i = 0; i < bruh.length; i++) bruh[i] = sc.nextInt(); int max = 0; int mov = 0; for(i...
Main.java:10: error: ']' expected int[] bruh = int[length]; ^ Main.java:10: error: ';' expected int[] bruh = int[length]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613243166|p02923|0
u613243166|p02923|0
codenet
Compile Error
500
v2_s881729786
s881729786
s881729786
p02923
p02923
u698000453
u698000453
1,567,631,048
2019-09-04T21:04:08
Main.java
import java.util.*; public class Main { final static int MOD = 1000000007; public static void main(String[] args) { MyScanner in = new MyScanner(); int n = in.nextInt(); int[] h = in.nextIntArray(n); int[] array = new int[n]; for (int i = 0; i < h.length-1; i++) { if (h[i] => h[i+1]) { array[i+...
Main.java:13: error: illegal start of expression if (h[i] => h[i+1]) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698000453|p02923|0
u698000453|p02923|0
codenet
Compile Error
2,058
v2_s607529700
s607529700
s607529700
p02923
p02923
u760238629
u760238629
1,567,366,095
2019-09-01T19:28:15
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[] H = new int[N]; int max = 0; int count = 0; for(int i = 0; i < N; i++){ H[i] = sc.nextInt(); } for(int j = 0; j < N-1; ...
Main.java:14: error: cannot find symbol if(H[j] >= H[i+1]){ ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760238629|p02923|0
u760238629|p02923|0
codenet
Compile Error
638
v2_s183425012
s183425012
s183425012
p02923
p02923
u816631826
u816631826
1,572,656,962
2019-11-02T01:09:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner obj=new Scanner(System.in); int n=obj.nextInt(); int[] x=new int[n]; int[] count=new int[n]; x[0]=obj.nextInt(); count[0]++; for(int i=1;i<x.length;i++){ x[i]=obj.nextInt(); if(x[i-1]>=x[i]){ count[j]++; } else{ j++; } } Arrays...
Main.java:18: error: cannot find symbol count[j]++; ^ symbol: variable j location: class Main Main.java:21: error: cannot find symbol j++; ^ symbol: variable j location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02923|0
u816631826|p02923|0
codenet
Compile Error
388
v2_s574251531
s574251531
s574251531
p02923
p02923
u824477366
u824477366
1,567,370,383
2019-09-01T20:39:43
Main.java
import java.util.*; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int[] b; int n = 0; int bestn = 0; for(int i = 0; i < a;i++){ b[i] = sc.nextInt(); } for(int x=1; x >= a ;x+...
Main.java:13: error: ';' expected int wk = b[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824477366|p02923|0
u824477366|p02923|0
codenet
Compile Error
692
v2_s366544523
s366544523
s366544523
p02923
p02923
u824477366
u824477366
1,567,370,412
2019-09-01T20:40:12
Main.java
import java.util.*; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int[] b; int n = 0; int bestn = 0; for(int i = 0; i < a;i++){ b[i] = sc.nextInt(); } for(int x=1; x >= a ;x+...
Main.java:13: error: cannot find symbol int wk = b[i]; ^ symbol: variable i location: class Main Main.java:15: error: cannot find symbol for(int y=i; y >= a ;y++){ ^ symbol: variable i location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824477366|p02923|0
u824477366|p02923|0
codenet
Compile Error
693
v2_s091343804
s091343804
s091343804
p02923
p02923
u834042999
u834042999
1,567,365,892
2019-09-01T19:24:52
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); int H[] = new int[N]; for (int i = 0; i < N; i++) { H[i] = s.nextInt(); } int longestStreak = 0; int streak = 0; int h =...
Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834042999|p02923|0
u834042999|p02923|0
codenet
Compile Error
746
v2_s717574874
s717574874
s717574874
p02923
p02923
u920836104
u920836104
1,592,084,163
2020-06-13T21:36:03
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { int N = in.nextInt(): int[] H = new int[N]; for (int i = 0; i < H.length; ++i) { H[i] = in.nextInt(); } int max = 1; ...
Main.java:8: error: ';' expected int N = in.nextInt(): ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920836104|p02923|0
u920836104|p02923|0
codenet
Compile Error
603
v2_s724134036
s724134036
s724134036
p02924
p02924
u015418292
u015418292
1,578,925,720
2020-01-13T14:28:40
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); long n = stdIn.nextLong(); long[] order = new long[n]; for(int i = 0; i < n; i++) { order[i] = i+1; } long [] Order = new long[n]; for(int i = 0; i < n; i++) { ...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[] order = new long[n]; ^ Main.java:15: error: incompatible types: possible lossy conversion from long to int long [] Order = new long[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02924|0
u015418292|p02924|0
codenet
Compile Error
517
v2_s531667010
s531667010
s531667010
p02924
p02924
u131881594
u131881594
1,591,002,674
2020-06-01T09:11:14
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(); System.out.println(n*n-1/2); } }
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131881594|p02924|0
u131881594|p02924|0
codenet
Compile Error
195
v2_s091624486
s091624486
s091624486
p02924
p02924
u142846990
u142846990
1,567,368,679
2019-09-01T20:11:19
Sample.java
public class Sample { public static void main(String[] args) { // 引数で標準入力System.inを指定する Scanner scanner = new Scanner(System.in); int N = scanner.nextInt() int result = 0 if(N != 1){ result = N * (N - 1) / 2 } print(result) } }
Sample.java:7: error: ';' expected int N = scanner.nextInt() ^ Sample.java:8: error: ';' expected int result = 0 ^ Sample.java:11: error: ';' expected result = N * (N - 1) / 2 ^ Sample.java:13: error: ';' expected print(result) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u142846990|p02924|0
u142846990|p02924|0
codenet
Compile Error
295
v2_s998926694
s998926694
s998926694
p02924
p02924
u142846990
u142846990
1,567,368,708
2019-09-01T20:11:48
Sample.java
public class Sample { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int result = 0; if(N != 1){ result = N * (N - 1) / 2; } print(result); } }
Sample.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample Sample.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample Sample.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u142846990|p02924|0
u142846990|p02924|0
codenet
Compile Error
245
v2_s528498597
s528498597
s528498597
p02924
p02924
u142846990
u142846990
1,567,368,734
2019-09-01T20:12:14
Sample.java
public class Sample { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int result = 0; if(N != 1){ result = N * (N - 1) / 2; } System.out.println(result); } }
Sample.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample Sample.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u142846990|p02924|0
u142846990|p02924|0
codenet
Compile Error
258
v2_s456903637
s456903637
s456903637
p02924
p02924
u192259329
u192259329
1,570,240,121
2019-10-05T01:48:41
Main.java
class Main{ public static void main(String[] args) { Scanner scn =new Scanner(System.in); int N=scn.nextInt(); int[] Pi=new int[N]; for (int i = 0; i <N; i++) { pi[i]=i; } int sum=0; for(int j=0;j<N-1;j++){ sum+=j/pi[j+1]; } ...
Main.java:3: error: cannot find symbol Scanner scn =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scn =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192259329|p02924|0
u192259329|p02924|0
codenet
Compile Error
354
v2_s199704892
s199704892
s199704892
p02924
p02924
u192259329
u192259329
1,570,240,184
2019-10-05T01:49:44
Main.java
import java.util.* class Main{ public static void main(String[] args) { Scanner scn =new Scanner(System.in); int N=scn.nextInt(); int[] Pi=new int[N]; for (int i = 0; i <N; i++) { pi[i]=i; } int sum=0; for(int j=0;j<N-1;j++){ sum+=j/pi[j+1...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192259329|p02924|0
u192259329|p02924|0
codenet
Compile Error
373
v2_s792136806
s792136806
s792136806
p02924
p02924
u192259329
u192259329
1,570,240,215
2019-10-05T01:50:15
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner scn =new Scanner(System.in); int N=scn.nextInt(); int[] Pi=new int[N]; for (int i = 0; i <N; i++) { pi[i]=i; } int sum=0; for(int j=0;j<N-1;j++){ sum+=j/pi[j+...
Main.java:8: error: cannot find symbol pi[i]=i; ^ symbol: variable pi location: class Main Main.java:12: error: cannot find symbol sum+=j/pi[j+1]; ^ symbol: variable pi location: class Main Main.java:14: error: package system does not exist syst...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192259329|p02924|0
u192259329|p02924|0
codenet
Compile Error
374
v2_s741163975
s741163975
s741163975
p02924
p02924
u192259329
u192259329
1,570,240,248
2019-10-05T01:50:48
Main.java
ソースコード Copy Copy import java.util.*; class Main{ public static void main(String[] args) { Scanner scn =new Scanner(System.in); int N=scn.nextInt(); int[] pi=new int[N]; for (int i = 0; i <N; i++) { pi[i]=i; } int sum=0; for(int j=0;j<N-1;j++){ ...
Main.java:1: error: class, interface, enum, or record expected ?????? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192259329|p02924|0
u192259329|p02924|0
codenet
Compile Error
405
v2_s607373580
s607373580
s607373580
p02924
p02924
u192259329
u192259329
1,570,240,290
2019-10-05T01:51:30
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner scn =new Scanner(System.in); int N=scn.nextInt(); int[] pi=new int[N]; for (int i = 0; i <N; i++) { pi[i]=i; } int sum=0; for(int j=0;j<N-1;j++){ sum+=j/pi[j+...
Main.java:14: error: package system does not exist system.out.println(sum); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u192259329|p02924|0
u192259329|p02924|0
codenet
Compile Error
375
v2_s119183319
s119183319
s119183319
p02924
p02924
u287979658
u287979658
1,567,371,909
2019-09-01T21:05:09
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 i = 0; for(int i = 0; i<N ; i++) { i=i+i; } System.out.println(i); } }
Main.java:8: error: variable i is already defined in method main(String[]) for(int i = 0; i<N ; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u287979658|p02924|0
u287979658|p02924|0
codenet
Compile Error
245
v2_s968250828
s968250828
s968250828
p02924
p02924
u387775763
u387775763
1,570,128,909
2019-10-03T18:55:09
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(); long sum = 0; for(int i = 0;i < n;i++){ sum += i; } System.out.pritnln(sum); } }
Main.java:15: error: cannot find symbol System.out.pritnln(sum); ^ symbol: method pritnln(long) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p02924|0
u387775763|p02924|0
codenet
Compile Error
267
v2_s490883051
s490883051
s490883051
p02924
p02924
u387775763
u387775763
1,570,627,249
2019-10-09T13:20:49
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; for(int i = n;i >= 1;i--) { sum += (n-i+1) % n; } System.out.println(sum); } }
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
u387775763|p02924|1
u387775763|p02924|1
codenet
Compile Error
253
v2_s565211447
s565211447
s565211447
p02924
p02924
u464457275
u464457275
1,567,366,289
2019-09-01T19:31:29
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 a=(n-1)*n; a=a/2; System.out.println(a); } }
Main.java:7: error: variable a is already defined in method main(String[]) int a=(n-1)*n; ^ Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464457275|p02924|0
u464457275|p02924|0
codenet
Compile Error
197
v2_s455353619
s455353619
s455353619
p02924
p02924
u464457275
u464457275
1,567,366,355
2019-09-01T19:32:35
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 a=(n-1)*n; a=a/2; System.out.println(a); } }
Main.java:7: error: variable a is already defined in method main(String[]) int a=(n-1)*n; ^ Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464457275|p02924|0
u464457275|p02924|0
codenet
Compile Error
196
v2_s248442930
s248442930
s248442930
p02924
p02924
u464457275
u464457275
1,567,366,440
2019-09-01T19:34:00
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 a=(n-1)*n; a=a/2; System.out.println(a); } }
Main.java:7: error: variable a is already defined in method main(String[]) int a=(n-1)*n; ^ Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464457275|p02924|0
u464457275|p02924|0
codenet
Compile Error
197
v2_s899620679
s899620679
s899620679
p02924
p02924
u464457275
u464457275
1,567,367,520
2019-09-01T19:52:00
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 a=(n-1)*n; a=a/2; System.out.println(a); } }
Main.java:7: error: variable a is already defined in method main(String[]) int a=(n-1)*n; ^ Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol int a=(n-1)*n; ^ symbol: variable n location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464457275|p02924|0
u464457275|p02924|0
codenet
Compile Error
197
v2_s698277769
s698277769
s698277769
p02924
p02924
u464653034
u464653034
1,569,065,901
2019-09-21T11:38:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); Long sum = 0; for (int i = 1; i < n; i++) { sum += i; } System.out.println(sum); } }
Main.java:8: error: incompatible types: int cannot be converted to Long Long sum = 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464653034|p02924|0
u464653034|p02924|0
codenet
Compile Error
266
v2_s491424895
s491424895
s491424895
p02924
p02924
u498108912
u498108912
1,567,717,855
2019-09-05T21:10:55
Main.java
import java.util.*; import java.lang.Math; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); long n =scan.nextInt(); int m = n*(n-1)/2; System.out.println(m); } }
Main.java:10: error: incompatible types: possible lossy conversion from long to int int m = n*(n-1)/2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498108912|p02924|0
u498108912|p02924|0
codenet
Compile Error
240
v2_s761827240
s761827240
s761827240
p02924
p02924
u522628393
u522628393
1,567,818,580
2019-09-07T01:09:40
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException, Exception{ BufferedReader st = new BufferedReader(new InputStreamReader(System.in)); int n = getInt(st)...
Main.java:14: error: incompatible types: possible lossy conversion from long to int anser(t); ^ 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
u522628393|p02924|0
u522628393|p02924|0
codenet
Compile Error
669
v2_s238530660
s238530660
s238530660
p02924
p02924
u522628393
u522628393
1,567,818,895
2019-09-07T01:14:55
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException, Exception{ BufferedReader st = new BufferedReader(new InputStreamReader(System.in)); int n = getInt(st)...
Main.java:11: error: ';' expected System.out.println(t) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u522628393|p02924|0
u522628393|p02924|0
codenet
Compile Error
550
v2_s865888309
s865888309
s865888309
p02924
p02924
u569993432
u569993432
1,567,517,955
2019-09-03T13:39:15
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) /*throws IOException*/{ Scanner scan=new Scanner(); int N=scan.nextInt(); long ans=(long)N*(N-1); ans>>=1; System.out.println(ans); } }
Main.java:6: error: no suitable constructor found for Scanner(no arguments) Scanner scan=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
u569993432|p02924|0
u569993432|p02924|0
codenet
Compile Error
274
v2_s551413743
s551413743
s551413743
p02924
p02924
u675751622
u675751622
1,570,176,499
2019-10-04T08:08:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long number, sum = 0; number = Long.parseInt(sc.next()); sum = number * (number - 1) / 2; System.out.println(sum); } }
Main.java:7: error: cannot find symbol number = Long.parseInt(sc.next()); ^ symbol: method parseInt(String) location: class Long 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02924|0
u675751622|p02924|0
codenet
Compile Error
262
v2_s303740598
s303740598
s303740598
p02924
p02924
u729617972
u729617972
1,567,546,200
2019-09-03T21:30:00
Main.java
import java.util.*; public static void Main(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long ans = 0; for(int i = 1 ; i < n ; i++){ ans += i; } System.out.println(ans); }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void Main(){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729617972|p02924|0
u729617972|p02924|0
codenet
Compile Error
212
v2_s213112319
s213112319
s213112319
p02924
p02924
u777923818
u777923818
1,568,918,695
2019-09-19T18:44:55
Main.java
import java.util.Scanner; public class Main { public static int ceil(int a, int b){ int x = (a + (b - 1))/b; return x; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long ans; ans = N*(N-1)/2; // 出力 System.out.println(ans);
Main.java:15: error: reached end of file while parsing System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u777923818|p02924|0
u777923818|p02924|0
codenet
Compile Error
305
v2_s606497869
s606497869
s606497869
p02924
p02924
u814358985
u814358985
1,567,475,573
2019-09-03T01:52:53
Main.java
import java.io.*; import java.util.*; public class Main { static class InputReader { BufferedReader reader; StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } ...
Main.java:29: error: not a statement pw.println(n * (n-1)) / 2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814358985|p02924|0
u814358985|p02924|0
codenet
Compile Error
1,823
v2_s864075732
s864075732
s864075732
p02924
p02924
u816631826
u816631826
1,579,663,745
2020-01-22T03:29:05
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int t = scanner.nextInt(); System.out.println(sum(t)); } public static int sum(int number){ int result = 0; for(int i = number - 1; i >=0...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02924|0
u816631826|p02924|0
codenet
Compile Error
391
v2_s190238270
s190238270
s190238270
p02924
p02924
u825262731
u825262731
1,567,369,642
2019-09-01T20:27:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long ans = n*(n-1); long ans = ans/2; System.out.println(ans); } }
Main.java:7: error: variable ans is already defined in method main(String[]) long ans = ans/2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02924|0
u825262731|p02924|0
codenet
Compile Error
230
v2_s128342358
s128342358
s128342358
p02924
p02924
u832665816
u832665816
1,567,514,915
2019-09-03T12:48:35
Main.java
import java.util*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); int maxSum=0; for(int i=0; i<num; i++){ maxSum+=scan.nextInt(); } maxSum=maxSum-1; System.out.println(maxSum); } }
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832665816|p02924|0
u832665816|p02924|0
codenet
Compile Error
315
v2_s293295154
s293295154
s293295154
p02924
p02924
u871964309
u871964309
1,594,382,728
2020-07-10T12:05:28
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 ans = N * (N - 1) / 2; System.out.println(ans); }
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u871964309|p02924|0
u871964309|p02924|0
codenet
Compile Error
217
v2_s212841507
s212841507
s212841507
p02924
p02924
u902020750
u902020750
1,572,788,125
2019-11-03T13:35:25
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner obj=new Scanner(System.in); int n=obj.nextInt(); int max=0; n=n-1; max=n*(n-1)/2; System.out.println(max); }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902020750|p02924|0
u902020750|p02924|0
codenet
Compile Error
208
v2_s752280952
s752280952
s752280952
p02924
p02924
u910915431
u910915431
1,567,473,482
2019-09-03T01:18:02
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main (String[] args) throws java.lang.Exception { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outp...
Main.java:66: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910915431|p02924|0
u910915431|p02924|0
codenet
Compile Error
1,246
v2_s082041038
s082041038
s082041038
p02924
p02924
u920836104
u920836104
1,591,994,059
2020-06-12T20:34:19
Main.java
import java.util.Scanner; public calss Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { long N = in.nextLong(); System.out.println( (N * (N - 1)) / 2); } } }
Main.java:3: error: class, interface, enum, or record expected public calss Main { ^ Main.java:4: 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:13: error: class, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920836104|p02924|0
u920836104|p02924|0
codenet
Compile Error
258
v2_s015376068
s015376068
s015376068
p02925
p02925
u264547643
u264547643
1,572,881,251
2019-11-04T15:27:31
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.HashSet; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.InputStream...
Main.java:42: error: array required, but int found dp[root.i][root.j] = Math.max(dp[root.i][root.j], 1 + dp[root.a.get(i).i][root.a.get(i).j]); ^ Main.java:42: error: array required, but int found dp[root.i][root.j] = Math.max(dp[root.i][root.j], 1 + dp[root.a.get(i).i]...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264547643|p02925|1
u264547643|p02925|1
codenet
Compile Error
4,042
v2_s037671418
s037671418
s037671418
p02925
p02925
u264547643
u264547643
1,572,900,082
2019-11-04T20:41:22
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.HashSet; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.InputStream...
Main.java:42: error: array required, but int found dp[root.i][root.j] = Math.max(dp[root.i][root.j], 1 + dp[root.a.get(i).i][root.a.get(i).j]); ^ Main.java:42: error: array required, but int found dp[root.i][root.j] = Math.max(dp[root.i][root.j], 1 + dp[root.a.get(i).i]...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264547643|p02925|2
u264547643|p02925|1
codenet
Compile Error
4,288