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_s851894756
s851894756
s851894756
p02956
p02956
u617255029
u617255029
1,579,909,079
2020-01-24T23:37:59
Main.java
import hiro116s.lib.collections.ArrayLibs; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashSet; import java.util.InputMismatchException; import java.io.PrintWriter; import java.io.IOException; import java.io.FileInputStream; import java.io.InputStream; import java...
Main.java:1: error: package hiro116s.lib.collections does not exist import hiro116s.lib.collections.ArrayLibs; ^ Main.java:36: error: cannot find symbol x = ArrayLibs.compress(x); ^ symbol: variable ArrayLibs location: class Main Main.java:37: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u617255029|p02956|0
u617255029|p02956|0
codenet
Compile Error
7,795
v2_s848718059
s848718059
s848718059
p02956
p02956
u796267171
u796267171
1,564,971,555
2019-08-05T02:19:15
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.util.InputMismatchException; import java.io.IOException; import java.util.Random; import java.util.ArrayList; import java.io.Writer; im...
Main.java:93: error: cannot find symbol static int getSize(FEnclosedPoints.Treap.TreapBST root) { ^ symbol: class Treap location: class FEnclosedPoints Main.java:97: error: cannot find symbol static FEnclosedPoints.TreapPair.TreapBST split(FEnc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796267171|p02956|0
u796267171|p02956|0
codenet
Compile Error
8,813
v2_s595290851
s595290851
s595290851
p02956
p02956
u982630224
u982630224
1,586,020,987
2020-04-04T17:23:07
Main.java
import java.util.*; public class Main { static int N; static int mod = 998244353; static long[] bit_right; static long[] bit_left; static long pow(long a,long n) { long res=1; while (n>0) { if ((n-n/2*2)==1) { res=res*a%mod; } a=...
Main.java:101: error: not a statement +pow(2, quadrant_1)+pow(2, quadrant_2)+pow(2, quadrant_3)+pow(2, quadrant_4)+4*(long)mod)%mod; ^ Main.java:101: error: ';' expected +pow(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02956|0
u982630224|p02956|0
codenet
Compile Error
3,142
v2_s275100699
s275100699
s275100699
p02957
p02957
u010824282
u010824282
1,564,773,516
2019-08-02T19:18:36
Main.java
public static void main(String[] args) { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); calculation(a, b); } public static void calculation(int a, int b) { int sub = a > b ? a - b : b - a; if (sub % 2 == 1) { System.out.println("IMPOSSIBLE"); return; } ...
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
u010824282|p02957|0
u010824282|p02957|0
codenet
Compile Error
406
v2_s717879865
s717879865
s717879865
p02957
p02957
u049823007
u049823007
1,564,277,357
2019-07-28T01:29:17
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.nsxtInt(); int temp = a - b; if (temp % 2 == 0) { System.out.println(Math.abs(temp / 2)); } else ...
Main.java:7: error: cannot find symbol int b = sc.nsxtInt(); ^ symbol: method nsxtInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u049823007|p02957|0
u049823007|p02957|0
codenet
Compile Error
385
v2_s262239379
s262239379
s262239379
p02957
p02957
u060101808
u060101808
1,564,639,243
2019-08-01T06:00:43
Main.java
public class Main { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[n] = new int[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tvil+=A[i]; } for(int i = 0; i < n; i++) { ...
Main.java:7: error: ']' expected int B[n] = new int[n]; ^ Main.java:7: error: ';' expected int B[n] = new int[n]; ^ Main.java:7: error: not a statement int B[n] = new int[n]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02957|0
u060101808|p02957|0
codenet
Compile Error
607
v2_s183290449
s183290449
s183290449
p02957
p02957
u060101808
u060101808
1,564,639,279
2019-08-01T06:01:19
Main.java
public class Main { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tvil+=A[i]; } for(int i = 0; i < n; i++) { ...
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:12: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02957|0
u060101808|p02957|0
codenet
Compile Error
606
v2_s741422496
s741422496
s741422496
p02957
p02957
u060101808
u060101808
1,564,639,364
2019-08-01T06:02:44
Main.java
import java.util.Scanner; public class Main { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tVil += A[i]; } for(...
Main.java:26: error: cannot find symbol tVil = tVil - rem; ^ symbol: variable rem location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02957|0
u060101808|p02957|0
codenet
Compile Error
635
v2_s649416869
s649416869
s649416869
p02957
p02957
u060101808
u060101808
1,564,639,425
2019-08-01T06:03:45
Main.java
import java.util.Scanner; public class Main { public static void main() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int A[] = new int[n+1]; int B[] = new int[n]; int tVil = 0; for(int i = 0; i <= n; i++) { A[i] = sc.nextInt(); tVil += A[i]; } for...
Main.java:26: error: cannot find symbol tVil = tVil - rem; ^ symbol: variable rem location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060101808|p02957|0
u060101808|p02957|0
codenet
Compile Error
636
v2_s889967963
s889967963
s889967963
p02957
p02957
u062736195
u062736195
1,585,175,403
2020-03-25T22:30:03
Main.java
import java.util.*; import static java.lang.System.*; 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 = 0; if(a % 2 == 0 && b % 2 == 1) out.println("IMPOSSIBLE"); else if(a % 2 == 1 && b % 2 == 0)...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02957|0
u062736195|p02957|0
codenet
Compile Error
451
v2_s852650493
s852650493
s852650493
p02957
p02957
u073606136
u073606136
1,588,307,904
2020-05-01T04:38:24
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); if(N + M >= 0 ){ System.out.println((N + M) / 2); } else { Syste...
Main.java:9: error: illegal character: '\u3000' System.out.println((N + M)?/ 2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02957|0
u073606136|p02957|0
codenet
Compile Error
374
v2_s027867087
s027867087
s027867087
p02957
p02957
u082685231
u082685231
1,564,277,073
2019-07-28T01:24:33
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int a1=a/2; int b1=b/2; int sum=a1+b1; if (Math.abs(a-sum) == Math.abs(b-sum)) { System.out.println(sum); } ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082685231|p02957|0
u082685231|p02957|0
codenet
Compile Error
367
v2_s021081156
s021081156
s021081156
p02957
p02957
u186052266
u186052266
1,584,926,186
2020-03-23T01:16:26
App.java
public class App { public static void main(String[] args){ //スキャン Scanner s = new Scanner(System.in); int n = s.nextInt(); int m = s.nextInt(); int hoge = (n * (n-1) + m * (m-1))/2; System.out.println(hoge); } }
App.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class App App.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class App 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02957|0
u186052266|p02957|0
codenet
Compile Error
293
v2_s991323223
s991323223
s991323223
p02957
p02957
u186052266
u186052266
1,584,926,256
2020-03-23T01:17:36
Main.java
public static void main(String[] args){ //スキャン Scanner s = new Scanner(System.in); int n = s.nextInt(); int m = s.nextInt(); int hoge = (n * (n-1) + m * (m-1))/2; System.out.println(hoge); }
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
u186052266|p02957|0
u186052266|p02957|0
codenet
Compile Error
262
v2_s727362205
s727362205
s727362205
p02957
p02957
u186052266
u186052266
1,584,926,342
2020-03-23T01:19:02
Main.java
public class Main { public static void main(String[] args){ //スキャン Scanner s = new Scanner(System.in); int n = s.nextInt(); int m = s.nextInt(); int hoge = (n * (n-1) + m * (m-1))/2; System.out.println(hoge); } }
Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02957|0
u186052266|p02957|0
codenet
Compile Error
294
v2_s956774507
s956774507
s956774507
p02957
p02957
u188396343
u188396343
1,575,410,594
2019-12-03T22:03:14
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int k; int a = sc.nextInt(); int b = sc.nextInt(); int ak = Math.abs(a-k); int bk = Math.abs(b-k); if(ak==bk){ System.out.println(k); }else{ System.out.println("IMPOSSIBLE"); }...
Main.java:8: error: variable k might not have been initialized int ak = Math.abs(a-k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p02957|0
u188396343|p02957|0
codenet
Compile Error
325
v2_s969213495
s969213495
s969213495
p02957
p02957
u188396343
u188396343
1,575,412,254
2019-12-03T22:30:54
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(); if(a>b){ int x = a%b; if(x==0){ int ak = (a-b)/2; int k = a-ak; }else if(x==1){ System.out.println("IMPOSSIBLE"); } }els...
Main.java:26: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p02957|0
u188396343|p02957|0
codenet
Compile Error
478
v2_s158307829
s158307829
s158307829
p02957
p02957
u207799478
u207799478
1,581,292,712
2020-02-09T23:58:32
Main.java
mport java.util.*; public class Main { public static void main(String[] args) { // practice contest Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if ((a + b) % 2 == 0) { System.out.println((a + b) / 2); } else { System.out.println("IMPOSSIBLE"); } } }
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207799478|p02957|0
u207799478|p02957|0
codenet
Compile Error
313
v2_s164082266
s164082266
s164082266
p02957
p02957
u209067041
u209067041
1,564,275,723
2019-07-28T01:02:03
Main.java
#include<bits/stdc++.h> #define pi acos(-1.0) using namespace std; const int maxn = 3010; double mina[maxn], maxa[maxn]; double deg2rad(double deg) { return deg * pi * 180; } int main() { #ifdef LOCAL freopen("in", "r", stdin); freopen("out", "w", stdout); #endif ios::sync_with_stdio(false); int a, b; ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define pi acos(-1.0) ^ Main.java:5: error: class, interface, enum, or record expected const int maxn = 3010; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u209067041|p02957|0
u209067041|p02957|0
codenet
Compile Error
419
v2_s407256891
s407256891
s407256891
p02957
p02957
u218740431
u218740431
1,587,486,908
2020-04-21T16:35:08
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 = Math.max(a-b,b-a); if(c%2==0){system.out.println(Math.max(a,b)-c/2);} else{System.out.println("IMPOSSIBLE");} } }
Main.java:8: error: package system does not exist if(c%2==0){system.out.println(Math.max(a,b)-c/2);} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02957|0
u218740431|p02957|0
codenet
Compile Error
309
v2_s301411435
s301411435
s301411435
p02957
p02957
u239897914
u239897914
1,564,276,422
2019-07-28T01:13:42
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k = (a+b)/2; if((a+b)%2 == 0) { System.out.println(k); }else { System.out.println("IMPOSSIBLE"); } } }
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
u239897914|p02957|0
u239897914|p02957|0
codenet
Compile Error
273
v2_s532320000
s532320000
s532320000
p02957
p02957
u262756853
u262756853
1,564,280,066
2019-07-28T02:14:26
main.java
public class main { public static void main(String[] args) { int a; int b; a = Integer.parseInt(br.readLine()); b = Integer.parseInt(br.readLine()); if ((a + b) % 2 == 0){ System.out.println((a+b)%2); } else { System.out.println("IMPOSSIBLE"); } } }
main.java:7: error: cannot find symbol a = Integer.parseInt(br.readLine()); ^ symbol: variable br location: class main main.java:8: error: cannot find symbol b = Integer.parseInt(br.readLine()); ^ symbol: variable br location: class main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u262756853|p02957|0
u262756853|p02957|0
codenet
Compile Error
319
v2_s600250816
s600250816
s600250816
p02957
p02957
u271411583
u271411583
1,564,927,537
2019-08-04T14:05:37
Main.java
import java.utils.*; class Main{ public static void main(String[]: args){ Scanner sc = new Scanner(System.in); long ans = sc.nextLong() + sc.nextLong(); if (ans%2 == 1) System.out.println("IMPOSSIBLE"); else System.out.println(ans/2); } }
Main.java:3: error: <identifier> expected public static void main(String[]: args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271411583|p02957|0
u271411583|p02957|0
codenet
Compile Error
268
v2_s823977905
s823977905
s823977905
p02957
p02957
u271411583
u271411583
1,564,927,572
2019-08-04T14:06:12
Main.java
import java.utils.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long ans = sc.nextLong() + sc.nextLong(); if (ans%2 == 1) System.out.println("IMPOSSIBLE"); else System.out.println(ans/2); } }
Main.java:1: error: package java.utils does not exist import java.utils.*; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271411583|p02957|0
u271411583|p02957|0
codenet
Compile Error
268
v2_s759777873
s759777873
s759777873
p02957
p02957
u271411583
u271411583
1,564,927,663
2019-08-04T14:07:43
Main.java
import java.utils.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long ans = sc.nextLong() + sc.nextLong(); if (ans%2 == 1) System.out.println("IMPOSSIBLE"); else System.out.println(ans/2); } }
Main.java:1: error: package java.utils does not exist import java.utils.*; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271411583|p02957|0
u271411583|p02957|0
codenet
Compile Error
268
v2_s603180852
s603180852
s603180852
p02957
p02957
u309710010
u309710010
1,564,678,466
2019-08-01T16:54:26
Main.java
class Main(){ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); if ((A+B)%2==0) { System.out.println((A+B)/2); }else { System.out.println("IMPOSSIBLE"); } } }
Main.java:1: error: '{' expected class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u309710010|p02957|0
u309710010|p02957|0
codenet
Compile Error
263
v2_s589475363
s589475363
s589475363
p02957
p02957
u323338590
u323338590
1,564,746,790
2019-08-02T11:53:10
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String strA = scan.next(); String strB = scan.next(); int a = Integer.parseInt(strA); int b = Integer.parseInt(strB); int c = a + b; if (c % 2 == 0) { System.out.pr...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u323338590|p02957|0
u323338590|p02957|0
codenet
Compile Error
394
v2_s943281850
s943281850
s943281850
p02957
p02957
u323338590
u323338590
1,564,832,230
2019-08-03T11:37:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String strN = scan.next(); int n = Integer.parseInt(strN); String s = ""; int[] p = new int[n]; for (int i = 0; i < n; i++) { String s = scan.n...
Main.java:15: error: ']' expected int p[i] = Integer.parseInt(s); ^ Main.java:15: error: ';' expected int p[i] = Integer.parseInt(s); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323338590|p02957|1
u323338590|p02957|1
codenet
Compile Error
957
v2_s454817689
s454817689
s454817689
p02957
p02957
u347452770
u347452770
1,565,665,992
2019-08-13T03:13:12
Main.java
public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); if(a == b) { System.out.print("0"); } else{ int max = Math.max(a,b); int min = Math.m...
Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: 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
u347452770|p02957|0
u347452770|p02957|0
codenet
Compile Error
558
v2_s545713373
s545713373
s545713373
p02957
p02957
u353919145
u353919145
1,588,929,695
2020-05-08T09:21:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int A = input.nextInt(); int B = input.nextInt(); int count = 0; int i ; if(A>B){ for ( i = 0...
Main.java:41: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02957|5
u353919145|p02957|4
codenet
Compile Error
963
v2_s535712858
s535712858
s535712858
p02957
p02957
u382169090
u382169090
1,564,856,785
2019-08-03T18:26:25
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(); if((A-B)%2==0){ System.out.println((A+B)/2); } else{ System.out.println("IMPOSSIBLE"); } } }
Main.java:7: error: cannot find symbol if((A-B)%2==0){ ^ symbol: variable A location: class Main Main.java:7: error: cannot find symbol if((A-B)%2==0){ ^ symbol: variable B location: class Main Main.java:8: error: cannot find symbol System.out.println((A+B)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u382169090|p02957|0
u382169090|p02957|0
codenet
Compile Error
314
v2_s522599565
s522599565
s522599565
p02957
p02957
u382169090
u382169090
1,564,856,861
2019-08-03T18:27:41
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(); if((A-B)%2==0)){ System.out.println((A+B)/2)); } else{ System.out.println("IMPOSSIBLE"); } } }
Main.java:7: error: illegal start of expression if((A-B)%2==0)){ ^ Main.java:8: error: ';' expected System.out.println((A+B)/2)); ^ Main.java:10: error: 'else' without 'if' else{ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u382169090|p02957|0
u382169090|p02957|0
codenet
Compile Error
316
v2_s063324248
s063324248
s063324248
p02957
p02957
u391044041
u391044041
1,564,281,947
2019-07-28T02:45:47
Main.java
import java.util.*; import java.io.*; public class Main { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
Main.java:32: error: package l does not exist l.Scanner sc = new l.Scanner(System.in); ^ Main.java:32: error: package l does not exist l.Scanner sc = new l.Scanner(System.in); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u391044041|p02957|0
u391044041|p02957|0
codenet
Compile Error
5,477
v2_s968375631
s968375631
s968375631
p02957
p02957
u431125128
u431125128
1,572,968,749
2019-11-05T15:45:49
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(); boolean flg=false; int k; for(k=0;k<10000000000;k++){ if(Math.abs(a-k)==Math.abs(b-k)){ flg=true; break; ...
Main.java:10: error: integer number too large for(k=0;k<10000000000;k++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02957|0
u431125128|p02957|0
codenet
Compile Error
432
v2_s368408995
s368408995
s368408995
p02957
p02957
u431125128
u431125128
1,572,968,775
2019-11-05T15:46:15
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(); boolean flg=false; long k; for(k=0;k<10000000000;k++){ if(Math.abs(a-k)==Math.abs(b-k)){ flg=true; break; ...
Main.java:10: error: integer number too large for(k=0;k<10000000000;k++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02957|0
u431125128|p02957|0
codenet
Compile Error
433
v2_s518847296
s518847296
s518847296
p02957
p02957
u441254033
u441254033
1,564,848,208
2019-08-03T16:03:28
Main.java
class Main() { public static void Main(String args[]){ long a = Long.parseLong(args[0]); long b = Long.parseLong(args[1]); if((b+a)%2==1){ System.out.print("IMPOSSIBLE"); }else{ System.out.print((b+a)/2); } } }
Main.java:1: error: '{' expected class Main() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u441254033|p02957|0
u441254033|p02957|0
codenet
Compile Error
235
v2_s569656273
s569656273
s569656273
p02957
p02957
u448324500
u448324500
1,564,782,274
2019-08-02T21:44:34
Main.java
public class Main { long A; long B; double C =(A+B)/2; if(!(A/2 = B/2 )){ System.out.println("IMPOSSIBLE"); } else{ System.out.println(C); } }
Main.java:6: error: illegal start of type if(!(A/2 = B/2 )){ ^ Main.java:6: error: <identifier> expected if(!(A/2 = B/2 )){ ^ Main.java:6: error: <identifier> expected if(!(A/2 = B/2 )){ ^ Main.java:11: error: illegal start of type else{ ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02957|0
u448324500|p02957|0
codenet
Compile Error
162
v2_s477067476
s477067476
s477067476
p02957
p02957
u448324500
u448324500
1,564,782,940
2019-08-02T21:55:40
Main.java
public class Main { public static void main(String[] args){ long A ; long B ; double C =(A+B)/2; if (A%2 == B%2 ){ System.out.println("IMPOSSIBLE"); } else { System.out.println (C); } } }
Main.java:6: error: variable A might not have been initialized double C =(A+B)/2; ^ Main.java:6: error: variable B might not have been initialized double C =(A+B)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02957|0
u448324500|p02957|0
codenet
Compile Error
222
v2_s510091872
s510091872
s510091872
p02957
p02957
u448324500
u448324500
1,564,785,066
2019-08-02T22:31:06
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextInt(); long b = sc.nextInt(); double C =(A+B)/2; if (!(A%2 == B%2 )){ System.out.println("IMPOSSIBLE"); } else { System.out.println (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:7: error: cannot find s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02957|0
u448324500|p02957|0
codenet
Compile Error
297
v2_s264575093
s264575093
s264575093
p02957
p02957
u462723267
u462723267
1,574,734,934
2019-11-26T02:22:14
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 r = A+B; if( r%2 == 0;){ System.out.println(r/2); }else{ System.out.println("IMPOSSIBLE"); ...
Main.java:13: error: ')' expected if( r%2 == 0;){ ^ Main.java:13: error: illegal start of expression if( r%2 == 0;){ ^ Main.java:15: error: 'else' without 'if' }else{ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462723267|p02957|0
u462723267|p02957|0
codenet
Compile Error
362
v2_s335980989
s335980989
s335980989
p02957
p02957
u463844166
u463844166
1,574,798,711
2019-11-26T20:05:11
Main.java
mport java.util.*; public class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int x=Math.abs(m-n); int y=0; if(x%2==0){ y=x/2; if (n<m) { System.out.println(n+y); }else{ System....
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463844166|p02957|0
u463844166|p02957|0
codenet
Compile Error
411
v2_s800222661
s800222661
s800222661
p02957
p02957
u487433273
u487433273
1,564,275,937
2019-07-28T01:05:37
Main.java
import java.util.Scanner; import java.util.Arrays; 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 = 1) System.out.println("IMPOSSIBLE"); else { if (A>=B) System.out.println((A-B)/2); else Sy...
Main.java:8: error: unexpected type if((A-B) % 2 = 1) System.out.println("IMPOSSIBLE"); ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02957|0
u487433273|p02957|0
codenet
Compile Error
357
v2_s592406344
s592406344
s592406344
p02957
p02957
u517779586
u517779586
1,564,850,665
2019-08-03T16:44:25
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); int num3 = num1 % 2; int num4 = num2 % 2; if(num1 == 0 || num3 != 0 ){ System.out.println("IMPOSSIBLE"); ...
Main.java:5: error: illegal character: '\u3000' int num1 =?sc.nextInt(); ^ Main.java:6: error: illegal character: '\u3000' int num2 =?sc.nextInt(); ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02957|0
u517779586|p02957|0
codenet
Compile Error
491
v2_s681767191
s681767191
s681767191
p02957
p02957
u517779586
u517779586
1,564,851,036
2019-08-03T16:50:36
p.java
import java.util.Scanner; public class p{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); int num3 = num1 % 2; int num4 = num2 % 2; if(num1 == 0 || num3 != 0 ){ System.out.println("IMP...
p.java:5: error: illegal character: '\u3000' int num1 =?sc.nextInt(); ^ p.java:6: error: illegal character: '\u3000' int num2 =?sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517779586|p02957|0
u517779586|p02957|0
codenet
Compile Error
508
v2_s400875318
s400875318
s400875318
p02957
p02957
u528748570
u528748570
1,570,419,886
2019-10-07T03:44:46
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double A = Integer.parseInt(sc.next()); double B = Integer.parseInt(sc.next()); if((A+B) % 2 == 0){ System.out.println(int((A+B)/2)); }else{ System.out.println("IM...
Main.java:9: error: '.class' expected System.out.println(int((A+B)/2)); ^ Main.java:9: error: not a statement System.out.println(int((A+B)/2)); ^ Main.java:9: error: ';' expected System.out.println(int((A+B)/2)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u528748570|p02957|0
u528748570|p02957|0
codenet
Compile Error
344
v2_s333836251
s333836251
s333836251
p02957
p02957
u607953633
u607953633
1,564,276,127
2019-07-28T01:08:47
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) == 1{ System.out.println("IMPOSSIBLE"); }else{ int K = (A+B)/2; System.out.println(numGuar...
Main.java:9: error: illegal start of expression if ((A+B) % 2) == 1{ ^ Main.java:9: error: ';' expected if ((A+B) % 2) == 1{ ^ Main.java:11: error: 'else' without 'if' }else{ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u607953633|p02957|0
u607953633|p02957|0
codenet
Compile Error
356
v2_s062210979
s062210979
s062210979
p02957
p02957
u646045354
u646045354
1,566,404,294
2019-08-21T16:18:14
Harmony.java
public class Harmony { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); sc.close(); int k; for (k = 0; k < 1000000000; k++) { if (Math.abs(a - k) == Math.abs(b - k)) { ...
Harmony.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Harmony Harmony.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Harmony 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646045354|p02957|0
u646045354|p02957|0
codenet
Compile Error
455
v2_s642012837
s642012837
s642012837
p02957
p02957
u675751622
u675751622
1,570,201,050
2019-10-04T14:57:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number_a = Integer.parseInt(sc.next()); int number_b = Integer.parseInt(sc.next()); if((number_a + number_b) % 2 == 1) { System.out.println("IMPOSSIBLE"); } else { ...
Main.java:11: error: -> expected System.out.println(Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02957|0
u675751622|p02957|0
codenet
Compile Error
420
v2_s444919679
s444919679
s444919679
p02957
p02957
u675751622
u675751622
1,570,201,111
2019-10-04T14:58:31
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number_a = Integer.parseInt(sc.next()); int number_b = Integer.parseInt(sc.next()); if((number_a + number_b) % 2 == 1) { System.out.println("IMPOSSIBLE"); } else { ...
Main.java:11: error: -> expected System.out.println((Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2); ^ Main.java:11: error: ')' or ',' expected System.out.println((Math.max((number_a, number_b) - Math.min(number_a, number_b)) / 2); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02957|0
u675751622|p02957|0
codenet
Compile Error
421
v2_s001901433
s001901433
s001901433
p02957
p02957
u675751622
u675751622
1,570,201,830
2019-10-04T15:10:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number_a = Integer.parseInt(sc.next()); int number_b = Integer.parseInt(sc.next()); if((number_a + number_b) % 2 == 1) { System.out.println("IMPOSSIBLE"); } else { ...
Main.java:11: error: not a statement System.out.println(number_a + number_b) / 2); ^ Main.java:11: error: ';' expected System.out.println(number_a + number_b) / 2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02957|0
u675751622|p02957|0
codenet
Compile Error
379
v2_s990219591
s990219591
s990219591
p02957
p02957
u680352927
u680352927
1,564,276,344
2019-07-28T01:12:24
OnlineTest.java
import java.io.*; public class OnlineTest { public static void main(String[] args){ try{ String str; BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "UTF-8")); str = br.readLine(); //int sample = Integer.parseInt(str); System.out.println(sample); } catc...
OnlineTest.java:12: error: cannot find symbol System.out.println(sample); ^ symbol: variable sample location: class OnlineTest 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u680352927|p02957|0
u680352927|p02957|0
codenet
Compile Error
447
v2_s960315145
s960315145
s960315145
p02957
p02957
u683530136
u683530136
1,564,276,473
2019-07-28T01:14:33
Main.java
import java.util.*; public class Main { public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int k; if(a == b){ System.out.println("IMPOSSIBLE"); }else if(a < b){ // a-k<0, b-k>0 k=(b+a)/2; System.out.println(k); ...
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
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
337
v2_s197241962
s197241962
s197241962
p02957
p02957
u683530136
u683530136
1,564,276,602
2019-07-28T01:16:42
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 k; if(a == b){ System.out.println("IMPOSSIBLE"); }else{ k=(b+a)/2;   System.out.prin...
Main.java:13: error: illegal character: '\u3000' ? System.out.println(k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
352
v2_s289023293
s289023293
s289023293
p02957
p02957
u683530136
u683530136
1,564,277,117
2019-07-28T01:25:17
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 k; if(a == b){ System.out.println("IMPOSSIBLE"); }else if(a < 0){ System.out.println(...
Main.java:13: error: ')' expected }else if (b > Math.pow(10, 2); ^ Main.java:14: error: illegal start of type }else{ ^ Main.java:19: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
451
v2_s313108847
s313108847
s313108847
p02957
p02957
u683530136
u683530136
1,564,277,192
2019-07-28T01:26:32
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 k; if(a == b){ System.out.println("IMPOSSIBLE"); }else if(a < 0){ System.out.println(...
Main.java:13: error: ')' expected }else if (b > Math.pow(10, 2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
497
v2_s831746580
s831746580
s831746580
p02957
p02957
u683530136
u683530136
1,564,278,563
2019-07-28T01:49:23
Main.java
import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); // int a = Integer.parseInt(args[0]); // int a = Integer.parseInt(args[1]); int a = sc.nextInt(); int b = sc...
Main.java:20: error: integer number too large }else if (b > 10000000000){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
738
v2_s847010937
s847010937
s847010937
p02957
p02957
u683530136
u683530136
1,564,278,755
2019-07-28T01:52:35
Main.java
import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); // int a = Integer.parseInt(args[0]); // int a = Integer.parseInt(args[1]); long a = sc.nextLong(); long b =...
Main.java:20: error: integer number too large }else if (b > 10000000000){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
743
v2_s613807765
s613807765
s613807765
p02957
p02957
u683530136
u683530136
1,564,279,298
2019-07-28T02:01:38
Main.java
import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long k; if(a == b){ System.out.println("IMP...
Main.java:27: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
719
v2_s326279469
s326279469
s326279469
p02957
p02957
u683530136
u683530136
1,564,279,812
2019-07-28T02:10:12
Main.java
import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); // int a = Integer.parseInt(args[0]); // int a = Integer.parseInt(args[1]); int a = sc.nextInt(); int b = sc...
Main.java:24: error: ')' expected if((k*2) != (a+b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
830
v2_s991630208
s991630208
s991630208
p02957
p02957
u683530136
u683530136
1,564,279,900
2019-07-28T02:11:40
Main.java
import java.util.*; import java.util.InputMismatchException; public class Main { public static void main(String[] args){ try{ Scanner sc = new Scanner(System.in); // int a = Integer.parseInt(args[0]); // int a = Integer.parseInt(args[1]); int a = sc.nextInt(); int b = sc...
Main.java:29: error: 'catch' without 'try' }catch(InputMismatchException e){ ^ Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations try{ ^ Main.java:33: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683530136|p02957|0
u683530136|p02957|0
codenet
Compile Error
836
v2_s919858920
s919858920
s919858920
p02957
p02957
u692131329
u692131329
1,565,333,037
2019-08-09T06:43:57
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(); if(a+b % 2){ System.out.println((a+b)/2); }else{ System.out.println("IMPOSSIBLE"); ...
Main.java:8: error: incompatible types: int cannot be converted to boolean if(a+b % 2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u692131329|p02957|0
u692131329|p02957|0
codenet
Compile Error
339
v2_s842404795
s842404795
s842404795
p02957
p02957
u727456114
u727456114
1,564,281,189
2019-07-28T02:33:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner inp = new Scanner(System.in); String s= inp.nextLine(); String t= inp.nextLine(); int k=(s.length()-temp.length()) ; k=k/t.length(); System.out.println(k); } }
Main.java:8: error: cannot find symbol int k=(s.length()-temp.length()) ; ^ symbol: variable temp location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727456114|p02957|0
u727456114|p02957|0
codenet
Compile Error
310
v2_s163074382
s163074382
s163074382
p02957
p02957
u740054550
u740054550
1,564,275,856
2019-07-28T01:04:16
Main.java
using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace AtCorder { class Program { static void Main(string[] args) { new Program().Solve(new ConsoleInput(Console....
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected using System.Text; ^ Main.java:3: error: class, interface, enum, or record expected using System.Linq; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740054550|p02957|0
u740054550|p02957|0
codenet
Compile Error
2,107
v2_s258779370
s258779370
s258779370
p02957
p02957
u754114382
u754114382
1,575,276,449
2019-12-02T08:47:29
Main.java
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; if(c%2==0) { System.out.println(c/2); } else { System.out.println("IMPOSSIBLE"); } } }
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
u754114382|p02957|0
u754114382|p02957|0
codenet
Compile Error
258
v2_s379944401
s379944401
s379944401
p02957
p02957
u760718569
u760718569
1,578,514,593
2020-01-08T20:16:33
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[] p = new int[n]; int downcounter = 0; boolean ans = true; for(int i = 0;i < n;i++){ p[i] = sc.nextInt(); } for(int j = 0;j < n - 1...
Main.java:14: error: cannot find symbol if(p[i] > p[i + 1]){ ^ symbol: variable i location: class Main Main.java:14: error: cannot find symbol if(p[i] > p[i + 1]){ ^ symbol: variable i location: class Main Main.java:15: error: cannot find symbol downCounter++...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02957|0
u760718569|p02957|0
codenet
Compile Error
572
v2_s206843936
s206843936
s206843936
p02957
p02957
u790685134
u790685134
1,564,775,488
2019-08-02T19:51:28
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k=0; int a=sc.nextInt(); int b=sc.nextInt(); if(a%2 != b%2){ System.out.println("IMPOSSIBLE"); }else{ k=(a+b)/2; System.out.println(k); } } ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u790685134|p02957|0
u790685134|p02957|0
codenet
Compile Error
337
v2_s629441707
s629441707
s629441707
p02957
p02957
u795990458
u795990458
1,564,363,428
2019-07-29T01:23:48
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); long a = s.nextLong(); long b = s.nextLong(); s.close(); long disA = 0; long disB = 0; if(a < 0) { disA = a * -1; }else { disA = a; } if(b < 0) { disB = b * -1; ...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795990458|p02957|0
u795990458|p02957|0
codenet
Compile Error
519
v2_s779201779
s779201779
s779201779
p02957
p02957
u796481713
u796481713
1,573,180,064
2019-11-08T02:27:44
Main.java
import java.util.Scanenr; 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==0){ System.out.println((A+B)/2); }else{ System.out.prinln("IMPOSSIBLE"); } } }
Main.java:1: error: cannot find symbol import java.util.Scanenr; ^ symbol: class Scanenr location: package java.util 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 Sca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796481713|p02957|0
u796481713|p02957|0
codenet
Compile Error
299
v2_s966686245
s966686245
s966686245
p02957
p02957
u818640918
u818640918
1,564,275,901
2019-07-28T01:05:01
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(); int f = a-b; if(f>0){ f=-f; } if(f/2=0){ System.out.println(f/2); }else{ System.out.println("IMPOSSIBLE"); }}}
Main.java:7: error: cannot find symbol int f = a-b; ^ symbol: variable a location: class Main Main.java:7: error: cannot find symbol int f = a-b; ^ symbol: variable b location: class Main Main.java:11: error: unexpected type if(f/2=0){ ^ required: variable found: value 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02957|0
u818640918|p02957|0
codenet
Compile Error
265
v2_s833448965
s833448965
s833448965
p02957
p02957
u849086152
u849086152
1,564,275,937
2019-07-28T01:05:37
Main.java
public class Main { public static void solution(int x, int y) { for(int i=0;i<=1e9;i++) { if(Math.abs(x-i)==Math.abs(y-i)) { System.out.println(i); } } } public static void main(String args []) { Scanner obj = new Scanner(System.in); int x = obj.nextInt(); int y = obj.nextInt(); solution(x...
Main.java:12: error: cannot find symbol Scanner obj = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:12: error: cannot find symbol Scanner obj = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849086152|p02957|0
u849086152|p02957|0
codenet
Compile Error
329
v2_s410837596
s410837596
s410837596
p02957
p02957
u849086152
u849086152
1,564,276,335
2019-07-28T01:12:15
codeforces.java
public class codeforces { public static void solution(int x, int y) { if((x+y)%2==0) { System.out.prtintln((x+y)/2); } else { System.out.println("IMPOSSIBLE"); } } public static void main(String args []) { Scanner obj = new Scanner(System.in); int x = obj.nextInt(); int y = obj.nextInt(); ...
codeforces.java:4: error: cannot find symbol System.out.prtintln((x+y)/2); ^ symbol: method prtintln(int) location: variable out of type PrintStream codeforces.java:13: error: cannot find symbol Scanner obj = new Scanner(System.in); ^ symbol: class Scanner location: class codeforces code...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849086152|p02957|0
u849086152|p02957|0
codenet
Compile Error
339
v2_s937221830
s937221830
s937221830
p02957
p02957
u849086152
u849086152
1,564,276,366
2019-07-28T01:12:46
Main.java
public class Main { public static void solution(int x, int y) { if((x+y)%2==0) { System.out.prtintln((x+y)/2); } else { System.out.println("IMPOSSIBLE"); } } public static void main(String args []) { Scanner obj = new Scanner(System.in); int x = obj.nextInt(); int y = obj.nextInt(); soluti...
Main.java:4: error: cannot find symbol System.out.prtintln((x+y)/2); ^ symbol: method prtintln(int) location: variable out of type PrintStream Main.java:13: error: cannot find symbol Scanner obj = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:13: error: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849086152|p02957|0
u849086152|p02957|0
codenet
Compile Error
333
v2_s944947044
s944947044
s944947044
p02957
p02957
u849086152
u849086152
1,564,276,442
2019-07-28T01:14:02
Main.java
import java.util.Scanner; public class Main { public static void solution(int x, int y) { if((x+y)%2==0) { System.out.prtintln((x+y)%2); } else { System.out.println("IMPOSSIBLE"); } } public static void main(String args []) { Scanner obj = new Scanner(System.in); int x = obj.nextInt(); int ...
Main.java:6: error: cannot find symbol System.out.prtintln((x+y)%2); ^ symbol: method prtintln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849086152|p02957|0
u849086152|p02957|0
codenet
Compile Error
360
v2_s958956674
s958956674
s958956674
p02957
p02957
u860782770
u860782770
1,564,280,842
2019-07-28T02:27:22
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long a = scan.nextLong(); long b = scan.nextLong(); if((a+b)%2 == 0){ System.out.println((a+b)/2); }else{ System.out.println("IMPOSSIBLE"); } ...
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u860782770|p02957|0
u860782770|p02957|0
codenet
Compile Error
326
v2_s380626408
s380626408
s380626408
p02957
p02957
u886790806
u886790806
1,564,276,998
2019-07-28T01:23:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args ) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int F = Math.abs(A-B); int ans = -1; for(int i = 0;i < 10000000000;i++) { if(Math.abs(A-i) == Math.abs(B...
Main.java:14: error: integer number too large for(int i = 0;i < 10000000000;i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886790806|p02957|0
u886790806|p02957|0
codenet
Compile Error
470
v2_s094816624
s094816624
s094816624
p02957
p02957
u895447390
u895447390
1,566,072,921
2019-08-17T20:15:21
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] ms = new long[n+1]; long[] hs = new long[n]; for(int i=0;i<n+1;i++){ ms[i] = sc.nextLong(); } ...
Main.java:9: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:9: 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
u895447390|p02957|0
u895447390|p02957|0
codenet
Compile Error
931
v2_s545742438
s545742438
s545742438
p02957
p02957
u898271416
u898271416
1,564,521,458
2019-07-30T21:17:38
Main.java
int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); AtomicBoolean ab = new AtomicBoolean(false); IntStream.range(0, (int)Math.pow(10, 9)).forEach(k -> { int absA = Math.abs(a - k); int absB = Math.abs(b - k); if (absA == absB) { ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int a = Integer.parseInt(args[0]); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected IntStream.range(0, (int)Math.pow(10, 9)).forEach(k -> { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u898271416|p02957|0
u898271416|p02957|0
codenet
Compile Error
516
v2_s505281341
s505281341
s505281341
p02957
p02957
u936985471
u936985471
1,564,707,088
2019-08-02T00:51:28
Main.java
int x = A + B; if(x%2!=0){ System.out.println("IMPOSSIBLE"); }else{ System.out.println(x%2); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int x = A + B; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected if(x%2!=0){ ^ Main.java:4: error: class, interface, enum, or record expected }else{ ^ Main.java:6: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u936985471|p02957|0
u936985471|p02957|0
codenet
Compile Error
99
v2_s333765395
s333765395
s333765395
p02957
p02957
u990945483
u990945483
1,564,765,384
2019-08-02T17:03:04
InputSample.java
import java.util.Scanner; public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = Integer.parseInt(scan.next()); int b = Integer.parseInt(scan.next()); scan.close(); if((a+b)%2 == 0){ System.out.print...
InputSample.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990945483|p02957|0
u990945483|p02957|0
codenet
Compile Error
398
v2_s298624440
s298624440
s298624440
p02957
p02957
u990945483
u990945483
1,564,765,466
2019-08-02T17:04:26
InputSample.java
public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = Integer.parseInt(scan.next()); int b = Integer.parseInt(scan.next()); scan.close(); if((a+b)%2 == 0){ System.out.println(""+(a+b)/2); }els...
InputSample.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class InputSample InputSample.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990945483|p02957|0
u990945483|p02957|0
codenet
Compile Error
380
v2_s122092300
s122092300
s122092300
p02958
p02958
u010824282
u010824282
1,564,778,224
2019-08-02T20:37:04
Main.java
public static void main(String[] args) { try (BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in))) { int a = 0; int count = 0; String line; while ((line = stdReader.readLine()) != null) { if (count == 0) { a = Integer.parseInt...
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
u010824282|p02958|0
u010824282|p02958|0
codenet
Compile Error
1,776
v2_s037489505
s037489505
s037489505
p02958
p02958
u049823007
u049823007
1,564,279,625
2019-07-28T02:07:05
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 p[] = new int[N]; for (int i = 0, i < N, i++) { p[i] = sc.nextInt(); } int c = 0; for (int j = 1...
Main.java:8: error: ';' expected for (int i = 0, i < N, i++) { ^ Main.java:8: error: > or ',' expected for (int i = 0, i < N, i++) { ^ Main.java:8: error: illegal start of expression for (int i = 0, i < N, i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u049823007|p02958|0
u049823007|p02958|0
codenet
Compile Error
671
v2_s725120817
s725120817
s725120817
p02958
p02958
u093922858
u093922858
1,564,805,926
2019-08-03T04:18: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(); int[] array = new int[n]; for (int i = 0; i < n; i ++) { array[i] = sc.nextInt(); } // At least 3 elements NOT satisfy array[i] =...
Main.java:22: error: incompatible types: int cannot be converted to boolean if (count = 2) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093922858|p02958|0
u093922858|p02958|0
codenet
Compile Error
610
v2_s116297594
s116297594
s116297594
p02958
p02958
u093922858
u093922858
1,564,805,976
2019-08-03T04:19:36
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[] array = new int[n]; for (int i = 0; i < n; i ++) { array[i] = sc.nextInt(); } // At least 3 elements NOT satisfy array[i] ...
Main.java:22: error: incompatible types: int cannot be converted to boolean if (count = 2) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093922858|p02958|0
u093922858|p02958|0
codenet
Compile Error
611
v2_s667946878
s667946878
s667946878
p02958
p02958
u130588436
u130588436
1,564,278,527
2019-07-28T01:48:47
Main.java
import java.util.*; import java.io.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Integer p[] = new Integer[n]; for(int i=0;i<n;i++){ p[i] = sc.nextInt(); } Integer q[] = new Integer[n]; for(int i=0;i<n;i++){ q...
Main.java:20: error: illegal start of expression if(p[i] !== q[i]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130588436|p02958|0
u130588436|p02958|0
codenet
Compile Error
540
v2_s965932408
s965932408
s965932408
p02958
p02958
u200239931
u200239931
1,574,026,100
2019-11-17T21:28:20
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BigDecimal x1 = new BigDecimal("1"); BigDeci...
Main.java:57: error: illegal start of expression import java.io.BufferedReader; ^ Main.java:57: error: not a statement import java.io.BufferedReader; ^ Main.java:58: error: illegal start of expression import java.io.IOException; ^ Main.java:58: error: not a statement import java.io.IOException; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200239931|p02958|0
u200239931|p02958|0
codenet
Compile Error
4,056
v2_s825784902
s825784902
s825784902
p02958
p02958
u202826462
u202826462
1,575,424,649
2019-12-04T01:57:29
Main.java
\import java.io.PrintWriter; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int N = Integer.parseInt(stdin.next()); int Nlist[] = new int[N]; int list[] = new int[N]; int p[] = n...
Main.java:1: error: illegal character: '\' \import java.io.PrintWriter; ^ Main.java:1: error: class, interface, enum, or record expected \import java.io.PrintWriter; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202826462|p02958|1
u202826462|p02958|1
codenet
Compile Error
611
v2_s808549569
s808549569
s808549569
p02958
p02958
u213440300
u213440300
1,564,420,503
2019-07-29T17:15:03
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int[] arr = new int[sc.nextInt()]; int wrong = 0; for (int i = 0; i < arr.length; i++) { a...
Main.java:16: error: unclosed string literal out.println(wrong == 2 ? "YES" : "NO); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213440300|p02958|0
u213440300|p02958|0
codenet
Compile Error
497
v2_s100421608
s100421608
s100421608
p02958
p02958
u218740431
u218740431
1,587,487,203
2020-04-21T16:40:03
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 = 0; for(int i=0;i<a;i++){int c = sc.nextInt(); if(c!=i+1){b++;} } if(b<=2){system.out.pri...
Main.java:10: error: package system does not exist if(b<=2){system.out.println("YES");} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02958|0
u218740431|p02958|0
codenet
Compile Error
373
v2_s029954447
s029954447
s029954447
p02958
p02958
u231014113
u231014113
1,565,723,896
2019-08-13T19:18:16
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String arg[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int p[] = new int[N]; int pSort[] = new int[N]; int count = 0; for (int i = 0; i < N; i++) { p[i] = sc.nextInt(); pSort[i] =p[i]...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u231014113|p02958|0
u231014113|p02958|0
codenet
Compile Error
545
v2_s313068975
s313068975
s313068975
p02958
p02958
u271411583
u271411583
1,564,930,313
2019-08-04T14:51:53
Main.java
import java.util.* public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = 0; for(int i=1; i<=n, i++){ if(sc.nextInt()!=i){ d++; } } System.out.println(d<=2 ? "YES" : "N...
Main.java:1: error: ';' expected import java.util.* ^ Main.java:7: error: ';' expected for(int i=1; i<=n, i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271411583|p02958|0
u271411583|p02958|0
codenet
Compile Error
332
v2_s379478718
s379478718
s379478718
p02958
p02958
u271411583
u271411583
1,564,930,338
2019-08-04T14:52:18
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 = 0; for(int i=1; i<=n, i++){ if(sc.nextInt()!=i){ d++; } } System.out.println(d<=2 ? "YES" : "...
Main.java:7: error: ';' expected for(int i=1; i<=n, i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u271411583|p02958|0
u271411583|p02958|0
codenet
Compile Error
334
v2_s383602316
s383602316
s383602316
p02958
p02958
u272319314
u272319314
1,567,567,797
2019-09-04T03:29:57
Main.java
import java.util.*; import java.math.*; import java.io.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String args[]) { int n = sc.nextInt(); int[] p = new int[n]; for(int i = 0; i < n; i++) p[i] = sc.nextInt(); for(int i = 0; i < n; ...
Main.java:18: error: cannot find symbol ok = true; ^ symbol: variable ok location: class Main Main.java:21: error: cannot find symbol ok = false; ^ symbol: variable ok location: class Main Main.java:25: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u272319314|p02958|0
u272319314|p02958|0
codenet
Compile Error
787
v2_s127223100
s127223100
s127223100
p02958
p02958
u323338590
u323338590
1,564,832,116
2019-08-03T11:35:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String strN = scan.next(); int n = Integer.parseInt(strN); String s = ""; int[] p = int[n]; for (int i = 0; i < n; i++) { String s = scan.next(...
Main.java:11: error: ']' expected int[] p = int[n]; ^ Main.java:11: error: ';' expected int[] p = int[n]; ^ Main.java:15: error: ']' expected int p[i] = Integer.parseInt(s); ^ Main.java:15: error: ';' expected int p[i] = Integer.parseInt(s); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323338590|p02958|0
u323338590|p02958|0
codenet
Compile Error
952
v2_s782249746
s782249746
s782249746
p02958
p02958
u347452770
u347452770
1,565,666,312
2019-08-13T03:18:32
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] s = new int[n]; int[] c = new int[n]; for(int i = 0; i < n; i ++){ s[i] = sca.nextInt(); c[i] = s[i]; ...
Main.java:10: error: cannot find symbol s[i] = sca.nextInt(); ^ symbol: variable sca location: class Main Main.java:16: error: cannot find symbol counter++; ^ symbol: variable counter location: class Main Main.java:19: error: reference to print ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02958|0
u347452770|p02958|0
codenet
Compile Error
550
v2_s334510876
s334510876
s334510876
p02958
p02958
u347452770
u347452770
1,565,666,341
2019-08-13T03:19:01
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] s = new int[n]; int[] c = new int[n]; for(int i = 0; i < n; i ++){ s[i] = sca.nextInt(); c[i] = s[i]; ...
Main.java:10: error: cannot find symbol s[i] = sca.nextInt(); ^ symbol: variable sca location: class Main Main.java:16: error: cannot find symbol counter++; ^ symbol: variable counter location: class Main Main.java:19: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02958|0
u347452770|p02958|0
codenet
Compile Error
554
v2_s212428364
s212428364
s212428364
p02958
p02958
u347452770
u347452770
1,565,666,380
2019-08-13T03:19:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] s = new int[n]; int[] c = new int[n]; int counter = 0; for(int i = 0; i < n; i ++){ s[i] = sca.nextInt(); ...
Main.java:11: error: cannot find symbol s[i] = sca.nextInt(); ^ symbol: variable sca location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02958|0
u347452770|p02958|0
codenet
Compile Error
579
v2_s228958668
s228958668
s228958668
p02958
p02958
u369712616
u369712616
1,584,438,862
2020-03-17T09:54:22
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[] input = new int[n]; int difference = 0; for(int i = 0;i<,n;i++){ input[i] = sc.nextInt(); if(input[i] != i + 1){ difference++; } ...
Main.java:8: error: illegal start of expression for(int i = 0;i<,n;i++){ ^ Main.java:8: error: not a statement for(int i = 0;i<,n;i++){ ^ Main.java:8: error: ')' expected for(int i = 0;i<,n;i++){ ^ Main.java:8: error: ';' expected for(int i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02958|0
u369712616|p02958|0
codenet
Compile Error
457
v2_s711361962
s711361962
s711361962
p02958
p02958
u369712616
u369712616
1,584,438,996
2020-03-17T09:56:36
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[] input = new int[n]; int difference = 0; for(int i = 0;i<,n;i++){ input[i] = sc.nextInt(); if(input[i] != i + 1){ difference++; } ...
Main.java:8: error: illegal start of expression for(int i = 0;i<,n;i++){ ^ Main.java:8: error: not a statement for(int i = 0;i<,n;i++){ ^ Main.java:8: error: ')' expected for(int i = 0;i<,n;i++){ ^ Main.java:8: error: ';' expected for(int i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02958|0
u369712616|p02958|0
codenet
Compile Error
457
v2_s876954906
s876954906
s876954906
p02958
p02958
u382169090
u382169090
1,564,864,420
2019-08-03T20:33:40
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 = 0; for(int i=1; i<=n; i++){ if(sc.nextInt()!=i){ d++; } } System.out.println(d...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u382169090|p02958|0
u382169090|p02958|0
codenet
Compile Error
347