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_s624147206
s624147206
s624147206
p03101
p03101
u180899411
u180899411
1,556,952,185
2019-05-04T06:43:05
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String[] split = s.split(" "); int H = Integer.parseInt(split[0]); int W = Integer.parseInt(split[1]); s = sc.nextLine(); split = s.split(" "); int h = Integer.parseInt(split[0])...
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
u180899411|p03101|0
u180899411|p03101|0
codenet
Compile Error
421
v2_s952024123
s952024123
s952024123
p03101
p03101
u209719129
u209719129
1,552,767,878
2019-03-16T20:24:38
Main.java
import java.util.Scanner; public class Main { private static String DELIMITER = " "; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String rowLine = scanner.nextLine(); String rowLineToFill = scanner.nextLine(); String[] rowLineArray = rowLine.split(DELIMITER); ...
Main.java:17: error: ';' expected int notFilled = (rowNum - rowToFillNum) * (lineNum - lineToFillNum) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209719129|p03101|0
u209719129|p03101|0
codenet
Compile Error
765
v2_s308498943
s308498943
s308498943
p03101
p03101
u306335069
u306335069
1,552,162,553
2019-03-09T20:15:53
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ int ans; Scanner sc = new Scanner(System.in); int ans; int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); if (H = h && W = w) { Systsm.out...
Main.java:10: error: variable ans is already defined in method main(String[]) int ans; ^ Main.java:18: error: bad operand types for binary operator '&&' if (H = h && W = w) { ^ first type: int second type: int Main.java:18: error: incompatible types: int cannot be converted to boolean...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03101|0
u306335069|p03101|0
codenet
Compile Error
426
v2_s336784150
s336784150
s336784150
p03101
p03101
u306335069
u306335069
1,552,162,587
2019-03-09T20:16:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ int ans; Scanner sc = new Scanner(System.in); int ans; int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); if (H = h && W = w) { System.out.println...
Main.java:10: error: variable ans is already defined in method main(String[]) int ans; ^ Main.java:18: error: bad operand types for binary operator '&&' if (H = h && W = w) { ^ first type: int second type: int Main.java:18: error: incompatible types: int cannot be converted to boolean...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03101|0
u306335069|p03101|0
codenet
Compile Error
412
v2_s507145601
s507145601
s507145601
p03101
p03101
u306335069
u306335069
1,552,162,631
2019-03-09T20:17:11
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ int ans; Scanner sc = new Scanner(System.in); int ans; int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); if (H == h && W == w) { System.out.print...
Main.java:10: error: variable ans is already defined in method main(String[]) int ans; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03101|0
u306335069|p03101|0
codenet
Compile Error
414
v2_s779738904
s779738904
s779738904
p03101
p03101
u345932819
u345932819
1,554,974,114
2019-04-11T09:15:14
Main.java
package main import ( "fmt" ) func main() { mainA() } func mainA() { var numH, numW, h, w int fmt.Scan(&numH, &numW, &h, &w) var res = solveA(numH, numW, h, w) fmt.Print(res) } func solveA(numH int, numW int, h int, w int) int { var res = 0 res = (numH - h) * (numW - w) return res }
Main.java:1: error: ';' expected package main ^ Main.java:3: error: <identifier> expected import ( ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p03101|2
u345932819|p03101|2
codenet
Compile Error
299
v2_s297417577
s297417577
s297417577
p03101
p03101
u424466753
u424466753
1,555,593,307
2019-04-18T13:15:07
Main.java
import java.util.*; public static Main() { Scanner sc = new Scanner(System.in); int H, W, h, w; H = sc.nextInt(); W = sc.nextInt(); h = sc.nextInt(); w = sc.nextInt(); return H*W - (h*H + w*W - h*w); }
Main.java:3: error: class, interface, enum, or record expected public static Main() { ^ Main.java:5: error: class, interface, enum, or record expected int H, W, h, w; ^ Main.java:6: error: class, interface, enum, or record expected H = sc.nextInt(); ^ Main.java:7: error: class, interface, enum, or...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03101|0
u424466753|p03101|0
codenet
Compile Error
219
v2_s923996605
s923996605
s923996605
p03101
p03101
u424466753
u424466753
1,555,593,434
2019-04-18T13:17:14
Main.java
import java.util.*; public static class Main() { Scanner sc = new Scanner(System.in); int H, W, h, w; H = sc.nextInt(); W = sc.nextInt(); h = sc.nextInt(); w = sc.nextInt(); return H*W - (h*H + w*W - h*w); }
Main.java:3: error: '{' expected public static class Main() { ^ Main.java:6: error: <identifier> expected H = sc.nextInt(); ^ Main.java:7: error: <identifier> expected W = sc.nextInt(); ^ Main.java:8: error: <identifier> expected h = sc.nextInt(); ^ Main.java:9: error: <identifier...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03101|0
u424466753|p03101|0
codenet
Compile Error
226
v2_s698108061
s698108061
s698108061
p03101
p03101
u424466753
u424466753
1,555,593,756
2019-04-18T13:22:36
Main.java
import java.util.*; public static class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H, W, h, w; H = sc.nextInt(); W = sc.nextInt(); h = sc.nextInt(); w = sc.nextInt(); return H*W - (h*H + w*W - h*w); } }
Main.java:3: error: modifier static not allowed here public static class Main { ^ Main.java:13: error: incompatible types: unexpected return value return H*W - (h*H + w*W - h*w); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03101|0
u424466753|p03101|0
codenet
Compile Error
286
v2_s226944188
s226944188
s226944188
p03101
p03101
u424466753
u424466753
1,555,594,094
2019-04-18T13:28:14
Main.java
import java.util.*; public static class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H, W, h, w; H = sc.nextInt(); W = sc.nextInt(); h = sc.nextInt(); w = sc.nextInt(); System.out.println(H*W - (h*H + w*W - h*w)); } }
Main.java:3: error: modifier static not allowed here public static class Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03101|0
u424466753|p03101|0
codenet
Compile Error
299
v2_s157724495
s157724495
s157724495
p03101
p03101
u495692658
u495692658
1,553,214,086
2019-03-22T00:21:26
Main.java
public static void main(String[] args){ Scanner a = new Scanner(System.in); int H,W = a.nextInt(); int h,w= a.nextInt(); int ans =(H-h)*(W-w) }
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:6: error: ';' expected int ans =(H-h)*(W-w) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03101|0
u495692658|p03101|0
codenet
Compile Error
155
v2_s398372950
s398372950
s398372950
p03101
p03101
u495692658
u495692658
1,553,214,288
2019-03-22T00:24:48
Main.java
import java.util.Scanner; class main{ public static void main(String[] args){ Scanner a = new Scanner(System.in); int H,W = a.nextInt(); int h,w= a.nextInt(); int ans =(H-h)*(W-w) } }
Main.java:10: error: ';' expected int ans =(H-h)*(W-w) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03101|0
u495692658|p03101|0
codenet
Compile Error
197
v2_s850198643
s850198643
s850198643
p03101
p03101
u495692658
u495692658
1,553,214,392
2019-03-22T00:26:32
Main.java
import java.util.Scanner; class Arith{ public static void main(String[] args){ Scanner a = new Scanner(System.in); int H,W = a.nextInt(); int h,w= a.nextInt(); int ans =(H-h)*(W-w) } }
Main.java:10: error: ';' expected int ans =(H-h)*(W-w) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03101|0
u495692658|p03101|0
codenet
Compile Error
199
v2_s795770364
s795770364
s795770364
p03101
p03101
u495692658
u495692658
1,553,214,735
2019-03-22T00:32:15
Main.java
import java.util.Scanner; class Arith{ public static void main(String[] args){ Scanner a = new Scanner(System.in); int H= a.nextInt(); int W = a.nextInt(); int h= a.nextInt(); int w= a.nextInt(); int ans =(H-h)*(W-w) } }
Main.java:12: error: ';' expected int ans =(H-h)*(W-w) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03101|0
u495692658|p03101|0
codenet
Compile Error
242
v2_s187288954
s187288954
s187288954
p03101
p03101
u495692658
u495692658
1,553,216,761
2019-03-22T01:06:01
Main.java
public static void main(String[] args) { Scanner a = new Scanner(System.in); int H = a.nextInt(); int W = a.nextInt(); Scanner b = new Scanner(System.in); int h = b.nextInt(); int w = b.nextInt(); int ans = (H - h) * (W - w); System.out.println(ans); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03101|0
u495692658|p03101|0
codenet
Compile Error
273
v2_s357484316
s357484316
s357484316
p03101
p03101
u515236621
u515236621
1,580,089,886
2020-01-27T01:51:26
Main.java
import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int m = sc.nextInt(); int c = sc.nextInt(); int[] b = new int[m]; int sum = 0; int count = 0; for(int k=0;k<b.length;k++) {...
Main.java:26: error: bad operand types for binary operator '+' count = count + (sum>0) ? 1:0; ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u515236621|p03101|1
u515236621|p03101|1
codenet
Compile Error
663
v2_s390337312
s390337312
s390337312
p03101
p03101
u675751622
u675751622
1,560,755,819
2019-06-17T07:16:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int height, width, black_height, black_width, area; height = Double.parseDouble(sc.next()); width = Double.parseDouble(sc.next()); black_height = Double.parseDouble(sc.next()); ...
Main.java:7: error: incompatible types: possible lossy conversion from double to int height = Double.parseDouble(sc.next()); ^ Main.java:8: error: incompatible types: possible lossy conversion from double to int width = Double.parseDouble(sc.next()); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p03101|0
u675751622|p03101|0
codenet
Compile Error
463
v2_s437520779
s437520779
s437520779
p03101
p03101
u682395093
u682395093
1,552,162,522
2019-03-09T20:15:22
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); int res = H * W; res -= W * h; res -= (H-h)*w; System.out.println(res); sc.close()...
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u682395093|p03101|0
u682395093|p03101|0
codenet
Compile Error
357
v2_s680529862
s680529862
s680529862
p03101
p03101
u740667034
u740667034
1,552,164,078
2019-03-09T20:41:18
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int m=scan.nextInt(); List<Integer> a=new ArrayList<>(); List<Integer> b=new Arr...
Main.java:31: error: variable x might not have been initialized ans-=(long)(x*(sum-m)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03101|0
u740667034|p03101|0
codenet
Compile Error
768
v2_s758589956
s758589956
s758589956
p03101
p03101
u768195631
u768195631
1,552,165,668
2019-03-09T21:07:48
Main.java
ort java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); int cnt = 0; int[][] a = new int[H][W]; for (int i = 0; i < H; i++) { for (int j = 0; j...
Main.java:1: error: class, interface, enum, or record expected ort java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768195631|p03101|0
u768195631|p03101|0
codenet
Compile Error
693
v2_s565536592
s565536592
s565536592
p03101
p03101
u804065755
u804065755
1,553,349,793
2019-03-23T14:03:13
Main.java
import java.util.*; public class Main{ publi static void main(String[] args){ Scanner scan = new Scanner(System.in); int h = scan.nextInt(); int w = scan.nextInt(); int hDelete = scan.nextInt(); int wDelete = scan.nextInt(); System.out.println((h - hDelete)*(w - wDelete)); } }
Main.java:3: error: <identifier> expected publi static void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u804065755|p03101|0
u804065755|p03101|0
codenet
Compile Error
295
v2_s665548817
s665548817
s665548817
p03101
p03101
u812003342
u812003342
1,552,594,510
2019-03-14T20:15:10
Main.java
#include<stdio.h> int main{ int a,b; scanf("%d%d",&a,&b); int c,d; scanf("%d%d",&c,&d); printf("%d\n",(a-c)*(b-d)); }
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:4: error: class, interface, enum, or record expected scanf("%d%d",&a,&b); ^ Main.java:5: error: class, interface, enum, or record expected int c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812003342|p03101|0
u812003342|p03101|0
codenet
Compile Error
134
v2_s745855518
s745855518
s745855518
p03101
p03101
u836994288
u836994288
1,553,041,849
2019-03-20T00:30:49
Main.java
import java.util.*; public class Main { public static void main(string[] args) { System.out.println("0"); } }
Main.java:5: error: cannot find symbol public static void main(string[] args) { ^ symbol: class string location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u836994288|p03101|0
u836994288|p03101|0
codenet
Compile Error
130
v2_s711156532
s711156532
s711156532
p03101
p03101
u920836104
u920836104
1,552,164,642
2019-03-09T20:50:42
Main.java
import java.util.Scanner; public class Main { public static vois main (String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { int H = in.nextInt(); int W = in.nextInt(); int h = in.nextInt(); int w = in.nextInt(); System.out.println((H - h) * (W - w)); ...
Main.java:4: error: cannot find symbol public static vois main (String[] args) { ^ symbol: class vois location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920836104|p03101|0
u920836104|p03101|0
codenet
Compile Error
329
v2_s592383857
s592383857
s592383857
p03101
p03101
u973190292
u973190292
1,553,422,312
2019-03-24T10:11:52
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int inH = s.nextInt(); int inW = s.nextInt(); int inh = s.nextInt(); int inw = s.nextInt(); int result = (inH-inh) * (inW -inw); System.out.println(result); s.close(); ...
Main.java:3: error: illegal character: '\u3000' public class Main?{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u973190292|p03101|0
u973190292|p03101|0
codenet
Compile Error
330
v2_s683013699
s683013699
s683013699
p03102
p03102
u109442131
u109442131
1,553,352,785
2019-03-23T14:53:05
Main.java
class ABC121B{ public static void main(String args[]){ int count = 0; int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int[][] A = new int[N][M]; int[] B = new int[M]; for(int i = 0; i < M;i++){ B[i] = sc.nextInt(); } ...
Main.java:4: error: cannot find symbol int N = sc.nextInt(); ^ symbol: variable sc location: class ABC121B Main.java:5: error: cannot find symbol int M = sc.nextInt(); ^ symbol: variable sc location: class ABC121B Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109442131|p03102|0
u109442131|p03102|0
codenet
Compile Error
659
v2_s057871490
s057871490
s057871490
p03102
p03102
u109442131
u109442131
1,553,352,807
2019-03-23T14:53:27
Main.java
class Main{ public static void main(String args[]){ int count = 0; int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int[][] A = new int[N][M]; int[] B = new int[M]; for(int i = 0; i < M;i++){ B[i] = sc.nextInt(); } ...
Main.java:4: error: cannot find symbol int N = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int M = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:6: error: cannot find symbol int C...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109442131|p03102|0
u109442131|p03102|0
codenet
Compile Error
656
v2_s096099962
s096099962
s096099962
p03102
p03102
u179572988
u179572988
1,552,498,252
2019-03-13T17:30:52
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C int answer = 0; int A[N-1][M-1] = new int[N-1][M-1]; int B[M-1] = new int[M-1]; ...
Main.java:9: error: ';' expected int judge = C ^ Main.java:11: error: ']' expected int A[N-1][M-1] = new int[N-1][M-1]; ^ Main.java:11: error: not a statement int A[N-1][M-1] = new int[N-1][M-1]; ^ Main.java:11: error: ';' expected int A[N-1][M-1] = new int[N-1][M-1]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
632
v2_s076515369
s076515369
s076515369
p03102
p03102
u179572988
u179572988
1,552,498,318
2019-03-13T17:31:58
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C; int answer = 0; int A[N-1][M-1] = new int[N-1][M-1]; int B[M-1] = new int[M-1];...
Main.java:11: error: ']' expected int A[N-1][M-1] = new int[N-1][M-1]; ^ Main.java:11: error: not a statement int A[N-1][M-1] = new int[N-1][M-1]; ^ Main.java:11: error: ';' expected int A[N-1][M-1] = new int[N-1][M-1]; ^ Main.java:11: error: not a statement int A[N-1][M-1] = new int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
631
v2_s604612597
s604612597
s604612597
p03102
p03102
u179572988
u179572988
1,552,498,434
2019-03-13T17:33:54
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C; int answer = 0; int [][] A = new int[N-1][M-1]; int [] B = new int[M-1]; for(...
Main.java:17: error: ';' expected for(j=0;j<M){ ^ Main.java:22: error: ';' expected for(j=0;j<M){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
624
v2_s461331632
s461331632
s461331632
p03102
p03102
u179572988
u179572988
1,552,498,484
2019-03-13T17:34:44
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C; int answer = 0; int [][] A = new int[N-1][M-1]; int [] B = new int[M-1]; for(...
Main.java:13: error: cannot find symbol for(k=0;k<M;k++){ ^ symbol: variable k location: class Main Main.java:13: error: cannot find symbol for(k=0;k<M;k++){ ^ symbol: variable k location: class Main Main.java:13: error: cannot find symbol for(k=0;k<M;k++){ ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
634
v2_s395353003
s395353003
s395353003
p03102
p03102
u179572988
u179572988
1,552,498,535
2019-03-13T17:35:35
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C; int answer = 0; int [][] A = new int[N-1][M-1]; int [] B = new int[M-1]; for(...
Main.java:17: error: cannot find symbol for(j=0;j<M;j++){ ^ symbol: variable j location: class Main Main.java:17: error: cannot find symbol for(j=0;j<M;j++){ ^ symbol: variable j location: class Main Main.java:17: error: cannot find symbol for(j=0;j<M;j++){ ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
646
v2_s795089568
s795089568
s795089568
p03102
p03102
u179572988
u179572988
1,552,498,577
2019-03-13T17:36:17
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(NとMとC) int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int judge = C; int answer = 0; int [][] A = new int[N-1][M-1]; int [] B = new int[M-1]; for(...
Main.java:30: error: cannot find symbol System.out.println(count); ^ symbol: variable count location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03102|0
u179572988|p03102|0
codenet
Compile Error
654
v2_s098877750
s098877750
s098877750
p03102
p03102
u266624656
u266624656
1,554,048,714
2019-03-31T16:11:54
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int C = sc.nextInt(); int[] B = new int[M]; int[][] A = new int[N][M]; for(int i=0; i<M; i++){ B[i] = sc.nextInt(); ...
Main.java:28: error: cannot find symbol System.out.print(wa); ^ symbol: variable wa location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03102|0
u266624656|p03102|0
codenet
Compile Error
641
v2_s007020285
s007020285
s007020285
p03102
p03102
u306335069
u306335069
1,552,165,352
2019-03-09T21:02:32
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ans; int cnt = 0; int num = 0; int n = sc.nextInt(); int m = sc.nextInt(); int c = sc.nextInt(); int absc = Math.abs(c); ArrayList<int> B = new Array...
Main.java:12: error: illegal character: '\u0008' int n = sc.nextInt(); ^ Main.java:12: error: not a statement int n = sc.nextInt(); ^ Main.java:36: error: illegal character: '\u0008' num += B.get(j)*M.get(i).get(j); ^ Main.java:39: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03102|0
u306335069|p03102|0
codenet
Compile Error
874
v2_s398031895
s398031895
s398031895
p03102
p03102
u306335069
u306335069
1,552,165,546
2019-03-09T21:05:46
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ans; int cnt = 0; int num = 0; int n = sc.next(); int m = sc.nextInt(); int c = sc.nextInt(); int absc = Math.abs(c); ArrayList<int> B = new ArrayLis...
Main.java:12: error: illegal character: '\u0008' int n = sc.next(); ^ Main.java:12: error: not a statement int n = sc.next(); ^ Main.java:36: error: illegal character: '\u0008' num += B.get(j)*M.get(i).get(j); ^ Main.java:39: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03102|0
u306335069|p03102|0
codenet
Compile Error
871
v2_s287634588
s287634588
s287634588
p03102
p03102
u306335069
u306335069
1,552,165,671
2019-03-09T21:07:51
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ans; int cnt = 0; int num = 0; int n = sc.nextInt(); int m = sc.nextInt(); int c = sc.nextInt(); int absc = Math.abs(c); ArrayList<int> B = new Array...
Main.java:12: error: illegal character: '\u0008' int n = sc.nextInt(); ^ Main.java:12: error: not a statement int n = sc.nextInt(); ^ Main.java:36: error: illegal character: '\u0008' num += B.get(j)* M.get(i).get(j); ^ Main.java:39: error: ';' expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03102|0
u306335069|p03102|0
codenet
Compile Error
872
v2_s417866883
s417866883
s417866883
p03102
p03102
u306335069
u306335069
1,552,165,698
2019-03-09T21:08:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int ans; int cnt = 0; int num = 0; int n = sc.nextInt(); int m = sc.nextInt(); int c = sc.nextInt(); int absc = Math.abs(c); ArrayList<int> B = new Array...
Main.java:12: error: illegal character: '\u0008' int n = sc.nextInt(); ^ Main.java:12: error: not a statement int n = sc.nextInt(); ^ Main.java:36: error: illegal character: '\u0008' num += B.get(j)* M.get(i).get(j); ^ Main.java:39: error: ';' expected...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306335069|p03102|0
u306335069|p03102|0
codenet
Compile Error
873
v2_s906595798
s906595798
s906595798
p03102
p03102
u314470965
u314470965
1,574,416,427
2019-11-22T09:53:47
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String[] hiki = scan.nextLine(" "); int N = Integer.parseInt(hiki[0]); int M = Integer.parseInt(hiki[1]); int C = Integer.parseInt(hiki[2]); hiki = scan.nextLine(" "); int[] B = ...
Main.java:6: error: method nextLine in class Scanner cannot be applied to given types; String[] hiki = scan.nextLine(" "); ^ required: no arguments found: String reason: actual and formal argument lists differ in length Main.java:10: error: method nextLine in class Scanner cannot be...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314470965|p03102|0
u314470965|p03102|0
codenet
Compile Error
701
v2_s008847531
s008847531
s008847531
p03102
p03102
u347452770
u347452770
1,553,003,572
2019-03-19T13:52:52
Main.java
import java.util.*; public class Main{ public static void main(String{} args){ Scanner scan = new Scanner(System.in); int counter = 0; int N = scan.nextInt(); int M = scan.nextInt(); int C = scan.nextInt(); for(int k = 0; k < N; k++){ int[] A = new int[M]; for(i...
Main.java:4: error: <identifier> expected public static void main(String{} args){ ^ Main.java:4: error: <identifier> expected public static void main(String{} args){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03102|0
u347452770|p03102|0
codenet
Compile Error
608
v2_s317127820
s317127820
s317127820
p03102
p03102
u347452770
u347452770
1,553,004,009
2019-03-19T14:00:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int counter = 0; int N = scan.nextInt(); int M = scan.nextInt(); int C = scan.nextInt(); int[] B = int[M]; for(int i = 0; i < M; i++){ B[i] = ...
Main.java:10: error: ']' expected int[] B = int[M]; ^ Main.java:10: error: ';' expected int[] B = int[M]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03102|0
u347452770|p03102|0
codenet
Compile Error
720
v2_s614783127
s614783127
s614783127
p03102
p03102
u431125128
u431125128
1,574,336,252
2019-11-21T11:37:32
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 c=sc.nextInt(); int[] a=new int[m]; int[] b=new int[m]; for(int i=0;i<m;i++){ b[i]=sc.nextInt(); } int ans=0; for...
Main.java:28: error: package Sysem does not exist Sysem.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p03102|0
u431125128|p03102|0
codenet
Compile Error
572
v2_s627183080
s627183080
s627183080
p03102
p03102
u440190560
u440190560
1,552,206,386
2019-03-10T08:26:26
Main.java
public class Main { public static void main(String[] args) { try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){ String[] l1 = input.readLine().split(" "); int N = Integer.parseInt(l1[0]); int M = Integer.parseInt(l1[1]); int C = Integer.parseInt(l1[2]); String[] l2 =...
Main.java:5: error: cannot find symbol try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){ ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440190560|p03102|0
u440190560|p03102|0
codenet
Compile Error
775
v2_s892603058
s892603058
s892603058
p03102
p03102
u495692658
u495692658
1,553,255,096
2019-03-22T11:44:56
Main.java
import java.util.Scanner; class Main { public static void main(String[] args){ int sc = new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int c=sc.nextInt(); int b[] = new int[m]; for(int i=0; i<m; i++){ b[i]=sc.nextInt(); } int a[][]=new int[n][m]; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ a[n][m]=...
Main.java:27: error: <identifier> expected System.out.println(total); ^ Main.java:27: error: <identifier> expected System.out.println(total); ^ Main.java:28: error: class, interface, enum, or record expected }} ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03102|0
u495692658|p03102|0
codenet
Compile Error
496
v2_s839867775
s839867775
s839867775
p03102
p03102
u495692658
u495692658
1,553,255,746
2019-03-22T11:55:46
Main.java
import java.util.Scanner; class Main { public static void main(String[] args){ int sc = new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int c=sc.nextInt(); int b[] = new int[m]; for(int i=0; i<m; i++){ b[i]=sc.nextInt(); } int a[][]=new int[n][m]; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ a[n][m]=...
Main.java:4: error: incompatible types: Scanner cannot be converted to int int sc = new Scanner(System.in); ^ Main.java:5: error: int cannot be dereferenced int n=sc.nextInt(); ^ Main.java:6: error: int cannot be dereferenced int m=sc.nextInt(); ^ Main.java:7: error: int cannot be dereferenced ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03102|0
u495692658|p03102|0
codenet
Compile Error
495
v2_s745928339
s745928339
s745928339
p03102
p03102
u626353997
u626353997
1,554,559,932
2019-04-06T14:12:12
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int code =sc.nextInt(); int code2 = sc.nextInt(); int c = sc.nextInt(); int[] b = new int[code2]; int num = 0; int num2 =0; int sum = 0; int count = 0; for(int i = 0;i < code2;i++...
Main.java:30: error: cannot find symbol System.out.prinntln(count); ^ symbol: method prinntln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03102|0
u626353997|p03102|0
codenet
Compile Error
555
v2_s224822479
s224822479
s224822479
p03102
p03102
u653981267
u653981267
1,553,103,436
2019-03-20T17:37:16
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 c = sc.nextInt(); int[] b = new int[m]; for(int i = 0; i < m; i++) { b[i] = sc.nextInt(); } int ans = 0; for(...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03102|0
u653981267|p03102|0
codenet
Compile Error
521
v2_s654631794
s654631794
s654631794
p03102
p03102
u762160119
u762160119
1,556,058,382
2019-04-23T22:26:22
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int M = Integer.parseInt(sc.next()); int C = Integer.parseInt(sc.next()); int[] b = new int[N]; for(int i = 0; i<N; i++) { b[i] = Integer.parseInt(sc....
Main.java:16: error: ';' expected tmp += sc.nextInt() * b[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762160119|p03102|0
u762160119|p03102|0
codenet
Compile Error
575
v2_s118373800
s118373800
s118373800
p03102
p03102
u829540366
u829540366
1,553,872,016
2019-03-29T15:06:56
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String[] line = sc.nextLine().split(" "); int N = Integer.parseInt(line[0]); int M = Integer.parseInt(line[1]); int C = Integer.parseInt(line[2]); line = sc.nextLine().split(" ");...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u829540366|p03102|0
u829540366|p03102|0
codenet
Compile Error
831
v2_s835134464
s835134464
s835134464
p03102
p03102
u900855318
u900855318
1,552,479,071
2019-03-13T12:11:11
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int rows = scanner.nextInt(); int cols = scanner.nextInt(); int constant = scanner.nextInt(); int[] code = new int[cols]; for (int ix = 0; ix < cols; ix++) { code[ix]...
Main.java:19: error: cannot find symbol result += scanner.nextInt() * code[ix]; ^ symbol: variable ix location: class Main Main.java:25: error: incompatible types: unexpected return value return matches; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p03102|0
u900855318|p03102|0
codenet
Compile Error
624
v2_s121935351
s121935351
s121935351
p03103
p03103
u008695540
u008695540
1,568,343,244
2019-09-13T02:54:04
Main.java
import java.util.*; public class Main{ static int cost = 0; private int a; private int b; Energy_Drink_Collector(int a, int b){ this.a = a; this.b = b; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Energ...
Main.java:8: error: invalid method declaration; return type required Energy_Drink_Collector(int a, int b){ ^ Main.java:50: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03103|0
u008695540|p03103|0
codenet
Compile Error
1,123
v2_s910640089
s910640089
s910640089
p03103
p03103
u011775447
u011775447
1,552,164,184
2019-03-09T20:43:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N,M,s,o,tmp,ans; int[] A,B; N=sc.nextInt(); M=sc.nextInt(); for(s=0;s<N;s++){ A[s]=sc.nextInt(); B[s]=sc.nextInt(); } for(s=0;s<N-1;s++){ for(o=s...
Main.java:19: error: illegal start of expression for(o=s+1,;o<N;o++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p03103|0
u011775447|p03103|0
codenet
Compile Error
702
v2_s966667663
s966667663
s966667663
p03103
p03103
u011775447
u011775447
1,552,164,244
2019-03-09T20:44:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N,M,s,o,tmp,ans; int[] A,B; N=sc.nextInt(); M=sc.nextInt(); for(s=0;s<N;s++){ A[s]=sc.nextInt(); B[s]=sc.nextInt(); } for(s=0;s<N-1;s++){ for(o=s...
Main.java:14: error: variable A might not have been initialized A[s]=sc.nextInt(); ^ Main.java:15: error: variable B might not have been initialized B[s]=sc.nextInt(); ^ Main.java:20: error: variable A might not have been initialized if(A[s]>A[o]){ ^ Main.java:24: error: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p03103|0
u011775447|p03103|0
codenet
Compile Error
701
v2_s759612398
s759612398
s759612398
p03103
p03103
u011775447
u011775447
1,552,165,738
2019-03-09T21:08:58
Energy_Drink_Collector.java
import java.util.*; public class Energy_Drink_Collector{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N,M,s,o,tmp,ans; int[] A,B,Rank; N=sc.nextInt(); M=sc.nextInt(); A=new int[N]; B=new int[N]; for(s=0;s<N;s++){ A[s]=sc.nextint(); B[s...
Energy_Drink_Collector.java:17: error: cannot find symbol A[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Energy_Drink_Collector.java:18: error: cannot find symbol B[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p03103|0
u011775447|p03103|0
codenet
Compile Error
1,151
v2_s157729461
s157729461
s157729461
p03103
p03103
u011775447
u011775447
1,552,165,803
2019-03-09T21:10:03
Energy_Drink_Collector.java
import java.util.*; public class Energy_Drink_Collector{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N,M,s,o,tmp,ans; int[] A,B,Rank; N=sc.nextInt(); M=sc.nextInt(); A=new int[N]; B=new int[N]; Rank=new int[N]; for(s=0;s<N;s++){ A[s]=sc...
Energy_Drink_Collector.java:18: error: cannot find symbol A[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Energy_Drink_Collector.java:19: error: cannot find symbol B[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p03103|0
u011775447|p03103|0
codenet
Compile Error
780
v2_s109156803
s109156803
s109156803
p03103
p03103
u011775447
u011775447
1,552,165,866
2019-03-09T21:11:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N,M,s,o,tmp,ans; int[] A,B,Rank; N=sc.nextInt(); M=sc.nextInt(); A=new int[N]; B=new int[N]; Rank=new int[N]; for(s=0;s<N;s++){ A[s]=sc.nextint(); ...
Main.java:18: error: cannot find symbol A[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner Main.java:19: error: cannot find symbol B[s]=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p03103|0
u011775447|p03103|0
codenet
Compile Error
762
v2_s645142565
s645142565
s645142565
p03103
p03103
u092025199
u092025199
1,556,200,913
2019-04-25T14:01:53
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[][] array = new int[n][2]; int sum = 0; for(int i=0;i<n;++i){ for(int j=0;j<2;++j){ array[i][j]=sc.nextInt(); ...
Main.java:34: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092025199|p03103|0
u092025199|p03103|0
codenet
Compile Error
851
v2_s297849689
s297849689
s297849689
p03103
p03103
u218740431
u218740431
1,589,109,857
2020-05-10T11:24:17
Main.java
import java.util.*; import java.util.Arrays; import java.util.Comparator; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Data [] d = new Data [m]; for(int i=0;i<m;i++){int B = sc...
Main.java:12: error: cannot find symbol d[i] = new Data(A,B); ^ symbol: variable A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03103|0
u218740431|p03103|0
codenet
Compile Error
1,225
v2_s380875736
s380875736
s380875736
p03103
p03103
u218740431
u218740431
1,589,110,497
2020-05-10T11:34:57
Main.java
import java.util.*; import java.util.Arrays; import java.util.Comparator; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Data [] d = new Data [n]; for(int i=0;i<n;i++){int A = sc...
Main.java:22: error: illegal start of expression while(count<m)){ans+=d[i].getA(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03103|0
u218740431|p03103|0
codenet
Compile Error
1,164
v2_s891829169
s891829169
s891829169
p03103
p03103
u218740431
u218740431
1,589,110,530
2020-05-10T11:35:30
Main.java
import java.util.*; import java.util.Arrays; import java.util.Comparator; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Data [] d = new Data [n]; for(int i=0;i<n;i++){int A = sc...
Main.java:22: error: cannot find symbol while(count<m){ans+=d[i].getA(); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03103|0
u218740431|p03103|0
codenet
Compile Error
1,160
v2_s044553207
s044553207
s044553207
p03103
p03103
u238649588
u238649588
1,557,541,601
2019-05-11T02:26:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); while(true) { m++; } Map<Integer, Integer> stores = new TreeMap<>(); for (int i = 0; i <...
Main.java:11: error: unreachable statement Map<Integer, Integer> stores = new TreeMap<>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238649588|p03103|0
u238649588|p03103|0
codenet
Compile Error
755
v2_s914130459
s914130459
s914130459
p03103
p03103
u266624656
u266624656
1,554,148,322
2019-04-01T19:52:02
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[][] AB = int[N][N]; for(int i=0; i<N; i++){ for(int j=0; j<N; j++){ AB[i][j] = sc.nextInt(); } } TheComparato...
Main.java:7: error: ']' expected int[][] AB = int[N][N]; ^ Main.java:7: error: ';' expected int[][] AB = int[N][N]; ^ Main.java:7: error: not a statement int[][] AB = int[N][N]; ^ Main.java:7: error: ';' expected int[][] AB = int[N][N]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|0
u266624656|p03103|0
codenet
Compile Error
673
v2_s828534661
s828534661
s828534661
p03103
p03103
u266624656
u266624656
1,554,148,630
2019-04-01T19:57:10
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[][] AB = new int[N][N]; for(int i=0; i<N; i++){ for(int j=0; j<N; j++){ AB[i][j] = sc.nextInt(); } } TheCompa...
Main.java:13: error: cannot find symbol TheComparator comparator = new TheComparator(); ^ symbol: class TheComparator location: class Main Main.java:13: error: cannot find symbol TheComparator comparator = new TheComparator(); ^ symbol: class TheComparator loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|0
u266624656|p03103|0
codenet
Compile Error
680
v2_s431117381
s431117381
s431117381
p03103
p03103
u266624656
u266624656
1,554,645,259
2019-04-07T13:54:19
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ Ai = nextInt(); Bi = nextInt(); long[] li = new long[]{Ai...
Main.java:18: error: ';' expected }) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
740
v2_s664701720
s664701720
s664701720
p03103
p03103
u266624656
u266624656
1,554,645,317
2019-04-07T13:55:17
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ Ai = nextInt(); Bi = nextInt(); long[] li = new long[]{Ai...
Main.java:9: error: cannot find symbol Ai = nextInt(); ^ symbol: variable Ai location: class Main Main.java:9: error: cannot find symbol Ai = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:10: error: cannot find symbol Bi = nextInt(); ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
742
v2_s811868238
s811868238
s811868238
p03103
p03103
u266624656
u266624656
1,554,645,613
2019-04-07T14:00:13
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ Ai = nextInt(); Bi = nextInt(); long[] li = new long[]{Ai...
Main.java:9: error: cannot find symbol Ai = nextInt(); ^ symbol: variable Ai location: class Main Main.java:9: error: cannot find symbol Ai = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:10: error: cannot find symbol Bi = nextInt(); ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
742
v2_s950802225
s950802225
s950802225
p03103
p03103
u266624656
u266624656
1,554,645,704
2019-04-07T14:01: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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = nextInt(); long Bi = nextInt(); long[] li = new...
Main.java:9: error: cannot find symbol long Ai = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:10: error: cannot find symbol long Bi = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:14: error: <anonymous Main$1> is not ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
752
v2_s538682275
s538682275
s538682275
p03103
p03103
u266624656
u266624656
1,554,645,883
2019-04-07T14:04:43
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = nextLong(); long Bi = nextLong(); long[] li = n...
Main.java:9: error: cannot find symbol long Ai = nextLong(); ^ symbol: method nextLong() location: class Main Main.java:10: error: cannot find symbol long Bi = nextLong(); ^ symbol: method nextLong() location: class Main Main.java:14: error: <anonymous Main$1> is ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
758
v2_s341974012
s341974012
s341974012
p03103
p03103
u266624656
u266624656
1,554,645,949
2019-04-07T14:05:49
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:14: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Object,Object) in Comparator Collection.sort(en, new Comparator(){ ^ Main.java:14: error: cannot find symbol Collection.sort(en, new Comparator(){ ^ symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
764
v2_s673631780
s673631780
s673631780
p03103
p03103
u266624656
u266624656
1,554,646,129
2019-04-07T14:08:49
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:14: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Object,Object) in Comparator Collection.sort(en, new Comparator(){ ^ Main.java:15: error: method does not override or implement a method from a supertype @Override ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
780
v2_s628222648
s628222648
s628222648
p03103
p03103
u266624656
u266624656
1,554,646,823
2019-04-07T14:20:23
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:30: error: class listComparator is public, should be declared in a file named listComparator.java public class listComparator implements Comparator<long[]>{ ^ Main.java:14: error: cannot find symbol Collection.sort(en, new listComparator()); ^ symbol: method sort(List<long[]>,list...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
823
v2_s611165762
s611165762
s611165762
p03103
p03103
u266624656
u266624656
1,554,647,243
2019-04-07T14:27:23
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 M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:14: error: ')' or ',' expected Collection.sort(en, Comparator.comparing(x -> x[0]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
683
v2_s729268520
s729268520
s729268520
p03103
p03103
u266624656
u266624656
1,554,647,336
2019-04-07T14:28:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:14: error: cannot find symbol Collection.sort(en, Comparator.comparing(x -> x[0])); ^ symbol: method sort(List<long[]>,Comparator<Object>) location: interface Collection Main.java:14: error: array required, but Object found Collection.sort(en, Comparator.comparing(x -> x[0])); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
685
v2_s629111713
s629111713
s629111713
p03103
p03103
u266624656
u266624656
1,554,647,430
2019-04-07T14:30:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long M = sc.nextLong(); List<long[]> en = new ArrayList<>(); for(int i=0; i<N; i++){ long Ai = sc.nextLong(); long Bi = sc.nextLong(); long[] ...
Main.java:14: error: method sort in interface List<E> cannot be applied to given types; en.sort(en, Comparator.comparing(x -> x[0])); ^ required: Comparator<? super long[]> found: List<long[]>,Comparator<Object> reason: actual and formal argument lists differ in length where E is a type-variable: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|1
u266624656|p03103|1
codenet
Compile Error
677
v2_s636655598
s636655598
s636655598
p03103
p03103
u266624656
u266624656
1,554,664,896
2019-04-07T19:21:36
Main.java
import java.util.*; public class Main{ static class Store implements Comparable<Store>{ long price, cans; Store(long price, cans){ this.price = price; this.cans = cans; } public int compareTo(Store obj){ return this.price - obj.price; } } public static void main(String[] a...
Main.java:5: error: <identifier> expected Store(long price, cans){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|2
u266624656|p03103|1
codenet
Compile Error
817
v2_s946859368
s946859368
s946859368
p03103
p03103
u266624656
u266624656
1,554,665,088
2019-04-07T19:24:48
Main.java
import java.util.*; public class Main{ static class Store implements Comparable<Store>{ long price, cans; Store(long price, long cans){ this.price = price; this.cans = cans; } public int compareTo(Store obj){ return this.price - obj.price; } } public static void main(Strin...
Main.java:10: error: incompatible types: possible lossy conversion from long to int return this.price - obj.price; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03103|2
u266624656|p03103|1
codenet
Compile Error
823
v2_s663671199
s663671199
s663671199
p03103
p03103
u273816974
u273816974
1,557,945,211
2019-05-15T18:33:31
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // 自分の得意な言語で // Let's チャレンジ!! Scanner sc = new Scanner(System.in); int shopCount = sc.nextInt(); int needDrinkCount = sc.nextInt(); long[] prices = new long[shopCount...
Main.java:18: error: incompatible types: int cannot be converted to int[] maxBuyCounts = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03103|0
u273816974|p03103|0
codenet
Compile Error
1,542
v2_s114557201
s114557201
s114557201
p03103
p03103
u303416816
u303416816
1,553,581,388
2019-03-26T06:23:08
Main.java
public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); ArrayList<int[]> data = new ArrayList<int[]>(); long result = 0; boolean flag = true; for(int i = 0; i < N; i++) { int[] input = new int[...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303416816|p03103|1
u303416816|p03103|0
codenet
Compile Error
742
v2_s484346865
s484346865
s484346865
p03103
p03103
u340072973
u340072973
1,552,166,780
2019-03-09T21:26:20
Main.java
import java.util.*; public class Main { public static class Shop implements Comparable<Shop> { long price; long sum; @Override public int compareTo(Shop shop) { return (int)(this.price - shop.price); } } public static void main(String[] args) { ...
Main.java:27: error: package Drink does not exist Shop shop = new Drink.Shop(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340072973|p03103|0
u340072973|p03103|0
codenet
Compile Error
1,248
v2_s933820736
s933820736
s933820736
p03103
p03103
u345932819
u345932819
1,552,227,416
2019-03-10T14:16:56
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // new Main().solveA(); // new Main().solveB(); new Main().solveC(); // new Main().solveD(); } private void solveA() { Scanner scanner = null; int numH = 0; int numW = 0; int h = 0; ...
Main.java:91: error: incompatible types: possible lossy conversion from long to int numN = scanner.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p03103|0
u345932819|p03103|0
codenet
Compile Error
3,264
v2_s004834091
s004834091
s004834091
p03103
p03103
u345932819
u345932819
1,552,227,435
2019-03-10T14:17:15
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // new Main().solveA(); // new Main().solveB(); new Main().solveC(); // new Main().solveD(); } private void solveA() { Scanner scanner = null; int numH = 0; int numW = 0; int h = 0; ...
Main.java:91: error: incompatible types: possible lossy conversion from long to int numN = scanner.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p03103|0
u345932819|p03103|0
codenet
Compile Error
3,264
v2_s681335875
s681335875
s681335875
p03103
p03103
u376082984
u376082984
1,552,216,600
2019-03-10T11:16:40
Main.java
import java.util.Arrays; 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(); long A[][]=new long[N][2]; int z=0,y=0; long man=0,cou=0; while(z<N){ A[z][0]=stdIn.nextInt(); A[z][1]=...
Main.java:16: error: ')' or ',' expected Arrays.sort(A, (a[2]) -> Long.compare(a[0][0], a[1][0])); ^ Main.java:16: error: ';' expected Arrays.sort(A, (a[2]) -> Long.compare(a[0][0], a[1][0])); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u376082984|p03103|0
u376082984|p03103|0
codenet
Compile Error
635
v2_s593335914
s593335914
s593335914
p03103
p03103
u387775763
u387775763
1,583,447,581
2020-03-05T22:33:01
Main.java
import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); long[] a = new long[n]; long[] b = new long[n]; for (long i = 0; i < n; i++) { a[i] = sc.nextLong(); ...
Main.java:14: error: incompatible types: possible lossy conversion from long to int a[i] = sc.nextLong(); ^ Main.java:15: error: incompatible types: possible lossy conversion from long to int b[i] = sc.nextLong(); ^ Main.java:21: error: incompatible types: possible lossy conversion from long...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387775763|p03103|0
u387775763|p03103|0
codenet
Compile Error
873
v2_s926978515
s926978515
s926978515
p03103
p03103
u424466753
u424466753
1,555,596,009
2019-04-18T14:00:09
Main.java
import java.util.*; public class Main { public class Drink { public int A; public int B; public Dring(int a, int b) { this.A = a; this.B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.next...
Main.java:8: error: invalid method declaration; return type required public Dring(int a, int b) { ^ Main.java:39: error: ';' expected for (int j=1; j<=d.B, M>=0; j++, M--) { ^ Main.java:39: error: not a statement for (int j=1; j<=d.B, M>=0; j++, M--) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,047
v2_s529919959
s529919959
s529919959
p03103
p03103
u424466753
u424466753
1,555,596,038
2019-04-18T14:00:38
Main.java
import java.util.*; public class Main { public class Drink { public int A; public int B; public Drink(int a, int b) { this.A = a; this.B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.next...
Main.java:39: error: ';' expected for (int j=1; j<=d.B, M>=0; j++, M--) { ^ Main.java:39: error: not a statement for (int j=1; j<=d.B, M>=0; j++, M--) { ^ Main.java:39: error: ')' expected for (int j=1; j<=d.B, M>=0; j++, M--) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,048
v2_s054873046
s054873046
s054873046
p03103
p03103
u424466753
u424466753
1,555,599,216
2019-04-18T14:53:36
Main.java
import java.util.*; public class Main { public class Drink { public int A; public int B; public Drink(int a, int b) { this.A = a; this.B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.next...
Main.java:23: error: non-static variable this cannot be referenced from a static context list.add(new Drink(sc.nextInt(), nextInt())); ^ Main.java:23: error: cannot find symbol list.add(new Drink(sc.nextInt(), nextInt())); ^ symbol: method nextInt() ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,050
v2_s153052743
s153052743
s153052743
p03103
p03103
u424466753
u424466753
1,555,599,682
2019-04-18T15:01:22
Main.java
import java.util.*; public class Main { public class Drink { public int A; public int B; public Drink(int a, int b) { this.A = a; this.B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.next...
Main.java:23: error: non-static variable this cannot be referenced from a static context list.add(new Drink(sc.nextInt(), sc.nextInt())); ^ Main.java:25: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Main.Drink,Main.Drink) in Comparator Collections.sort...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,054
v2_s856089610
s856089610
s856089610
p03103
p03103
u424466753
u424466753
1,555,599,793
2019-04-18T15:03:13
Main.java
import java.util.*; public class Main { public class Drink { public int A; public int B; public Drink(int a, int b) { A = a; B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.nextInt(); ...
Main.java:23: error: non-static variable this cannot be referenced from a static context list.add(new Drink(sc.nextInt(), sc.nextInt())); ^ Main.java:25: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Main.Drink,Main.Drink) in Comparator Collections.sort...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,044
v2_s452139641
s452139641
s452139641
p03103
p03103
u424466753
u424466753
1,555,599,864
2019-04-18T15:04:24
Main.java
import java.util.*; public class Main { public static class Drink { public int A; public int B; public Drink(int a, int b) { A = a; B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.nextInt...
Main.java:25: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Drink,Drink) in Comparator Collections.sort(list, new Comparator<Drink>() { ^ Main.java:26: error: method does not override or implement a method from a supertype ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,051
v2_s641532885
s641532885
s641532885
p03103
p03103
u424466753
u424466753
1,555,599,981
2019-04-18T15:06:21
Main.java
import java.util.*; public class Main { public static class Drink { public int A; public int B; public Drink(int a, int b) { A = a; B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.nextInt...
Main.java:25: error: <anonymous Main$1> is not abstract and does not override abstract method compare(Drink,Drink) in Comparator Collections.sort(list, new Comparator<Drink>() { ^ Main.java:26: error: method does not override or implement a method from a supertype ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,060
v2_s497152210
s497152210
s497152210
p03103
p03103
u424466753
u424466753
1,555,600,933
2019-04-18T15:22:13
Main.java
import java.util.*; public class Main { public static class Drink { public int A; public int B; public Drink(int a, int b) { A = a; B = b; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N, M; N = sc.nextInt(); M = sc.nextInt...
Main.java:20: error: not a statement long long totalYen = 0L; ^ Main.java:20: error: ';' expected long long totalYen = 0L; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,112
v2_s006521770
s006521770
s006521770
p03103
p03103
u424466753
u424466753
1,555,603,180
2019-04-18T15:59:40
Main.java
import java.util.*; public class Main { public class Drink implements Comparable<Drink> { public int A; public int B; public Drink(int a, int b) { this.A = a; this.B = b; } @Override public int compareTo(Drink other) { return this.A - other.A; } } public l...
Main.java:40: error: non-static variable this cannot be referenced from a static context list.add(new Drink(sc.nextInt(), sc.nextInt())); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
995
v2_s931604695
s931604695
s931604695
p03103
p03103
u424466753
u424466753
1,555,603,294
2019-04-18T16:01:34
Main.java
import java.util.*; public class Main { public class Drink implements Comparable<Drink> { public int A; public int B; public Drink(int a, int b) { this.A = a; this.B = b; } @Override public int compareTo(Drink other) { return this.A - other.A; } } public l...
Main.java:46: error: cannot find symbol System.out.println(C.solve(list, N, M)); ^ symbol: variable list location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,004
v2_s440938549
s440938549
s440938549
p03103
p03103
u424466753
u424466753
1,555,603,374
2019-04-18T16:02:54
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; for (int i = 0; i < N; i++) { A[i] = sc.nextInt(); B[i] = sc.nextInt(); } Main abc122C =...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:22: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424466753|p03103|0
u424466753|p03103|0
codenet
Compile Error
1,072
v2_s633388937
s633388937
s633388937
p03103
p03103
u434356113
u434356113
1,552,872,846
2019-03-18T01:34:06
Main.java
import java.util.*; public class Main { public static Drink [] drinks; public class Drink implements Comparable<Drink>{ int cost; int drinks; double cperd; public Drink(){ } public Drink(int cost_, int drinks_){ cost = cost_; drinks = drinks_; } @Override public int compareTo...
Main.java:41: error: non-static variable this cannot be referenced from a static context q.add(new Drink(sc.nextInt(),sc.nextInt())); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434356113|p03103|0
u434356113|p03103|0
codenet
Compile Error
748
v2_s258594240
s258594240
s258594240
p03103
p03103
u460426711
u460426711
1,552,435,235
2019-03-13T00:00:35
Main.java
import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedReader; import java.util.StringTokenizer; import java.io.InputStreamReader; import java.io.IOException; import java.util.Map; import java.util.LinkedHashMap; import java.util.Map.Entry; import java.util.stream.Co...
Main.java:34: error: incompatible types: possible lossy conversion from long to int if(M > map.get(list.get(i))) { ^ Main.java:35: error: incompatible types: possible lossy conversion from long to int minPrice += list.get(i) * map.get(list.get(i)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460426711|p03103|1
u460426711|p03103|1
codenet
Compile Error
2,996
v2_s511119107
s511119107
s511119107
p03103
p03103
u472301895
u472301895
1,552,169,451
2019-03-09T22:10:51
Main.java
import java.util.List import java.util.Arrays;; import java.util.Map; import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Map<Long, Long> d...
Main.java:1: error: ';' expected import java.util.List ^ Main.java:2: error: extraneous semicolon import java.util.Arrays;; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472301895|p03103|0
u472301895|p03103|0
codenet
Compile Error
1,195
v2_s207119862
s207119862
s207119862
p03103
p03103
u495692658
u495692658
1,553,262,701
2019-03-22T13:51:41
Main.java
import java.util.Scanner; class Main { public static void main(String[] args{ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int a[] = new int[n]; int b[]=new int[n]; for(int i=0; i<n; i++){ a[i]=sc.nextInt(); b[i]=sc.nextInt(); } for(int i=0; i<n; i++){ for(int j=i+1; j<n; j++){ ...
Main.java:2: error: ',', ')', or '[' expected class Main { public static void main(String[] args{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495692658|p03103|0
u495692658|p03103|0
codenet
Compile Error
564
v2_s637388263
s637388263
s637388263
p03103
p03103
u533017901
u533017901
1,562,069,550
2019-07-02T12:12:30
Main.java
n,k=map(int,input().split()) a=[] for i in range(n): s,p=map(int,input().split()) a+=[[s, p] ] import operator as op a.sort(key = op.itemgetter(0)) ans=0 get=0 look=0 while get<k: get=get+1 a[look][1]=a[look][1]-1 ans=ans+a[look][0] if a[look][1]==0: look=look+1 print(ans)
Main.java:1: error: class, interface, enum, or record expected n,k=map(int,input().split()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u533017901|p03103|1
u533017901|p03103|1
codenet
Compile Error
315
v2_s340726967
s340726967
s340726967
p03103
p03103
u547167033
u547167033
1,567,862,845
2019-09-07T13:27:25
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(); long sum = 0; int num = 0; Map<Integer,Integer> map = new HashMap<Integer,Integer>(); ArrayList<Integer> list = new Ar...
Main.java:26: error: ';' expected sum += (long)p*(map.get(p)-num+m)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03103|0
u547167033|p03103|0
codenet
Compile Error
874