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_s920123654
s920123654
s920123654
p02881
p02881
u563673753
u563673753
1,593,541,544
2020-06-30T18:25:44
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); //入力値 long n = sc.nextLong(); //入力値の平方根 int a = Math.sqrt(n); //移動回数 long b =0; for(int i = 1;i>=a+1;++1){ if(n%i=0){ ...
Main.java:9: error: incompatible types: possible lossy conversion from double to int int a = Math.sqrt(n); ^ Main.java:13: error: unexpected type for(int i = 1;i>=a+1;++1){ ^ required: variable found: value Main.java:14: error: unexpected type ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563673753|p02881|0
u563673753|p02881|0
codenet
Compile Error
549
v2_s151455907
s151455907
s151455907
p02881
p02881
u582880126
u582880126
1,593,446,391
2020-06-29T15:59: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 x = 2; int y; int sum; while(N % x == 0){ i++ } y = N / x; sum = (x-1)+(y-1); System.out.println(su...
Main.java:10: error: ';' expected i++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
343
v2_s937344827
s937344827
s937344827
p02881
p02881
u582880126
u582880126
1,593,446,422
2020-06-29T16:00:22
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 x = 2; int y; int sum; while(N % x == 0){ i++; } y = N / x; sum = (x-1)+(y-1); System.out.println(s...
Main.java:10: error: cannot find symbol i++; ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
344
v2_s379098536
s379098536
s379098536
p02881
p02881
u582880126
u582880126
1,593,448,478
2020-06-29T16:34:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double roop = Math.sqrt(N); double i = 2; int x = 2; int y; int count = 0; int endX; int endY while(i < roop)...
Main.java:12: error: ';' expected int endY ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
618
v2_s894260187
s894260187
s894260187
p02881
p02881
u582880126
u582880126
1,593,448,498
2020-06-29T16:34:58
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double roop = Math.sqrt(N); double i = 2; int x = 2; int y; int count = 0; int endX; int endY; while(i < roop...
Main.java:24: error: cannot find symbol sum = endX + endY - 2; ^ symbol: variable sum location: class Main Main.java:25: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
619
v2_s520012887
s520012887
s520012887
p02881
p02881
u582880126
u582880126
1,593,448,529
2020-06-29T16:35:29
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double roop = Math.sqrt(N); double i = 2; int x = 2; int y; int count = 0; int endX; int endY; int sum; ...
Main.java:25: error: variable endX might not have been initialized sum = endX + endY - 2; ^ Main.java:25: error: variable endY might not have been initialized sum = endX + endY - 2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
636
v2_s763845512
s763845512
s763845512
p02881
p02881
u582880126
u582880126
1,593,449,503
2020-06-29T16:51:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); double N = sc.nextInt(); double roop = Math.sqrt(N); double x = 1; double y; int count = 0; while(x <= roop){ if(N % x == 0){ y = N ...
Main.java:14: error: incompatible types: possible lossy conversion from double to int count = (int)x + y - 2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582880126|p02881|0
u582880126|p02881|0
codenet
Compile Error
515
v2_s217222272
s217222272
s217222272
p02881
p02881
u604068691
u604068691
1,572,229,347
2019-10-28T02:22:27
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long NN = sc.nextLong(); long a = 0; long b = 0; String S = String.valueOf(NN); int R = S.length()/2+S.lenth()%2; if( R<3 ){ R = S.length(); } if( NN==100...
Main.java:11: error: cannot find symbol int R = S.length()/2+S.lenth()%2; ^ symbol: method lenth() location: variable S of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p02881|0
u604068691|p02881|0
codenet
Compile Error
613
v2_s223283216
s223283216
s223283216
p02881
p02881
u604068691
u604068691
1,572,233,710
2019-10-28T03:35:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long NN = sc.nextLong(); long a = 0; long b = 0; long A = 0,B = 0; for( int i=1; i*i<=N; i++ ){ a++; b = NN/a; if( NN%a==0 ){ A = a; B = b; } if...
Main.java:10: error: cannot find symbol for( int i=1; i*i<=N; i++ ){ ^ symbol: variable N location: class Main Main.java:20: error: cannot find symbol if( i==c ){ ^ symbol: variable c location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p02881|0
u604068691|p02881|0
codenet
Compile Error
470
v2_s534646794
s534646794
s534646794
p02881
p02881
u604068691
u604068691
1,572,233,781
2019-10-28T03:36:21
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long NN = sc.nextLong(); long a = 0; long b = 0; long A = 0,B = 0; for( int i=1; i*i<=N; i++ ){ a++; b = NN/a; if( NN%a==0 ){ A = a; B = b; } if...
Main.java:10: error: cannot find symbol for( int i=1; i*i<=N; i++ ){ ^ symbol: variable N location: class Main Main.java:20: error: cannot find symbol if( i*i==N ){ ^ symbol: variable N location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p02881|0
u604068691|p02881|0
codenet
Compile Error
472
v2_s300493065
s300493065
s300493065
p02881
p02881
u659156129
u659156129
1,596,655,297
2020-08-05T19:21:37
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); long n = scn.nextLong(); long i = 1; long j = 1; long a = 1; while(a<=n/a){ if(n%a==0){ i = a; j = N/i; } a++; ...
Main.java:13: error: cannot find symbol j = N/i; ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02881|1
u659156129|p02881|1
codenet
Compile Error
364
v2_s731672756
s731672756
s731672756
p02881
p02881
u716366168
u716366168
1,576,173,412
2019-12-12T17:56:52
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 count; for(int i = 1; i <= n; i++){ for(int j = 1; j <= n; j++){ if(i*j == n){ if((i + j) < count)...
Main.java:13: error: variable count might not have been initialized if((i + j) < count){ ^ Main.java:20: error: variable count might not have been initialized System.out.println(count - 2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u716366168|p02881|0
u716366168|p02881|0
codenet
Compile Error
471
v2_s925819012
s925819012
s925819012
p02881
p02881
u785708446
u785708446
1,572,225,117
2019-10-28T01:11:57
Main.java
import java.util.*; class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); long n,k,min; n = sc.nextLong(); k = Math.sqrt(n); min = n; for(long i=1;i<=k;i++){ if(n%i==0){ long j=n/i; if(i+j-2<min){min = i+j-2;...
Main.java:7: error: incompatible types: possible lossy conversion from double to long k = Math.sqrt(n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785708446|p02881|0
u785708446|p02881|0
codenet
Compile Error
385
v2_s510132677
s510132677
s510132677
p02881
p02881
u786488524
u786488524
1,572,227,105
2019-10-28T01:45:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = Long.MAX_VALUE /2; long c = Long.MAX_VALUE /2; for(long i = (a-1)2; i > 0; i--){ if(a % i == 0){ if((a/i + i) < (b + c) ){ ...
Main.java:9: error: ';' expected for(long i = (a-1)2; i > 0; i--){ ^ Main.java:9: error: not a statement for(long i = (a-1)2; i > 0; i--){ ^ Main.java:9: error: ')' expected for(long i = (a-1)2; i > 0; i--){ ^ Main.java:9: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786488524|p02881|0
u786488524|p02881|0
codenet
Compile Error
410
v2_s855804458
s855804458
s855804458
p02881
p02881
u786488524
u786488524
1,572,228,893
2019-10-28T02:14:53
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = Long.MAX_VALUE /2; long c = Long.MAX_VALUE /2; List<Long> list = factorization(a); for (long i : list) { if((a/i + i) < (b + c) ){ ...
Main.java:23: error: incompatible types: int cannot be converted to Long result.add(2); ^ 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
u786488524|p02881|0
u786488524|p02881|0
codenet
Compile Error
819
v2_s685545723
s685545723
s685545723
p02881
p02881
u806768852
u806768852
1,572,226,601
2019-10-28T01:36:41
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long a = 1000000000000; long b = 1000000000000; for(int i = 1;i < N;i++){ for(int j = 1;j < N;j++){ if(N == i * j){ if(i + j < a + b){ ...
Main.java:7: error: integer number too large long a = 1000000000000; ^ Main.java:8: error: integer number too large long b = 1000000000000; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p02881|0
u806768852|p02881|0
codenet
Compile Error
436
v2_s495390110
s495390110
s495390110
p02881
p02881
u865557263
u865557263
1,572,225,396
2019-10-28T01:16:36
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int A = sc.nextInt(); int score=0; int thre=0; for (int i=1; i<A; i++){ if (i>thre && thre!=0)break; if(A%i==0){ int B = i; int C = A/i; ...
Main.java:19: error: ';' expected if(score==0){score = sc;thre=Math.max(B,C)} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u865557263|p02881|0
u865557263|p02881|0
codenet
Compile Error
508
v2_s814634189
s814634189
s814634189
p02881
p02881
u865557263
u865557263
1,572,225,601
2019-10-28T01:20:01
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long A = sc.nextInt(); int score=0; int thre=0; for (int i=1; i<A; i++){ if (i>thre && thre!=0)break; if(A%i==0){ int B = i; int C = A/i; ...
Main.java:17: error: incompatible types: possible lossy conversion from long to int int C = A/i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u865557263|p02881|0
u865557263|p02881|0
codenet
Compile Error
510
v2_s675361791
s675361791
s675361791
p02881
p02881
u918923596
u918923596
1,593,455,910
2020-06-29T18:38:30
Main.java
import java.util.*; public class Main { public static void main(String args[]) { //値の取得 Scanner sc = new Scanner(System.in); long N = sc.nextLong();
Main.java:7: error: reached end of file while parsing long N = sc.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p02881|0
u918923596|p02881|0
codenet
Compile Error
191
v2_s762070519
s762070519
s762070519
p02881
p02881
u918923596
u918923596
1,593,457,045
2020-06-29T18:57:25
Main.java
import java.util.*; public class Main { public static void main(String args[]) { //値の取得 Scanner sc = new Scanner(System.in); long N = sc.nextLong(); //long型で宣言 double root = Math.sqrt(N); long a = 1; //最初の地点 long b = 1; //最初の地点 long count = 0; //移動回数 ...
Main.java:15: error: illegal character: '\u3000' b = N/a ;?//??b????? ^ Main.java:18: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p02881|0
u918923596|p02881|0
codenet
Compile Error
533
v2_s937328380
s937328380
s937328380
p02881
p02881
u981808900
u981808900
1,572,224,868
2019-10-28T01:07:48
Main.java
import java.util.function.*; import java.io.*; class Main { static Scanner scanner = new Scanner(); static long mod = 1000000007; static int inf = 0x7ffffff; public static void main(String[]$) throws Exception { long n = scanner.nextLong(); long min = 10000000000000L; for (long...
Main.java:14: error: cannot find symbol println(i, n, n / i, n % i); ^ symbol: method println(long,long,long,long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02881|0
u981808900|p02881|0
codenet
Compile Error
3,278
v2_s229193296
s229193296
s229193296
p02882
p02882
u137938820
u137938820
1,572,271,511
2019-10-28T14:05:11
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double x = sc.nextDouble(); sc.close(); double res = 0.0; if(a*a*b/2.0 <= x) { BigDecimal atan = new BigDecimal(Math.at...
Main.java:14: error: cannot find symbol BigDecimal atan = new BigDecimal(Math.atan(2*(a*a*b-x)/(a*a*a))); ^ symbol: class BigDecimal location: class Main Main.java:14: error: cannot find symbol BigDecimal atan = new BigDecimal(Math.atan(2*(a*a*b-x)/(a*a*a))); ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137938820|p02882|0
u137938820|p02882|0
codenet
Compile Error
547
v2_s846810669
s846810669
s846810669
p02882
p02882
u269772701
u269772701
1,572,228,095
2019-10-28T02:01:35
Main.java
import java.io.BufferedReader; public class Main { /* several useful subroutines */ private static BufferedReader brStdin = new BufferedReader(new InputStreamReader(System.in)); private static String[] readBuf = null; private static int readPtr = 0; private static String getString() throws IOException { while ...
Main.java:9: error: cannot find symbol private static String getString() throws IOException { ^ symbol: class IOException location: class Main Main.java:16: error: cannot find symbol private static int getInt() throws IOException { ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u269772701|p02882|0
u269772701|p02882|0
codenet
Compile Error
2,340
v2_s626019626
s626019626
s626019626
p02882
p02882
u287979658
u287979658
1,572,230,484
2019-10-28T02:41:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int x = sc.nextInt(); double area = a*a; double volume = area*b; double h=0,A=0,B=0; if(x>volume) { ...
Main.java:21: error: illegal start of expression System.out.println(%.10,B); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u287979658|p02882|0
u287979658|p02882|0
codenet
Compile Error
587
v2_s438448056
s438448056
s438448056
p02882
p02882
u448863865
u448863865
1,572,232,157
2019-10-28T03:09:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); int max = 0; for (int i = 1; i < Math.sqrt(n); i++) if (n % i == 0) max = i; System.out.println(max + N / max - 2); } }
Main.java:11: error: cannot find symbol System.out.println(max + N / max - 2); ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448863865|p02882|0
u448863865|p02882|0
codenet
Compile Error
306
v2_s561520957
s561520957
s561520957
p02882
p02882
u787005274
u787005274
1,573,034,655
2019-11-06T10:04:15
Main.java
import java.util.*; public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double x = sc.nextDouble(); double c = ((2 * x) / Math.pow(a, 2)) - b; if(c >= 0) { double lengthalpha = b -c; double lengthbeta = Math.sqrt(M...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:26: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02882|0
u787005274|p02882|0
codenet
Compile Error
824
v2_s811605553
s811605553
s811605553
p02882
p02882
u787005274
u787005274
1,573,036,595
2019-11-06T10:36:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double x = sc.nextDouble(); int c = (2 * x) / Math.pow(a, 2) - b; if(c >= 0){ double lengthalpha = b - c; dou...
Main.java:9: error: incompatible types: possible lossy conversion from double to int int c = (2 * x) / Math.pow(a, 2) - b; ^ Main.java:20: error: cannot find symbol double lengthdelta = ath.sqrt(Math.pow(b, 2) + Math.pow(lengthganma, 2)); ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02882|0
u787005274|p02882|0
codenet
Compile Error
868
v2_s242024969
s242024969
s242024969
p02882
p02882
u845434829
u845434829
1,588,344,883
2020-05-01T14:54:43
ArrayList.java
/* * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.util; import java.util.function.Consumer; import java.util.function.Predicate; import jav...
ArrayList.java:26: error: package exists in another module: java.base package java.util; ^ ArrayList.java:106: error: cannot find symbol public class ArrayList<E> extends AbstractList<E> ^ symbol: class AbstractList ArrayList.java:107: error: cannot find symbol implements Lis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u845434829|p02882|0
u845434829|p02882|0
codenet
Compile Error
54,151
v2_s183299250
s183299250
s183299250
p02882
p02882
u981866345
u981866345
1,573,193,051
2019-11-08T06:04:11
Math.java
import java.util.Scanner; public class Math { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int x = sc.nextInt(); double angle = 0.0; if (a * a * b >= 2 * x) { angle = Math.atan((a * b * b) / (2 * x)); } else { angle = ...
Math.java:14: error: cannot find symbol angle = Math.atan((a * b * b) / (2 * x)); ^ symbol: method atan(int) location: class Math Math.java:16: error: cannot find symbol angle = Math.atan((2 * b / a) - (2 * x / (a * a * a))); ^ symbol: method atan(int) location: class Mat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981866345|p02882|0
u981866345|p02882|0
codenet
Compile Error
420
v2_s752229385
s752229385
s752229385
p02883
p02883
u273816974
u273816974
1,581,223,568
2020-02-09T04:46:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long k = sc.nextLong(); int[] costs = new int[n]; int[] amounts = new int[n]; ...
Main.java:32: error: ')' expected count += (costs[n - 1 - i] - tmp; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02883|0
u273816974|p02883|0
codenet
Compile Error
1,349
v2_s156710528
s156710528
s156710528
p02883
p02883
u482226328
u482226328
1,572,236,135
2019-10-28T04:15:35
Main.java
public class Main { public static void main(String[] args) { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { Scanner sc = new Scanner(is); /* read */ int n = sc.nextInt(); long k = sc.nextLong(); Long[] a = new Long[n]; Long[] f = new Long[n]; ...
Main.java:7: error: cannot find symbol static void solve(InputStream is, PrintStream os) { ^ symbol: class InputStream location: class Main Main.java:7: error: cannot find symbol static void solve(InputStream is, PrintStream os) { ^ symbol: class Pri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u482226328|p02883|0
u482226328|p02883|0
codenet
Compile Error
3,070
v2_s945035782
s945035782
s945035782
p02884
p02884
u838742270
u838742270
1,572,228,004
2019-10-28T02:00:04
Main.java
#include <iostream> #include <cstring> #include <algorithm> #include <vector> #include <string> #include <math.h> #include <iomanip> #include <limits> #include <list> #include <queue> #include <tuple> #include <map> #include <stack> #include <set> using namespace std; #define MOD (long long int)(1e9+7) #define ll long ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cstring> ^ Main.java:3: error: illegal character: '#' #include <algorithm> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <string> ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u838742270|p02884|0
u838742270|p02884|0
codenet
Compile Error
2,851
v2_s517426444
s517426444
s517426444
p02885
p02885
u015418292
u015418292
1,571,534,664
2019-10-20T01:24:24
Curtain.java
public class Curtain { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a; do{ System.out.print("窓の長さ:"); a = stdIn.nextInt(); }while(!(a>=1 && a<=100)); int b; do { System.out.print("カーテンの長さ:"); b = stdIn.nextInt(); }while(!(b>=1 && b<=100)); int c = ...
Curtain.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Curtain Curtain.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Curtain 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02885|0
u015418292|p02885|0
codenet
Compile Error
551
v2_s939764036
s939764036
s939764036
p02885
p02885
u015418292
u015418292
1,571,534,851
2019-10-20T01:27:31
Main.java
class Curtain { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a; do{ System.out.print("窓の長さ:"); a = stdIn.nextInt(); }while(!(a>=1 && a<=100)); int b; do { System.out.print("カーテンの長さ:"); b = stdIn.nextInt(); }while(!(b>=1 && b<=100)); int c = b *= 2;...
Main.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Curtain Main.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Curtain 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02885|0
u015418292|p02885|0
codenet
Compile Error
545
v2_s500801515
s500801515
s500801515
p02885
p02885
u018773111
u018773111
1,593,090,168
2020-06-25T13:02:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(a>b*2 ? a-b* : 0); } }
Main.java:8: error: illegal start of expression System.out.println(a>b*2 ? a-b* : 0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02885|0
u018773111|p02885|0
codenet
Compile Error
223
v2_s376223950
s376223950
s376223950
p02885
p02885
u052640789
u052640789
1,571,533,678
2019-10-20T01:07:58
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a - (2 * b); if(c > 0) { System.out.println(c); } else { System.out.println(0); } }
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052640789|p02885|0
u052640789|p02885|0
codenet
Compile Error
315
v2_s867877424
s867877424
s867877424
p02885
p02885
u099910634
u099910634
1,574,549,059
2019-11-23T22:44:19
Main.java
import java.io.*; import java.math.*; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner s=new Scanner(System.in); int a=s.nextInt(); int b=s.nextInt(); if(a>(2*b)) System.out.println(a-(2*b)); else System.out.println(0); } }
Main.java:7: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u099910634|p02885|0
u099910634|p02885|0
codenet
Compile Error
299
v2_s837563915
s837563915
s837563915
p02885
p02885
u099910634
u099910634
1,574,549,295
2019-11-23T22:48:15
Main.java
import java.util.*; import java.math.*; import java.lang.*; public class Main{ public static void main(String args[]) throws IOException{ Scanner s=new Scanner(System.in); int a=s.nextInt(); int b=s.nextInt(); if(a>(2*b)) System.out.println(a-(2*b)); else System.out.println(0); } }
Main.java:6: error: cannot find symbol public static void main(String args[]) throws IOException{ ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u099910634|p02885|0
u099910634|p02885|0
codenet
Compile Error
320
v2_s280817899
s280817899
s280817899
p02885
p02885
u118139802
u118139802
1,579,954,443
2020-01-25T12:14:03
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 po= 0; int d[] = new int[100000000000000]; int k = 0; int j = 0; for(int i=0;i<N;i++){ d[i] = sc.nextInt(); //System.out.printl...
Main.java:9: error: integer number too large int d[] = new int[100000000000000]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u118139802|p02885|0
u118139802|p02885|0
codenet
Compile Error
523
v2_s892211343
s892211343
s892211343
p02885
p02885
u118139802
u118139802
1,579,954,916
2020-01-25T12:21:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int po= 0; int d[] = new int[10000]; int k = 0; int j = 0; for(int i=0;i<N;i++){ d[i] = sc.nextInt(); //System.out.println(d[i]); ...
Main.java:19: error: cannot find symbol for(k=0;k<n;k++){ ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u118139802|p02885|0
u118139802|p02885|0
codenet
Compile Error
505
v2_s535124839
s535124839
s535124839
p02885
p02885
u135363744
u135363744
1,599,872,656
2020-09-12T01:04:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.newxtInt(); int r = a-b*2; if(r<0) r = 0; System.out.println(r); } }
Main.java:7: error: cannot find symbol int b = sc.newxtInt(); ^ symbol: method newxtInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02885|0
u135363744|p02885|0
codenet
Compile Error
239
v2_s370482692
s370482692
s370482692
p02885
p02885
u139478771
u139478771
1,571,533,332
2019-10-20T01:02:12
Main.java
fun main(args: Array<String>) { abc143a() } fun abc143a() { val (a, b) = readLine()!!.split(" ").map { it.toInt() } val answer = Math.max(0, a - 2 * b) println(answer) }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. fun main(args: Array<String>) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected fun main(args: Array<String>) { ^ Main.java:1: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139478771|p02885|0
u139478771|p02885|0
codenet
Compile Error
189
v2_s060042885
s060042885
s060042885
p02885
p02885
u200228637
u200228637
1,572,662,239
2019-11-02T02:37:19
Main.java
ort java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int A=sc.nextInt(); final int B=sc.nextInt(); if(A<=B*2){ System.out.println(0); }else{ System.out.println(A-B*2); } } }
Main.java:1: error: class, interface, enum, or record expected ort java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200228637|p02885|0
u200228637|p02885|0
codenet
Compile Error
279
v2_s142024507
s142024507
s142024507
p02885
p02885
u224351097
u224351097
1,571,768,431
2019-10-22T18:20:31
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) { // たこ焼きのパラメータ取得用リスト List<Integer> takoyakiParam = new ArrayList<Integer>(); // 回復量の合計 Long sum = 0; Scanner scanner = new Scanner(System.in); //...
Main.java:12: error: incompatible types: int cannot be converted to Long Long sum = 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u224351097|p02885|1
u224351097|p02885|0
codenet
Compile Error
957
v2_s605618811
s605618811
s605618811
p02885
p02885
u234582237
u234582237
1,571,533,490
2019-10-20T01:04:50
Main.java
a,b=map(int,input().split()) answer=a-b*2 if answer<0: print(0) else: print(answer)
Main.java:1: error: class, interface, enum, or record expected a,b=map(int,input().split()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234582237|p02885|0
u234582237|p02885|0
codenet
Compile Error
87
v2_s349590035
s349590035
s349590035
p02885
p02885
u242162009
u242162009
1,574,679,350
2019-11-25T10:55:50
Main.java
public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); if(2*b < a) { System.out.println(0); } else System.out.println(a - 2*b); }
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
u242162009|p02885|0
u242162009|p02885|0
codenet
Compile Error
210
v2_s257775864
s257775864
s257775864
p02885
p02885
u257470355
u257470355
1,574,110,792
2019-11-18T20:59:52
Main.java
public class SongLauncher extends Fragment implements ISongLauncher{ SongAdapter mSongAdapter; Fragment mSongStateFragment; IActivityFragmentInteractor mInteracter; public SongLauncher() { // Required empty public constructor } @Override public void onCreate(Bundle savedInstanceSt...
Main.java:1: error: class SongLauncher is public, should be declared in a file named SongLauncher.java public class SongLauncher extends Fragment implements ISongLauncher{ ^ Main.java:73: error: class MainActivity is public, should be declared in a file named MainActivity.java public class MainActivity extends A...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u257470355|p02885|0
u257470355|p02885|0
codenet
Compile Error
6,722
v2_s058927836
s058927836
s058927836
p02885
p02885
u272197175
u272197175
1,580,523,039
2020-02-01T02:10:39
curtain.java
import java.util.*; import java.lang.*; public class curtain { public static void main(String args[]) { Scanner in=new Scanner(System.in); int a,b,u; println("Enter width of the window"); a=in.nextInt(); println("Enter horizontal length of curtain"); b=in.nextInt(); u=a-(2*b); if(u>0...
curtain.java:16: error: ';' expected elseif(u==0) ^ curtain.java:18: error: ')' or ',' expected elseif(a<2b) ^ curtain.java:18: error: ';' expected elseif(a<2b) ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u272197175|p02885|0
u272197175|p02885|0
codenet
Compile Error
500
v2_s703111024
s703111024
s703111024
p02885
p02885
u292902179
u292902179
1,571,866,236
2019-10-23T21:30:36
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int num=scan.nextInt(); int Ans=0, a=0; int tri[]=new int [num]; while(a<num){ tri[a]=scan.nextInt(); a++; } for(int x=0; x<num-2; x++){ for(int y=x+1; y<nu...
Main.java:15: error: cannot find symbol for(int z=b+1; z<num; z++){ ^ symbol: variable b location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02885|0
u292902179|p02885|0
codenet
Compile Error
540
v2_s192498613
s192498613
s192498613
p02885
p02885
u303741068
u303741068
1,572,311,946
2019-10-29T01:19:06
Main.java
public class Main() { public static void main(String [] args) { FastReader fr = new FastReader(); int A = fr.nextInt(); int B = fr.nextInt(); int tmp = A - B * 2; return tmp > 0 ? tmp : 0; } } class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = n...
Main.java:1: error: '{' expected public class Main() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02885|0
u303741068|p02885|0
codenet
Compile Error
1,000
v2_s138535500
s138535500
s138535500
p02885
p02885
u303741068
u303741068
1,572,311,974
2019-10-29T01:19:34
Main.java
public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int A = fr.nextInt(); int B = fr.nextInt(); int tmp = A - B * 2; return tmp > 0 ? tmp : 0; } } class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new...
Main.java:13: error: cannot find symbol BufferedReader br; ^ symbol: class BufferedReader location: class FastReader Main.java:14: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class FastReader Main.java:8: error: incompatible types: unexpected return value ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02885|0
u303741068|p02885|0
codenet
Compile Error
998
v2_s596232931
s596232931
s596232931
p02885
p02885
u303741068
u303741068
1,572,312,041
2019-10-29T01:20:41
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int A = fr.nextInt(); int B = fr.nextInt(); int tmp = A - B * 2; retu...
Main.java:13: error: incompatible types: unexpected return value return tmp > 0 ? tmp : 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02885|0
u303741068|p02885|0
codenet
Compile Error
1,126
v2_s327941116
s327941116
s327941116
p02885
p02885
u312473205
u312473205
1,573,879,938
2019-11-16T04:52:18
Main.java
import java.io.PrintWriter; import java.util.*; import java.io.*; import java.util.stream.IntStream; import java.util.stream.Stream; public class Main { public static void main(String[] args) { new Solver().stream(); } final IO io = new IO(); final PrintWriter ...
Main.java:10: error: cannot find symbol new Solver().stream(); ^ symbol: class Solver location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u312473205|p02885|0
u312473205|p02885|0
codenet
Compile Error
2,829
v2_s969478130
s969478130
s969478130
p02885
p02885
u317333738
u317333738
1,574,049,201
2019-11-18T03:53:21
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a - 2b; if (c < 0) { System.out.println(0); } else [ System.out.println(c); } } }
Main.java:8: error: ';' expected int c = a - 2b; ^ Main.java:12: error: illegal start of expression } else [ ^ Main.java:16: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p02885|0
u317333738|p02885|0
codenet
Compile Error
306
v2_s761031853
s761031853
s761031853
p02885
p02885
u317333738
u317333738
1,574,049,249
2019-11-18T03:54:09
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a - 2b; if (c < 0) { System.out.println(0); } else { System.out.println(c); } } }
Main.java:8: error: ';' expected int c = a - 2b; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p02885|0
u317333738|p02885|0
codenet
Compile Error
306
v2_s926934699
s926934699
s926934699
p02885
p02885
u353919145
u353919145
1,574,419,693
2019-11-22T10:48:13
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(); int width = sc.nextInt(); int cWidth = sc.nextInt()*2; int left = width-cWidth; if(cWidth <= width); left = 0; System.out.println(); } }
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 (actu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02885|1
u353919145|p02885|1
codenet
Compile Error
270
v2_s450049799
s450049799
s450049799
p02885
p02885
u369712616
u369712616
1,584,024,146
2020-03-12T14:42:26
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(2b>=a){ System.out.println(0); }else{ System.out.println(2b-a); } } }
Main.java:7: error: ')' expected if(2b>=a){ ^ Main.java:7: error: not a statement if(2b>=a){ ^ Main.java:7: error: ';' expected if(2b>=a){ ^ Main.java:10: error: ')' or ',' expected System.out.println(2b-a); ^ Main.java:10: error: not a statement System.out.println(2b-a); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02885|0
u369712616|p02885|0
codenet
Compile Error
231
v2_s590287953
s590287953
s590287953
p02885
p02885
u412039195
u412039195
1,571,533,292
2019-10-20T01:01:32
Main.java
//#include <bits/stdc++.h> #include <stdio.h> #include <iostream> #include <vector> #include <algorithm> #include <string> #include <cmath> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b; cin >> a >> b; int x = a - b * 2; if(x < 0) { x = 0; ...
Main.java:2: error: illegal character: '#' #include <stdio.h> ^ Main.java:2: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:3: error: illegal character: '#' #include <iostream> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal charact...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412039195|p02885|0
u412039195|p02885|0
codenet
Compile Error
348
v2_s196837058
s196837058
s196837058
p02885
p02885
u520480375
u520480375
1,587,498,843
2020-04-21T19:54:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a<b*2){ System.out.println(0); return; }else{ System.out.println(a-2b); } } }
Main.java:15: error: ')' or ',' expected System.out.println(a-2b); ^ Main.java:15: error: ';' expected System.out.println(a-2b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520480375|p02885|0
u520480375|p02885|0
codenet
Compile Error
293
v2_s203114995
s203114995
s203114995
p02885
p02885
u565692645
u565692645
1,571,807,562
2019-10-23T05:12:42
Main.java
import java.util.Scanner; public static void main(String[] args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); if(A - 2*B >= 0){ System.out.println(A - 2*B); } else{ System.out.println(0); } }
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
u565692645|p02885|0
u565692645|p02885|0
codenet
Compile Error
246
v2_s017313657
s017313657
s017313657
p02885
p02885
u583676700
u583676700
1,571,535,585
2019-10-20T01:39:45
Main.java
class Solution{ public static void main(String[] args) { Scanner scn = new Scanner(System.in); // Codes for input goes here int A = scn.nextInt(); int B = scn.nextInt(); scn.close(); B = 2 * B; int diff = B-A; if(diff>0) return diff; return 0; } }
Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Main.java:11: error: incom...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583676700|p02885|0
u583676700|p02885|0
codenet
Compile Error
276
v2_s950777339
s950777339
s950777339
p02885
p02885
u583676700
u583676700
1,571,535,733
2019-10-20T01:42:13
Main.java
class Solution{ public static void main(String[] args) { Scanner scn = new Scanner(System.in); // Codes for input goes here int A = scn.nextInt(); int B = scn.nextInt(); scn.close(); B = 2 * B; int diff = B-A; if(diff<0) diff =0; System.out.println(diff); } }
Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Main.java:3: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Solution 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583676700|p02885|0
u583676700|p02885|0
codenet
Compile Error
289
v2_s094708990
s094708990
s094708990
p02885
p02885
u599968009
u599968009
1,571,533,703
2019-10-20T01:08:23
Main.java
public class Main { public static void main(String[] args) { try { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String[] x = bf.readLine().trim().split(" ");; int a = Integer.parseInt(x[0]); int b = Integer.parseInt(x[1]); int c = a - b * 2; if ( c< 0 ) c=0; Sy...
Main.java:5: error: cannot find symbol BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u599968009|p02885|0
u599968009|p02885|0
codenet
Compile Error
378
v2_s374631377
s374631377
s374631377
p02885
p02885
u625124914
u625124914
1,574,034,595
2019-11-17T23:49:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); if(a-2b <= 0) { System.out.println(0); } else { System.out.println(a-2b); } }
Main.java:8: error: ')' expected if(a-2b <= 0) { ^ Main.java:8: error: not a statement if(a-2b <= 0) { ^ Main.java:8: error: ';' expected if(a-2b <= 0) { ^ Main.java:11: error: ')' or ',' expected System.out.println(a-2b); ^ Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625124914|p02885|0
u625124914|p02885|0
codenet
Compile Error
308
v2_s163011251
s163011251
s163011251
p02885
p02885
u625124914
u625124914
1,574,034,604
2019-11-17T23:50:04
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); if(a-2b <= 0) { System.out.println(0); } else { System.out.println(a-2b); } } }
Main.java:8: error: ')' expected if(a-2b <= 0) { ^ Main.java:8: error: not a statement if(a-2b <= 0) { ^ Main.java:8: error: ';' expected if(a-2b <= 0) { ^ Main.java:11: error: ')' or ',' expected System.out.println(a-2b); ^ Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625124914|p02885|0
u625124914|p02885|0
codenet
Compile Error
314
v2_s380292173
s380292173
s380292173
p02885
p02885
u625124914
u625124914
1,574,034,634
2019-11-17T23:50:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); if(a-2*b <= 0) { System.out.println(0); } else { System.out.println(a-2b); } } }
Main.java:11: error: ')' or ',' expected System.out.println(a-2b); ^ Main.java:11: error: ';' expected System.out.println(a-2b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u625124914|p02885|0
u625124914|p02885|0
codenet
Compile Error
315
v2_s492044785
s492044785
s492044785
p02885
p02885
u653981267
u653981267
1,586,311,187
2020-04-08T01:59:47
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int ans = Math.max(0, a - 2 * b); System.out.println(ans); }
Main.java:10: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02885|0
u653981267|p02885|0
codenet
Compile Error
247
v2_s013723460
s013723460
s013723460
p02885
p02885
u760718569
u760718569
1,571,549,992
2019-10-20T05:39:52
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a-(b*2); if(c<0){ c = 0; } System.out.println(c);
Main.java:4: error: ')' or ',' expected Scanner sc = new Scanner(System in); ^ Main.java:4: error: not a statement Scanner sc = new Scanner(System in); ^ Main.java:4: error: ';' expected Scanner sc = new Scanner(System in); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02885|0
u760718569|p02885|0
codenet
Compile Error
259
v2_s959890027
s959890027
s959890027
p02885
p02885
u768249349
u768249349
1,571,546,927
2019-10-20T04:48:47
Main.java
Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int ans = A - 2*B; if (ans < 0) { ans = 0; } System.out.println(ans);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner sc = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record expected if (ans < 0) ^ Main.java:8: error: class, interface, enum, or re...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768249349|p02885|0
u768249349|p02885|0
codenet
Compile Error
218
v2_s086822351
s086822351
s086822351
p02885
p02885
u787005274
u787005274
1,573,368,210
2019-11-10T06:43:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int c = a - b * 2; if(c >= 0){ System.out.println(c); }else{ System.out.println("0"); } } }
Main.java:5: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:6: error: cannot find symbol int b = sc.nextInt(); ^ symbol: variable sc location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02885|0
u787005274|p02885|0
codenet
Compile Error
255
v2_s612493336
s612493336
s612493336
p02885
p02885
u816631826
u816631826
1,572,327,582
2019-10-29T05:39:42
Main.java
public static void main(String[] args) { int A,B; Scanner in=new Scanner(System.in); A=in.nextInt(); B=in.nextInt(); if (A>2*B) { System.out.println(A-2*B); } else { System.out.println(0); } }
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
u816631826|p02885|0
u816631826|p02885|0
codenet
Compile Error
300
v2_s919010136
s919010136
s919010136
p02885
p02885
u816631826
u816631826
1,574,420,310
2019-11-22T10:58:30
Main.java
public class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); DecimalFormat df = new DecimalFormat("##,###.##"); int a= sc.nextInt(); int b= sc.nextInt(); int c= a-(b*2); System.out.println(a+""+ c); } }
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:4: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02885|2
u816631826|p02885|2
codenet
Compile Error
253
v2_s823076551
s823076551
s823076551
p02885
p02885
u819611746
u819611746
1,571,619,109
2019-10-21T00:51:49
Main.java
import java.util.Scanner; public class Main{ Scanner ob = new Scanner(System.in); int A = Integer.parseInt(ob.nextLine()); int B = Integer.parseInt(ob.nextLine()); if(A <= 2*B) System.out.println("0"); else System.out.println(A-2*B); }
Main.java:8: error: illegal start of type if(A <= 2*B) ^ Main.java:8: error: <identifier> expected if(A <= 2*B) ^ Main.java:8: error: <identifier> expected if(A <= 2*B) ^ Main.java:9: error: <identifier> expected System.out.println("0"); ^ Main.java:9: error: illegal...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u819611746|p02885|0
u819611746|p02885|0
codenet
Compile Error
257
v2_s838701235
s838701235
s838701235
p02885
p02885
u825262731
u825262731
1,571,533,553
2019-10-20T01:05:53
Main.java
import java.util.* class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in) int a = sc.nextInt(); int b = sc.nextInt(); c = 2*b; if(c>a){ System.out.println(0); } else{ System.out.println(a-c); } } }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:4: error: ';' expected Scanner sc = new Scanner(System.in) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02885|0
u825262731|p02885|0
codenet
Compile Error
231
v2_s295362849
s295362849
s295362849
p02885
p02885
u825262731
u825262731
1,571,533,610
2019-10-20T01:06:50
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); c = 2*b; if(c>a){ System.out.println(0); } else{ System.out.println(a-c); } } }
Main.java:7: error: cannot find symbol c = 2*b; ^ symbol: variable c location: class Main Main.java:8: error: cannot find symbol if(c>a){ ^ symbol: variable c location: class Main Main.java:12: error: cannot find symbol System.out.println(a-c); ^ symbol: variable c location: cl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02885|0
u825262731|p02885|0
codenet
Compile Error
232
v2_s228241107
s228241107
s228241107
p02885
p02885
u827836698
u827836698
1,573,906,865
2019-11-16T12:21:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(),int B = sc.nextInt(); int ans = A - B * 2; if (ans < 0) ans = 0; System.ou.println(ans); } }
Main.java:6: error: <identifier> expected int A = sc.nextInt(),int B = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827836698|p02885|0
u827836698|p02885|0
codenet
Compile Error
255
v2_s672292843
s672292843
s672292843
p02885
p02885
u827836698
u827836698
1,573,906,944
2019-11-16T12:22:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(),B = sc.nextInt(); int ans = A - B * 2; if (ans < 0) ans = 0; System.ou.println(ans); } }
Main.java:9: error: cannot find symbol System.ou.println(ans); ^ symbol: variable ou location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827836698|p02885|0
u827836698|p02885|0
codenet
Compile Error
252
v2_s785798695
s785798695
s785798695
p02885
p02885
u829246976
u829246976
1,575,582,521
2019-12-05T21:48:41
ABC086_A_Product.java
import java.util.Scanner; public class ABC086_A_Product { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if((a - 2*b) > 0){ System.out.println(a - 2b); }else{ System.out.pr...
ABC086_A_Product.java:11: error: ')' or ',' expected System.out.println(a - 2b); ^ ABC086_A_Product.java:11: error: ';' expected System.out.println(a - 2b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u829246976|p02885|0
u829246976|p02885|0
codenet
Compile Error
352
v2_s665795812
s665795812
s665795812
p02885
p02885
u863370423
u863370423
1,574,419,686
2019-11-22T10:48:06
Main.java
import java.util.*; import java.text.*; public class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); DecimalFormat df = new DecimalFormat("##,###.##"); System.out.println("Enter the first part."); int A= sc.nextInt(); System.out.println("Enter the 2nd part."); int B= sc...
Main.java:12: error: ';' expected int Answer= a-b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02885|2
u863370423|p02885|2
codenet
Compile Error
361
v2_s210385656
s210385656
s210385656
p02885
p02885
u880909682
u880909682
1,572,459,674
2019-10-30T18:21:14
Main.java
import java.util.Scanner; class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next.Int(); int b = sc.next.Int(); if ( (a-2*b)<0) { System.out.println(0); } else { System.out.println(a-2*b); } } }
Main.java:6: error: cannot find symbol int a = sc.next.Int(); ^ symbol: variable next location: variable sc of type Scanner Main.java:7: error: cannot find symbol int b = sc.next.Int(); ^ symbol: variable next location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02885|0
u880909682|p02885|0
codenet
Compile Error
292
v2_s543356741
s543356741
s543356741
p02885
p02885
u880909682
u880909682
1,573,080,640
2019-11-06T22:50:40
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[] a; for(i=0; i < n; i++) { a[i] = sc.nextInt(); } int S1 =0; int S2 = 0; for( int i = 0; i < n; i++) { S1 += a[i]*a[i]; } ...
Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ^ symbol: variable i location: class Main Main.java:7: error: cannot find symbol for(i=0; i < n; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02885|1
u880909682|p02885|1
codenet
Compile Error
444
v2_s541221038
s541221038
s541221038
p02885
p02885
u915531210
u915531210
1,571,534,124
2019-10-20T01:15:24
Main.java
import java.util.Scanner; public class Main { //クラス名はMain public static void main(String[] args) { //コード Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int l = a-2*b; int ans; if (l < 0) { ans = 0; } else { ans = ...
Main.java:19: error: incompatible types: unexpected return value return ans; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u915531210|p02885|0
u915531210|p02885|0
codenet
Compile Error
395
v2_s493143001
s493143001
s493143001
p02885
p02885
u956994792
u956994792
1,571,768,838
2019-10-22T18:27:18
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt() int b = sc.nextInt() if((a-b*2) < a){ System.out.println(a-b*2); }else{ System.out.println(0); } } }
Main.java:6: error: ';' expected int a = sc.nextInt() ^ Main.java:7: error: ';' expected int b = sc.nextInt() ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u956994792|p02885|0
u956994792|p02885|0
codenet
Compile Error
287
v2_s699472753
s699472753
s699472753
p02886
p02886
u015418292
u015418292
1,571,540,166
2019-10-20T02:56:06
Main.java
class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int sum = 0; int [] a = new int[n]; for(int i = 0;i < n; i++) { a[i] = stdIn.nextInt(); } for(int i = 0; i < n; i++) { for(int j = i+1; j < n; j++) { sum+=(a[i])+(a[j]); ...
Main.java:4: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02886|0
u015418292|p02886|0
codenet
Compile Error
364
v2_s023342171
s023342171
s023342171
p02886
p02886
u126434371
u126434371
1,574,679,767
2019-11-25T11:02:47
test.java
public class test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sum = 0; int[] arr = new int[N]; for (int i=0; i<N; i++) { arr[i] = sc.nextInt(); } for (int i=0; i<N; i++) { fo...
test.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class test test.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class test 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126434371|p02886|0
u126434371|p02886|0
codenet
Compile Error
449
v2_s434960883
s434960883
s434960883
p02886
p02886
u126434371
u126434371
1,574,679,777
2019-11-25T11:02:57
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sum = 0; int[] arr = new int[N]; for (int i=0; i<N; i++) { arr[i] = sc.nextInt(); } for (int i=0; i<N; i++) { fo...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126434371|p02886|0
u126434371|p02886|0
codenet
Compile Error
449
v2_s236717047
s236717047
s236717047
p02886
p02886
u139478771
u139478771
1,571,533,461
2019-10-20T01:04:21
Main.java
fun main(args: Array<String>) { abc143b() } fun abc143b() { val n = readLine()!!.toInt() val dList = readLine()!!.split(" ").map { it.toInt() } val answer = (0 until n).map { i -> (i + 1 until n).map { j -> dList[i] * dList[j] } }.flatten().sum() println(answer) }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. fun main(args: Array<String>) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected fun main(args: Array<String>) { ^ Main.java:1: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139478771|p02886|0
u139478771|p02886|0
codenet
Compile Error
320
v2_s283060028
s283060028
s283060028
p02886
p02886
u303741068
u303741068
1,572,313,291
2019-10-29T01:41:31
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String [] args) { FastReader fr = new FastReader(); int N = fr.nextInt(); int[] d = new int[N]; int sum = 0; int power = 0; ...
Main.java:19: error: incompatible types: unexpected return value return sum * sum - power; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u303741068|p02886|0
u303741068|p02886|0
codenet
Compile Error
1,251
v2_s172432385
s172432385
s172432385
p02886
p02886
u369712616
u369712616
1,584,267,719
2020-03-15T10:21:59
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[] delicious = new int[n]; int s = 0; int ss = 0; for(int i = 0; i < n; i++){ delicious[i] = sc.nextInt(); s += delicious[i]; ss += deli...
Main.java:14: error: ';' expected System.out.println((s * s - ss) / 2) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02886|0
u369712616|p02886|0
codenet
Compile Error
397
v2_s341402735
s341402735
s341402735
p02886
p02886
u431125128
u431125128
1,571,535,635
2019-10-20T01:40:35
Main.java
import java.util.*; public class Main{ pubic static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] d=new int[N]; for(int i=0;i<N;i++){ d[i]=sc.nextInt(); } int counter=0; int answer=0; while(counter<N){ for(int i=0;i<N-1;i++){ ...
Main.java:4: error: <identifier> expected pubic static void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02886|0
u431125128|p02886|0
codenet
Compile Error
423
v2_s295237763
s295237763
s295237763
p02886
p02886
u431125128
u431125128
1,573,752,188
2019-11-14T17:23:08
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] d=new int[n]; for(int i=0;i<n;i++){ d[i]=sc.nextInt(); } int sum=0; for(int i=0;i<n;i++){ for(int j=i+1;j<n;j++){ sum+=d[i]*d[j];...
Main.java:18: error: <identifier> expected System.out.println(sum); ^ Main.java:18: error: <identifier> expected System.out.println(sum); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02886|1
u431125128|p02886|1
codenet
Compile Error
367
v2_s940071534
s940071534
s940071534
p02886
p02886
u440812556
u440812556
1,577,942,981
2020-01-02T05:29:41
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] d = new int[N]; int[] n = new int[N*(N-1)/2]; int n = 0; for(int i=0; i<N; i++){ for(int j=1; j<N; j++){ for(int k=0; k<N*(N-1)/2; k+...
Main.java:12: error: variable n is already defined in method main(String[]) int n = 0; ^ Main.java:18: error: array required, but int found n[k] = d[i]*d[j]; ^ Main.java:19: error: array required, but int found n += n[k]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02886|0
u440812556|p02886|0
codenet
Compile Error
440
v2_s434874687
s434874687
s434874687
p02886
p02886
u440812556
u440812556
1,577,943,243
2020-01-02T05:34:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] d = new int[N]; int[] n = new int[N*(N-1)/2]; int m = 0; for(int i=0; i<N; i++){ for(int j=1; j<N; j++){ a = d[i]*d[j]...
Main.java:18: error: cannot find symbol a = d[i]*d[j]; ^ symbol: variable a location: class Main Main.java:19: error: cannot find symbol m += a; ^ symbol: variable a location: class Main Main.java:23: error: cannot find symbol System.out.println(a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02886|0
u440812556|p02886|0
codenet
Compile Error
401
v2_s972305716
s972305716
s972305716
p02886
p02886
u440812556
u440812556
1,577,943,289
2020-01-02T05:34:49
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] d = new int[N]; int[] n = new int[N*(N-1)/2]; int m = 0; for(int i=0; i<N; i++){ for(int j=1; j<N; j++){ int a = d[i]*...
Main.java:23: error: cannot find symbol System.out.println(a); ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02886|0
u440812556|p02886|0
codenet
Compile Error
405
v2_s289737049
s289737049
s289737049
p02886
p02886
u532873044
u532873044
1,571,843,151
2019-10-23T15:05:51
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i : ...
Main.java:20: error: ';' expected int sum += list.get(i) * list.get(j); ^ Main.java:20: error: not a statement int sum += list.get(i) * list.get(j); ^ Main.java:22: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
420
v2_s548424759
s548424759
s548424759
p02886
p02886
u532873044
u532873044
1,571,843,195
2019-10-23T15:06:35
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i : ...
Main.java:20: error: ';' expected int sum += list.get(i) * list.get(j); ^ Main.java:20: error: not a statement int sum += list.get(i) * list.get(j); ^ Main.java:22: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
420
v2_s502165418
s502165418
s502165418
p02886
p02886
u532873044
u532873044
1,571,843,244
2019-10-23T15:07:24
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i : ...
Main.java:20: error: ';' expected int sum += list.get(i) * list.get(j); ^ Main.java:20: error: not a statement int sum += list.get(i) * list.get(j); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
435
v2_s130499434
s130499434
s130499434
p02886
p02886
u532873044
u532873044
1,571,843,316
2019-10-23T15:08:36
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i : ...
Main.java:20: error: ';' expected int sum += i * j; ^ Main.java:20: error: not a statement int sum += i * j; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
415
v2_s640805591
s640805591
s640805591
p02886
p02886
u532873044
u532873044
1,571,843,426
2019-10-23T15:10:26
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i = ...
Main.java:20: error: ';' expected int sum += list.get(i) * list.get(j); ^ Main.java:20: error: not a statement int sum += list.get(i) * list.get(j); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
473
v2_s141611932
s141611932
s141611932
p02886
p02886
u532873044
u532873044
1,571,843,469
2019-10-23T15:11:09
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List list = new ArrayList<>(); int sum = 0; int takoyaki = sc.nextInt(); for(int i = 1; i <= takoyaki; i++) { int delicious = sc.nextInt(); list.add(delicious); } for(int i = ...
Main.java:20: error: bad operand types for binary operator '*' sum += list.get(i) * list.get(j); ^ first type: Object second type: Object Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532873044|p02886|0
u532873044|p02886|0
codenet
Compile Error
469