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_s147779224
s147779224
s147779224
p02765
p02765
u866070271
u866070271
1,582,424,418
2020-02-23T02:20:18
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int r = scan.nextInt(); k = 100*(10-k); res = r + k; System.out.println(res) }
Main.java:13: error: ';' expected System.out.println(res) ^ Main.java:15: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02765|0
u866070271|p02765|0
codenet
Compile Error
271
v2_s823436164
s823436164
s823436164
p02765
p02765
u866070271
u866070271
1,582,424,469
2020-02-23T02:21:09
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int r = scan.nextInt(); k = 100*(10-k); res = r + k; System.out.println(res); }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02765|0
u866070271|p02765|0
codenet
Compile Error
272
v2_s424306756
s424306756
s424306756
p02765
p02765
u866070271
u866070271
1,582,424,497
2020-02-23T02:21:37
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int r = scan.nextInt(); k = 100*(10-k); res = r + k; System.out.println(res) } }
Main.java:13: error: ';' expected System.out.println(res) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02765|0
u866070271|p02765|0
codenet
Compile Error
273
v2_s180068377
s180068377
s180068377
p02765
p02765
u866070271
u866070271
1,582,424,524
2020-02-23T02:22:04
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int r = scan.nextInt(); k = 100*(10-k); res = r + k; System.out.println(res); } }
Main.java:11: error: cannot find symbol res = r + k; ^ symbol: variable res location: class Main Main.java:13: error: cannot find symbol System.out.println(res); ^ symbol: variable res location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02765|0
u866070271|p02765|0
codenet
Compile Error
274
v2_s190125311
s190125311
s190125311
p02765
p02765
u889049135
u889049135
1,582,655,140
2020-02-25T18:25:40
Main.java
import java.util.*; public class Main {//ここが Main になっている public static void main(String[] args){ Scanner sc = new Scanner(System.in); String input = sc.readLine(); String[] inputs = input.split(" "); int n = Integer.parseInt(inputs[0]); int r = Integer.parseInt(inputs[1]); ...
Main.java:5: error: cannot find symbol String input = sc.readLine(); ^ symbol: method readLine() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u889049135|p02765|0
u889049135|p02765|0
codenet
Compile Error
479
v2_s367238797
s367238797
s367238797
p02765
p02765
u922585959
u922585959
1,594,588,689
2020-07-12T21:18:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; // Problem Statement // There are // N // people living on a number line. // The // i // -th person lives at coordinate // X // i // . // You are going to hold a meeting that all // N // peopl...
Main.java:80: error: cannot find symbol return Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922585959|p02765|1
u922585959|p02765|0
codenet
Compile Error
1,782
v2_s412292774
s412292774
s412292774
p02765
p02765
u951972070
u951972070
1,593,923,413
2020-07-05T04:30:13
Main.java
class Main { public static main(String[] args) { N = System.io(); R = System.io(); int H; if (N >= 10) { H = R; } else { x = 10-N; H = 100*x; } System.out.println(H); } }
Main.java:2: error: invalid method declaration; return type required public static main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
270
v2_s681920307
s681920307
s681920307
p02765
p02765
u951972070
u951972070
1,593,923,438
2020-07-05T04:30:38
Main.java
class Main { public static void main(String[] args) { N = System.io(); R = System.io(); int H; if (N >= 10) { H = R; } else { x = 10-N; H = 100*x; } System.out.println(H); } }
Main.java:3: error: cannot find symbol N = System.io(); ^ symbol: variable N location: class Main Main.java:3: error: cannot find symbol N = System.io(); ^ symbol: method io() location: class System Main.java:4: error: cannot find symbol R = System.io(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
275
v2_s794746050
s794746050
s794746050
p02765
p02765
u951972070
u951972070
1,593,923,476
2020-07-05T04:31:16
Main.java
class Main { public static main(String[] args) { var N = System.io(); var R = System.io(); int H; if (N >= 10) { H = R; } else { x = 10-N; H = 100*x; } System.out.println(H); } }
Main.java:2: error: invalid method declaration; return type required public static main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
278
v2_s688041232
s688041232
s688041232
p02765
p02765
u951972070
u951972070
1,593,923,497
2020-07-05T04:31:37
Main.java
class Main { public static void main(String[] args) { var N = System.io(); var R = System.io(); int H; if (N >= 10) { H = R; } else { x = 10-N; H = 100*x; } System.out.println(H); } }
Main.java:3: error: cannot find symbol var N = System.io(); ^ symbol: method io() location: class System Main.java:4: error: cannot find symbol var R = System.io(); ^ symbol: method io() location: class System Main.java:9: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
284
v2_s514936116
s514936116
s514936116
p02765
p02765
u951972070
u951972070
1,593,923,543
2020-07-05T04:32:23
Main.java
class Main { public static void main(String[] args) { var N = System.io(); var R = System.io(); int H; if (N >= 10) { H = R; } else { var x = 10-N; H = 100*x; } System.out.println(H); } }
Main.java:3: error: cannot find symbol var N = System.io(); ^ symbol: method io() location: class System Main.java:4: error: cannot find symbol var R = System.io(); ^ symbol: method io() location: class System 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
288
v2_s511784736
s511784736
s511784736
p02765
p02765
u951972070
u951972070
1,593,923,806
2020-07-05T04:36:46
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); var R = sc.nextInt(); var N = sc.nextInt(); int H; if (N >= 10) { H = R; } else { var x = 10-N; H = 100*x; } System.out.println(H); } ...
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
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
322
v2_s285766975
s285766975
s285766975
p02765
p02765
u951972070
u951972070
1,593,925,305
2020-07-05T05:01:45
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); var x = sc.nextInt(); var y = sc.nextInt(); if (K >= 10) { var A = y; } else { var a = 10-x; var b = 100*a; A = y + b; ...
Main.java:8: error: cannot find symbol if (K >= 10) { ^ symbol: variable K location: class Main Main.java:13: error: cannot find symbol A = y + b; ^ symbol: variable A location: class Main Main.java:15: error: cannot find symbol System.out.println(A); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
365
v2_s064053862
s064053862
s064053862
p02765
p02765
u951972070
u951972070
1,593,925,334
2020-07-05T05:02:14
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); var x = sc.nextInt(); var y = sc.nextInt(); if (K >= 10) { var A = y; } else { var a = 10-x; var b = 100*a; var A = y + b; ...
Main.java:8: error: cannot find symbol if (K >= 10) { ^ symbol: variable K location: class Main Main.java:15: error: cannot find symbol System.out.println(A); ^ symbol: variable A location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
368
v2_s818293188
s818293188
s818293188
p02765
p02765
u951972070
u951972070
1,593,925,375
2020-07-05T05:02:55
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); var x = sc.nextInt(); var y = sc.nextInt(); if (x >= 10) { var A = y; } else { var a = 10-x; var b = 100*a; var A = y + b; ...
Main.java:15: error: cannot find symbol System.out.println(A); ^ symbol: variable A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02765|0
u951972070|p02765|0
codenet
Compile Error
369
v2_s994673062
s994673062
s994673062
p02765
p02765
u953146767
u953146767
1,582,983,922
2020-02-29T13:45:22
Main.java
if(N >= 10) return R; return 100 * (10 - N);
Main.java:1: error: class, interface, enum, or record expected if(N >= 10) ^ Main.java:3: error: class, interface, enum, or record expected return 100 * (10 - N); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u953146767|p02765|0
u953146767|p02765|0
codenet
Compile Error
46
v2_s972455067
s972455067
s972455067
p02766
p02766
u053797146
u053797146
1,582,431,779
2020-02-23T04:22:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] str = scan.nextLine().split(); String value = Integer.toString(str[0],str[1]); System.out.println(value.length()); //output = 1e } }
Main.java:6: error: no suitable method found for split(no arguments) String[] str = scan.nextLine().split(); ^ method String.split(String,int) is not applicable (actual and formal argument lists differ in length) method String.split(String,int,boolean) is not ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02766|0
u053797146|p02766|0
codenet
Compile Error
287
v2_s036381966
s036381966
s036381966
p02766
p02766
u053797146
u053797146
1,582,432,573
2020-02-23T04:36:13
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); int[] ranges = new Integer()[count]; int range = 0; fo...
Main.java:6: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int index = new Integer(scan.nextLine()); ^ Main.java:8: error: no suitable constructor found for Integer(no arguments) int[] ranges = new Integer()[count]; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02766|0
u053797146|p02766|0
codenet
Compile Error
495
v2_s033159462
s033159462
s033159462
p02766
p02766
u062736195
u062736195
1,582,423,987
2020-02-23T02:13:07
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextInt(); int K = sc.nextInt(); int keta = 0; for(int i = 1; ; i++){ if(N < Math.pow(K, i){ keta = i; break; } } System....
Main.java:10: error: ')' expected if(N < Math.pow(K, i){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02766|0
u062736195|p02766|0
codenet
Compile Error
345
v2_s859973280
s859973280
s859973280
p02766
p02766
u110087226
u110087226
1,582,423,709
2020-02-23T02:08:29
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws Exception{ Scanner sc=new Scanner(System.in); long n=sc.nextLong() int k=sc.nextInt(); System.out.println(Long.toString(n,k).length()); } }
Main.java:7: error: ';' expected long n=sc.nextLong() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110087226|p02766|0
u110087226|p02766|0
codenet
Compile Error
282
v2_s733076487
s733076487
s733076487
p02766
p02766
u239253654
u239253654
1,582,824,248
2020-02-27T17:24:08
Main.java
class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int R = sc.nextInt(); int a = 1; int cnt = 0; while (true){ a = a * R; if(a >= N){ break; } cn...
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
u239253654|p02766|0
u239253654|p02766|0
codenet
Compile Error
376
v2_s167350684
s167350684
s167350684
p02766
p02766
u332478078
u332478078
1,598,968,944
2020-09-01T14:02:24
Main.java
public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); Main m = new Main(sc); m.show(m.solve()); sc.close(); } //フィールド Scanner sc; int N; int K; //入力 Main(Scanner sc) { this.sc = sc; ...
Main.java:10: error: cannot find symbol Scanner sc; ^ symbol: class Scanner location: class Main Main.java:15: error: cannot find symbol Main(Scanner sc) { ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u332478078|p02766|0
u332478078|p02766|0
codenet
Compile Error
715
v2_s765047472
s765047472
s765047472
p02766
p02766
u368078055
u368078055
1,582,576,660
2020-02-24T20:37:40
Main.java
import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(System.in); PrintWriter pw = new PrintWriter(System.out); long N = sc.nextLong(); int K = sc.nextInt(); for(int i = 0; i < 40; i ++) { long pow = (lon...
Main.java:20: error: cannot find symbol private BufferedReader reader = null; ^ symbol: class BufferedReader location: class FastScanner Main.java:23: error: cannot find symbol public FastScanner(InputStream in) { ^ symbol: class InputStream location: class FastScann...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u368078055|p02766|2
u368078055|p02766|2
codenet
Compile Error
1,916
v2_s277901632
s277901632
s277901632
p02766
p02766
u486515092
u486515092
1,582,425,285
2020-02-23T02:34:45
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 A = Integer.toString(N,K); System.out.println(A.length()); } }
Main.java:7: error: incompatible types: String cannot be converted to int int A = Integer.toString(N,K); ^ Main.java:8: error: int cannot be dereferenced System.out.println(A.length()); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486515092|p02766|0
u486515092|p02766|0
codenet
Compile Error
281
v2_s007669129
s007669129
s007669129
p02766
p02766
u487433273
u487433273
1,583,360,336
2020-03-04T22:18:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int count = 0; while(N>0) { N /= K ; count++; } System.out.print(ans); } }
Main.java:15: error: cannot find symbol System.out.print(ans); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02766|0
u487433273|p02766|0
codenet
Compile Error
277
v2_s916160990
s916160990
s916160990
p02766
p02766
u537070292
u537070292
1,583,456,909
2020-03-06T01:08:29
Main.java
import java.util.Scanner; public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int k = scan.nextInt(); int x = 0; while( n > k ^ x){ x ++; } System.out.println(x-1); }
Main.java:2: 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
u537070292|p02766|0
u537070292|p02766|0
codenet
Compile Error
241
v2_s823678858
s823678858
s823678858
p02766
p02766
u537070292
u537070292
1,583,456,956
2020-03-06T01:09:16
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int k = scan.nextInt(); int x = 0; while( n > k ^ x){ x ++; } System.out.println(x-1); } }
Main.java:9: error: bad operand types for binary operator '^' while( n > k ^ x){ ^ first type: boolean second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02766|0
u537070292|p02766|0
codenet
Compile Error
262
v2_s052122360
s052122360
s052122360
p02766
p02766
u547671064
u547671064
1,584,963,206
2020-03-23T11:33:26
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 A = Math.log(N) / Math.log(K); System.out.println( A+1 ); } }
Main.java:7: error: incompatible types: possible lossy conversion from double to int int A = Math.log(N) / Math.log(K); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02766|1
u547671064|p02766|1
codenet
Compile Error
253
v2_s406376239
s406376239
s406376239
p02766
p02766
u547671064
u547671064
1,584,963,252
2020-03-23T11:34:12
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(); double A = Math.log(N) / Math.log(K); int B=int(A); System.out.println( B+1 ); } }
Main.java:8: error: '.class' expected int B=int(A); ^ Main.java:8: error: not a statement int B=int(A); ^ Main.java:8: error: ';' expected int B=int(A); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02766|1
u547671064|p02766|1
codenet
Compile Error
274
v2_s289943932
s289943932
s289943932
p02766
p02766
u613243166
u613243166
1,583,432,918
2020-03-05T18:28:38
Solution.java
public class Solution { public static void main(String[] args) { Reader reader = new Reader(); int n = reader.nextInt(); int k = reader.nextInt(); OutputStream out = new BufferedOutputStream(System.out); out.write(("" + fromDeci(k, n)).getBytes()); out.flush(); } static char reVal(int num) ...
Solution.java:45: error: cannot find symbol private DataInputStream din; ^ symbol: class DataInputStream location: class Reader Solution.java:53: error: cannot find symbol public int nextInt() throws IOException { ^ symbol: class IOException ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613243166|p02766|0
u613243166|p02766|0
codenet
Compile Error
2,550
v2_s146839757
s146839757
s146839757
p02766
p02766
u613243166
u613243166
1,583,433,019
2020-03-05T18:30:19
Main.java
import java.io.*; import java.lang.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Reader reader = new Reader(); int n = reader.nextInt(); int k = reader.nextInt(); OutputStream out = new BufferedOutputStream(System.out); out.write((fromDeci(k,...
Main.java:13: error: int cannot be dereferenced out.write((fromDeci(k, n).length()).getBytes()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u613243166|p02766|0
u613243166|p02766|0
codenet
Compile Error
2,627
v2_s003991872
s003991872
s003991872
p02766
p02766
u698000453
u698000453
1,584,208,598
2020-03-14T17:56:38
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 k = in.nextInt(); String str = Integer.toString(k,i); System.out.println(str); ...
Main.java:10: error: cannot find symbol String str = Integer.toString(k,i); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698000453|p02766|0
u698000453|p02766|0
codenet
Compile Error
2,662
v2_s058479634
s058479634
s058479634
p02766
p02766
u720439461
u720439461
1,582,730,710
2020-02-26T15:25: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 k=sc.nextInt(); int sum=n; int ans=0; for(int i=0; i<n; i++){ sum=sum/k; ans++; if(sum<k){ ...
Main.java:21: error: illegal character: '\u3000' ?if(sum!=0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02766|1
u720439461|p02766|1
codenet
Compile Error
490
v2_s040850549
s040850549
s040850549
p02766
p02766
u829133297
u829133297
1,583,116,988
2020-03-02T02:43:08
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(); final String hex = " fe "; final int dec = Integer.parseInt(hex, N); final int n = K; final String baseK = Integer.toString(dec); ...
Main.java:16: error: cannot find symbol System.out.println(baseK.length); ^ symbol: variable length location: variable baseK of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u829133297|p02766|0
u829133297|p02766|0
codenet
Compile Error
364
v2_s278969125
s278969125
s278969125
p02766
p02766
u860874998
u860874998
1,589,518,765
2020-05-15T04:59:25
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); int K = sc.nextInt(); for(int i=0;;i++){ if(K^i>N){ System.out.println(i); break; } } } }
Main.java:10: error: bad operand types for binary operator '^' if(K^i>N){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02766|0
u860874998|p02766|0
codenet
Compile Error
268
v2_s356274406
s356274406
s356274406
p02766
p02766
u866070271
u866070271
1,582,425,228
2020-02-23T02:33:48
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String n = scan.next(); int k = scan.nextInt(); String converted = (String)Integer.parseInt(n, k); System.out.println(converted.length()); } } }
Main.java:16: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02766|0
u866070271|p02766|0
codenet
Compile Error
316
v2_s967592350
s967592350
s967592350
p02766
p02766
u866070271
u866070271
1,582,425,262
2020-02-23T02:34:22
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String n = scan.next(); int k = scan.nextInt(); String converted = (String)Integer.parseInt(n, k); System.out.println(converted.length()); } }
Main.java:10: error: incompatible types: int cannot be converted to String String converted = (String)Integer.parseInt(n, k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02766|0
u866070271|p02766|0
codenet
Compile Error
307
v2_s235716274
s235716274
s235716274
p02766
p02766
u866070271
u866070271
1,582,425,354
2020-02-23T02:35:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String n = scan.next(); int k = scan.nextInt(); int converted = Integer.parseInt(n, k); String res = Integer.toString(converted); System.out.println(res.len...
Main.java:17: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02766|0
u866070271|p02766|0
codenet
Compile Error
347
v2_s758020937
s758020937
s758020937
p02766
p02766
u866070271
u866070271
1,582,425,565
2020-02-23T02:39:25
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String n = scan.next(); int k = scan.nextInt(); String res = Integer.toString(Integer.pasrseInt(n, k)); System.out.println(res.length()); } }
Main.java:10: error: cannot find symbol String res = Integer.toString(Integer.pasrseInt(n, k)); ^ symbol: method pasrseInt(String,int) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02766|0
u866070271|p02766|0
codenet
Compile Error
304
v2_s743030177
s743030177
s743030177
p02766
p02766
u866070271
u866070271
1,582,425,703
2020-02-23T02:41:43
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.next(); int k = scan.nextInt(); String res = Integer.toString(n, k); System.out.println(res.length()); } }
Main.java:7: error: incompatible types: String cannot be converted to int int n = scan.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02766|0
u866070271|p02766|0
codenet
Compile Error
283
v2_s478704218
s478704218
s478704218
p02766
p02766
u951972070
u951972070
1,593,925,815
2020-07-05T05:10:15
Main.java
import java.util.Scanner; import java.lang.Integer; class Main { public static void main(String[] args) throws NumberFormatException { Scanner sc = new Scanner(System.in); var N = sc.nextInt(); var K = sc.nextInt(); System.out.println(String.valueOf(Integer.parseInt(N, K)).length()); }...
Main.java:9: error: incompatible types: int cannot be converted to String System.out.println(String.valueOf(Integer.parseInt(N, K)).length()); ^ 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
u951972070|p02766|0
u951972070|p02766|0
codenet
Compile Error
323
v2_s655096613
s655096613
s655096613
p02766
p02766
u951972070
u951972070
1,593,925,893
2020-07-05T05:11:33
Main.java
import java.util.Scanner; import java.lang.Integer; class Main { public static void main(String[] args) throws NumberFormatException { Scanner sc = new Scanner(System.in); var N = sc.nextInt(); var K = sc.nextInt(); String n = N; String k = K; System.out.println(String.val...
Main.java:9: error: incompatible types: int cannot be converted to String String n = N; ^ Main.java:10: error: incompatible types: int cannot be converted to String String k = K; ^ Main.java:11: error: incompatible types: String cannot be converted to int S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02766|0
u951972070|p02766|0
codenet
Compile Error
368
v2_s747803550
s747803550
s747803550
p02766
p02766
u951972070
u951972070
1,593,926,009
2020-07-05T05:13:29
Main.java
import java.util.Scanner; import java.lang.Integer; class Main { public static void main(String[] args) throws NumberFormatException { Scanner sc = new Scanner(System.in); var N = sc.nextInt(); var K = sc.nextInt(); System.out.println(String.valueOf(Integer.parseInt(String.valueOf(N), Stri...
Main.java:9: error: incompatible types: String cannot be converted to int System.out.println(String.valueOf(Integer.parseInt(String.valueOf(N), String.valueOf(K))).length()); ^ Note: Some messages have been simplified; r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02766|0
u951972070|p02766|0
codenet
Compile Error
355
v2_s005099158
s005099158
s005099158
p02766
p02766
u951972070
u951972070
1,593,926,233
2020-07-05T05:17:13
Main.java
import java.util.Scanner; import java.lang.Integer; import java.lang.String; class Main { public static void main(String[] args) throws NumberFormatException { Scanner sc = new Scanner(System.in); var N = sc.nextInt(); var K = sc.nextInt(); System.out.println(String.valueOf(Integer.parseIn...
Main.java:10: error: incompatible types: int cannot be converted to String System.out.println(String.valueOf(Integer.parseInt(N, K)).length()); ^ 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
u951972070|p02766|0
u951972070|p02766|0
codenet
Compile Error
348
v2_s773776702
s773776702
s773776702
p02766
p02766
u951972070
u951972070
1,593,927,349
2020-07-05T05:35:49
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 n = 10; int m = K; String s = Integer.toString(Integer.parseInt(String.valueOf(N) ,n),m); String A = s....
Main.java:15: error: incompatible types: int cannot be converted to String String A = s.length(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951972070|p02766|0
u951972070|p02766|0
codenet
Compile Error
369
v2_s875173316
s875173316
s875173316
p02767
p02767
u044527108
u044527108
1,582,493,733
2020-02-23T21:35:33
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] a = new int[n]; int sum = 0; for(int i=0; i<n; i++) { a[i] = s.nextInt(); s...
Main.java:30: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044527108|p02767|0
u044527108|p02767|0
codenet
Compile Error
640
v2_s574558222
s574558222
s574558222
p02767
p02767
u053797146
u053797146
1,582,432,545
2020-02-23T04:35:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); int[] ranges = new Integer()[count]; int range = 0; fo...
Main.java:11: error: ';' expected range += (index - new Integer(scanLine[i]))*(index - new Integer(scanLine[i])) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|0
u053797146|p02767|0
codenet
Compile Error
494
v2_s686787832
s686787832
s686787832
p02767
p02767
u053797146
u053797146
1,582,432,638
2020-02-23T04:37:18
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); //int[] ranges = new int[count]; int range = 0; for(in...
Main.java:11: error: ';' expected range += (index - new Integer(scanLine[i]))*(index - new Integer(scanLine[i])) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|0
u053797146|p02767|0
codenet
Compile Error
490
v2_s338475115
s338475115
s338475115
p02767
p02767
u053797146
u053797146
1,582,432,661
2020-02-23T04:37:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); //int[] ranges = new int[count]; int range = 0; for(in...
Main.java:6: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int index = new Integer(scan.nextLine()); ^ Main.java:10: error: cannot find symbol for(int i=0;i<count;i++){ ^ symbol: variable count location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|0
u053797146|p02767|0
codenet
Compile Error
491
v2_s810283152
s810283152
s810283152
p02767
p02767
u053797146
u053797146
1,582,432,728
2020-02-23T04:38:48
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); //int[] ranges = new int[count]; int range = 0; for(in...
Main.java:6: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int index = new Integer(scan.nextLine()); ^ Main.java:10: error: cannot find symbol for(int i=0;i<scanLine.lengh();i++){ ^ symbol: method lengh() lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|0
u053797146|p02767|0
codenet
Compile Error
502
v2_s988103416
s988103416
s988103416
p02767
p02767
u053797146
u053797146
1,582,432,775
2020-02-23T04:39:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int index = new Integer(scan.nextLine()); String[] scanLine = scan.nextLine().split(" "); //int[] ranges = new int[count]; int range = 0; for(in...
Main.java:6: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal int index = new Integer(scan.nextLine()); ^ Main.java:10: error: cannot find symbol for(int i=0;i<scanLine.lengh;i++){ ^ symbol: variable lengh loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|0
u053797146|p02767|0
codenet
Compile Error
500
v2_s073783473
s073783473
s073783473
p02767
p02767
u053797146
u053797146
1,582,650,590
2020-02-25T17:09:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.nextLine(); List<Integer> values = Arrays.sort(Arrays.of(scan.nextLine().split(" ")).map{i->new...
Main.java:8: error: ')' or ',' expected List<Integer> values = Arrays.sort(Arrays.of(scan.nextLine().split(" ")).map{i->new Integer(i)};); ^ Main.java:8: error: not a statement List<Integer> value...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|1
u053797146|p02767|1
codenet
Compile Error
1,191
v2_s395649060
s395649060
s395649060
p02767
p02767
u053797146
u053797146
1,582,650,634
2020-02-25T17:10:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.nextLine(); List<Integer> values = Arrays.sort(Arrays.of(scan.nextLine().split(" ")).map{i->new Integer...
Main.java:8: error: ')' or ',' expected List<Integer> values = Arrays.sort(Arrays.of(scan.nextLine().split(" ")).map{i->new Integer(i);};); ^ Main.java:8: error: not a statement List<Integer> valu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|1
u053797146|p02767|1
codenet
Compile Error
1,184
v2_s310218111
s310218111
s310218111
p02767
p02767
u053797146
u053797146
1,582,650,721
2020-02-25T17:12:01
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.nextLine(); List<Integer> values = Arrays.sort(Arrays.of(scan.nextLine().split(" ")).map(i->new Integer...
Main.java:9: error: illegal start of expression Map<Integer,Integer> searchResult = new HashMap()<>; ^ Main.java:9: error: illegal start of expression Map<Integer,Integer> searchResult = new HashMap()<>; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|1
u053797146|p02767|1
codenet
Compile Error
1,182
v2_s773068296
s773068296
s773068296
p02767
p02767
u053797146
u053797146
1,582,651,110
2020-02-25T17:18:30
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.nextLine(); List<Integer> values = Arrays.asList(scan.nextLine().split(" ")).stream().map(i->new Integer(i)).collect(Collectors.toList()); Map<Integer,Integer> searchResult = new...
Main.java:21: error: cannot find symbol public static int calc(List<Integer> list,Integer point){ ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053797146|p02767|1
u053797146|p02767|1
codenet
Compile Error
980
v2_s446447522
s446447522
s446447522
p02767
p02767
u137339784
u137339784
1,582,424,674
2020-02-23T02:24:34
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] x = new int[n]; for(int i = 0; i < n; i++) { x[i] = scan.nextInt(); } int ans = Integer.MAX_VALUE; for(int i = 1; i <= 100; i++) { int temp =0; for ( int j = 0; j...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137339784|p02767|0
u137339784|p02767|0
codenet
Compile Error
449
v2_s384318920
s384318920
s384318920
p02767
p02767
u155138322
u155138322
1,583,015,740
2020-02-29T22:35:40
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String sc1 = scanner.nextLine(); String scline = scanner.nextLine(); String array[] = sc.nextLine().split(" "); double sum = 0; for( int i=0; i<s...
Main.java:12: error: ';' expected int ave = Math.round(sum/sc1) ^ Main.java:17: error: ';' expected System.out.println(sum2) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u155138322|p02767|0
u155138322|p02767|0
codenet
Compile Error
575
v2_s287158912
s287158912
s287158912
p02767
p02767
u155138322
u155138322
1,583,015,774
2020-02-29T22:36:14
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String sc1 = scanner.nextLine(); String scline = scanner.nextLine(); String array[] = sc.nextLine().split(" "); double sum = 0; for( int i=0; i<s...
Main.java:7: error: cannot find symbol String array[] = sc.nextLine().split(" "); ^ symbol: variable sc location: class Main Main.java:9: error: bad operand types for binary operator '<' for( int i=0; i<sc1; i++ ) { ^ first type: int second t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u155138322|p02767|0
u155138322|p02767|0
codenet
Compile Error
577
v2_s256879261
s256879261
s256879261
p02767
p02767
u212397344
u212397344
1,585,358,076
2020-03-28T01:14:36
Main.java
import java.util.Scanner; import java.util.Math; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] K = new int[]; int L = 100; int R = 0; int ans = Integer.MAX_VALUE; for(int i=0; i<N; i++){ K[i] = sc.nextInt(); ...
Main.java:7: error: array dimension missing int[] K = new int[]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02767|0
u212397344|p02767|0
codenet
Compile Error
587
v2_s600969004
s600969004
s600969004
p02767
p02767
u212397344
u212397344
1,585,358,094
2020-03-28T01:14:54
Main.java
import java.util.Scanner; import java.util.Math; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] K = new int[N]; int L = 100; int R = 0; int ans = Integer.MAX_VALUE; for(int i=0; i<N; i++){ K[i] = sc.nextInt(); ...
Main.java:2: error: cannot find symbol import java.util.Math; ^ symbol: class Math location: package java.util Main.java:18: error: variable i is already defined in method main(String[]) for(int i=0; i<N; i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02767|0
u212397344|p02767|0
codenet
Compile Error
589
v2_s415968938
s415968938
s415968938
p02767
p02767
u212397344
u212397344
1,585,358,151
2020-03-28T01:15:51
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] K = new int[N]; int L = 100; int R = 0; int ans = Integer.MAX_VALUE; for(int i=0; i<N; i++){ K[i] = sc.nextInt(); L = Math.min(L, K[i]); ...
Main.java:17: 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
u212397344|p02767|0
u212397344|p02767|0
codenet
Compile Error
560
v2_s549130090
s549130090
s549130090
p02767
p02767
u291818671
u291818671
1,584,580,527
2020-03-19T01:15:27
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int sum = 0; for (int i =0;i<n;i++) { a[i] = sc.nextInt(); sum+=a[i]; } sc.nextInt(); 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
u291818671|p02767|0
u291818671|p02767|0
codenet
Compile Error
569
v2_s524235176
s524235176
s524235176
p02767
p02767
u291818671
u291818671
1,584,580,796
2020-03-19T01:19:56
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int sum = 0; for (int i =0;i<n;i++) { a[i] = sc.nextInt(); sum+=a[i]; } int w = sum / ...
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
u291818671|p02767|0
u291818671|p02767|0
codenet
Compile Error
548
v2_s975136046
s975136046
s975136046
p02767
p02767
u463939378
u463939378
1,582,753,524
2020-02-26T21:45:24
Main.java
import java.util.*; public class Main{ public static void main(String...args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] x = new int[n]; int max = 0; for(int i = 0;i < n;i++){ x[i] = s.nextInt(); if(i == 0 || x[i] > min){ min = x[i]; } if(i == 0 || x[i] < max){ ...
Main.java:10: error: cannot find symbol if(i == 0 || x[i] > min){ min = x[i]; } ^ symbol: variable min location: class Main Main.java:10: error: cannot find symbol if(i == 0 || x[i] > min){ min = x[i]; } ^ symbol: variable min location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463939378|p02767|0
u463939378|p02767|0
codenet
Compile Error
577
v2_s178630209
s178630209
s178630209
p02767
p02767
u532873044
u532873044
1,582,913,232
2020-02-28T18:07:12
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[] x = new int[n]; for(int i=0; i<n; i++){ x[i] = sc.nextInt(); } int min = x[0]; int max = x[0]; for(int i=0; i<n; i++){ ...
Main.java:31: error: ';' expected total += (x[j]-i) * (x[j]-i) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02767|0
u532873044|p02767|0
codenet
Compile Error
747
v2_s604377278
s604377278
s604377278
p02767
p02767
u532873044
u532873044
1,582,913,398
2020-02-28T18:09:58
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[] x = new int[n]; for(int i=0; i<n; i++){ x[i] = sc.nextInt(); } int min = x[0]; int max = x[0]; for(int i=0; i<n; i++){ ...
Main.java:30: error: ';' expected int total += (x[j]-i) * (x[j]-i); ^ Main.java:30: error: not a statement int total += (x[j]-i) * (x[j]-i); ^ Main.java:30: error: ';' expected int total += (x[j]-i) * (x[j]-i); ^ Main.java:30...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02767|0
u532873044|p02767|0
codenet
Compile Error
686
v2_s578910021
s578910021
s578910021
p02767
p02767
u532873044
u532873044
1,582,913,469
2020-02-28T18:11:09
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[] x = new int[n]; for(int i=0; i<n; i++){ x[i] = sc.nextInt(); } int min = x[0]; int max = x[0]; for(int i=0; i<n; i++){ ...
Main.java:26: error: ';' expected int total = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02767|0
u532873044|p02767|0
codenet
Compile Error
757
v2_s070736695
s070736695
s070736695
p02767
p02767
u532873044
u532873044
1,582,913,641
2020-02-28T18:14:01
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[] x = new int[n]; for(int i=0; i<n; i++){ x[i] = sc.nextInt(); } int min = x[0]; int max = x[0]; for(int i=0; i<n; i++){ ...
Main.java:36: error: ';' expected total = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02767|0
u532873044|p02767|0
codenet
Compile Error
794
v2_s041958922
s041958922
s041958922
p02767
p02767
u537070292
u537070292
1,583,457,851
2020-03-06T01:24:11
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int x[] = new int[n]; for(int i = 0; i < n; i ++){ x[i] = scan.nextInt(); } int answer = 10000; for(int i = 0; i < 100; i ++){ int...
Main.java:10: error: illegal character: '\u3000' int answer =?10000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02767|0
u537070292|p02767|0
codenet
Compile Error
506
v2_s333799882
s333799882
s333799882
p02767
p02767
u537070292
u537070292
1,583,457,895
2020-03-06T01:24:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int x[] = new int[n]; for(int i = 0; i < n; i ++){ x[i] = scan.nextInt(); } int answer = 10000; for(int i = 0; i < 100; i ++){ int...
Main.java:14: error: cannot find symbol sum += Math.pow((a[j]-i),2); ^ symbol: variable a location: class Main Main.java:20: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02767|0
u537070292|p02767|0
codenet
Compile Error
505
v2_s337938573
s337938573
s337938573
p02767
p02767
u537070292
u537070292
1,583,457,978
2020-03-06T01:26:18
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int x[] = new int[n]; for(int i = 0; i < n; i ++){ x[i] = scan.nextInt(); } int answer = 10000; for(int i = 0; i < 100; i ++){ int...
Main.java:20: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02767|0
u537070292|p02767|0
codenet
Compile Error
505
v2_s778882544
s778882544
s778882544
p02767
p02767
u547671064
u547671064
1,584,964,315
2020-03-23T11:51:55
Main.java
import java.util*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int N=sc.nextInt(); int A[] = new int[N]; int B[] = new int[N+1]; B[0] =0; for(int i=0;i<N;i++){ A[i]=sc.nextInt(); B[i+1]=B[i]+A[i];} double C =B[N]/N; int D =...
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02767|1
u547671064|p02767|1
codenet
Compile Error
462
v2_s116761414
s116761414
s116761414
p02767
p02767
u574685848
u574685848
1,588,873,288
2020-05-07T17:41:28
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int n; n = cin.nextInt(); ArrayList<Integer> x = new ArrayList<>(); for (int i = 0; i < n; i++) { x.add(ci...
Main.java:24: error: cannot find symbol if (sum < xSquareMin) { ^ symbol: variable xSquareMin location: class Main Main.java:25: error: cannot find symbol xSquareMin = sum; ^ symbol: variable xSquareMin location: class Main Main.java:28: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574685848|p02767|0
u574685848|p02767|0
codenet
Compile Error
705
v2_s522752607
s522752607
s522752607
p02767
p02767
u610133777
u610133777
1,582,427,169
2020-02-23T03:06:09
atcoder0221_C.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class atcoder0221_C{ public class Main{ // public static void main(String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); List<Integer> X = new ArrayList<Integer>(); for(int i=0;i<N;i++) { X.add(sc...
atcoder0221_C.java:11: error: illegal start of type for(int i=0;i<N;i++) { ^ atcoder0221_C.java:11: error: > or ',' expected for(int i=0;i<N;i++) { ^ atcoder0221_C.java:11: error: <identifier> expected for(int i=0;i<N;i++) { ^ atcoder0221_C.java:17: error: illegal start of ty...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610133777|p02767|0
u610133777|p02767|0
codenet
Compile Error
829
v2_s153873748
s153873748
s153873748
p02767
p02767
u723790132
u723790132
1,582,429,088
2020-02-23T03:38:08
Main.java
{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int X[] = new int[N]; int sum = 0; int ans = 0; for (int i = 0 ; i< N ; i++){ X[i] = sc.nextInt(); sum = sum + X[i]; } double ...
Main.java:1: error: class, interface, enum, or record expected { ^ Main.java:2: 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:20: error: class, interface, enum, or re...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723790132|p02767|0
u723790132|p02767|0
codenet
Compile Error
532
v2_s148239890
s148239890
s148239890
p02767
p02767
u727990828
u727990828
1,582,425,587
2020-02-23T02:39:47
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 = new int[a]; //int c = sc.nextInt(); int sum = 0; for(int i = 0;i < a; i++){ b[i] = sc.nextInt(); sum += b[i]; } int pos = 0; i...
Main.java:18: error: '.class' expected if(sum%a >= a(float)/2)pos = (sum/a) + 1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727990828|p02767|0
u727990828|p02767|0
codenet
Compile Error
696
v2_s856684801
s856684801
s856684801
p02767
p02767
u846370851
u846370851
1,582,647,996
2020-02-25T16:26:36
Main.java
import java.util.Arrays; import java.util.Scanner; import java.util.stream.IntStream; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int x[] = new int[n]; for (int i = ...
Main.java:22: error: variable x is already defined in method stamina(int[]) return Arrays.stream(x).map(x->(x-p)*(x-p)).sum(); ^ Main.java:24: error: variable x is already defined in method stamina(int[]) return IntStream.of(p, p+1).map(t-> Arrays.stream(x...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u846370851|p02767|0
u846370851|p02767|0
codenet
Compile Error
775
v2_s156868158
s156868158
s156868158
p02767
p02767
u846370851
u846370851
1,582,648,184
2020-02-25T16:29:44
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int x[] = new int[n]; for (int i = 0; i < n; i++) { x[i] = scanner.nextInt(); } System.out.println(stamina(x)); } pr...
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 Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u846370851|p02767|0
u846370851|p02767|0
codenet
Compile Error
697
v2_s656242273
s656242273
s656242273
p02767
p02767
u859415875
u859415875
1,582,428,916
2020-02-23T03:35:16
Main.java
class Main { public static void main(String args[]) { int i=0,j=0,k,l,m=0,n=0; Scanner myObj = new Scanner(System.in); i = myObj.nextInt(); int a[]=new int[i]; for(j=0;j<i;j++) { a[j]=myObj.nextInt(); if(a[j]>m) m=a[j]; } if(m%2!=0) m=(m-1)/2; els...
Main.java:6: error: cannot find symbol Scanner myObj = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner myObj = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u859415875|p02767|0
u859415875|p02767|0
codenet
Compile Error
437
v2_s230581437
s230581437
s230581437
p02767
p02767
u863964720
u863964720
1,583,538,828
2020-03-06T23:53:48
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 Max = 0; int sum1 = 0; int sum2 = 0; int[] X = sc.nextInt[N]; for(int i=0;i<N;i++){ X[i] = sc.nextInt(); if...
Main.java:21: error: illegal start of expression if(sum1=>sum2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863964720|p02767|0
u863964720|p02767|0
codenet
Compile Error
754
v2_s736966683
s736966683
s736966683
p02767
p02767
u922585959
u922585959
1,594,588,892
2020-07-12T21:21:32
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(final String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int numberOfPeople; numberOfPeople = Integer.parseInt(br.readLin...
Main.java:13: error: unreported exception IOException; must be caught or declared to be thrown numberOfPeople = Integer.parseInt(br.readLine()); ^ Main.java:17: error: unreported exception IOException; must be caught or declared to be thrown String string[] = b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922585959|p02767|0
u922585959|p02767|0
codenet
Compile Error
916
v2_s576133518
s576133518
s576133518
p02767
p02767
u997005069
u997005069
1,588,996,339
2020-05-09T03:52:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int sum = 1; int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list...
Main.java:22: error: not a statement for(min; min < max; min++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
768
v2_s981472855
s981472855
s981472855
p02767
p02767
u997005069
u997005069
1,588,996,414
2020-05-09T03:53:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int sum = 1; int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list...
Main.java:13: error: bad operand types for binary operator '<' for(int i = 0; i < list.size() < sum; i++) { ^ first type: boolean second type: int Main.java:21: error: variable sum is already defined in method main(String[]) int sum = 1000000; ^ Main.java:31: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
770
v2_s148699693
s148699693
s148699693
p02767
p02767
u997005069
u997005069
1,588,996,478
2020-05-09T03:54:38
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int sum = 1; int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list...
Main.java:21: error: variable sum is already defined in method main(String[]) int sum = 1000000; ^ Main.java:31: error: cannot find symbol System.out.println(challengeSum); ^ symbol: variable challengeSum location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
764
v2_s762098575
s762098575
s762098575
p02767
p02767
u997005069
u997005069
1,588,996,661
2020-05-09T03:57:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int sum = 1; int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list...
Main.java:21: error: variable sum is already defined in method main(String[]) int sum = 1000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
755
v2_s394722746
s394722746
s394722746
p02767
p02767
u997005069
u997005069
1,588,996,701
2020-05-09T03:58:21
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list.size(); i++) { ...
Main.java:24: error: variable challengeSum might not have been initialized challengeSum += (k -list.get(j))^2; ^ Main.java:26: error: variable challengeSum might not have been initialized if(sum > challengeSum) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
738
v2_s016252468
s016252468
s016252468
p02767
p02767
u997005069
u997005069
1,588,996,768
2020-05-09T03:59:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<Integer> list = new ArrayList<>(); list.add(sc.nextInt()); int count = 1; int min = list.get(0); int max = list.get(0); for(int i = 0; i < list.size(); i++) { ...
Main.java:24: error: variable challengeSum might not have been initialized challengeSum += (k -list.get(j))^2; ^ Main.java:26: error: variable challengeSum might not have been initialized if(sum > challengeSum) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02767|0
u997005069|p02767|0
codenet
Compile Error
736
v2_s807423494
s807423494
s807423494
p02768
p02768
u006717664
u006717664
1,597,341,268
2020-08-13T17:54:28
Main.java
#include<stdio.h> #include<iostream> #include<vector> #include<math.h> #include<queue> #include<map> #include<algorithm> #include<string.h> #include<functional> #include<limits.h> #include<stdlib.h> #include<cmath> #include<cstring> #include<set> #include<climits> #include<deque> #include <iomanip> #include<utility> us...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<iostream> ^ Main.java:3: error: illegal character: '#' #include<vector> ^ Main.java:4: error: illegal character: '...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006717664|p02768|0
u006717664|p02768|0
codenet
Compile Error
3,397
v2_s872801593
s872801593
s872801593
p02768
p02768
u062736195
u062736195
1,582,404,797
2020-02-22T20:53:17
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); long sum = 0; long before = 1; for(long i=n, i>0; i--){ if(i != a && i != b){ long scor...
Main.java:11: error: ';' expected for(long i=n, i>0; i--){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|0
u062736195|p02768|0
codenet
Compile Error
492
v2_s123871030
s123871030
s123871030
p02768
p02768
u062736195
u062736195
1,582,404,828
2020-02-22T20:53:48
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); long sum = 0; long before = 1; for(long i=n; i>0; i--){ if(i != a && i != b){ long scor...
Main.java:18: error: incompatible types: possible lossy conversion from double to long long answer = sum % (Math.pow(10,9) + 7); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|0
u062736195|p02768|0
codenet
Compile Error
493
v2_s263595678
s263595678
s263595678
p02768
p02768
u062736195
u062736195
1,582,404,878
2020-02-22T20:54:38
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); long sum = 0; long before = 1; for(long i=n; i>0; i--){ if(i != a && i != b){ long scor...
Main.java:18: error: '.class' expected long answer = long(sum % (Math.pow(10,9) + 7)); ^ Main.java:18: error: not a statement long answer = long(sum % (Math.pow(10,9) + 7)); ^ Main.java:18: error: ';' expected long answer = long(sum % (Math.pow(10,9) + 7)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|0
u062736195|p02768|0
codenet
Compile Error
499
v2_s926692954
s926692954
s926692954
p02768
p02768
u062736195
u062736195
1,582,405,455
2020-02-22T21:04:15
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); int a = sc.nextInt(); int b = sc.nextInt(); long sum = 0; long before = 1; for(long i=1; i<=n; i--){ long score = before *(n - i + 1) / ...
Main.java:14: error: illegal start of expression if(i != a && i != b) sum+ = score; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|0
u062736195|p02768|0
codenet
Compile Error
452
v2_s575591295
s575591295
s575591295
p02768
p02768
u062736195
u062736195
1,582,442,597
2020-02-23T07:23:17
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 a = sc.nextLong(); long b = sc.nextLong(); long scoreA=0, scoreB=0; long score = 0; long before = 1; for(int i=1; i<=a; i++){ sc...
Main.java:18: error: '.class' expected fore(int i=1; i<=b; i++){ ^ Main.java:18: error: not a statement fore(int i=1; i<=b; i++){ ^ Main.java:18: error: ';' expected fore(int i=1; i<=b; i++){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|1
u062736195|p02768|1
codenet
Compile Error
641
v2_s695487374
s695487374
s695487374
p02768
p02768
u062736195
u062736195
1,582,442,623
2020-02-23T07:23:43
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 a = sc.nextLong(); long b = sc.nextLong(); long scoreA=0, scoreB=0; long score = 0; long before = 1; for(int i=1; i<=a; i++){ sc...
Main.java:22: error: incompatible types: possible lossy conversion from double to long long x = Math.pow(2,n) - 1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|1
u062736195|p02768|1
codenet
Compile Error
641
v2_s130531648
s130531648
s130531648
p02768
p02768
u062736195
u062736195
1,582,442,896
2020-02-23T07:28:16
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 a = sc.nextLong(); long b = sc.nextLong(); long scoreA=0,scoreB=0,score=0;before=1; for(int i=1; i<=a; i++){ score = before * (a-i+1)/i;...
Main.java:8: error: cannot find symbol long scoreA=0,scoreB=0,score=0;before=1; ^ symbol: variable before location: class Main Main.java:11: error: cannot find symbol score = before * (a-i+1)/i; ^ symbol: variable before location: class Main Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02768|1
u062736195|p02768|1
codenet
Compile Error
670
v2_s428192859
s428192859
s428192859
p02768
p02768
u065842329
u065842329
1,582,758,109
2020-02-26T23:01:49
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(), a = in.nextInt(), b = in.nextInt(); int mod = 1_000_000_007; long total = pow(2L, n) - 1; long cab = (choose(n, a) + choose(n, b)) % mod;...
Main.java:11: error: non-static method pow(long,int) cannot be referenced from a static context long total = pow(2L, n) - 1; ^ Main.java:12: error: non-static method choose(int,int) cannot be referenced from a static context long cab = (choose(n, a) + choose(n, b)) % mod; ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065842329|p02768|1
u065842329|p02768|1
codenet
Compile Error
925
v2_s785996048
s785996048
s785996048
p02768
p02768
u218740431
u218740431
1,588,967,766
2020-05-08T19:56:06
Main.java
import java.util.*; public class Main { public static long gcd(long x,long y){ if(x < y) return gcd(y, x); if(y == 0) return x; return gcd(y, x % y); } public static long lcm(long x,long y){ return x*y/gcd(x,y); ...
Main.java:33: error: ')' expected long A = (per(n,a,mod)*(pow(per(a,a,mod),mod-2,mod))%mod; ^ Main.java:34: error: ')' expected long B = (per(n.b,mod)*(pow(per(b,b,mod),mod-2,mod))%mod; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02768|0
u218740431|p02768|0
codenet
Compile Error
1,519
v2_s013607486
s013607486
s013607486
p02768
p02768
u218740431
u218740431
1,588,967,930
2020-05-08T19:58:50
Main.java
import java.util.*; public class Main { public static long gcd(long x,long y){ if(x < y) return gcd(y, x); if(y == 0) return x; return gcd(y, x % y); } public static long lcm(long x,long y){ return x*y/gcd(x,y); ...
Main.java:33: error: ')' expected long A = (per(n,a,mod)*(pow(per(a,a,mod),mod-2,mod))%mod; ^ Main.java:34: error: ')' expected long B = (per(n.b,mod)*(pow(per(b,b,mod),mod-2,mod))%mod; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02768|0
u218740431|p02768|0
codenet
Compile Error
1,521
v2_s968376682
s968376682
s968376682
p02768
p02768
u218740431
u218740431
1,588,967,989
2020-05-08T19:59:49
Main.java
import java.util.*; public class Main { public static long gcd(long x,long y){ if(x < y) return gcd(y, x); if(y == 0) return x; return gcd(y, x % y); } public static long lcm(long x,long y){ return x*y/gcd(x,y); ...
Main.java:33: error: ')' expected long A = per(n,a,mod)*(pow(per(a,a,mod),mod-2,mod)%mod; ^ Main.java:34: error: ')' expected long B = per(n.b,mod)*(pow(per(b,b,mod),mod-2,mod)%mod; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02768|0
u218740431|p02768|0
codenet
Compile Error
1,516
v2_s533882764
s533882764
s533882764
p02768
p02768
u218740431
u218740431
1,588,968,072
2020-05-08T20:01:12
Main.java
import java.util.*; public class Main { public static long gcd(long x,long y){ if(x < y) return gcd(y, x); if(y == 0) return x; return gcd(y, x % y); } public static long lcm(long x,long y){ return x*y/gcd(x,y); ...
Main.java:13: error: method per in class Main cannot be applied to given types; return (per(x,y-1)*(x-y+1))%z; ^ required: long,long,long found: long,long reason: actual and formal argument lists differ in length Main.java:18: error: incompatible types: possible lossy conversion from do...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02768|0
u218740431|p02768|0
codenet
Compile Error
1,518