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_s246906154
s246906154
s246906154
p02724
p02724
u462108447
u462108447
1,586,035,407
2020-04-04T21:23:27
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int zankin = sc.nextInt(); for (int i = 0; zankin - 500 * i >= 0 ; i++ ) { i = i + 1 ; } zankin = zankin - 500 * i ; for (int j = 0; zan...
Main.java:10: error: cannot find symbol zankin = zankin - 500 * i ; ^ symbol: variable i location: class Main Main.java:16: error: cannot find symbol System.out.println(i * 1000 + j * 5); ^ symbol: variable i location: class Main Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462108447|p02724|0
u462108447|p02724|0
codenet
Compile Error
440
v2_s230556305
s230556305
s230556305
p02724
p02724
u504104503
u504104503
1,585,450,809
2020-03-29T03:00:09
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); // Start writing your solution here. ------------------------------------- int n = sc.nextLo...
Main.java:11: error: incompatible types: possible lossy conversion from long to int int n = sc.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504104503|p02724|0
u504104503|p02724|0
codenet
Compile Error
2,137
v2_s508850701
s508850701
s508850701
p02724
p02724
u506944010
u506944010
1,585,593,391
2020-03-30T18:36:31
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int x = in.nextInt(); int hp=0; while(x>500){ x-=500; hp+=1000; } while(x>5){ x-=5; hp+=5; ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u506944010|p02724|0
u506944010|p02724|0
codenet
Compile Error
365
v2_s198055667
s198055667
s198055667
p02724
p02724
u572757084
u572757084
1,585,448,784
2020-03-29T02:26:24
Main.java
import java.util.*; class coins { Scanner obj=new Scanner(System.in); int X=obj.nextInt(); int pts=(X/500*1000)+((X-(500*(X/500)))/5)*5); System.out.println(pts); } }
Main.java:6: error: ';' expected int pts=(X/500*1000)+((X-(500*(X/500)))/5)*5); ^ Main.java:7: error: <identifier> expected System.out.println(pts); ^ Main.java:7: error: <identifier> expected System.out.println(pts); ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572757084|p02724|0
u572757084|p02724|0
codenet
Compile Error
180
v2_s505841832
s505841832
s505841832
p02724
p02724
u584924463
u584924463
1,585,444,153
2020-03-29T01:09:13
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = X / 500; int Z = (X-Y*500)/5; System.out.println( Y*1000 + Z*5 ); }
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p02724|0
u584924463|p02724|0
codenet
Compile Error
278
v2_s058340463
s058340463
s058340463
p02724
p02724
u610146401
u610146401
1,596,495,268
2020-08-03T22:54:28
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X=sc.nextInt(); int happy=0; happy+=X/500*1000; happy+=X%500/5*5; System.out.println(happy); } } }
Main.java:12: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610146401|p02724|0
u610146401|p02724|0
codenet
Compile Error
256
v2_s055589401
s055589401
s055589401
p02724
p02724
u635104822
u635104822
1,585,446,120
2020-03-29T01:42:00
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scasnner in=new Scanner(System.in); int X; X=in.nextInt(); int p,m,t,s; m=X/500; p=X%500; t=p/5; s=m*1000+t*5; System.out.println(s); } }
Main.java:6: error: cannot find symbol Scasnner in=new Scanner(System.in); ^ symbol: class Scasnner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02724|0
u635104822|p02724|0
codenet
Compile Error
287
v2_s301799323
s301799323
s301799323
p02724
p02724
u635104822
u635104822
1,585,446,337
2020-03-29T01:45:37
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scasnner in=new Scanner(System.in); int X=in.nextInt(); int p,m,t,s; m=X/500; p=X%500; t=p/5; s=m*1000+t*5; System.out.println(s); } }
Main.java:6: error: cannot find symbol Scasnner in=new Scanner(System.in); ^ symbol: class Scasnner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02724|0
u635104822|p02724|0
codenet
Compile Error
274
v2_s558377446
s558377446
s558377446
p02724
p02724
u679312480
u679312480
1,585,444,943
2020-03-29T01:22:23
Main.java
import java.util.*; import java.math.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int money = Integer.parseInt(sc.next()); int grad = 0; int moneyPer500Success = money - money % 500; ...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02724|0
u679312480|p02724|0
codenet
Compile Error
561
v2_s040896196
s040896196
s040896196
p02724
p02724
u723153318
u723153318
1,585,530,708
2020-03-30T01:11:48
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int S = sc.NextInt(); int totalHappy = 0; totalHappy = totalHappy + ((S/500) * 1000); S = S%500; totalHappy = totalHappy + ((S/5) *5); S = S%5; System.out.printl...
Main.java:7: error: cannot find symbol int S = sc.NextInt(); ^ symbol: method NextInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723153318|p02724|0
u723153318|p02724|0
codenet
Compile Error
344
v2_s263405756
s263405756
s263405756
p02724
p02724
u723153318
u723153318
1,585,530,796
2020-03-30T01:13:16
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int S = sc.NextInt(); int totalHappy = 0; totalHappy = totalHappy + ((S/500) * 1000); S = S%500; totalHappy = totalHappy + ((S/5) *5); S = S%5; System.out.printl...
Main.java:7: error: cannot find symbol int S = sc.NextInt(); ^ symbol: method NextInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723153318|p02724|0
u723153318|p02724|0
codenet
Compile Error
344
v2_s118345259
s118345259
s118345259
p02724
p02724
u723153318
u723153318
1,585,530,871
2020-03-30T01:14:31
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int S = sc.NextInt(); int totalHappy = 0; totalHappy = totalHappy + ((S/500) * 1000); S = S%500; totalHappy = totalHappy + ((S/5) *5); S = S%5; System.out.printl...
Main.java:7: error: cannot find symbol int S = sc.NextInt(); ^ symbol: method NextInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723153318|p02724|0
u723153318|p02724|0
codenet
Compile Error
344
v2_s558811853
s558811853
s558811853
p02724
p02724
u757837914
u757837914
1,585,448,891
2020-03-29T02:28:11
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanInputs = new Scanner(System.in); while(scanInputs.hasNext()) { Integer baseInt = Integer.parseInt(scanInputs.next()); Integer happyLevel = 0; if(baseInt>=500) {...
Main.java:10: error: ';' expected happyLevel += 1000 * (baseInt/500) ^ Main.java:14: error: ';' expected happyLevel += 5 * (baseInt/5) ^ Main.java:20: error: class, interface, enum, or record e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u757837914|p02724|0
u757837914|p02724|0
codenet
Compile Error
604
v2_s165257946
s165257946
s165257946
p02724
p02724
u757837914
u757837914
1,585,448,930
2020-03-29T02:28:50
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanInputs = new Scanner(System.in); while(scanInputs.hasNext()) { Integer baseInt = Integer.parseInt(scanInputs.next()); Integer happyLevel = 0; if(baseInt>=500) {...
Main.java:20: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u757837914|p02724|0
u757837914|p02724|0
codenet
Compile Error
606
v2_s799733300
s799733300
s799733300
p02724
p02724
u834431693
u834431693
1,593,440,491
2020-06-29T14:21:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); if(X>=500){ int x = X/500; X -= 500*x; } if(X>=5){ int y = X/5; X -= 5*y; } System.out.println(1000*x+5*y); } }
Main.java:18: error: cannot find symbol System.out.println(1000*x+5*y); ^ symbol: variable x location: class Main Main.java:18: error: cannot find symbol System.out.println(1000*x+5*y); ^ symbol: variable y location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p02724|0
u834431693|p02724|0
codenet
Compile Error
304
v2_s015747194
s015747194
s015747194
p02724
p02724
u834431693
u834431693
1,593,440,536
2020-06-29T14:22:16
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int x, y = 0; if(X>=500){ x = X/500; X -= 500*x; } if(X>=5){ y = X/5; X -= 5*y; } System.out.println(1000*x+5*y); } }
Main.java:18: error: variable x might not have been initialized System.out.println(1000*x+5*y); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p02724|0
u834431693|p02724|0
codenet
Compile Error
309
v2_s003229656
s003229656
s003229656
p02724
p02724
u872474958
u872474958
1,585,507,162
2020-03-29T18:39:22
Main.java
import java.util.Scanner; class Main{ public static void main(String[]args){ Scanner sc= new Scanner(System.in); int X =sc.nextInt(); int tho = X%500; int A =X-500*tho; int five = A%5; int ans=tho*500+five*5; System.out.println(ans); }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u872474958|p02724|0
u872474958|p02724|0
codenet
Compile Error
242
v2_s133432395
s133432395
s133432395
p02724
p02724
u910295652
u910295652
1,585,467,596
2020-03-29T07:39:56
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { int h = 0; Scanner scanner = new Scanner(System.in); int c = scanner.nextInt(); if(c == 0) { return 0 } else { int fh = c/500; c = c%500; int f = c/5; h = fh*1000 + f*5; return h; } } }
Main.java:8: error: ';' expected return 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02724|0
u910295652|p02724|0
codenet
Compile Error
316
v2_s871734139
s871734139
s871734139
p02724
p02724
u910295652
u910295652
1,585,467,619
2020-03-29T07:40:19
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { int h = 0; Scanner scanner = new Scanner(System.in); int c = scanner.nextInt(); if(c == 0) { return 0; } else { int fh = c/500; c = c%500; int f = c/5; h = fh*1000 + f*5; return h; } } }
Main.java:8: error: incompatible types: unexpected return value return 0; ^ Main.java:14: error: incompatible types: unexpected return value return h; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02724|0
u910295652|p02724|0
codenet
Compile Error
317
v2_s649219896
s649219896
s649219896
p02724
p02724
u910295652
u910295652
1,585,467,777
2020-03-29T07:42:57
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int c = scanner.nextInt(); ans(c); } public int ans(int c) { int h = 0; if(c == 0) { return 0; } else { int fh = c/500; c = c%500; int f = c...
Main.java:6: error: non-static method ans(int) cannot be referenced from a static context ans(c); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02724|0
u910295652|p02724|0
codenet
Compile Error
377
v2_s264040870
s264040870
s264040870
p02725
p02725
u001317235
u001317235
1,590,192,943
2020-05-23T00:15:43
Main.java
public class Main { public static void main(String[] args) { //コード Scanner scanner = new Scanner(System.in); Integer K = Integer.parseInt(scanner.next()); Integer N = Integer.parseInt(scanner.next()); Integer[] dis = new Integer[N]; Integer[] total = new Integer[N]; ...
Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001317235|p02725|1
u001317235|p02725|1
codenet
Compile Error
731
v2_s653053865
s653053865
s653053865
p02725
p02725
u056351372
u056351372
1,585,446,468
2020-03-29T01:47:48
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); U...
Main.java:26: error: cannot find symbol diff[n-1]=k-a[n-1]; sum+=diff[n-1]; ^ symbol: variable sum location: class Unstoppable 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056351372|p02725|0
u056351372|p02725|0
codenet
Compile Error
1,753
v2_s318035797
s318035797
s318035797
p02725
p02725
u074720991
u074720991
1,586,550,499
2020-04-10T20:28:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int circumference = sc.nextInt(); //円周 int numOfHouses = sc.nextInt(); int[] distance = new int[numOfHouses]; for (int i = 0; i < numOfHouses; i++) { distance[i] = sc.nextInt(); }...
Main.java:14: error: <identifier> expected for (int i = 2; i < numOfHouses.; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074720991|p02725|0
u074720991|p02725|0
codenet
Compile Error
623
v2_s496971276
s496971276
s496971276
p02725
p02725
u095200025
u095200025
1,585,445,309
2020-03-29T01:28:29
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long k = sc.nextLong(); long n = sc.nextLong(); long[] a = new long[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextLong(); } Arrays.sort(a); long ans = 10000000; ...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n]; ^ Main.java:14: error: incompatible types: possible lossy conversion from long to int int temp = a[n-1] - a[i]; ^ Main.java:14: error: incompatible types: poss...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u095200025|p02725|0
u095200025|p02725|0
codenet
Compile Error
473
v2_s081256535
s081256535
s081256535
p02725
p02725
u101409694
u101409694
1,596,657,174
2020-08-05T19:52:54
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) {  Scanner sc = new Scanner(System.in); int allMeters = sc.nextInt(); int numberOfHouse = sc.nextInt(); int[] housePlase = new int[numberO...
Main.java:9: error: illegal character: '\u3000' ?Scanner sc = new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u101409694|p02725|0
u101409694|p02725|0
codenet
Compile Error
886
v2_s748852712
s748852712
s748852712
p02725
p02725
u151406587
u151406587
1,588,207,374
2020-04-30T00:42:54
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String args[])throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int k,n,tot; k=Integer.parseInt(br.readLine()); n=Integer.parseInt(br.readLine()); int arr[n],dis[n]; ...
Main.java:11: error: ']' expected int arr[n],dis[n]; ^ Main.java:11: error: ';' expected int arr[n],dis[n]; ^ Main.java:11: error: not a statement int arr[n],dis[n]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u151406587|p02725|0
u151406587|p02725|0
codenet
Compile Error
499
v2_s016726100
s016726100
s016726100
p02725
p02725
u151406587
u151406587
1,588,207,480
2020-04-30T00:44:40
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String args[])throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int k,n,tot; k=Integer.parseInt(br.readLine()); n=Integer.parseInt(br.readLine()); int arr[]=new arr[n];...
Main.java:11: error: cannot find symbol int arr[]=new arr[n]; ^ symbol: class arr location: class Main Main.java:12: error: cannot find symbol int dis[]=new dis[n]; ^ symbol: class dis location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u151406587|p02725|0
u151406587|p02725|0
codenet
Compile Error
528
v2_s935673125
s935673125
s935673125
p02725
p02725
u151406587
u151406587
1,588,207,524
2020-04-30T00:45:24
Main.java
import java.io.*; import java.util.Arrays; public class Main { public static void main(String args[])throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int k,n,tot; k=Integer.parseInt(br.readLine()); n=Integer.parseInt(br.readLine()); int arr[]=new int[n];...
Main.java:22: error: variable tot might not have been initialized System.out.println(tot); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u151406587|p02725|0
u151406587|p02725|0
codenet
Compile Error
528
v2_s639495376
s639495376
s639495376
p02725
p02725
u207294148
u207294148
1,585,760,516
2020-04-01T17:01:56
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int min; int K = stdIn.nextInt(); int N = stdIn.nextInt(); int[] distances = new int[N]; for (int i = 0; i < N; i++) { distances[i] ...
Main.java:19: error: cannot find symbol for (i = 0; i < N-1; i++) { ^ symbol: variable i location: class Main Main.java:19: error: cannot find symbol for (i = 0; i < N-1; i++) { ^ symbol: variable i location: class Main Main.java:19: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207294148|p02725|0
u207294148|p02725|0
codenet
Compile Error
641
v2_s206329604
s206329604
s206329604
p02725
p02725
u232720627
u232720627
1,585,447,701
2020-03-29T02:08:21
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int circle = sc.nextInt(); int num = sc.nextInt(); int[] house = new int[num]; for (int i = 0; i < house.length; i++){ int moto = sc.nextInt(); int hiki ...
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
u232720627|p02725|0
u232720627|p02725|0
codenet
Compile Error
958
v2_s719635466
s719635466
s719635466
p02725
p02725
u299189387
u299189387
1,585,703,038
2020-04-01T01:03:58
Traveling.java
import java.util.Arrays; public class Traveling { public static void main(String [] args) { Scanner keyboard = new Scanner(System.in); int[] input = new int[2]; for(int i = 0; i < 2; i++) { input[i] = keyboard.nextInt(); } int length = input[1]; ...
Traveling.java:8: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Traveling Traveling.java:8: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u299189387|p02725|0
u299189387|p02725|0
codenet
Compile Error
772
v2_s650750643
s650750643
s650750643
p02725
p02725
u299189387
u299189387
1,585,703,066
2020-04-01T01:04:26
Main.java
import java.util.Arrays; public class Main { public static void main(String [] args) { Scanner keyboard = new Scanner(System.in); int[] input = new int[2]; for(int i = 0; i < 2; i++) { input[i] = keyboard.nextInt(); } int length = input[1]; ...
Main.java:8: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u299189387|p02725|0
u299189387|p02725|0
codenet
Compile Error
767
v2_s609509704
s609509704
s609509704
p02725
p02725
u324404570
u324404570
1,586,064,839
2020-04-05T05:33:59
Main.java
import furui.Array; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); long k = scanner.nextLong(); long n = scanner.nextLong(); ...
Main.java:1: error: package furui does not exist import furui.Array; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324404570|p02725|1
u324404570|p02725|1
codenet
Compile Error
1,000
v2_s986034273
s986034273
s986034273
p02725
p02725
u431524719
u431524719
1,585,446,925
2020-03-29T01:55:25
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc-new Scanner(System.in); int k=sc.nextInt(); int n=sc.nextInt(); int arr[]=new int[n]; for(int i=0;i<n;i++) { arr[i]=sc.nextInt(); } int min=0;int max=arr[o]; for(int i=0;i<n;i++) { ...
Main.java:6: error: ';' expected Scanner sc-new Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431524719|p02725|0
u431524719|p02725|0
codenet
Compile Error
445
v2_s092444855
s092444855
s092444855
p02725
p02725
u452505906
u452505906
1,585,445,293
2020-03-29T01:28:13
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); // スペース区切りの整数の入力 int y = sc.nextInt(); int[] a = new int[n]; for( int i=0 ; i<n ; i++ ) { a[i] = sc.nextInt(); } Calc res = new Calc(n,y, a); System.out.println( res....
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452505906|p02725|0
u452505906|p02725|0
codenet
Compile Error
880
v2_s749820260
s749820260
s749820260
p02725
p02725
u607776962
u607776962
1,585,692,628
2020-03-31T22:10:28
Main.java
import java.util.*; public class Main{ public static void main(String[] arg){ Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int n=sc.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); if(a[i]>=k){ a[i]-=k; } ...
Main.java:11: error: cannot find symbol if(a[i]>=k){ ^ symbol: variable k location: class Main Main.java:12: error: cannot find symbol a[i]-=k; ^ symbol: variable k location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u607776962|p02725|0
u607776962|p02725|0
codenet
Compile Error
569
v2_s602390643
s602390643
s602390643
p02725
p02725
u679312480
u679312480
1,585,446,119
2020-03-29T01:41:59
Main.java
import java.util.*; class Main{ public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int around = Integer.parseInt(sc.next()); int house = Integer.parseInt(sc.next()); ArrayList<Integer> houseDis = new List<Integer>(); ...
Main.java:11: error: List is abstract; cannot be instantiated ArrayList<Integer> houseDis = new List<Integer>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u679312480|p02725|0
u679312480|p02725|0
codenet
Compile Error
1,192
v2_s698291759
s698291759
s698291759
p02725
p02725
u728264684
u728264684
1,585,446,188
2020-03-29T01:43:08
Main.java
import java.util.*; /* 問題文 */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long k = sc.nextLong(); long n = sc.nextLong(); long[] a; for (int i = 0; i < n; i ++) { a[i] = sc.nextInt(); if (k/2 <...
Main.java:18: error: variable a might not have been initialized a[i] = sc.nextInt(); ^ Main.java:24: error: variable a might not have been initialized Arrays.sort(a); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02725|0
u728264684|p02725|0
codenet
Compile Error
495
v2_s519238572
s519238572
s519238572
p02725
p02725
u728264684
u728264684
1,585,446,224
2020-03-29T01:43:44
Main.java
import java.util.*; /* 問題文 */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long k = sc.nextInt(); long n = sc.nextInt(); long[] a; for (int i = 0; i < n; i ++) { a[i] = sc.nextInt(); if (k/2 <= ...
Main.java:18: error: variable a might not have been initialized a[i] = sc.nextInt(); ^ Main.java:24: error: variable a might not have been initialized Arrays.sort(a); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02725|0
u728264684|p02725|0
codenet
Compile Error
493
v2_s370209254
s370209254
s370209254
p02725
p02725
u733654888
u733654888
1,587,782,043
2020-04-25T02:34:03
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int N = sc.nextInt(); int[] arr = new int[N]; int[] dist = new int[N]; int result = 0; for(int i = 0; i < N; i++) { a...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:22: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u733654888|p02725|0
u733654888|p02725|0
codenet
Compile Error
662
v2_s536426369
s536426369
s536426369
p02725
p02725
u754835736
u754835736
1,586,991,827
2020-04-15T23:03:47
Main.java
import java.util.Scanner; import java.util.LinkedList; import java.lang.Math; import java.util.Arrays; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); int[] A = new in...
Main.java:20: error: incompatible types: void cannot be converted to int[] A = Arrays.sort(A); ^ Main.java:29: error: cannot find symbol B = sort(B); ^ symbol: method sort(int[]) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754835736|p02725|0
u754835736|p02725|0
codenet
Compile Error
935
v2_s041593293
s041593293
s041593293
p02725
p02725
u754835736
u754835736
1,586,992,566
2020-04-15T23:16:06
Main.java
import java.util.Scanner; import java.util.LinkedList; import java.lang.Math; import java.util.Arrays; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); int[] A = new in...
Main.java:44: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754835736|p02725|0
u754835736|p02725|0
codenet
Compile Error
949
v2_s776470364
s776470364
s776470364
p02725
p02725
u770652946
u770652946
1,585,445,506
2020-03-29T01:31:46
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(new BufferedReader(System.in)); Question question = new Question(); question.solve(sc); } static class Question { public void solve(Scanner sc) { ...
Main.java:7: error: incompatible types: InputStream cannot be converted to Reader Scanner sc = new Scanner(new BufferedReader(System.in)); ^ 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
u770652946|p02725|0
u770652946|p02725|0
codenet
Compile Error
941
v2_s270481901
s270481901
s270481901
p02725
p02725
u813895735
u813895735
1,586,540,015
2020-04-10T17:33:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); int[] a = new int[n] for (int i=0; i<n; i++) { a[n] = sc.nextInt(); } int longdistance = (k - a[n])...
Main.java:9: error: ';' expected int[] a = new int[n] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02725|0
u813895735|p02725|0
codenet
Compile Error
506
v2_s378193917
s378193917
s378193917
p02725
p02725
u825262731
u825262731
1,585,445,612
2020-03-29T01:33:32
Main.java
import java.util.*; public Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextInt(); int[] arr = new int[n]; for(int i=0;i<n;i++){ arr[i]=sc.nextInt(); } int sum1=arr[0]; for(int i=1;i<n;i++){ sum1 = sum1+...
Main.java:2: error: class, interface, enum, or record expected public Main{ ^ Main.java:3: 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:21: error: class, interface...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02725|0
u825262731|p02725|0
codenet
Compile Error
507
v2_s153910199
s153910199
s153910199
p02725
p02725
u857295147
u857295147
1,585,448,825
2020-03-29T02:27:05
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int para = s.nextInt(); int n = s.nextInt(); int[] arr = new int[n]; for(int i=0;i<n;i++) { arr[i]=s.nextInt(); } int[] d = new int[n]; d[0]=arr[0]+para-arr[n-1]; for(int i=1;i...
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
u857295147|p02725|0
u857295147|p02725|0
codenet
Compile Error
498
v2_s689668791
s689668791
s689668791
p02725
p02725
u910295652
u910295652
1,585,522,279
2020-03-29T22:51:19
Main.java
import java.utin.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int k = s.nextInt(); int n = s.nextInt(); int[] a = new int[n]; //a[0] = s.nextInt(); int answer = 0; for(int i = 0; i < n; i++) { a[i] = s.nextInt(); } if(n =...
Main.java:18: error: ';' expected answer = k-a[n]+a[0] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02725|1
u910295652|p02725|1
codenet
Compile Error
609
v2_s128000465
s128000465
s128000465
p02725
p02725
u910295652
u910295652
1,585,522,301
2020-03-29T22:51:41
Main.java
import java.utin.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int k = s.nextInt(); int n = s.nextInt(); int[] a = new int[n]; //a[0] = s.nextInt(); int answer = 0; for(int i = 0; i < n; i++) { a[i] = s.nextInt(); } if(n =...
Main.java:1: error: package java.utin does not exist import java.utin.Scanner; ^ Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02725|1
u910295652|p02725|1
codenet
Compile Error
610
v2_s696871137
s696871137
s696871137
p02725
p02725
u910295652
u910295652
1,585,522,326
2020-03-29T22:52:06
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int k = s.nextInt(); int n = s.nextInt(); int[] a = new int[n]; //a[0] = s.nextInt(); int answer = 0; for(int i = 0; i < n; i++) { a[i] = s.nextInt(); } if(n =...
Main.java:14: error: incompatible types: int cannot be converted to boolean if(n = 2) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02725|1
u910295652|p02725|1
codenet
Compile Error
610
v2_s253449373
s253449373
s253449373
p02725
p02725
u912752743
u912752743
1,586,041,441
2020-04-04T23:04:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); int n = in.nextInt(); int a[] = new int[200009]; for (int i = 0; i < n; i++) { a[i] = in.nextInt(); } ...
Main.java:20: error: class, interface, enum, or record expected r1705@r1705-VirtualBox:~/ ^ Main.java:20: error: class, interface, enum, or record expected r1705@r1705-VirtualBox:~/ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u912752743|p02725|0
u912752743|p02725|0
codenet
Compile Error
536
v2_s477364801
s477364801
s477364801
p02725
p02725
u956273471
u956273471
1,585,456,649
2020-03-29T04:37:29
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); long K = sc.nextLong(); int N = sc.nextInt(); long arr[] = new long[N]; double halfperimeter = K/2.0 ; long f = 0 , d = 0; int max = Integer...
Main.java:35: error: illegal start of statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u956273471|p02725|0
u956273471|p02725|0
codenet
Compile Error
780
v2_s226120495
s226120495
s226120495
p02726
p02726
u173574510
u173574510
1,585,505,280
2020-03-29T18:08:00
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.PriorityQueue; import java.util.StringTokenizer; public class Main { //クラス名はMain1 public static void main(String[] args) { ...
Main.java:59: error: method does not override or implement a method from a supertype @Override ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u173574510|p02726|2
u173574510|p02726|1
codenet
Compile Error
3,467
v2_s940352835
s940352835
s940352835
p02726
p02726
u321132398
u321132398
1,585,445,300
2020-03-29T01:28:20
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.PriorityQueue; import java.io.IOException; import java.util.ArrayList; import java.util.AbstractCollection; import java.util.Comparator; import java.io.InputStream; ...
Main.java:33: error: incompatible types: ArrayList[] cannot be converted to ArrayList<DLine.Edge> ArrayList<Edge> graph = new ArrayList[MAXN]; ^ Main.java:55: error: array required, but ArrayList<DLine.Edge> found for (Edge e : graph[curr.y]) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u321132398|p02726|0
u321132398|p02726|0
codenet
Compile Error
4,828
v2_s952674109
s952674109
s952674109
p02726
p02726
u482226328
u482226328
1,585,447,507
2020-03-29T02:05:07
Main.java
} return sb.toString(); } public long nextLong() { if (!hasNext()) { throw new NoSuchElementException(); } long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '...
Main.java:2: error: class, interface, enum, or record expected } ^ Main.java:4: error: class, interface, enum, or record expected } ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. public long nextLong() { ^ (use --enable-preview to enable unn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u482226328|p02726|0
u482226328|p02726|0
codenet
Compile Error
962
v2_s729319428
s729319428
s729319428
p02726
p02726
u546418037
u546418037
1,586,732,001
2020-04-12T22:53:21
Main.java
import java.io.*; import java.util.*; import java.lang.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System....
Main.java:131: error: cannot find symbol ShortestPath t = new ShortestPath(); ^ symbol: class ShortestPath location: class Main Main.java:131: error: cannot find symbol ShortestPath t = new ShortestPath(); ^ symbol: class ShortestPath location: class Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u546418037|p02726|0
u546418037|p02726|0
codenet
Compile Error
4,195
v2_s095568074
s095568074
s095568074
p02726
p02726
u604068691
u604068691
1,585,449,520
2020-03-29T02:38:40
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int X = sc.nextInt(); int Y = sc.nextInt(); int[] count = new int[N+1]; for( int i=1; i<=N-1; i++ ){ for( int k=i+1; k<=N; k++ ){ if( k<=X ){...
Main.java:24: error: illegal start of expression for( int i=1; i<=N; ++ ){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p02726|0
u604068691|p02726|0
codenet
Compile Error
557
v2_s709112769
s709112769
s709112769
p02726
p02726
u653981267
u653981267
1,586,219,516
2020-04-07T00:31:56
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 x = sc.nextLong(); long y = sc.nextLong(); long[][] a = new long[n + 1][n + 1]; for(int i = 1; i <= n; i++) { for(int j = i + 1; j <= n; j++...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[][] a = new long[n + 1][n + 1]; ^ Main.java:9: error: incompatible types: possible lossy conversion from long to int long[][] a = new long[n + 1][n + 1]; ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02726|0
u653981267|p02726|0
codenet
Compile Error
719
v2_s972861875
s972861875
s972861875
p02726
p02726
u653981267
u653981267
1,586,219,578
2020-04-07T00:32:58
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 x = sc.nextLong(); long y = sc.nextLong(); long[][] a = new long[(int)(n + 1)][(int)(n + 1)]; for(int i = 1; i <= n; i++) { for(int j = i + ...
Main.java:19: error: incompatible types: possible lossy conversion from long to int ans[a[i][j]]++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02726|0
u653981267|p02726|0
codenet
Compile Error
739
v2_s306879743
s306879743
s306879743
p02726
p02726
u920212194
u920212194
1,585,452,000
2020-03-29T03:20:00
Main.java
import java.util.ArrayList; import java.util.BitSet; import java.util.HashMap; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; public class Main { static int n,x,y; static List <Integer> [] Edge; public static void main(String[] args) { Scanner sc = new Scanner(System.in); ...
Main.java:125: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920212194|p02726|0
u920212194|p02726|0
codenet
Compile Error
2,156
v2_s889703397
s889703397
s889703397
p02727
p02727
u121655988
u121655988
1,585,882,548
2020-04-03T02:55:48
Main.java
import java.util.*;import java.io.*;import java.math.*; public class Main { public static void process()throws IOException { int x=ni(); int y=ni(); int a=ni(); int b=ni(); int c=ni(); int[]R=new int[a+1]; for(int i=0;i<a;i++) R[i]=ni(); ...
Main.java:55: error: ';' expected p1=a,p2=b,p3=c; ^ Main.java:55: error: ';' expected p1=a,p2=b,p3=c; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121655988|p02727|0
u121655988|p02727|0
codenet
Compile Error
4,141
v2_s971462927
s971462927
s971462927
p02727
p02727
u218740431
u218740431
1,585,451,099
2020-03-29T03:04:59
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 c = sc.nextInt(); int d = sc.nextInt(); int e = sc.nextInt(); int f = 0; long [] in = new long [c]; long [...
Main.java:37: error: cannot find symbol for(int i=e;i<a+b+e;i++){ans+=in4[i];} ^ symbol: variable ans location: class Main Main.java:38: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02727|0
u218740431|p02727|0
codenet
Compile Error
1,265
v2_s589215305
s589215305
s589215305
p02727
p02727
u452505906
u452505906
1,585,528,948
2020-03-30T00:42:28
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); List<Integer> p = new ArrayList<>(); List<Integer> q = new ArrayList<>(); List<Integer> r =...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452505906|p02727|1
u452505906|p02727|1
codenet
Compile Error
878
v2_s590148319
s590148319
s590148319
p02727
p02727
u478784503
u478784503
1,585,448,545
2020-03-29T02:22:25
Main.java
import java.lang.*; import java.io.*; import java.util.*; import java.util.stream.*; public class Main{ static void swap(int[] arr, int index1, int index2){ int temp = arr[index1]; arr[index1] = arr[index2]; arr[index2] = temp; } static void heapify(int index, int[] arr, int n){ int parent = index; int l ...
Main.java:17: error: ']' expected if (l < n && arr[l] =< arr[parent]) ^ Main.java:17: error: ';' expected if (l < n && arr[l] =< arr[parent]) ^ Main.java:19: error: ']' expected if (r < n && arr[r] =< arr[next_parent]) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u478784503|p02727|0
u478784503|p02727|0
codenet
Compile Error
3,099
v2_s452777439
s452777439
s452777439
p02727
p02727
u539518556
u539518556
1,585,569,845
2020-03-30T12:04:05
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); heap_max hpA = new heap_max(); heap_max hpB = new he...
Main.java:46: error: class heap_max is public, should be declared in a file named heap_max.java public class heap_max { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,217
v2_s538230264
s538230264
s538230264
p02727
p02727
u539518556
u539518556
1,585,570,050
2020-03-30T12:07:30
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); heap_max hpA = new heap_max(); heap_max hpB = new hea...
Main.java:46: error: class heap_max is public, should be declared in a file named heap_max.java public class heap_max { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,217
v2_s021528285
s021528285
s021528285
p02727
p02727
u539518556
u539518556
1,585,570,100
2020-03-30T12:08:20
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main extends heap_max { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); heap_max hpA = new heap_max(); heap_...
Main.java:46: error: class heap_max is public, should be declared in a file named heap_max.java public class heap_max { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,234
v2_s620564839
s620564839
s620564839
p02727
p02727
u539518556
u539518556
1,585,570,140
2020-03-30T12:09:00
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); heap_max hpA = new heap_max(); heap_max hpB = new hea...
Main.java:46: error: duplicate class: Main public class Main { ^ Main.java:24: error: cannot find symbol public static long apples(int X, int Y, heap_max hpA, heap_max hpB, heap_max hpC) { ^ symbol: class heap_max location: class Main Main.java:24: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,213
v2_s865638360
s865638360
s865638360
p02727
p02727
u539518556
u539518556
1,585,570,236
2020-03-30T12:10:36
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); Main hpA = new Main(); Main hpB = new Main(); Main ...
Main.java:46: error: duplicate class: Main public class Main{ ^ Main.java:12: error: cannot find symbol hpA.add(scn.nextInt()); ^ symbol: method add(int) location: variable hpA of type Main Main.java:15: error: cannot find symbol hpB.add(scn.nextInt()); ^ symbol: method add(int) loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,177
v2_s862980966
s862980966
s862980966
p02727
p02727
u539518556
u539518556
1,585,570,314
2020-03-30T12:11:54
Main.java
import java.util.Scanner; import java.util.ArrayList; public class main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int X = scn.nextInt(), Y = scn.nextInt(); int A = scn.nextInt(), B = scn.nextInt(), C = scn.nextInt(); Main hpA = new Main(); Main hpB = new Main(); Main ...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u539518556|p02727|0
u539518556|p02727|0
codenet
Compile Error
2,178
v2_s776265797
s776265797
s776265797
p02727
p02727
u766678246
u766678246
1,585,446,617
2020-03-29T01:50:17
aplle.java
import com.sun.xml.internal.ws.addressing.WsaActionUtil; import java.util.*; public class aplle { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); ArrayList<Integer>...
aplle.java:1: error: package com.sun.xml.internal.ws.addressing does not exist import com.sun.xml.internal.ws.addressing.WsaActionUtil; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766678246|p02727|0
u766678246|p02727|0
codenet
Compile Error
1,188
v2_s892570085
s892570085
s892570085
p02727
p02727
u766678246
u766678246
1,585,448,400
2020-03-29T02:20:00
Main.java
import com.sun.xml.internal.ws.addressing.WsaActionUtil; import java.util.*; class Main { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); ArrayList<Integer> red=new...
Main.java:1: error: package com.sun.xml.internal.ws.addressing does not exist import com.sun.xml.internal.ws.addressing.WsaActionUtil; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766678246|p02727|0
u766678246|p02727|0
codenet
Compile Error
1,250
v2_s589341398
s589341398
s589341398
p02727
p02727
u770652946
u770652946
1,585,449,002
2020-03-29T02:30:02
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Question question = new Question(); question.solve(sc); } static class Question { public void solve(Scanner sc) { int n = sc....
Main.java:44: error: incompatible types: unexpected return value return sum; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770652946|p02727|0
u770652946|p02727|0
codenet
Compile Error
1,565
v2_s383493471
s383493471
s383493471
p02727
p02727
u835335967
u835335967
1,585,449,574
2020-03-29T02:39:34
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd = new Scanner(System.in); int x=kbd.nextInt(); int y=kbd.nextInt(); int a=kbd.nextInt(); int b=kbd.nextInt(); int c=kbd.nextInt(); int[] r = new int[b]; for(int i=0;i<a;i++){ r[i]=kbd.nextInt(...
Main.java:16: error: cannot find symbol g[i]=kbd.nextInt(); ^ symbol: variable g location: class Main Main.java:20: error: cannot find symbol mm[i]=kbd.nextInt(); ^ symbol: variable mm location: class Main Main.java:35: error: cannot find symbol if(gg[j]<gg[j+1]){ ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u835335967|p02727|0
u835335967|p02727|0
codenet
Compile Error
1,741
v2_s585748713
s585748713
s585748713
p02728
p02728
u301178920
u301178920
1,599,770,690
2020-09-10T20:44:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { F f = new F(); } Scanner sc = new Scanner(System.in); int mod = 1000000007; int n; int[] size; long[] factorial ; long[] invFactorial; long[] combos; ArrayList<Integer> [] adj; public ...
Main.java:17: error: invalid method declaration; return type required public F() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u301178920|p02728|0
u301178920|p02728|0
codenet
Compile Error
2,204
v2_s671841660
s671841660
s671841660
p02729
p02729
u004932113
u004932113
1,590,110,904
2020-05-22T01:28:24
Main.java
java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //偶数の個数 int M = sc.nextInt(); //奇数の個数 //偶数になるのは奇数+奇数もしくは偶数+偶数 //奇数+奇数の場合N_C_2 int count_1 = N*(N-1)/2; //偶数+偶数の場合M_C_2 int count_2 = M*(M-1)/2; System.o...
Main.java:1: error: class, interface, enum, or record expected java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u004932113|p02729|0
u004932113|p02729|0
codenet
Compile Error
453
v2_s969056167
s969056167
s969056167
p02729
p02729
u012999123
u012999123
1,584,934,364
2020-03-23T03:32:44
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a=new long[n]; long[] g=new long[n+1]; int al=0; for(int i=0;i<n;i++){ a[i]= sc.nextInt(); al+=g[a[i]]; g[a[i]]++; } long ...
Main.java:11: error: incompatible types: possible lossy conversion from long to int al+=g[a[i]]; ^ Main.java:12: error: incompatible types: possible lossy conversion from long to int g[a[i]]++; ^ Main.java:23: error: incompatible types: possible lossy conversion fro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02729|1
u012999123|p02729|0
codenet
Compile Error
572
v2_s926281233
s926281233
s926281233
p02729
p02729
u015418292
u015418292
1,584,925,499
2020-03-23T01:04:59
Main.java
import java.util.Scanner; public class Main public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int m = stdIn.nextInt(); //偶+偶 //奇+奇 int cnt = 0; cnt += (n*(n-1))/2; cnt += (m*(m-1))/2; System.out.println(cnt); } }
Main.java:2: error: '{' expected public class 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:24: error: class, interface, enum, or rec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02729|0
u015418292|p02729|0
codenet
Compile Error
320
v2_s933870491
s933870491
s933870491
p02729
p02729
u016958027
u016958027
1,584,925,425
2020-03-23T01:03:45
Main.java
import java.io.*; import java.util.*; import forces.Solution.Reader; class Main { static long sx = 0, sy = 0, m = (long) (1e9 + 7); static ArrayList<Integer>[] a; static int[] dp; static long[] farr; // static boolean b = true; static HashMap<Integer, Integer> hm = new HashMap<>(); // static TreeMap<Integ...
Main.java:5: error: package forces.Solution does not exist import forces.Solution.Reader; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016958027|p02729|0
u016958027|p02729|0
codenet
Compile Error
4,889
v2_s490512435
s490512435
s490512435
p02729
p02729
u037069148
u037069148
1,596,831,714
2020-08-07T20:21:54
Solution.java
import java.util.Scanner; public class Solution{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(...
Solution.java:21: error: array required, but String found if (Character.compare(string[i], string[string.length()-1-i] != 0)){ ^ Solution.java:21: error: array required, but String found if (Character.compare(string[i], string[string.length()-1-i] != 0)){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02729|0
u037069148|p02729|0
codenet
Compile Error
791
v2_s319829916
s319829916
s319829916
p02729
p02729
u078419118
u078419118
1,584,934,499
2020-03-23T03:34:59
Main.java
public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int M = sc.nextInt(); // スペース区切りの整数の入力 int N = sc.nextInt(); // int c = sc.nextInt(); // 文字列の入力 // String s = sc.next(); // 出力 // System.out.println((a+b+c) + " " + s); System.out.println(M*(M-1)/2 + N*(N-1)/2...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:17: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078419118|p02729|0
u078419118|p02729|0
codenet
Compile Error
380
v2_s097867309
s097867309
s097867309
p02729
p02729
u104386856
u104386856
1,592,940,113
2020-06-23T19:21:53
Main.java
import java.util.Scanner; public class Main { public static int N, M; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); System.out.println(to_hop(N) + to_hop(M)); } public static int to_hop(int temp) { ...
Main.java:13: error: cannot find symbol to_hop = (temp*(temp-1)) / 2; ^ symbol: variable to_hop location: class Main Main.java:14: error: cannot find symbol return to_hop; ^ symbol: variable to_hop location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u104386856|p02729|0
u104386856|p02729|0
codenet
Compile Error
390
v2_s474354316
s474354316
s474354316
p02729
p02729
u104386856
u104386856
1,592,940,169
2020-06-23T19:22:49
Main.java
import java.util.Scanner; public class Main { public static int N, M; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); M = sc.nextInt(); System.out.println(to_hop(N) + to_hop(M)); } public static int to_hop(int temp) { ...
Main.java:13: error: cannot find symbol to_hop = (temp*(temp-1)) / 2; ^ symbol: variable to_hop location: class Main Main.java:14: error: cannot find symbol return to_hop; ^ symbol: variable to_hop location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u104386856|p02729|0
u104386856|p02729|0
codenet
Compile Error
390
v2_s089206395
s089206395
s089206395
p02729
p02729
u212397344
u212397344
1,585,002,905
2020-03-23T22:35:05
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int cnt = 0; int cnt = X*(X-1)/2+Y*Y(Y-1)/2; System.out.peintln(cnt); } }
Main.java:8: error: variable cnt is already defined in method main(String[]) int cnt = X*(X-1)/2+Y*Y(Y-1)/2; ^ Main.java:8: error: cannot find symbol int cnt = X*(X-1)/2+Y*Y(Y-1)/2; ^ symbol: method Y(int) location: class Main Main.java:9: error: cannot find symbol Sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02729|0
u212397344|p02729|0
codenet
Compile Error
260
v2_s779866982
s779866982
s779866982
p02729
p02729
u212397344
u212397344
1,585,002,940
2020-03-23T22:35:40
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int cnt = 0; int cnt = X*(X-1)/2+Y*(Y-1)/2; System.out.println(cnt); } }
Main.java:8: error: variable cnt is already defined in method main(String[]) int cnt = X*(X-1)/2+Y*(Y-1)/2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02729|0
u212397344|p02729|0
codenet
Compile Error
260
v2_s384596115
s384596115
s384596115
p02729
p02729
u229120147
u229120147
1,584,925,431
2020-03-23T01:03:51
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int ans = (N * N + M * M - N - M) / 2; System.out.println(ans); } }
Main.java:10: error: cannot find symbol int ans = (N * N + M * M - N - M) / 2; ^ symbol: variable N location: class Main Main.java:10: error: cannot find symbol int ans = (N * N + M * M - N - M) / 2; ^ symbol: variable N location: class Main Main.java:10: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u229120147|p02729|0
u229120147|p02729|0
codenet
Compile Error
256
v2_s846194865
s846194865
s846194865
p02729
p02729
u288042356
u288042356
1,585,531,979
2020-03-30T01:32:59
Main.java
import java.util.*; import lib.MyMath; import java.io.*; public class Main{ public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int N = sc.nextInt(); int M = sc.nextInt(); out.println(MyMath.binomial(...
Main.java:3: error: package lib does not exist import lib.MyMath; ^ Main.java:14: error: cannot find symbol out.println(MyMath.binomial(N+M, 2) - N*M); ^ symbol: variable MyMath location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02729|0
u288042356|p02729|0
codenet
Compile Error
10,258
v2_s670107147
s670107147
s670107147
p02729
p02729
u288042356
u288042356
1,585,532,051
2020-03-30T01:34:11
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int N = sc.nextInt(); int M = sc.nextInt(); out.println(MyMath.binomial(N+M, 2) - N*M); ...
Main.java:376: error: class MyMath is public, should be declared in a file named MyMath.java public class MyMath { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02729|0
u288042356|p02729|0
codenet
Compile Error
12,316
v2_s463385930
s463385930
s463385930
p02729
p02729
u290929868
u290929868
1,584,926,164
2020-03-23T01:16:04
Main.java
#include<bits/stdc++.h> #define debug(x) cout << '>' << #x << ':' << x << endl; typedef long long ll; const int INF = 1<<29; using namespace std; int main() { //freopen("input.txt","r",stdin);freopen("output.txt","w",stdout); //clock_t time_req;time_req = clock(); int n,m;cin>>n>>m; int count = 0; for(int ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define debug(x) cout << '>' << #x << ':' << x << endl; ^ Main.java:2: error: illegal character: '#' #define de...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290929868|p02729|0
u290929868|p02729|0
codenet
Compile Error
528
v2_s691063015
s691063015
s691063015
p02729
p02729
u296383300
u296383300
1,591,372,045
2020-06-05T15:47:25
Main.java
import java.util.*; public class Main{ public static viod main(String[]args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int m = s.nextInt(); System.out.println(n*(n-1)/2 + m*(m-1)/2); } }
Main.java:3: error: cannot find symbol public static viod main(String[]args){ ^ symbol: class viod location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u296383300|p02729|1
u296383300|p02729|1
codenet
Compile Error
260
v2_s640568669
s640568669
s640568669
p02729
p02729
u330907398
u330907398
1,598,070,171
2020-08-22T04:22:51
Main.java
import java.util.*; public class Main { public static void main(String[] ) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int ans = N * (N - 1) + M / 2; System.out.println(ans); } }
Main.java:3: error: <identifier> expected public static void main(String[] ) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02729|0
u330907398|p02729|0
codenet
Compile Error
246
v2_s067017641
s067017641
s067017641
p02729
p02729
u352300309
u352300309
1,584,929,924
2020-03-23T02:18:44
Main.java
import java.util.Scanner; public static void main(String[] xyz) { Scanner sc=new Scanner(System.in); String s=sc.next(); int l=s.length(); int mid=(l-1)/2; for(int i=0;i<mid;i++) { if(s.charAt(i)==s.charAt(mid-1...
Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] xyz) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352300309|p02729|0
u352300309|p02729|0
codenet
Compile Error
888
v2_s597408562
s597408562
s597408562
p02729
p02729
u369712616
u369712616
1,584,925,664
2020-03-23T01:07:44
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); inr m = sc.nextInt(); System.out.println((n * (n - 1) / 2) + (m * (m - 1))/2); } }
Main.java:6: error: cannot find symbol inr m = sc.nextInt(); ^ symbol: class inr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02729|0
u369712616|p02729|0
codenet
Compile Error
239
v2_s528092860
s528092860
s528092860
p02729
p02729
u369712616
u369712616
1,584,925,804
2020-03-23T01:10:04
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); inr m = sc.nextInt(); System.out.println((n * (n - 1) / 2) + (m * (m - 1))/2); } }
Main.java:6: error: cannot find symbol inr m = sc.nextInt(); ^ symbol: class inr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02729|0
u369712616|p02729|0
codenet
Compile Error
239
v2_s672036582
s672036582
s672036582
p02729
p02729
u392769697
u392769697
1,584,935,339
2020-03-23T03:48:59
Main.java
import java.util.*; public class Main{ { public static void main(String[] arg) { Scanner s=new Scanner(System.in); int N=s.nextInt(); int M=s.nextInt(); System.out.println(N*(N+1)/2+M*(M+1)/2); } } }
Main.java:5: error: illegal start of expression public static void main(String[] arg) ^ Main.java:13: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u392769697|p02729|0
u392769697|p02729|0
codenet
Compile Error
201
v2_s909250216
s909250216
s909250216
p02729
p02729
u407795516
u407795516
1,588,538,991
2020-05-03T20:49:51
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int N = new Scanner(System.in).nextInt(); int M = new Scanner(System.in).nextInt(); System.out.println(N*(N-1)/2 + M(M-1)/2 ); } }
Main.java:9: error: cannot find symbol System.out.println(N*(N-1)/2 + M(M-1)/2 ); ^ symbol: method M(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u407795516|p02729|0
u407795516|p02729|0
codenet
Compile Error
240
v2_s127714981
s127714981
s127714981
p02729
p02729
u423802965
u423802965
1,587,248,615
2020-04-18T22:23:35
Main.java
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { long n,m; cin>>n>>m; cout<<((n*(n-1)/2)+(m*(m-1)/2))<<endl; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:6: error: not a statement cin>>n>>m; ^ Main.java:7: error: not a statement cout<<((n*(n-1)/2)+(m*(m-1)/2))<<endl; ^ Main.java:4: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423802965|p02729|0
u423802965|p02729|0
codenet
Compile Error
146
v2_s674921799
s674921799
s674921799
p02729
p02729
u429342487
u429342487
1,591,303,274
2020-06-04T20:41:14
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); System.out.println(N * (N -1)/2 + M * (M -1)/2); } }
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: 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
u429342487|p02729|0
u429342487|p02729|0
codenet
Compile Error
220
v2_s718580689
s718580689
s718580689
p02729
p02729
u431137907
u431137907
1,598,455,516
2020-08-26T15:25:16
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[] n = new int[N]; for(int i=0; i<N; i++) { n[i] = sc.nextInt(); } int M = sc.nextInt(); int[] m = new int[N]; for(in...
Main.java:24: error: <identifier> expected System.out.println(cnt); ^ Main.java:24: error: <identifier> expected System.out.println(cnt); ^ Main.java:26: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431137907|p02729|0
u431137907|p02729|0
codenet
Compile Error
573
v2_s450247560
s450247560
s450247560
p02729
p02729
u462253630
u462253630
1,584,925,823
2020-03-23T01:10:23
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int m = sc.next(); int n = sc.next(); int mm = m*(m-1)/2; int nn = n*(n-1)/2; int answer = mm + nn; System.out....
Main.java:6: error: incompatible types: String cannot be converted to int int m = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int n = sc.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462253630|p02729|0
u462253630|p02729|0
codenet
Compile Error
352
v2_s375820230
s375820230
s375820230
p02729
p02729
u462253630
u462253630
1,584,925,870
2020-03-23T01:11:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int m = sc.next(); int n = sc.next(); int mm = m*(m-1)/2; int nn = n*(n-1)/2; int answer = mm + nn; System.out....
Main.java:6: error: incompatible types: String cannot be converted to int int m = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int n = sc.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462253630|p02729|0
u462253630|p02729|0
codenet
Compile Error
351