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_s106372421
s106372421
s106372421
p04019
p04019
u176003399
u176003399
1,592,947,149
2020-06-23T21:19:09
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int cnt_N =0; int cnt_S =0; int cnt_E =0; int cnt_W =0; for(int i=0; i<S.length(); i++){ if(S.charAt(i)=='N')cnt_N++; else if(S.char...
Main.java:18: error: bad operand types for binary operator '&&' if(cnt_N = cnt_S && cnt_E = cnt_W){ ^ first type: int second type: int Main.java:18: error: incompatible types: int cannot be converted to boolean if(cnt_N = cnt_S && cnt_E = cnt_W){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176003399|p04019|0
u176003399|p04019|0
codenet
Compile Error
556
v2_s030748043
s030748043
s030748043
p04019
p04019
u194225526
u194225526
1,583,688,897
2020-03-08T17:34:57
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { // 入力 Scanner sc = new Scanner(System.in); String s = sc.next(); // 主処理 boolean ns = true; if (0 <= s.indexOf("N") || 0 <= s.indexOf("S")) { ns = (0 <= s.indexOf("N"...
Main.java:26: error: class, interface, enum, or record expected }import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u194225526|p04019|0
u194225526|p04019|0
codenet
Compile Error
1,312
v2_s099004960
s099004960
s099004960
p04019
p04019
u213117974
u213117974
1,471,830,988
2016-08-22T01:56:28
Main.java
/** * Created by abhishek on 7/29/2016. */ import java.util.*; import java.io.*; public class Main { public static void main(String[] args)throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int north= 0,east = 0,west = ...
Main.java:17: error: bad operand types for binary operator '&&' if(north != 0 && south == 0 || south != 0 && north = 0 || east != 0 && west = 0 || west != 0 && east == 0) ^ first type: boolean second type: int Main.java:17: error: bad operand types for bina...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213117974|p04019|0
u213117974|p04019|0
codenet
Compile Error
768
v2_s002333479
s002333479
s002333479
p04019
p04019
u222822036
u222822036
1,599,192,627
2020-09-04T04:10:27
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:74: error: cannot find symbol if((input.contains("N") && !input.contains("S")) || ^ symbol: variable input location: class Main Main.java:74: error: cannot find symbol if((input.contains("N") && !input.contains("S")) || ^ symbol: variable input location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p04019|0
u222822036|p04019|0
codenet
Compile Error
3,124
v2_s639978032
s639978032
s639978032
p04019
p04019
u251779460
u251779460
1,579,320,182
2020-01-18T04:03:02
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w,e,n,s; for(int i=0;i<s.length();i++){ if(s.charAt(i)==‘W’) w++; if(s.charAt(i)==‘E’) e++; if(s.charAt(i)==‘S’) s++; if(s.charAt(i)==‘’N...
Main.java:9: error: illegal character: '\u2018' if(s.charAt(i)==?W?) w++; ^ Main.java:9: error: illegal character: '\u2019' if(s.charAt(i)==?W?) w++; ^ Main.java:9: error: not a statement if(s.charAt(i)==?W?) w++;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p04019|0
u251779460|p04019|0
codenet
Compile Error
606
v2_s576648921
s576648921
s576648921
p04019
p04019
u251779460
u251779460
1,579,320,322
2020-01-18T04:05:22
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w,e,n,s; for(int i=0;i<s.length();i++){ if(s.charAt(i)==`W`) w++; if(s.charAt(i)==`E`) e++; if(s.charAt(i)==`S`) s++; if(s.charAt(i)==`N`...
Main.java:9: error: illegal character: '`' if(s.charAt(i)==`W`) w++; ^ Main.java:9: error: illegal character: '`' if(s.charAt(i)==`W`) w++; ^ Main.java:9: error: not a statement if(s.charAt(i)==`W`) w++; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p04019|0
u251779460|p04019|0
codenet
Compile Error
591
v2_s211698836
s211698836
s211698836
p04019
p04019
u251779460
u251779460
1,579,320,516
2020-01-18T04:08:36
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w,e,n,s; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='W') w++; if(s.charAt(i)=='E') e++; if(s.charAt(i)=='S') s++; if...
Main.java:21: error: illegal character: '\u201c' else System.out.println(?Yes?); ^ Main.java:21: error: illegal character: '\u201d' else System.out.println(?Yes?); ^ Main.java:21: error: not a statement else System.out.println(?Yes?); ^ 3 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p04019|0
u251779460|p04019|0
codenet
Compile Error
588
v2_s316030395
s316030395
s316030395
p04019
p04019
u251779460
u251779460
1,579,320,566
2020-01-18T04:09:26
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w,e,n,s; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='W') w++; if(s.charAt(i)=='E') e++; if(s.charAt(i)=='S') s++; if...
Main.java:7: error: variable s is already defined in method main(String[]) int w,e,n,s; ^ Main.java:8: error: int cannot be dereferenced for(int i=0;i<s.length();i++){ ^ Main.java:9: error: int cannot be dereferenced if(s.charAt(i)=='W') w++; ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p04019|0
u251779460|p04019|0
codenet
Compile Error
584
v2_s034239065
s034239065
s034239065
p04019
p04019
u251779460
u251779460
1,579,320,693
2020-01-18T04:11:33
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w,e,n,k; for(int i=0;i<s.length();i++){ if(s.charAt(i)=='W') w++; if(s.charAt(i)=='E') e++; if(s.charA...
Main.java:9: error: variable w might not have been initialized if(s.charAt(i)=='W') w++; ^ Main.java:10: error: variable e might not have been initialized if(s.charAt(i)=='E') e++; ^ Main.java:11: error: variable k mig...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p04019|0
u251779460|p04019|0
codenet
Compile Error
617
v2_s843297711
s843297711
s843297711
p04019
p04019
u507706381
u507706381
1,573,410,610
2019-11-10T18:30:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); boolean n; boolean w; boolean s; boolean e; for (int i = 0; i < N; i++) { char c = S.charAt(i); if (c == 'N') { n = true; }...
Main.java:11: error: cannot find symbol for (int i = 0; i < N; i++) { ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p04019|0
u507706381|p04019|0
codenet
Compile Error
526
v2_s658736803
s658736803
s658736803
p04019
p04019
u507706381
u507706381
1,573,410,690
2019-11-10T18:31:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); boolean n; boolean w; boolean s; boolean e; for (int i = 0; i < S.length(); i++) { char c = S.charAt(i); if (c == 'N') { n = true...
Main.java:23: error: variable n might not have been initialized System.out.println((n^s)&&(w^e) ? "Yes" : "No"); ^ Main.java:23: error: variable s might not have been initialized System.out.println((n^s)&&(w^e) ? "Yes" : "No"); ^ Main.java:23: error: variable w ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p04019|0
u507706381|p04019|0
codenet
Compile Error
535
v2_s021304953
s021304953
s021304953
p04019
p04019
u587100042
u587100042
1,590,327,909
2020-05-24T13:45:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] ch=sc.next().toCharArray(); int[] nums=new int[4]; for(int i=0;i<ch.length;i++){ switch(ch[i]){ case 'N': nums[0]++; break; case 'W': ...
Main.java:24: error: not a statement System.out,println("Yes"); ^ Main.java:24: error: ';' expected System.out,println("Yes"); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p04019|0
u587100042|p04019|0
codenet
Compile Error
620
v2_s450574730
s450574730
s450574730
p04019
p04019
u587100042
u587100042
1,590,328,415
2020-05-24T13:53:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] ch=sc.next().toCharArray(); int[] nums=new int[4]; for(int i=0;i<ch.length;i++){ switch(ch[i]){ case 'N': nums[0]++; break; case 'W': ...
Main.java:23: error: ')' expected if(((nums[0]>0&&nums[2]>0)||(nums[0]==0&&nums[2]==0))&&((nums[1]>0&&nums[3]>0)||(nums[1]==0&&nums[3]==0)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p04019|0
u587100042|p04019|0
codenet
Compile Error
680
v2_s779151483
s779151483
s779151483
p04019
p04019
u592725337
u592725337
1,473,187,471
2016-09-06T18:44:31
Main.java
import java.io.*; import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String path = r.readLine(); int p = 0; for (int j = 0; j < path.length(); j++) p |= (path.char...
Main.java:14: error: incompatible types: unexpected return value return p == 3 || p == 12 || p == 15 ? "Yes" : "No"; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u592725337|p04019|0
u592725337|p04019|0
codenet
Compile Error
458
v2_s839025354
s839025354
s839025354
p04019
p04019
u626325611
u626325611
1,472,832,576
2016-09-02T16:09:36
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = 0,S = 0,E = 0,W = 0; String s = scanner.nextLine(); for(int i = 0; i < s.length(); i++){ if (s.charAt(i) =='N') { N++; }else if (s.charAt(i) =='E'){ E++; }else if...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626325611|p04019|0
u626325611|p04019|0
codenet
Compile Error
576
v2_s216291617
s216291617
s216291617
p04019
p04019
u756514276
u756514276
1,580,830,404
2020-02-04T15:33:24
Main.java
import java.util*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String S = br.readLine(); br.close(); int N = S.length(); boolean[]...
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u756514276|p04019|0
u756514276|p04019|0
codenet
Compile Error
892
v2_s079693158
s079693158
s079693158
p04020
p04020
u140306344
u140306344
1,471,831,764
2016-08-22T02:09:24
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new Strin...
Main.java:22: error: incompatible types: possible lossy conversion from long to int a[i] = v-e*2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140306344|p04020|0
u140306344|p04020|0
codenet
Compile Error
1,027
v2_s774008172
s774008172
s774008172
p04020
p04020
u183530284
u183530284
1,574,731,772
2019-11-26T01:29:32
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(); long[] A = new long[n]; for (int i = 0; i < n; ++i) { A[i] = sc.nextLong(); } long res = 0L for (int...
Main.java:12: error: ';' expected long res = 0L ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u183530284|p04020|0
u183530284|p04020|0
codenet
Compile Error
594
v2_s123928965
s123928965
s123928965
p04020
p04020
u516438812
u516438812
1,472,829,123
2016-09-02T15:12:03
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; public class Main { int N; int[] A; public void solve() { N = nextInt(); A = new int[N]; for(int i = 0;i < N;i++){ A[i] = nextInt(); } long ans = 0; for(int i = 0;i < N - 1;i++){ int min = M...
Main.java:30: error: cannot find symbol out.println(ans9); ^ symbol: variable ans9 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516438812|p04020|0
u516438812|p04020|0
codenet
Compile Error
1,792
v2_s678972159
s678972159
s678972159
p04020
p04020
u565317919
u565317919
1,473,230,849
2016-09-07T06:47:29
Main.java
public class Main { void run() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n + 1]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } long sum = 0; for (int i = 0; i < n; i++) { sum += a[i] / 2; a[i] %= 2; if (0 < a[i] && 0 < a[i + 1]) { sum++; a...
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
u565317919|p04020|0
u565317919|p04020|0
codenet
Compile Error
450
v2_s160180691
s160180691
s160180691
p04020
p04020
u929167194
u929167194
1,471,860,086
2016-08-22T10:01:26
Main.java
import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); public static void main(String[] args) throws Exception { int n = sc.nextInt(); long[] a = new long[n]; for(int i=0;i<n;i++){ ...
Main.java:21: error: ';' expected a[i]-=0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929167194|p04020|0
u929167194|p04020|0
codenet
Compile Error
3,956
v2_s715604469
s715604469
s715604469
p04021
p04021
u222822036
u222822036
1,599,193,167
2020-09-04T04:19:27
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:86: error: no suitable method found for fill(int[]) Arrays.fill(list); ^ method Arrays.fill(long[],long) is not applicable (actual and formal argument lists differ in length) method Arrays.fill(long[],int,int,long) is not applicable (actual and formal argument lists differ in len...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p04021|0
u222822036|p04021|0
codenet
Compile Error
3,376
v2_s275288665
s275288665
s275288665
p04022
p04022
u136104392
u136104392
1,596,980,282
2020-08-09T13:38:02
Main.java
import java.util.*; import java.io.*; import java.text.*; class Main{ //SOLUTION BEGIN void pre() throws Exception{} void solve(int TC) throws Exception{ int N = ni(); int mx = (int)1e5+2; boolean[] sieve = new boolean[mx]; int[] list = new int[mx]; long[] sqpr = new...
Main.java:52: error: ')' expected if(ind == -1{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136104392|p04022|0
u136104392|p04022|0
codenet
Compile Error
6,709
v2_s889745216
s889745216
s889745216
p04022
p04022
u541055501
u541055501
1,591,134,135
2020-06-02T21:42:15
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.HashMap; import java.util.HashSet; import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import lib.util.collectio...
Main.java:11: error: package lib.util.collections does not exist import lib.util.collections.IntArrayList; ^ Main.java:74: error: cannot find symbol public static IntArrayList eratosthenes(final int n, final int[] div) { ^ symbol: class IntArrayList location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p04022|0
u541055501|p04022|0
codenet
Compile Error
8,322
v2_s941401755
s941401755
s941401755
p04022
p04022
u541055501
u541055501
1,591,139,094
2020-06-02T23:04:54
Main.java
import static java.lang.Math.abs; import static java.lang.Math.max; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Map.Entry; import java.util.NoSuchElementException; import java.util.Prim...
Main.java:20: error: package lib.math.base does not exist import lib.math.base.MathUtil; ^ Main.java:138: error: cannot find symbol d = MathUtil.gcd(abs(x - y), n); ^ symbol: variable MathUtil location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p04022|0
u541055501|p04022|0
codenet
Compile Error
14,883
v2_s618412229
s618412229
s618412229
p04022
p04022
u555577504
u555577504
1,532,127,283
2018-07-20T22:54:43
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.*; class Main{ static void solve(){ int n = ni(); long[] s = nla(n); boolean[] isPrime = new boolean[100001]; Arrays.fill(isPrime, true); for(int i=2;i<=100000;++i){ if(!isPrime[i])continue; for(i...
Main.java:46: error: cannot find symbol if(sqrSet.containsKey(s[i]))rev*=sqrMap.get(s[i]); ^ symbol: variable sqrSet location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555577504|p04022|2
u555577504|p04022|2
codenet
Compile Error
3,660
v2_s923179776
s923179776
s923179776
p04022
p04022
u773713086
u773713086
1,472,094,429
2016-08-25T03:07:09
Main.java
import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.OutputStream; import java.util.HashMap; import java.util.HashSet; import java.util.ArrayList; import java.util.Collections...
Main.java:78: error: illegal start of expression public static long inv(long v) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u773713086|p04022|0
u773713086|p04022|0
codenet
Compile Error
3,340
v2_s381934263
s381934263
s381934263
p04022
p04022
u773713086
u773713086
1,472,096,308
2016-08-25T03:38:28
Main.java
import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.OutputStream; import java.util.HashMap; import java.util.HashSet; import java.util.ArrayList; import java.util.Collections...
Main.java:73: error: illegal character: '\u00a0' if(map2.contains(red))?{ ^ Main.java:76: error: 'else' without 'if' } else { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u773713086|p04022|0
u773713086|p04022|0
codenet
Compile Error
3,808
v2_s990825613
s990825613
s990825613
p04022
p04022
u773713086
u773713086
1,472,099,563
2016-08-25T04:32:43
Main.java
import java.util.StringTokenizer; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.OutputStream; import java.util.HashMap; import java.util.HashSet; import java.util.ArrayList; import java.util.Collections...
Main.java:90: error: 'catch' without 'try' catch (Exception e){} ^ Main.java:77: error: 'try' without 'catch', 'finally' or resource declarations try { ^ Main.java:94: error: illegal start of expression public static long inv(long v) { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u773713086|p04022|0
u773713086|p04022|0
codenet
Compile Error
4,236
v2_s320943370
s320943370
s320943370
p04025
p04025
u068098242
u068098242
1,573,663,894
2019-11-13T16:51:34
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { new Main(); } FS in = new FS(); PrintWriter out = new PrintWriter(System.out); int n, min, arr[]; Main() { arr = new int[n = in.nextInt()]; for (int i = 0; i < n; arr[i++] = in.nextInt()); min = 400_000*...
Main.java:35: error: cannot find symbol StringTokenizer st = new StringTokenier(""); ^ symbol: class StringTokenier location: class Main.FS 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p04025|0
u068098242|p04025|0
codenet
Compile Error
1,055
v2_s592595611
s592595611
s592595611
p04025
p04025
u068098242
u068098242
1,573,667,433
2019-11-13T17:50:33
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { new Main(); } FS in = new FS(); PrintWriter out = new PrintWriter(System.out); int n, c; long mod = (long)1e9 + 7; int[] a, b; long[][] pre, dp; Main() { n = in.nextInt(); c = in.nextInt(); a = ...
Main.java:62: error: not a statement b >> 1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p04025|0
u068098242|p04025|0
codenet
Compile Error
1,709
v2_s211964833
s211964833
s211964833
p04025
p04025
u087260337
u087260337
1,527,623,663
2018-05-29T19:54:23
Main.java
public static void main(String[] args){ Scanner in=new Scanner(System.in); int N=in.nextInt(); int[] arr=new int[N]; for (int i=0;i<N;i++){ arr[i]=in.nextInt(); } int change=200*200*100; for (int i=-100;i<=100;i++){ int temp=0; for (int j=0;j<N;j++){ temp+=(i-arr[j])*(i-arr[j]); } if (t...
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
u087260337|p04025|0
u087260337|p04025|0
codenet
Compile Error
389
v2_s944970117
s944970117
s944970117
p04025
p04025
u900372029
u900372029
1,476,915,649
2016-10-19T22:20:49
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = IntStream.range(0, N).mapToObj(x -> sc.nextInt()) .sorted((a, b) -> Integer.compare(b, a)) .collect(Collectors.toCollection(ArrayList::new)); int max=list.get(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 Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900372029|p04025|0
u900372029|p04025|0
codenet
Compile Error
714
v2_s677205867
s677205867
s677205867
p04025
p04025
u900372029
u900372029
1,476,915,657
2016-10-19T22:20:57
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = IntStream.range(0, N).mapToObj(x -> sc.nextInt()) .sorted((a, b) -> Integer.compare(b, a)) .collect(Collectors.toCollection(ArrayList::new)); int max=list.get(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 Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900372029|p04025|0
u900372029|p04025|0
codenet
Compile Error
714
v2_s053734762
s053734762
s053734762
p04025
p04025
u935684968
u935684968
1,471,137,102
2016-08-14T01:11:42
Main.java
public class Main { public static void main(String[] args) { Solver solver = new Solver(); } static class Solver { IO io; public Solver() { this.io = new IO(); try { solve(); } finally { io.close(); } ...
Main.java:79: error: cannot find symbol private class IO extends PrintWriter { ^ symbol: class PrintWriter location: class Solver Main.java:67: error: cannot find symbol private List<Integer>[] toGraph(IO io, int n) { ^ symbol: class List loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935684968|p04025|0
u935684968|p04025|0
codenet
Compile Error
8,182
v2_s726168947
s726168947
s726168947
p04026
p04026
u068098242
u068098242
1,573,664,330
2019-11-13T16:58:50
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { new Main(); } FS in = new FS(); PrintWriter out = new PrintWriter(System.out); int len; char[] str; boolean found = false; Main() { len = (str = in.next().toCharArray()).length; for (int i = 0; i < len - 1...
Main.java:37: error: cannot find symbol StringTokenizer st = new StringTokenzier(""); ^ symbol: class StringTokenzier location: class Main.FS 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068098242|p04026|0
u068098242|p04026|0
codenet
Compile Error
1,104
v2_s197136109
s197136109
s197136109
p04026
p04026
u425032732
u425032732
1,471,143,141
2016-08-14T02:52:21
Main.java
import java.util.Scanner; public class Main { static boolean flag = false; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); for(int i = 0; i < s.length()-1; i++) { String subst = s.substring(i, i+2); if(subst.charAt(0) == subst.charAt(1)) { System...
Main.java:75: error: class, interface, enum, or record expected import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u425032732|p04026|0
u425032732|p04026|0
codenet
Compile Error
3,328
v2_s837951468
s837951468
s837951468
p04026
p04026
u523362579
u523362579
1,471,278,006
2016-08-15T16:20:06
Main.java
public class Main { static final Scanner sc = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static boolean debug = false; static void solve() { String str = sc.next(); List<List<Integer>> pos = new ArrayList<List<Integer>>(); for(int i=0; i<26; i++) { pos.ad...
Main.java:3: error: cannot find symbol static final Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol static final PrintWriter out = new PrintWriter(System.out,false); ^ symbol: class PrintWriter location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523362579|p04026|0
u523362579|p04026|0
codenet
Compile Error
804
v2_s011110682
s011110682
s011110682
p04026
p04026
u634209474
u634209474
1,550,449,904
2019-02-18T00:31:44
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String t = sc.next(); sc.close(); int n = t.length(); if(n <= 2) { System.out.println("-1 -1"); System.exit(0); } for(int i = 0; i < n - 2; i++) { char c0 = t.charAt(i); ...
Main.java:21: error: cannot find symbol Arrays.sort(k); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u634209474|p04026|0
u634209474|p04026|0
codenet
Compile Error
633
v2_s442582114
s442582114
s442582114
p04028
p04028
u981808900
u981808900
1,570,188,446
2019-10-04T11:27:26
Main.java
.
Main.java:1: error: class, interface, enum, or record expected . ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p04028|0
u981808900|p04028|0
codenet
Compile Error
1
v2_s366622417
s366622417
s366622417
p04029
p04029
u018679195
u018679195
1,576,987,799
2019-12-22T04:09:59
Problem1.java
import java.util.Scanner; public class Problem1.java { public static void main(String[] args) { int n, sum = 0; Scanner input = new Scanner(System.in); n = input.nextInt(); if (n >= 1 && n <= 100) { for (int i = 1; i <= n; i++) { sum = sum + i; ...
Problem1.java:3: error: '{' expected public class Problem1.java { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p04029|1
u018679195|p04029|1
codenet
Compile Error
389
v2_s829028559
s829028559
s829028559
p04029
p04029
u018679195
u018679195
1,576,987,897
2019-12-22T04:11:37
Main.java
import java.util.Scanner; { public class Problem1.java { public static void main(String[] args) { int n, sum = 0; Scanner input = new Scanner(System.in); n = input.nextInt(); if (n >= 1 && n <= 100) { for (int i = 1; i <= n; i++) { sum = sum + i; ...
Main.java:3: error: class, interface, enum, or record expected { ^ Main.java:5: error: '{' expected public class Problem1.java { ^ Main.java:28: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p04029|1
u018679195|p04029|1
codenet
Compile Error
396
v2_s338871392
s338871392
s338871392
p04029
p04029
u018679195
u018679195
1,595,657,855
2020-07-25T06:17:35
Main.java
import.java.util.Scanner; public class Main{ public static void main (String [] args) { Scanner input = new Scanner (System.in); int student; System.out.println("Enter the number of Students"); int sum =0; for (int i = 0; i<=students; i++) { su...
Main.java:1: error: <identifier> expected import.java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p04029|4
u018679195|p04029|3
codenet
Compile Error
431
v2_s839098701
s839098701
s839098701
p04029
p04029
u033621652
u033621652
1,573,944,064
2019-11-16T22:41:04
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner yomi = new Scanner(System.in); int n = yomi.nextInt(); int n2=0; for (int i=1;i<=n;i+){ n2=n2+i; } System.out.println(n2); } }
Main.java:8: error: illegal start of expression for (int i=1;i<=n;i+){ ^ Main.java:8: error: not a statement for (int i=1;i<=n;i+){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033621652|p04029|0
u033621652|p04029|0
codenet
Compile Error
284
v2_s817425024
s817425024
s817425024
p04029
p04029
u047590349
u047590349
1,576,903,350
2019-12-21T04:42:30
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(); ans=(n*(n+1))/2; System.out.println(ans); } }
Main.java:1: error: ';' expected import java.util.Scanner ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047590349|p04029|0
u047590349|p04029|0
codenet
Compile Error
208
v2_s450048817
s450048817
s450048817
p04029
p04029
u047590349
u047590349
1,576,903,410
2019-12-21T04:43:30
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(); ans=(n*(n+1))/2; System.out.println(ans); sc.close(); } }
Main.java:8: error: cannot find symbol ans=(n*(n+1))/2; ^ symbol: variable ans location: class Main Main.java:9: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047590349|p04029|0
u047590349|p04029|0
codenet
Compile Error
225
v2_s647284547
s647284547
s647284547
p04029
p04029
u060588488
u060588488
1,510,004,516
2017-11-06T21:41:56
Main.java
import java.util.*; public class { public static void main (String argv[]){ Scanner input=new Scanner (System.in); int n=input.nextInt(); int sum=0; for (int i=0;i++<n;) sum+=i; System.out.print(sum); } }
Main.java:2: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060588488|p04029|0
u060588488|p04029|0
codenet
Compile Error
209
v2_s747122467
s747122467
s747122467
p04029
p04029
u060588488
u060588488
1,510,004,670
2017-11-06T21:44:30
Main.java
import java.util.*; public static void main (String argv[]){ Scanner input=new Scanner (System.in); int n=input.nextInt(); int sum=0; for (int i=0;i++<n;) sum+=i; System.out.print(sum); }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main (String argv[]){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060588488|p04029|0
u060588488|p04029|0
codenet
Compile Error
193
v2_s324140808
s324140808
s324140808
p04029
p04029
u062910870
u062910870
1,471,480,949
2016-08-18T00:42:29
Main.java
import java.util.* public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int x = s.nextInt(); return n*(n+1)/2; } }
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062910870|p04029|0
u062910870|p04029|0
codenet
Compile Error
164
v2_s711591591
s711591591
s711591591
p04029
p04029
u062910870
u062910870
1,471,480,980
2016-08-18T00:43:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int x = s.nextInt(); return n*(n+1)/2; } }
Main.java:9: error: incompatible types: unexpected return value return n*(n+1)/2; ^ Main.java:9: error: cannot find symbol return n*(n+1)/2; ^ symbol: variable n location: class Main Main.java:9: error: cannot find symbol return n*(n+1)/2; ^ symbol: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062910870|p04029|0
u062910870|p04029|0
codenet
Compile Error
232
v2_s182740403
s182740403
s182740403
p04029
p04029
u062910870
u062910870
1,471,481,033
2016-08-18T00:43:53
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int x = s.nextInt(); System.out.println(n*(n+1)/2); } }
Main.java:9: error: cannot find symbol System.out.println(n*(n+1)/2); ^ symbol: variable n location: class Main Main.java:9: error: cannot find symbol System.out.println(n*(n+1)/2); ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062910870|p04029|0
u062910870|p04029|0
codenet
Compile Error
243
v2_s427995191
s427995191
s427995191
p04029
p04029
u073606136
u073606136
1,587,864,419
2020-04-26T01:26:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int sum = 0; if(int i = 1; i <= a; i++) { ...
Main.java:9: error: '.class' expected if(int i = 1; i <= a; i++) { ^ Main.java:9: error: not a statement if(int i = 1; i <= a; i++) { ^ Main.java:9: error: ';' expected if(int i = 1; i <= a; i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p04029|0
u073606136|p04029|0
codenet
Compile Error
451
v2_s946110862
s946110862
s946110862
p04029
p04029
u084693263
u084693263
1,471,136,604
2016-08-14T01:03:24
Main.java
import java.util.*; import java.io.*; public class Main { int[] a; void solve() { int N = sc.nextInt(); int ans; for (int i = 1; i < N+1; i++) { ans += i; } System.out.println(ans); } void print(int[] a) { out.print(a[0]); for (int i = 1; i < a.length; i++) out.print(" " + a[i]); out....
Main.java:12: error: variable ans might not have been initialized ans += i; ^ Main.java:15: error: variable ans might not have been initialized System.out.println(ans); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u084693263|p04029|0
u084693263|p04029|0
codenet
Compile Error
1,867
v2_s278029514
s278029514
s278029514
p04029
p04029
u089230684
u089230684
1,595,646,733
2020-07-25T03:12:13
Main.java
main() Scanner input = new Scanner (System.in); int Student; System.out.println(" Enter the number of Students"); Student = input.nextInt(); int sum =0; for (int i=0;i<=Student;i++) sum+= i; System.out.println("the number of candies in total is "+ sum);
Main.java:1: error: class, interface, enum, or record expected main() ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. int Student; ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected System.out.println(" Enter...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p04029|4
u089230684|p04029|4
codenet
Compile Error
269
v2_s062848994
s062848994
s062848994
p04029
p04029
u089230684
u089230684
1,595,646,839
2020-07-25T03:13:59
Main.java
import java.util.Scanner; public class { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner (System.in); int Student; System.out.println(" Enter the number of Students"); Student = input.nextInt(); int sum =0; for (int i=0;i<=Student;i++) sum+= i...
Main.java:3: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p04029|4
u089230684|p04029|4
codenet
Compile Error
411
v2_s394586213
s394586213
s394586213
p04029
p04029
u089230684
u089230684
1,595,647,328
2020-07-25T03:22:08
Main.java
main Scanner input = new Scanner(System.in); int student; System.out.print("Enter the number of students\n"); student = input.next.Int(); int sum = 0; for (int i = 0; i<= student; i++) { sum += i; System.out.println(" the total candies needed is "+sum); }
Main.java:1: error: class, interface, enum, or record expected main ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. int student; ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected System.out.print("Enter the number...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p04029|4
u089230684|p04029|4
codenet
Compile Error
266
v2_s365016362
s365016362
s365016362
p04029
p04029
u102602414
u102602414
1,531,624,335
2018-07-15T03:12:15
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayDeque; import java.util.Deque; import java.util.Collection; import java.util.LinkedList; import java.util.Queue; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); ...
Main.java:13: error: cannot find symbol for (i = 1; i <= N; i++) { ^ symbol: variable i location: class Main Main.java:13: error: cannot find symbol for (i = 1; i <= N; i++) { ^ symbol: variable i location: class Main M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u102602414|p04029|0
u102602414|p04029|0
codenet
Compile Error
511
v2_s906770216
s906770216
s906770216
p04029
p04029
u106837834
u106837834
1,592,177,873
2020-06-14T23:37:53
Main.java
import java.util.scanner; public class Main{ Main(); Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1)/2); } }
Main.java:10: error: ')' or ',' expected System.out.println((N*(N+1)/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
231
v2_s787367180
s787367180
s787367180
p04029
p04029
u106837834
u106837834
1,592,177,936
2020-06-14T23:38:56
Main.java
import java.util.scanner; public class Main{ Main(); Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1))/2); } }
Main.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: missing method body, or declar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
233
v2_s021333240
s021333240
s021333240
p04029
p04029
u106837834
u106837834
1,592,177,983
2020-06-14T23:39:43
Main.java
import java.util.Scanner; public class Main{ Main(); Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1))/2); } }
Main.java:4: error: missing method body, or declare abstract Main(); ^ Main.java:10: error: non-static variable N cannot be referenced from a static context System.out.println((N*(N+1))/2); ^ Main.java:10: error: non-static variable N cannot be referenced from a static context System...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
233
v2_s232029642
s232029642
s232029642
p04029
p04029
u106837834
u106837834
1,592,178,038
2020-06-14T23:40:38
Main.java
import java.util.scanner; public class Main{ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1))/2); } }
Main.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util 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 s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
222
v2_s023330088
s023330088
s023330088
p04029
p04029
u106837834
u106837834
1,592,178,147
2020-06-14T23:42:27
Main.java
import java.util.Scanner; public class Main{ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1))/2); } }
Main.java:9: error: non-static variable N cannot be referenced from a static context System.out.println((N*(N+1))/2); ^ Main.java:9: error: non-static variable N cannot be referenced from a static context System.out.println((N*(N+1))/2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
222
v2_s912025247
s912025247
s912025247
p04029
p04029
u106837834
u106837834
1,592,178,201
2020-06-14T23:43:21
Main.java
import java.util.Scanner; public class Main{ int N; Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println((N*(N+1))/2); } }
Main.java:6: error: variable N is already defined in class Main int N =sc.nextInt(); ^ Main.java:9: error: non-static variable N cannot be referenced from a static context System.out.println((N*(N+1))/2); ^ Main.java:9: error: non-static variable N cannot be referenced from a static ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
229
v2_s124560695
s124560695
s124560695
p04029
p04029
u106837834
u106837834
1,592,178,279
2020-06-14T23:44:39
Main.java
import java.util.Scanner; public class Main{ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); public static void main(String[] args){ System.out.println(N*(N+1)/2); } }
Main.java:8: error: non-static variable N cannot be referenced from a static context System.out.println(N*(N+1)/2); ^ Main.java:8: error: non-static variable N cannot be referenced from a static context System.out.println(N*(N+1)/2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
218
v2_s187317654
s187317654
s187317654
p04029
p04029
u106837834
u106837834
1,592,178,350
2020-06-14T23:45:50
Main.java
import java.util.Scanner; public class Main{ int N; Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int S=N*(N+1)/2 public static void main(String[] args){ System.out.println(S); } }
Main.java:7: error: ';' expected int S=N*(N+1)/2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
234
v2_s454038092
s454038092
s454038092
p04029
p04029
u106837834
u106837834
1,592,178,385
2020-06-14T23:46:25
Main.java
import java.util.Scanner; public class Main{ int N; Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int S=N*(N+1)/2; public static void main(String[] args){ System.out.println(S); } }
Main.java:6: error: variable N is already defined in class Main int N =sc.nextInt(); ^ Main.java:9: error: non-static variable S cannot be referenced from a static context System.out.println(S); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
215
v2_s242364341
s242364341
s242364341
p04029
p04029
u106837834
u106837834
1,592,178,440
2020-06-14T23:47:20
Main.java
import java.util.Scanner; public class Main{ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int S=N*(N+1)/2; public static void main(String[] args){ System.out.println(S); } }
Main.java:8: error: non-static variable S cannot be referenced from a static context System.out.println(S); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106837834|p04029|0
u106837834|p04029|0
codenet
Compile Error
204
v2_s888869467
s888869467
s888869467
p04029
p04029
u113625314
u113625314
1,580,057,714
2020-01-26T16:55:14
Main.java
import java.util.* class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); int N = Integer.parseInt(str); int ans = (1 + N)*N/2; System.out.println(ans); } }
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
269
v2_s186303255
s186303255
s186303255
p04029
p04029
u113625314
u113625314
1,580,059,428
2020-01-26T17:23:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); ArrayList<String> list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(!(str.charAt(i) == B)){ ...
Main.java:10: error: cannot find symbol if(!(str.charAt(i) == B)){ ^ symbol: variable B location: class Main Main.java:11: error: incompatible types: char cannot be converted to String list.add(str.charAt(i)); ^ Note: Some messag...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
471
v2_s681275889
s681275889
s681275889
p04029
p04029
u113625314
u113625314
1,580,059,594
2020-01-26T17:26:34
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); ArrayList<char> list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(!(str.charAt(i) == 'B')){ ...
Main.java:7: error: unexpected type ArrayList<char> list = new ArrayList<>(); ^ required: reference found: char 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
471
v2_s882007942
s882007942
s882007942
p04029
p04029
u113625314
u113625314
1,580,060,308
2020-01-26T17:38:28
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); ArrayList< character > list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(!(str.charAt(i) == 'B')){ ...
Main.java:7: error: cannot find symbol ArrayList< character > list = new ArrayList<>(); ^ symbol: class character location: class Main Main.java:18: error: cannot find symbol for(int k = 0; k<j; i++){ ^ symbol: variable i location: class Main 2 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
596
v2_s640789471
s640789471
s640789471
p04029
p04029
u113625314
u113625314
1,580,063,066
2020-01-26T18:24:26
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); List<char> list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(!(str.charAt(i) == 'B')){ lis...
Main.java:7: error: unexpected type List<char> list = new ArrayList<>(); ^ required: reference found: char 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
584
v2_s774703629
s774703629
s774703629
p04029
p04029
u113625314
u113625314
1,580,067,900
2020-01-26T19:45:00
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); List<String> list = new ArrayList<>(); int j = 0; for(int i = 0; i < str.length(); i++){ if(!(str.charAt(i) == 'B')){ ...
Main.java:11: error: cannot find symbol Syring input = String.valueOf(str.charAt(i)); ^ symbol: class Syring location: class Main Main.java:20: error: incompatible types: String cannot be converted to char char out = list.get(k); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113625314|p04029|0
u113625314|p04029|0
codenet
Compile Error
639
v2_s576483056
s576483056
s576483056
p04029
p04029
u114473786
u114473786
1,595,262,799
2020-07-20T16:33:19
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; for(int i=1;i<=n;i++) { sum = sum+i; } System.out.println(sum); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114473786|p04029|0
u114473786|p04029|0
codenet
Compile Error
226
v2_s329835379
s329835379
s329835379
p04029
p04029
u117657834
u117657834
1,559,403,494
2019-06-01T15:38:14
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int sum=0; for(int i=1; i<n+1; i++) { sum += i; } System.out.print(sum); } }
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
u117657834|p04029|0
u117657834|p04029|0
codenet
Compile Error
289
v2_s814600977
s814600977
s814600977
p04029
p04029
u134665813
u134665813
1,590,294,762
2020-05-24T04:32:42
Main.java
import java.util.*; public class Main{ public void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); // 合計の計算 sum for (int i=1; i<=N; i++) { sum += i; } // 出力 System.out.println(sum); } }
Main.java:8: error: not a statement sum ^ Main.java:8: error: ';' expected sum ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134665813|p04029|0
u134665813|p04029|0
codenet
Compile Error
296
v2_s617513315
s617513315
s617513315
p04029
p04029
u171074630
u171074630
1,590,094,663
2020-05-21T20:57: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(); int i = 0; if(n == 1){ System.out.println(1); }else{ for(i = 1 ; n-1 ;){ i + i++; } } } }
Main.java:12: error: not a statement i + i++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u171074630|p04029|0
u171074630|p04029|0
codenet
Compile Error
312
v2_s752910410
s752910410
s752910410
p04029
p04029
u233179341
u233179341
1,585,275,081
2020-03-27T02:11:21
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) throws Exception { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Int...
Main.java:17: error: non-static method getSum(int) cannot be referenced from a static context int result = getSum(N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233179341|p04029|0
u233179341|p04029|0
codenet
Compile Error
670
v2_s712886763
s712886763
s712886763
p04029
p04029
u343648597
u343648597
1,570,212,466
2019-10-04T18:07:46
Main.java
Scanner scan = new Scanner(System.in); int line = scan.nextInt(); int sum = 0; for(int i=1; i<line+1; i++) { sum += i; } System.out.println(sum);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expected for(int i=1; i<line+1; i++) { ^ Main.java:6: error: class, interface, enum, or...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u343648597|p04029|0
u343648597|p04029|0
codenet
Compile Error
149
v2_s043897549
s043897549
s043897549
p04029
p04029
u353919145
u353919145
1,595,651,153
2020-07-25T04:25:53
Main.java
public static void main(String[] args) { Scanner input = new Scanner(System.in); int n=input.nextInt(),sum=0; for(int i=1;i<=n;i++) { sum=sum+i; } System.out.println("the sum of all candles is " + sum); } }
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:12: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p04029|2
u353919145|p04029|2
codenet
Compile Error
252
v2_s843344708
s843344708
s843344708
p04029
p04029
u412290310
u412290310
1,562,865,332
2019-07-11T17:15:32
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 can= 0; for(int i = 1; i <= n; i++) { can += i; } System.out.println(can) } }
Main.java:11: error: ';' expected System.out.println(can) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412290310|p04029|0
u412290310|p04029|0
codenet
Compile Error
291
v2_s251369856
s251369856
s251369856
p04029
p04029
u415801286
u415801286
1,594,157,983
2020-07-07T21:39:43
Main.java
import java.util.Scanner; public class Main{ public static void (String args[]){ Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); System.out.println(n*(n+1)/2); } }
Main.java:4: error: <identifier> expected public static void (String args[]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u415801286|p04029|0
u415801286|p04029|0
codenet
Compile Error
212
v2_s558508125
s558508125
s558508125
p04029
p04029
u431125128
u431125128
1,570,275,588
2019-10-05T11:39:48
Main.java
import java.util.*; public class Main{ puboic static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int answer=0; for(int i=1;i<N+1;i++){ answer=answer+i; } System.out.println(answer); } }
Main.java:4: error: <identifier> expected puboic static void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p04029|0
u431125128|p04029|0
codenet
Compile Error
263
v2_s757139221
s757139221
s757139221
p04029
p04029
u448747186
u448747186
1,471,917,858
2016-08-23T02:04:18
ChildrenCandies.java
import java.io.*; public class ChildrenCandies{ public static void main(String args[]){ try{ BufferedReader br = new BuffredReader(new InputStreamReader(System.in)); String str = br.readLine(); int N = Integer.parseInt(str); int h = 0; while(N > 0){ h = h + N; N--; ...
ChildrenCandies.java:6: error: cannot find symbol BufferedReader br = new BuffredReader(new InputStreamReader(System.in)); ^ symbol: class BuffredReader location: class ChildrenCandies 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448747186|p04029|0
u448747186|p04029|0
codenet
Compile Error
423
v2_s425871376
s425871376
s425871376
p04029
p04029
u448747186
u448747186
1,471,917,949
2016-08-23T02:05:49
ChildrenCandies.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.io.*; public class ChildrenCandies{ public static void main(String args[]){ try{ BufferedReader br = new BuffredReader(new InputStreamReader(System.in)); String str = br.r...
ChildrenCandies.java:10: error: cannot find symbol BufferedReader br = new BuffredReader(new InputStreamReader(System.in)); ^ symbol: class BuffredReader location: class ChildrenCandies 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448747186|p04029|0
u448747186|p04029|0
codenet
Compile Error
541
v2_s529940946
s529940946
s529940946
p04029
p04029
u489316980
u489316980
1,559,012,206
2019-05-28T02:56:46
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); ans = 0; for(int i = 0; i < N; i++){ ans += i; } System.out.println(ans); } }
Main.java:7: error: cannot find symbol ans = 0; ^ symbol: variable ans location: class Main Main.java:9: error: cannot find symbol ans += i; ^ symbol: variable ans location: class Main Main.java:11: error: cannot find symbol System.out.println(ans); ^ symbol:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489316980|p04029|0
u489316980|p04029|0
codenet
Compile Error
249
v2_s574279378
s574279378
s574279378
p04029
p04029
u493402512
u493402512
1,564,152,597
2019-07-26T14:49:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int p =0; for(int i = 1;i<=0;i++){ p+=i; } System.out.println(p); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u493402512|p04029|0
u493402512|p04029|0
codenet
Compile Error
244
v2_s690286660
s690286660
s690286660
p04029
p04029
u537996980
u537996980
1,471,987,614
2016-08-23T21:26:54
Main.java
class candySum{ public static void main(String args[]) int student_num = 0; int candy_sun = 0; for(student_num=0 ,student_num<N, student_num++){ candySum = candySum + 1; } System.out.println(candySum); }
Main.java:1: error: illegal character: '\uff5b' class candySum? ^ Main.java:2: error: illegal character: '\uff3b' public static void main(String args??) ^ Main.java:2: error: illegal character: '\uff3d' public static void main(String args??) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537996980|p04029|0
u537996980|p04029|0
codenet
Compile Error
287
v2_s745722140
s745722140
s745722140
p04029
p04029
u537996980
u537996980
1,471,988,144
2016-08-23T21:35:44
Main.java
class candySum{ public static void main(String args[]) int student_num = 0; int candy_sun = 0; for(student_num=0;student_num<N; student_num++){ candySum = candySum + 1; } System.out.println(candySum); }
Main.java:1: error: illegal character: '\uff5b' class candySum? ^ Main.java:2: error: illegal character: '\uff3b' public static void main(String args??) ^ Main.java:2: error: illegal character: '\uff3d' public static void main(String args??) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537996980|p04029|0
u537996980|p04029|0
codenet
Compile Error
286
v2_s897903598
s897903598
s897903598
p04029
p04029
u547671064
u547671064
1,582,661,611
2020-02-25T20:13:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); System.out.println( a(a+1)/2 ); } }
Main.java:6: error: cannot find symbol System.out.println( a(a+1)/2 ); ^ symbol: method a(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p04029|0
u547671064|p04029|0
codenet
Compile Error
190
v2_s213206355
s213206355
s213206355
p04029
p04029
u558367863
u558367863
1,586,919,857
2020-04-15T03:04:17
Main.java
import java.util.*; class Main{ public static void main(String[] arg){ Scanner stdIn=new Scanner(System.in); int N=stdIn.nextInt(); int total=0; for(int i=1;i<=N;i++){ int total+=i; } System.out.println(total); } }
Main.java:8: error: ';' expected int total+=i; ^ Main.java:8: error: not a statement int total+=i; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u558367863|p04029|0
u558367863|p04029|0
codenet
Compile Error
265
v2_s627975065
s627975065
s627975065
p04029
p04029
u563288774
u563288774
1,591,068,932
2020-06-02T03:35:32
Main.java
import java.util.*; import java.lang.*; class Main{ public static void main(String[] args){ Scanner in=new Scanner (System.in); int s=0; int n=in.nextInt; for(int i=1;i<=n;i++) { s=s+i; } System.out.println(s); } }
Main.java:7: error: cannot find symbol int n=in.nextInt; ^ symbol: variable nextInt location: variable in of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563288774|p04029|0
u563288774|p04029|0
codenet
Compile Error
234
v2_s195834773
s195834773
s195834773
p04029
p04029
u626325611
u626325611
1,472,190,526
2016-08-26T05:48:46
Main.java
package coder; import java.util.Scanner; public static void main(String[] args) { // TODO code application logic here int result = 0; Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); for(int i = 1 ; i <= input ; i ++){ result += i; ...
Main.java:6: 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:14: error: reached end of file while parsing System.out.print(result); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626325611|p04029|0
u626325611|p04029|0
codenet
Compile Error
359
v2_s482985578
s482985578
s482985578
p04029
p04029
u626325611
u626325611
1,472,190,989
2016-08-26T05:56:29
Main.java
int result = 0; Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); for(int i = 1 ; i <= input ; i ++){ result += i; } System.out.print(result);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int result = 0; ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected for(int i = 1 ; i <= input ; i ++){ ^ Main.java:4: error: class, interface, enum, or ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626325611|p04029|0
u626325611|p04029|0
codenet
Compile Error
217
v2_s068656546
s068656546
s068656546
p04029
p04029
u626325611
u626325611
1,472,191,278
2016-08-26T06:01:18
Main.java
class Coder { public static void main(String[] args) { int result = 0; Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); for(int i = 1 ; i <= input ; i ++){ result += i; } System.out.print(result); } }
Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Coder Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Coder ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626325611|p04029|0
u626325611|p04029|0
codenet
Compile Error
306
v2_s682457868
s682457868
s682457868
p04029
p04029
u659156129
u659156129
1,594,389,160
2020-07-10T13:52:40
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = 0; int[] a = new int[n+1]; for(int i=1; i<=a.length; ++i){ a[0]=0; a[i] = a[i-1]+i; } System.out.println(a[i]); } }
Main.java:13: error: cannot find symbol System.out.println(a[i]); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04029|0
u659156129|p04029|0
codenet
Compile Error
319
v2_s552524666
s552524666
s552524666
p04029
p04029
u659156129
u659156129
1,594,389,521
2020-07-10T13:58:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt() int ans = 0; for(int i=1; i<=n; ++i){ ans = ans + n; } System.out.println(ans); } }
Main.java:6: error: ';' expected int n = scn.nextInt() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04029|0
u659156129|p04029|0
codenet
Compile Error
280
v2_s175776585
s175776585
s175776585
p04029
p04029
u711620077
u711620077
1,564,357,392
2019-07-28T23:43:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum; for (int i = 1; i <= n; i++) { sum += i; } System.out.println(sum); ...
Main.java:10: error: variable sum might not have been initialized sum += i; ^ Main.java:14: error: variable sum might not have been initialized System.out.println(sum); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p04029|0
u711620077|p04029|0
codenet
Compile Error
340
v2_s993296681
s993296681
s993296681
p04029
p04029
u736010312
u736010312
1,588,108,158
2020-04-28T21:09:18
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int sum = 0; for(int i = 1; i <= N; i++) { sum += i; } System.out.println(sum); scan.close(); } }
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736010312|p04029|0
u736010312|p04029|0
codenet
Compile Error
308
v2_s908435730
s908435730
s908435730
p04029
p04029
u746225658
u746225658
1,590,015,691
2020-05-20T23:01:31
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println((sc.nextInt()*(sc.nextInt()+))/2); } }
Main.java:4: error: illegal start of expression System.out.println((sc.nextInt()*(sc.nextInt()+))/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u746225658|p04029|0
u746225658|p04029|0
codenet
Compile Error
171