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_s726850082
s726850082
s726850082
p04045
p04045
u979182891
u979182891
1,590,460,086
2020-05-26T02:28:06
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int cost = Integer.parseInt(sc.next()); int dislikeN = Integer.parseInt(sc.next()); int[] dislikeArray = new int[10]; for(int i=0; i<10; i++){ dislikeArray[Integer.parseInt(sc....
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04045|0
u979182891|p04045|0
codenet
Compile Error
853
v2_s862575487
s862575487
s862575487
p04045
p04045
u997385790
u997385790
1,588,806,888
2020-05-06T23:14:48
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 k = s.nextInt(); int[] num = new int[10]; for (int i = 0;i < k; i++) { int a = s.nextInt(); num[a]=1; ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997385790|p04045|1
u997385790|p04045|1
codenet
Compile Error
643
v2_s222832127
s222832127
s222832127
p04046
p04046
u379234461
u379234461
1,471,015,699
2016-08-12T15:28:19
Main.java
import java.util.Scanner; import java.math.*; /** * http://abc042.contest.atcoder.jp/tasks/arc058_b * @author Cummin */ public class Main { public static void main(String[] args) { int H, W, A, B ; // データの読み込み Scanner sc = new Scanner(System.in); H = sc.nextInt(); W...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379234461|p04046|0
u379234461|p04046|0
codenet
Compile Error
1,284
v2_s199579569
s199579569
s199579569
p04046
p04046
u417212867
u417212867
1,599,607,419
2020-09-08T23:23:39
Main.java
import com.sun.istack.internal.Nullable; import java.io.*; import java.util.*; /** * Created by Katushka on 11.03.2020. */ public class Main { static int[] readArray(int size, InputReader in) { int[] a = new int[size]; for (int i = 0; i < size; i++) { a[i] = in.nextInt(); } ...
Main.java:1: error: package com.sun.istack.internal does not exist import com.sun.istack.internal.Nullable; ^ Main.java:68: error: cannot find symbol private static long inv(long x, long mod, @Nullable Map<Long, Long> cache) { ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u417212867|p04046|0
u417212867|p04046|0
codenet
Compile Error
6,961
v2_s539550132
s539550132
s539550132
p04046
p04046
u902576227
u902576227
1,578,671,579
2020-01-10T15:52:59
ABC042DIrohaandaGrid.java
package main.java.tasks; import java.util.Scanner; import java.io.PrintWriter; public class ABC042DIrohaandaGrid { public void solve(int testNumber, Scanner in, PrintWriter out) { int h = in.nextInt(); int w = in.nextInt(); int a = in.nextInt(); int b = in.nextInt(); ModComb mc = new ModComb(20...
ABC042DIrohaandaGrid.java:13: error: cannot find symbol ModComb mc = new ModComb(200005); ^ symbol: class ModComb location: class ABC042DIrohaandaGrid ABC042DIrohaandaGrid.java:13: error: cannot find symbol ModComb mc = new ModComb(200005); ^ symbol: class ModComb location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p04046|0
u902576227|p04046|0
codenet
Compile Error
557
v2_s162667250
s162667250
s162667250
p04046
p04046
u979182891
u979182891
1,590,462,380
2020-05-26T03:06:20
Main.java
import java.util.Scanner; calss Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; int r...
Main.java:3: error: class, interface, enum, or record expected calss Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
746
v2_s559197608
s559197608
s559197608
p04046
p04046
u979182891
u979182891
1,590,462,414
2020-05-26T03:06:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; int r...
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
748
v2_s041430433
s041430433
s041430433
p04046
p04046
u979182891
u979182891
1,590,462,444
2020-05-26T03:07:24
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; ...
Main.java:12: error: cannot find symbol int r = modFactorial(h-a+b, h-a)%modnum*modfactorial(h-a+b, b)%modnum/modFactorial(h-a+b, 1); ^ symbol: method modfactorial(int,int) location: class Main Main.java:13: error: method modFactorial in class Main cannot be applied...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
757
v2_s947842844
s947842844
s947842844
p04046
p04046
u979182891
u979182891
1,590,462,472
2020-05-26T03:07:52
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; ...
Main.java:13: error: method modFactorial in class Main cannot be applied to given types; r = r*modFactorial(w+a-b, a)%modnum*modFactorial(w+a-b, w-b)%modnum/modFactorial(w+a-b); ^ required: int,int found: int reason: actual and formal ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
757
v2_s642305298
s642305298
s642305298
p04046
p04046
u979182891
u979182891
1,590,463,799
2020-05-26T03:29:59
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; ...
Main.java:12: error: method modFactorial in class Main cannot be applied to given types; int total = modFactorial(h-w-2, h-1)*modFactorial(h-w-2, w-1)/modFactorial(h-w-2)%modnum; ^ required: int,int found: int reason: actual and formal argum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
918
v2_s237537415
s237537415
s237537415
p04046
p04046
u979182891
u979182891
1,590,464,125
2020-05-26T03:35:25
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = Integer.parseInt(sc.next()); int w = Integer.parseInt(sc.next()); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int modnum = 1000000007; ...
Main.java:23: error: not a statement int = r ^ Main.java:23: error: ';' expected int = r ^ Main.java:23: error: not a statement int = r ^ Main.java:23: error: ';' expected int = r ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
857
v2_s352085136
s352085136
s352085136
p04046
p04046
u979182891
u979182891
1,590,468,711
2020-05-26T04:51:51
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long h = Integer.parseInt(sc.next()); long w = Integer.parseInt(sc.next()); long a = Integer.parseInt(sc.next()); long b = Integer.parseInt(sc.next()); long mod = 1000000007l; ...
Main.java:58: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
1,483
v2_s479424187
s479424187
s479424187
p04046
p04046
u979182891
u979182891
1,590,470,841
2020-05-26T05:27:21
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long h = Integer.parseInt(sc.next()); long w = Integer.parseInt(sc.next()); long a = Integer.parseInt(sc.next()); long b = Integer.parseInt(sc.next()); long mod = 1000000007l; ...
Main.java:20: error: illegal start of expression private static long power(long n, long pow, long mod){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|0
u979182891|p04046|0
codenet
Compile Error
1,330
v2_s156813078
s156813078
s156813078
p04046
p04046
u979182891
u979182891
1,590,502,383
2020-05-26T14:13:03
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long h = Integer.parseInt(sc.next()); long w = Integer.parseInt(sc.next()); long a = Integer.parseInt(sc.next()); long b = Integer.parseInt(sc.next()); long mod = 1000000007l; ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int long[] factorialArray = new long[h+w]; ^ Main.java:15: error: incompatible types: possible lossy conversion from long to int factorialArray[i] *= i%mod*factorialArray[i-1l]%mod; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|1
u979182891|p04046|1
codenet
Compile Error
1,206
v2_s516927607
s516927607
s516927607
p04046
p04046
u979182891
u979182891
1,590,502,671
2020-05-26T14:17:51
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long h = Integer.parseInt(sc.next()); long w = Integer.parseInt(sc.next()); long a = Integer.parseInt(sc.next()); long b = Integer.parseInt(sc.next()); long mod = 1000000007l; ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int long[] factorialArray = new long[(int)h+w]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979182891|p04046|1
u979182891|p04046|1
codenet
Compile Error
1,237
v2_s840847810
s840847810
s840847810
p04047
p04047
u039616240
u039616240
1,590,822,250
2020-05-30T07:04:10
MyJava1.java
package myjava1; import java.util.*; public class MyJava1 { public static void main(String[] args) { int x=0,s=0,m=1,p=0; Scanner in=new Scanner(System.in); int n=new nextInt(); p=n*2; int []a=in.int[p]; for(int i=0;i<p;i++){ a[i]=in.nextInt(); ...
MyJava1.java:9: error: <identifier> expected int []a=in.int[p]; ^ MyJava1.java:9: error: ']' expected int []a=in.int[p]; ^ MyJava1.java:9: error: ';' expected int []a=in.int[p]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039616240|p04047|0
u039616240|p04047|0
codenet
Compile Error
878
v2_s351247253
s351247253
s351247253
p04047
p04047
u039616240
u039616240
1,590,823,379
2020-05-30T07:22:59
Main.java
package myjava1; import java.util. class MyJava1 { public static void main(String[] args) { int x=0,s=0,m=1,p=0; Scanner in=new Scanner(System.in); int n=in.nextInt(); p=n*2; int []a=new int[p]; for(int i=0;i<p;i++){ a[i]=in.nextInt(); } ...
Main.java:2: error: <identifier> expected import java.util. ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039616240|p04047|0
u039616240|p04047|0
codenet
Compile Error
864
v2_s863958975
s863958975
s863958975
p04047
p04047
u039616240
u039616240
1,590,823,864
2020-05-30T07:31:04
Main.java
import java.util.*; public static void main(String[] args) { int x=0,s=0,m=1,p=0; Scanner in=new Scanner(System.in); int n=in.nextInt(); p=n*2; int []a=new int[p]; for(int i=0;i<p;i++){ a[i]=in.nextInt(); } for(int i=0;i<(p-1);i++){ ...
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039616240|p04047|0
u039616240|p04047|0
codenet
Compile Error
831
v2_s040653895
s040653895
s040653895
p04047
p04047
u100264738
u100264738
1,503,924,347
2017-08-28T12:45:47
Main.java
public void main(String[] args) { Scanner sc = new Scanner(System.in); int maxCnt = sc.nextInt(); int[] arr = new int[maxCnt*1]; for (int i = 0; i < arr.length; i++) { arr[i] = sc.nextInt(); } sort(arr, 0, arr.length); int sum = 0; for(int i = 0; i < maxCnt * 2; i+=2) { sum += arr[i+1]; } System.out.p...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u100264738|p04047|0
u100264738|p04047|0
codenet
Compile Error
850
v2_s184665114
s184665114
s184665114
p04047
p04047
u100264738
u100264738
1,503,924,535
2017-08-28T12:48:55
Main.java
import java.util.*; public class Main { public void main(String[] args) { Scanner sc = new Scanner(System.in); int maxCnt = sc.nextInt(); int[] arr = new int[maxCnt*1]; for (int i = 0; i < arr.length; i++) { arr[i] = sc.nextInt(); } sort(arr, 0, arr.length); int sum = 0; for(int i = 0; i < maxCnt * 2; i+=2...
Main.java:46: error: cannot find symbol temp = arr[end]; ^ symbol: variable temp location: class Main Main.java:48: error: cannot find symbol arr[start] = temp; ^ symbol: variable temp location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u100264738|p04047|0
u100264738|p04047|0
codenet
Compile Error
947
v2_s409322064
s409322064
s409322064
p04047
p04047
u135400146
u135400146
1,575,045,631
2019-11-29T16:40:31
Main.java
import java.util.Arrays; import java.util.InputMismatchException; import java.util.Scanner; /* AtCoder AGC001-A * BBQ easy : Find the maximum sum */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int numOfSticks; int[] lenOfSticksArr...
Main.java:20: error: cannot find symbol throw new InputRangeExceedException(); ^ symbol: class InputRangeExceedException location: class Main Main.java:29: error: cannot find symbol throw new InputRangeExceedException(); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135400146|p04047|0
u135400146|p04047|0
codenet
Compile Error
2,384
v2_s110508059
s110508059
s110508059
p04047
p04047
u140881001
u140881001
1,548,627,545
2019-01-27T22:19:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String line = sc.nextLine(); // Nを取り出す int N = Integer.parseInt(line); // L1... を取り出す line = sc.nextLine(); String[] l1l2 = line.split(" "); List<Integer>...
Main.java:18: error: ')' or ',' expected kusi.add(Integer.parseInt(l1l2[i]); ^ Main.java:27: error: invalid method declaration; return type required public static calc(List<integer> list) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140881001|p04047|0
u140881001|p04047|0
codenet
Compile Error
725
v2_s582565278
s582565278
s582565278
p04047
p04047
u273417449
u273417449
1,468,723,300
2016-07-17T02:41:40
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int nagasa =sc.nextInt(); int i[]=new int[nagasa]; //要素数 for(int j=0; j<i.length; j++){ i[j]=sc.nextInt(); } Arrays.sort(i,Comparator.reverseOrder()); for(int n=0; n<i.length-1; n++){ int x=i[2*n+1...
Main.java:14: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(i,Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int upper bounds: O...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
378
v2_s118203438
s118203438
s118203438
p04047
p04047
u273417449
u273417449
1,468,723,657
2016-07-17T02:47:37
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int nagasa =sc.nextInt(); int i[]=new int[nagasa]; //要素数 for(int j=0; j<i.length; j++){ i[j]=sc.nextInt(); } for(int a=0; a< i.length-1; a++) { for(int b=0; b < i.length-a-1; b++) { ...
Main.java:26: error: ';' expected int sum +=x; ^ Main.java:26: error: not a statement int sum +=x; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
585
v2_s283557879
s283557879
s283557879
p04047
p04047
u273417449
u273417449
1,468,726,598
2016-07-17T03:36:38
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int nagasa =sc.nextInt(); int l[]=new int[nagasa]; for (int =0; i<length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l); for(int i=0; i<length-1; i++){ int ans=0; ans +=<Math.min(l[i],l[i+1]); ...
Main.java:11: error: not a statement for (int =0; i<length; i++){ ^ Main.java:11: error: ';' expected for (int =0; i<length; i++){ ^ Main.java:11: error: illegal start of expression for (int =0; i<length; i++){ ^ Main.java:11: error: not a statement for (int =0; i<length; i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
354
v2_s646019263
s646019263
s646019263
p04047
p04047
u273417449
u273417449
1,468,726,663
2016-07-17T03:37:43
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int nagasa =sc.nextInt(); int l[]=new int[nagasa]; for (int =0; i<length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l); for(int i=0; i<length-1; i++){ int ans=0; ans +=Math.min(l[i],l[i+1]); ...
Main.java:11: error: not a statement for (int =0; i<length; i++){ ^ Main.java:11: error: ';' expected for (int =0; i<length; i++){ ^ Main.java:11: error: illegal start of expression for (int =0; i<length; i++){ ^ Main.java:11: error: not a statement for (int =0; i<length; i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
353
v2_s822405645
s822405645
s822405645
p04047
p04047
u273417449
u273417449
1,468,726,758
2016-07-17T03:39:18
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int nagasa =sc.nextInt(); int l[]=new int[nagasa]; for(int i=0; i<length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l); for(int i=0; i<length-1; i++){ int ans=0; ans +=Math.min(l[i],l[i+1]); ...
Main.java:11: error: cannot find symbol for(int i=0; i<length; i++){ ^ symbol: variable length location: class Main Main.java:16: error: cannot find symbol for(int i=0; i<length-1; i++){ ^ symbol: variable length location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
353
v2_s469265599
s469265599
s469265599
p04047
p04047
u273417449
u273417449
1,468,727,748
2016-07-17T03:55:48
Main.java
import java.util.*; class Main{ void main(String[]args){ Scanner sc=new Scanner(System.in); int yousosu =sc.nextInt(); int l[]=new int[yousosu]; for(int i=0; i<l.length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l); for(int j=0; j<l.length-1; j++){ int ans=0; ans +=Math.min(l[j],l[j]+1...
Main.java:18: error: ')' or ',' expected ans +=Math.min(l[j],l[j]+1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
360
v2_s537382898
s537382898
s537382898
p04047
p04047
u273417449
u273417449
1,468,731,939
2016-07-17T05:05:39
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[] l=new int[n*2]; for(int i=0; i<l.length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l); int ans=0; for(int j=0; j<l.length; j+=2){ ans +=Math.min(...
Main.java:20: error: cannot find symbol ans +=Math.min(l[j],l[i+1]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
365
v2_s187089552
s187089552
s187089552
p04047
p04047
u273417449
u273417449
1,468,732,611
2016-07-17T05:16: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[] l=new int[n*2]; for(int i=0; i<l.length; i++){ l[i]=sc.nextInt(); } Arrays.sort(l);    //昇順にソート int ans=0; for(int j=0; j<l.length; j+=2){ ans +=Math.min(l[j],l[j+1]);...
Main.java:13: error: illegal character: '\u3000' Arrays.sort(l); ???//?????? ^ Main.java:13: error: illegal character: '\u3000' Arrays.sort(l); ???//?????? ^ Main.java:13: error: illegal character: '\u3000' Arrays.sort(l); ???//?????? ^ Main.java:17: error: illegal cha...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273417449|p04047|0
u273417449|p04047|0
codenet
Compile Error
372
v2_s119644285
s119644285
s119644285
p04047
p04047
u368054224
u368054224
1,468,820,759
2016-07-18T05:45:59
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 ans = 0; int[] a = new int[2*n]; for(int i=0;i<2*n;i++) a[i] = s.nextInt(); Arrays.sort(a); for(int i=0;i<2n;i+=2) ans += Math.min(a[i],a[i+1]); System.out.println(ans); } }
Main.java:13: error: ';' expected for(int i=0;i<2n;i+=2) ans += Math.min(a[i],a[i+1]); ^ Main.java:13: error: ')' expected for(int i=0;i<2n;i+=2) ans += Math.min(a[i],a[i+1]); ^ Main.java:13: error: ';' expected for(int i=0;i<2n;i+=2) ans += Math.min(a[i],a[i+1]); ^ 3...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u368054224|p04047|0
u368054224|p04047|0
codenet
Compile Error
318
v2_s117447010
s117447010
s117447010
p04047
p04047
u434662823
u434662823
1,541,307,312
2018-11-04T04:55:12
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<int> l(n * 2); for(int i = 0; i < n * 2; i++){ cin >> l[i]; } sort(l.begin(), l.end()); int ans = 0; for(int i = n * 2 - 2; i >= 0; i -= 2) ans += l[i]; cout << ans << endl; }
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:5: error: not a statement cin >> n; ^ Main.java:6: error: not a statement vector<int> l(n * 2); ^ Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p04047|0
u434662823|p04047|0
codenet
Compile Error
309
v2_s670959305
s670959305
s670959305
p04047
p04047
u440856847
u440856847
1,528,043,056
2018-06-03T16:24:16
ProblemA.java
import java.io.IOException; import java.util.Arrays; import java.util.Scanner; public class ProblemA { public static void main(String[] args) { try { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] skewers = new int[n * 2]; for (int i = 0; i...
ProblemA.java:23: error: exception IOException is never thrown in body of corresponding try statement } catch (IOException e) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440856847|p04047|0
u440856847|p04047|0
codenet
Compile Error
672
v2_s684874332
s684874332
s684874332
p04047
p04047
u643793353
u643793353
1,468,719,082
2016-07-17T01:31:22
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int kushi = sc.nextInt(); ArrayList<Integer> lengthList = new ArrayList<Integer>(); for (int i = 0, max = kushi * 2; i < max; i++) { int n = sc.nextInt(); leng...
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:8: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u643793353|p04047|0
u643793353|p04047|0
codenet
Compile Error
551
v2_s557671162
s557671162
s557671162
p04047
p04047
u661364300
u661364300
1,468,718,525
2016-07-17T01:22:05
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String args[]){ int N = 0; int L[] = new int[200]; int ans = 0; Arrays.fill(L, 1000); Scanner scan = new Scanner(System.in); N = scan.next(); for(int i=0;i<2*N;i++){ L[i] = scan.next(); } Arrays.sort(a); for(int i=0;i<2*N;i=i...
Main.java:11: error: incompatible types: String cannot be converted to int N = scan.next(); ^ Main.java:13: error: incompatible types: String cannot be converted to int L[i] = scan.next(); ^ Main.java:15: error: cannot find symbol Arrays.sort(a); ^ symbol: variable a locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u661364300|p04047|0
u661364300|p04047|0
codenet
Compile Error
371
v2_s006519324
s006519324
s006519324
p04047
p04047
u697532629
u697532629
1,597,207,294
2020-08-12T04:41:34
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int sum=0; int[] L=new int[n*2]; for(int i=0;i<L.length;i++){ L[i]=sc.nextInt(); } sort(L); for(int i=0;i<L.length;i+=2){ sum+=L[i]; } ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u697532629|p04047|0
u697532629|p04047|0
codenet
Compile Error
351
v2_s750317498
s750317498
s750317498
p04047
p04047
u697532629
u697532629
1,597,207,346
2020-08-12T04:42:26
Main.java
import java.util.*; public class Main{ public static void main(){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int sum=0; int[] L=new int[n*2]; for(int i=0;i<L.length;i++){ L[i]=sc.nextInt(); } sort(L); for(int i=0;i<L.length;i+=2){ sum+=L[i]; } ...
Main.java:11: error: cannot find symbol sort(L); ^ symbol: method sort(int[]) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u697532629|p04047|0
u697532629|p04047|0
codenet
Compile Error
358
v2_s856791613
s856791613
s856791613
p04048
p04048
u036771205
u036771205
1,468,724,233
2016-07-17T02:57:13
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.stream.Stream; public class Main { static int count = 0; public static int[] func(int[] ar) { //System.out.println(Arrays.toString(ar)); Arrays.sort(ar); if (ar[0] == 0) { //int[] result = {count, 0}...
Main.java:32: error: incompatible types: int cannot be converted to int[] int poi = func(ar[1]); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u036771205|p04048|0
u036771205|p04048|0
codenet
Compile Error
1,033
v2_s143266882
s143266882
s143266882
p04048
p04048
u163073599
u163073599
1,474,467,320
2016-09-21T14:15:20
Main.java
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.Scanner; public class Main { private enum Direction { FLT, ASC, DSC } private static class Vertex { static AtomicLong counter = new AtomicLong(0); fi...
Main.java:4: error: cannot find symbol import java.util.concurrent.Scanner; ^ symbol: class Scanner location: package java.util.concurrent Main.java:164: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:164...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04048|1
u163073599|p04048|1
codenet
Compile Error
5,718
v2_s297158111
s297158111
s297158111
p04048
p04048
u591717585
u591717585
1,533,608,861
2018-08-07T02:27:41
Main.java
vimport java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.NoSuchElementException; public class Main { static PrintWriter out; static InputReader ir; static boolean debug = false; static void solve() { ...
Main.java:1: error: class, interface, enum, or record expected vimport java.io.IOException; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.PrintWriter; ^ Main.java:4: error: class, interface, en...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591717585|p04048|0
u591717585|p04048|0
codenet
Compile Error
3,369
v2_s425734590
s425734590
s425734590
p04048
p04048
u643793353
u643793353
1,468,722,308
2016-07-17T02:25:08
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int X = sc.nextInt(); int ans = X + (N - X); if(N % 2 == 0) { ans += (X - (N / 2) + 1) * 3; } else { ans += ((N -...
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
u643793353|p04048|0
u643793353|p04048|0
codenet
Compile Error
389
v2_s643726217
s643726217
s643726217
p04048
p04048
u792921506
u792921506
1,532,116,130
2018-07-20T19:48:50
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long int n = sc.nextInt(); n++; long int x = sc.nextInt(); //1:point 0:not point long int field[][] = new int[n][2*n-1]; for(long int i=0; i<n; i++){ for(long int j=0; j<2*n-1; j++){ ...
Main.java:5: error: not a statement long int n = sc.nextInt(); ^ Main.java:5: error: ';' expected long int n = sc.nextInt(); ^ Main.java:7: error: not a statement long int x = sc.nextInt(); ^ Main.java:7: error: ';' expected long int x = sc.nextInt(); ^ Main.java:9: error: not a statement long...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u792921506|p04048|0
u792921506|p04048|0
codenet
Compile Error
2,419
v2_s902424019
s902424019
s902424019
p04048
p04048
u981808900
u981808900
1,562,980,193
2019-07-13T01:09:53
Main.java
import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { long n = scanner.nextLong(); long x = scanner.nextLong(); long y = n - x; long ans = n; while (x != 0 && y != 0) { Utils.println(x, ...
Main.java:12: error: cannot find symbol Utils.println(x, y, ans); ^ symbol: variable Utils location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p04048|0
u981808900|p04048|0
codenet
Compile Error
571
v2_s566587615
s566587615
s566587615
p04049
p04049
u136104392
u136104392
1,596,725,263
2020-08-06T14:47:43
Main.java
import java.util.*; import java.io.*; import java.text.*; class AtCoder_AGC01_C{ //SOLUTION BEGIN //Into the Hardware Mode void pre() throws Exception{} void solve(int TC) throws Exception{ int N = ni(), K = ni(); int[] from = new int[N-1], to = new int[N-1]; for(int i = 0; i< N...
Main.java:5: error: duplicate class: AtCoder_AGC01_C class AtCoder_AGC01_C{ ^ Main.java:73: error: cannot access Main if(memory)new Thread(null, new Runnable() {public void run(){try{new Main().run();}catch(Exception e){e.printStackTrace();}}}, "1", 1 << 28).start(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136104392|p04049|0
u136104392|p04049|0
codenet
Compile Error
5,373
v2_s575248021
s575248021
s575248021
p04049
p04049
u163073599
u163073599
1,475,007,830
2016-09-27T20:23:50
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { private static class Edge { Vertex from, to; long fromDepth, toDepth; long fromCost, toCost; public Edge(Vertex from, Vertex to) ...
Main.java:190: error: ';' expected throw new RuntimeException("test") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|0
u163073599|p04049|0
codenet
Compile Error
6,455
v2_s379961036
s379961036
s379961036
p04049
p04049
u163073599
u163073599
1,475,024,611
2016-09-28T01:03:31
Main.java
import java.util.*; public class Main { private static class Edge { Vertex from, to; long fromDepth, toDepth; long fromCost, toCost; public Edge(Vertex from, Vertex to) { this.from = from; this.to = to; this.from.edges.add(this); ...
Main.java:190: error: cannot find symbol System.out.println(result); ^ symbol: variable result location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|1
u163073599|p04049|0
codenet
Compile Error
6,668
v2_s863936723
s863936723
s863936723
p04049
p04049
u163073599
u163073599
1,475,024,741
2016-09-28T01:05:41
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Iterator; public class Main { private static class Edge { Vertex from, to; long fromDepth, toDepth; long fromCost, toCost; public Edge(Vertex from, Vertex to) ...
Main.java:132: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:132: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:194: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|1
u163073599|p04049|0
codenet
Compile Error
6,774
v2_s642759520
s642759520
s642759520
p04049
p04049
u163073599
u163073599
1,475,024,800
2016-09-28T01:06:40
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.Iterator; public class Main { private static class Edge { Vertex from, to; long fromDepth, toDepth; long fromCost, toCost; public Ed...
Main.java:196: error: cannot find symbol System.out.println(result); ^ symbol: variable result location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|1
u163073599|p04049|0
codenet
Compile Error
6,802
v2_s182527784
s182527784
s182527784
p04049
p04049
u163073599
u163073599
1,475,025,032
2016-09-28T01:10:32
Main.java
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.lang.*; import java.util.Iterator; public class Main { private static class Edge { Vertex from, to; long fromDepth, toDepth; long fromCost, toCost; ...
Main.java:196: error: cannot find symbol System.out.println(result); ^ symbol: variable result location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|1
u163073599|p04049|0
codenet
Compile Error
6,820
v2_s987755960
s987755960
s987755960
p04049
p04049
u163073599
u163073599
1,475,853,569
2016-10-07T15:19:29
Main.java
import java.util.*; public class Main { private final Map<Long, Vertex> vertices = new HashMap<Long, Vertex>(); private final Map<Long, List<Long>> edges = new HashMap<Long, List<Long>>(); private final int N, K; Diameter(String input) { String[] lines = input.split("\n"); String[]...
Main.java:9: error: invalid method declaration; return type required Diameter(String input) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|2
u163073599|p04049|1
codenet
Compile Error
3,776
v2_s465743046
s465743046
s465743046
p04049
p04049
u163073599
u163073599
1,475,853,595
2016-10-07T15:19:55
Main.java
import java.util.*; public class Main { private final Map<Long, Vertex> vertices = new HashMap<Long, Vertex>(); private final Map<Long, List<Long>> edges = new HashMap<Long, List<Long>>(); private final int N, K; Diameter(String input) { String[] lines = input.split("\n"); String[]...
Main.java:9: error: invalid method declaration; return type required Diameter(String input) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04049|2
u163073599|p04049|1
codenet
Compile Error
3,772
v2_s338628903
s338628903
s338628903
p04049
p04049
u313111801
u313111801
1,468,800,833
2016-07-18T00:13:53
Main.java
package AGC001; import java.util.ArrayDeque; import java.util.ArrayList; \import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { solver(); } static void solver() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt();// mo...
Main.java:5: error: illegal character: '\' \import java.util.Arrays; ^ Main.java:5: error: class, interface, enum, or record expected \import java.util.Arrays; ^ Main.java:6: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p04049|0
u313111801|p04049|0
codenet
Compile Error
2,059
v2_s456029820
s456029820
s456029820
p04050
p04050
u943624079
u943624079
1,468,924,085
2016-07-19T10:28:05
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.NoSuchElementException; public class Main { private static class Task { void solve(FastScanner in, PrintWriter out) throws Ex...
Main.java:19: error: unreachable statement return; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u943624079|p04050|0
u943624079|p04050|0
codenet
Compile Error
4,468
v2_s767484610
s767484610
s767484610
p04052
p04052
u163073599
u163073599
1,476,283,969
2016-10-12T14:52:49
Main.java
import java.util.Arrays; import java.util.Random; public class Main { private final int[] data; private final int[] pos; private final int K; private final int N; private Main(int[] input, int K, int N) { this.data = input; this.K = K; this.N = N; this.pos = ne...
Main.java:73: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:73: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:82: error: in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04052|0
u163073599|p04052|0
codenet
Compile Error
1,928
v2_s981056061
s981056061
s981056061
p04052
p04052
u163073599
u163073599
1,476,284,130
2016-10-12T14:55:30
Main.java
import java.util.*; public class Main { private final int[] data; private final int[] pos; private final int K; private final int N; private Main(int[] input, int K, int N) { this.data = input; this.K = K; this.N = N; this.pos = new int[N + 1]; for (in...
Main.java:79: error: cannot find symbol int[] result = new Main(perm, k, n).solve(); ^ symbol: variable perm location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163073599|p04052|0
u163073599|p04052|0
codenet
Compile Error
1,859