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_s753849977
s753849977
s753849977
p02639
p02639
u608332609
u608332609
1,592,186,182
2020-06-15T01:56:22
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); int num1 = sc1 nextInt(); int num2 = sc2 nextInt(); if((num2 % 4) % 2 ==0){ System.out.prin...
Main.java:11: error: ';' expected int num1 = sc1 nextInt(); ^ Main.java:12: error: ';' expected int num2 = sc2 nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02639|0
u608332609|p02639|0
codenet
Compile Error
423
v2_s666623446
s666623446
s666623446
p02639
p02639
u618907626
u618907626
1,592,183,095
2020-06-15T01:04:55
Main.java
import java.util.Scanner; public Class Main{ public static void main(String[] args){ Scanner scan = new Scanner(system.in); int x; for(int i = 1;i<6;i++){ x = scan.nextInt(); if(x == 0){ system.out.println(i); break; } } } }
Main.java:3: error: class, interface, enum, or record expected public Class Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:15: error: class, int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618907626|p02639|0
u618907626|p02639|0
codenet
Compile Error
277
v2_s942287856
s942287856
s942287856
p02639
p02639
u653013798
u653013798
1,592,183,128
2020-06-15T01:05:28
Main.java
class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] x = new int[5]; for(int i=0; i<5; i++){ x[i] = sc.nextInt(); } Arrays.sort(x); for(int i=0; i<5; i++){ if(x[i]==0){ System.out.println(i+1); break; } } } ...
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:9: error: cannot find s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653013798|p02639|0
u653013798|p02639|0
codenet
Compile Error
321
v2_s840645477
s840645477
s840645477
p02639
p02639
u718000212
u718000212
1,592,183,549
2020-06-15T01:12:29
Main.java
package p1; import java.util.Scanner; private class FiveVariables { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a[]=new int[5]; for(int i=0;i<5;i++) { a[i]=scan.nextInt(); } for(int i=0;i<5;i++) { if(a[i]==0)System.out.println(i+1); } } }
Main.java:5: error: modifier private not allowed here private class FiveVariables { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u718000212|p02639|0
u718000212|p02639|0
codenet
Compile Error
301
v2_s718353450
s718353450
s718353450
p02639
p02639
u736076905
u736076905
1,592,755,178
2020-06-21T15:59:38
Main.java
import java.util.*; class Main{ public static void main(String args[]){ for (int i = 0; i < 5; i++){ int val = in.nextInt(); if (val == 0) System.out.println(i); } } }
Main.java:6: error: cannot find symbol int val = in.nextInt(); ^ symbol: variable in location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736076905|p02639|0
u736076905|p02639|0
codenet
Compile Error
223
v2_s647793887
s647793887
s647793887
p02639
p02639
u758545337
u758545337
1,592,182,894
2020-06-15T01:01:34
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception{ int num = 998244353; // TODO Auto-generated method stub BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); StringT...
Main.java:57: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:58: error: class, interface, enum, or record expected import java.io.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u758545337|p02639|0
u758545337|p02639|0
codenet
Compile Error
2,130
v2_s479609863
s479609863
s479609863
p02639
p02639
u761516097
u761516097
1,592,486,458
2020-06-18T13:20:58
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 1; while (sc.hasNext()) { int x = sc.nextInt(); if (x == 0) { System.out.println(cnt); break; } cnt++; ...
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
u761516097|p02639|0
u761516097|p02639|0
codenet
Compile Error
358
v2_s813275449
s813275449
s813275449
p02639
p02639
u769291367
u769291367
1,594,089,272
2020-07-07T02:34:32
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 5; int r = 0; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); if(a[i] == 0) { r = i + 1; } } System.out.println(r); } } ...
Main.java:12: error: cannot find symbol a[i] = sc.nextInt(); ^ symbol: variable a location: class Main Main.java:13: error: cannot find symbol if(a[i] == 0) ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02639|0
u769291367|p02639|0
codenet
Compile Error
342
v2_s578956393
s578956393
s578956393
p02639
p02639
u769291367
u769291367
1,594,089,371
2020-07-07T02:36:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 5; int r = 0; for(int i = 0; i < n; i++) { int a[i] = sc.nextInt(); if(a[i] == 0) { r = i + 1; } } System.out.println(r); } } ...
Main.java:12: error: ']' expected int a[i] = sc.nextInt(); ^ Main.java:12: error: ';' expected int a[i] = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02639|0
u769291367|p02639|0
codenet
Compile Error
346
v2_s088564639
s088564639
s088564639
p02639
p02639
u769291367
u769291367
1,594,089,587
2020-07-07T02:39:47
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] n = new int[5]; int r = 0; for(int i = 0; i < n; i++) { n[i] = sc.nextInt(); if(n[i] == 0) { r = i + 1; } } System.out.println(r); ...
Main.java:10: error: bad operand types for binary operator '<' for(int i = 0; i < n; i++) ^ first type: int second type: int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02639|0
u769291367|p02639|0
codenet
Compile Error
353
v2_s991535280
s991535280
s991535280
p02639
p02639
u769291367
u769291367
1,594,089,791
2020-07-07T02:43:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] n = new int[5]; int r = 0; for(int i = 0; i < n; i++) { n[i] = sc.nextInt(); if(n[i] == 0) { r = i + 1; } } System.out.println(r); ...
Main.java:10: error: bad operand types for binary operator '<' for(int i = 0; i < n; i++) ^ first type: int second type: int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02639|0
u769291367|p02639|0
codenet
Compile Error
365
v2_s443923476
s443923476
s443923476
p02639
p02639
u780959118
u780959118
1,595,184,338
2020-07-19T18:45:38
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); int x[] = new int[5]; for(int i=0; i<5; i++){ x[i] = in.nextInt(); if(x[i] = 0) System.out.println(i); } } }
Main.java:10: error: incompatible types: int cannot be converted to boolean if(x[i] = 0) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u780959118|p02639|0
u780959118|p02639|0
codenet
Compile Error
281
v2_s547797664
s547797664
s547797664
p02639
p02639
u791317953
u791317953
1,600,480,450
2020-09-19T01:54:10
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int res; for(int i=1; i<6; i++){ if(sc.nextInt()==0){ res = i; break; } } System.out.println(res); ...
Main.java:13: error: variable res might not have been initialized System.out.println(res); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791317953|p02639|0
u791317953|p02639|0
codenet
Compile Error
331
v2_s603934368
s603934368
s603934368
p02639
p02639
u799710027
u799710027
1,592,330,897
2020-06-16T18:08:17
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String[] s = reader.readLine().split(" "); ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u799710027|p02639|0
u799710027|p02639|0
codenet
Compile Error
498
v2_s555031897
s555031897
s555031897
p02639
p02639
u858682125
u858682125
1,592,183,077
2020-06-15T01:04:37
Main.java
import java.util.*; public static void main(String[] args){ Scanner input=new Scanner(System.input); int a; int index; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
241
v2_s525906499
s525906499
s525906499
p02639
p02639
u858682125
u858682125
1,592,183,290
2020-06-15T01:08:10
Main.java
import java.util.*; public static void main(String[] args){ Scanner input=new Scanner(System.in); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
235
v2_s501738818
s501738818
s501738818
p02639
p02639
u858682125
u858682125
1,592,183,817
2020-06-15T01:16:57
Main.java
public static void main(String[] args){ Scanner input=new Scanner(System.input); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; break; } } System.out.print(index); }
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
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
231
v2_s616737802
s616737802
s616737802
p02639
p02639
u858682125
u858682125
1,592,183,861
2020-06-15T01:17:41
Main.java
public c{ public static void main(String[] args){ Scanner input=new Scanner(System.input); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); } }
Main.java:1: error: class, interface, enum, or record expected public c{ ^ 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:13: error: class, interface, enum,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
230
v2_s013953037
s013953037
s013953037
p02639
p02639
u858682125
u858682125
1,592,183,895
2020-06-15T01:18:15
c.java
public class c{ public static void main(String[] args){ Scanner input=new Scanner(System.input); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); } }
c.java:3: error: cannot find symbol Scanner input=new Scanner(System.input); ^ symbol: class Scanner location: class c c.java:3: error: cannot find symbol Scanner input=new Scanner(System.input); ^ symbol: class Scanner location: class c c.java:3: error: cannot find symbol Scanne...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
236
v2_s625342823
s625342823
s625342823
p02639
p02639
u858682125
u858682125
1,592,183,989
2020-06-15T01:19:49
Main.java
import java.util.*; private class c{ public static void main(String[] args){ Scanner input=new Scanner(System.input); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); } }
Main.java:2: error: modifier private not allowed here private class c{ ^ Main.java:4: error: cannot find symbol Scanner input=new Scanner(System.input); ^ symbol: variable input location: class System 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
258
v2_s200849740
s200849740
s200849740
p02639
p02639
u858682125
u858682125
1,592,185,733
2020-06-15T01:48:53
Main.java
package June; import java.util.*; public static void main(String[] args){ Scanner input=new Scanner(System.in); int a=0,index=0; for(int i=0;i<5;i++){ a=input.nextInt(); if(a==0){ index=i+1; } } System.out.print(index); }
Main.java:5: 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:1: error: unnamed class should not have package declaration package June; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858682125|p02639|0
u858682125|p02639|0
codenet
Compile Error
254
v2_s681049697
s681049697
s681049697
p02639
p02639
u869510063
u869510063
1,592,964,095
2020-06-24T02:01:35
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = 0; int ans = 0; for(int i = 1; i < 6; i++) { num = scan.nextInt(); if(num == 0) { ans = i; } } System.out.println(ans); } }
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
u869510063|p02639|0
u869510063|p02639|0
codenet
Compile Error
272
v2_s209265240
s209265240
s209265240
p02639
p02639
u886450127
u886450127
1,592,183,122
2020-06-15T01:05:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); ArrayList<String> list = new ArrayList<>(); for(int cnt = 0;cnt < 5;cnt++){ list.add(sc.nextInt()); } System.out.println(list.indexOf(0) + 1); } }
Main.java:8: error: incompatible types: int cannot be converted to String list.add(sc.nextInt()); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02639|0
u886450127|p02639|0
codenet
Compile Error
300
v2_s724571095
s724571095
s724571095
p02639
p02639
u886450127
u886450127
1,592,183,328
2020-06-15T01:08:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 1; for(int cnt = 0;cnt < 5;cnt++){ if(sc.nextInt() == 0){ System.out.println(count); break; } count++ } } }
Main.java:12: error: ';' expected count++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02639|0
u886450127|p02639|0
codenet
Compile Error
317
v2_s512358568
s512358568
s512358568
p02639
p02639
u901705471
u901705471
1,592,258,771
2020-06-15T22:06:11
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); Boolean ans = false; for(int i=0; i<X; i++){ if(Y == 2*X + 4*(X-i)) ans = true } i...
Main.java:11: error: ';' expected ans = true ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u901705471|p02639|0
u901705471|p02639|0
codenet
Compile Error
421
v2_s755467603
s755467603
s755467603
p02639
p02639
u902482201
u902482201
1,592,182,887
2020-06-15T01:01:27
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x[] = new int[5] for (int i = ...
Main.java:11: error: ';' expected int x[] = new int[5] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902482201|p02639|0
u902482201|p02639|0
codenet
Compile Error
459
v2_s980949203
s980949203
s980949203
p02639
p02639
u902482201
u902482201
1,592,182,917
2020-06-15T01:01:57
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x[] = new int[5] for (int i = ...
Main.java:11: error: ';' expected int x[] = new int[5] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902482201|p02639|0
u902482201|p02639|0
codenet
Compile Error
460
v2_s190724714
s190724714
s190724714
p02639
p02639
u921044712
u921044712
1,592,682,448
2020-06-20T19:47:28
Main.java
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 0; i < 5; i++) { if(scanner.nextInt() == 0) System.out.println(i + 1); } }
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
u921044712|p02639|0
u921044712|p02639|0
codenet
Compile Error
226
v2_s905059518
s905059518
s905059518
p02639
p02639
u921044712
u921044712
1,592,682,514
2020-06-20T19:48:34
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 0; i < 5; i++) { if(scanner.nextInt() == 0) System.out.println(i + 1); } } }
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u921044712|p02639|0
u921044712|p02639|0
codenet
Compile Error
253
v2_s798998623
s798998623
s798998623
p02639
p02639
u924711195
u924711195
1,595,027,639
2020-07-17T23:13:59
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ int ans; Scanner scan = new Scanner(System.in); for(int i = 0;i < 5;i++){ if(scan.nextInt() == 0)ans = i; } System.out.println(ans); } }
Main.java:9: error: variable ans might not have been initialized System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924711195|p02639|0
u924711195|p02639|0
codenet
Compile Error
241
v2_s635507488
s635507488
s635507488
p02639
p02639
u941149933
u941149933
1,592,183,205
2020-06-15T01:06:45
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.util.*; import static sun.swing.MenuItemLayoutHelper.*; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Manan Patel *...
Main.java:8: error: package sun.swing is not visible import static sun.swing.MenuItemLayoutHelper.*; ^ (package sun.swing is declared in module java.desktop, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941149933|p02639|0
u941149933|p02639|0
codenet
Compile Error
5,988
v2_s387764650
s387764650
s387764650
p02639
p02639
u990291773
u990291773
1,592,605,065
2020-06-19T22:17:45
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc=new Scanner(System.in) int a[]=new int[5] for(int i=0;i<5;i++) { a[i]=sc.nextInt(); } for(int i=0;i<5;i++) { if(a[i]==0) { System.out.println(i+1); } } } }
Main.java:5: error: ';' expected Scanner sc=new Scanner(System.in) ^ Main.java:6: error: ';' expected int a[]=new int[5] ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990291773|p02639|0
u990291773|p02639|0
codenet
Compile Error
296
v2_s580176127
s580176127
s580176127
p02639
p02639
u991757033
u991757033
1,592,270,342
2020-06-16T01:19:02
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ int xi[]= new xi[5]; Scanner sc =new Scanner(System.in); for(int i=0;i<5;i++){ xi[i]=sc.nextint(); } for(int i=0;i<5;i++){ if(xi[i]==0){ System.out.println(i+1); break; } } } } ...
Main.java:5: error: cannot find symbol int xi[]= new xi[5]; ^ symbol: class xi location: class Main Main.java:8: error: cannot find symbol xi[i]=sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u991757033|p02639|0
u991757033|p02639|0
codenet
Compile Error
325
v2_s945426800
s945426800
s945426800
p02639
p02639
u994548286
u994548286
1,592,711,921
2020-06-21T03:58:41
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int result = 0; int[] array = new int[5]; for(int i = 0; i<5; i++) { array[i] = sc.nextInt(); if(array[i]==0) result = i+1; } ...
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
u994548286|p02639|0
u994548286|p02639|0
codenet
Compile Error
389
v2_s630785911
s630785911
s630785911
p02640
p02640
u024715024
u024715024
1,592,186,303
2020-06-15T01:58:23
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 double numX = sc.nextInt(); double numY = sc.nextInt(); double numC = (2 * numX) - (numY / 2); double numT = numX - numC; if ((numX == numC + numT) && (numY == 2 * ...
Main.java:15: error: not a statement } else ((numC >= 0) && (numT >= 0)) { ^ Main.java:15: error: ';' expected } else ((numC >= 0) && (numT >= 0)) { ^ Main.java:17: error: 'else' without 'if' } else { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024715024|p02640|0
u024715024|p02640|0
codenet
Compile Error
627
v2_s475546601
s475546601
s475546601
p02640
p02640
u053570263
u053570263
1,592,185,448
2020-06-15T01:44:08
Main.java
import java.util.*; public class Main{ public static void main(String []args){ Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); if(y%2==0) { for(int i=0;i<x;i++) { y=y/4;; } ...
Main.java:16: error: cannot find symbol if(temp==0) ^ symbol: variable temp location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u053570263|p02640|0
u053570263|p02640|0
codenet
Compile Error
448
v2_s556104000
s556104000
s556104000
p02640
p02640
u079170272
u079170272
1,592,185,967
2020-06-15T01:52:47
main.java
import java.util.*; public class main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int i=sc.nextInt(); int j=sc.nextInt(); int flag=0; for(int k=1;k<=j;k++) { if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8) { System.out.println("Yes"); flag...
main.java:11: error: illegal start of expression if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8) ^ main.java:11: error: ';' expected if((k*2+(i-k)*4)==8)||(k*4+(i-k)*2)==8) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079170272|p02640|0
u079170272|p02640|0
codenet
Compile Error
407
v2_s736939449
s736939449
s736939449
p02640
p02640
u079170272
u079170272
1,592,274,873
2020-06-16T02:34:33
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Sacnner sc=new Sacnner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int m=0; int flag=0; if(y<=x*2||y<=x*4) { for(int i=1;i<=x;i++) { int j=i*2; m=i*4; int h=y-j; ...
Main.java:6: error: cannot find symbol Sacnner sc=new Sacnner(System.in); ^ symbol: class Sacnner location: class Main Main.java:6: error: cannot find symbol Sacnner sc=new Sacnner(System.in); ^ symbol: class Sacnner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079170272|p02640|1
u079170272|p02640|1
codenet
Compile Error
557
v2_s252131225
s252131225
s252131225
p02640
p02640
u079170272
u079170272
1,592,274,992
2020-06-16T02:36:32
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Sacnner sc=new Sacnner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int m=0; int flag=0; if(y<=x*2||y<=x*4) { for(int i=1;i<=x;i++) { int j=i*2; m=i*4; int h=y-j; ...
Main.java:6: error: cannot find symbol Sacnner sc=new Sacnner(System.in); ^ symbol: class Sacnner location: class Main Main.java:6: error: cannot find symbol Sacnner sc=new Sacnner(System.in); ^ symbol: class Sacnner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079170272|p02640|1
u079170272|p02640|1
codenet
Compile Error
537
v2_s916756074
s916756074
s916756074
p02640
p02640
u092901627
u092901627
1,598,971,356
2020-09-01T14:42:36
A.java
public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if (y % 2 != 0 || y < (2*x) || y > (4*x)) { System.out.println("No"); } else { System.out.println("Yes"); } ...
A.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A A.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092901627|p02640|0
u092901627|p02640|0
codenet
Compile Error
328
v2_s284591132
s284591132
s284591132
p02640
p02640
u273396603
u273396603
1,592,185,791
2020-06-15T01:49:51
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; public class Main { public static void main (String[] args) throws IOException{ InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); Buffered...
Main.java:13: error: ')' expected if((Y-2X)%2 == 0) { ^ Main.java:13: error: ';' expected if((Y-2X)%2 == 0) { ^ Main.java:15: error: 'else' without 'if' }else ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273396603|p02640|0
u273396603|p02640|0
codenet
Compile Error
569
v2_s330702871
s330702871
s330702871
p02640
p02640
u277279760
u277279760
1,592,184,143
2020-06-15T01:22:23
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int y = scanner.nextInt(); for(int loop=0; loop<=x; loop+){ if( loop*2 + (x-loop)*4 == y ){ System.out.pr...
Main.java:10: error: illegal start of expression for(int loop=0; loop<=x; loop+){ ^ Main.java:10: error: not a statement for(int loop=0; loop<=x; loop+){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277279760|p02640|0
u277279760|p02640|0
codenet
Compile Error
424
v2_s850172678
s850172678
s850172678
p02640
p02640
u309624784
u309624784
1,592,185,342
2020-06-15T01:42:22
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int y = scan.nextInt(); scan.close(); if (y > x * 4 || y % 2 == 1) { System.out.println("No"); } else if (x > 0 && y == 0) { System.out.println("No"); } else if (x > 50) { ...
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
u309624784|p02640|0
u309624784|p02640|0
codenet
Compile Error
396
v2_s044114392
s044114392
s044114392
p02640
p02640
u309962385
u309962385
1,592,185,039
2020-06-15T01:37:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); sc.close(); if() int bb = (Y - 2 * X); System.out.println(bb); if...
Main.java:10: error: illegal start of expression if() ^ Main.java:11: error: variable declaration not allowed here int bb = (Y - 2 * X); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u309962385|p02640|0
u309962385|p02640|0
codenet
Compile Error
656
v2_s978798368
s978798368
s978798368
p02640
p02640
u321455021
u321455021
1,593,132,753
2020-06-26T00:52:33
Main.java
public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int y = scan.nextInt(); String ans = "No"; if(y%2 == 0 && y/2 >= x && y/4 <= x) { ans = "Yes"; } // for(int i=0; i<9; i++){ // // } // Arr...
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
u321455021|p02640|0
u321455021|p02640|0
codenet
Compile Error
451
v2_s301549134
s301549134
s301549134
p02640
p02640
u325545467
u325545467
1,592,183,636
2020-06-15T01:13:56
Main.java
import java.util.*; import java.lang.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int legs=sc.nextInt(); double val=((4*n)-legs)/2; int ans=Math.floor(val); if(val>0 && val-ans==0) System.out.println("Yes"); else ...
Main.java:11: error: incompatible types: possible lossy conversion from double to int int ans=Math.floor(val); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325545467|p02640|0
u325545467|p02640|0
codenet
Compile Error
360
v2_s436905476
s436905476
s436905476
p02640
p02640
u325545467
u325545467
1,592,189,829
2020-06-15T02:57:09
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); boolean f=false; for(int i=0;i<=x;i++) { int j=x-i; if(4*i+2*j==y) f=true; } if(f) System.out.println("Yes");...
Main.java:19: error: cannot find symbol System.out.pritln("No"); ^ symbol: method pritln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325545467|p02640|0
u325545467|p02640|0
codenet
Compile Error
366
v2_s873336314
s873336314
s873336314
p02640
p02640
u343545816
u343545816
1,592,184,149
2020-06-15T01:22:29
Main.java
i=lambda:map(int,input().split()) x,y=i() if (x+y)%2==1: print('Yes') else: print('No')
Main.java:1: error: class, interface, enum, or record expected i=lambda:map(int,input().split()) ^ Main.java:4: error: unclosed character literal print('Yes') ^ Main.java:4: error: unclosed character literal print('Yes') ^ Main.java:6: error: unclosed character literal print('No') ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u343545816|p02640|0
u343545816|p02640|0
codenet
Compile Error
95
v2_s337663216
s337663216
s337663216
p02640
p02640
u392769697
u392769697
1,593,064,779
2020-06-25T05:59:39
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int l=0; if(y==2*x) System.out.println("Yes"); for (int i = 0; i < x; i++) { l=2...
Main.java:12: error: ';' expected l=2*i+4(x-i); ^ Main.java:12: error: not a statement l=2*i+4(x-i); ^ Main.java:12: error: ';' expected l=2*i+4(x-i); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u392769697|p02640|0
u392769697|p02640|0
codenet
Compile Error
487
v2_s178897623
s178897623
s178897623
p02640
p02640
u392769697
u392769697
1,593,065,293
2020-06-25T06:08:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int l=0; if(y==2*x) System.out.println("Yes"); for (int i = 0; i < x; i++) { ...
Main.java:18: error: 'else' without 'if' else ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u392769697|p02640|0
u392769697|p02640|0
codenet
Compile Error
534
v2_s541867212
s541867212
s541867212
p02640
p02640
u412960991
u412960991
1,592,187,310
2020-06-15T02:15:10
Main.java
import java.io.*; import java.util.*; import java.lang.*; import java.math.*; public class Main { public static void main(String args[]) throws java.lang.Exception { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int X = sc.nextInt(); int Y = sc.nextInt(); if(Y % 2 ==...
Main.java:20: error: cannot find symbol if(Math.ceil(a) == Math.floor(x) && a >= 0) ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412960991|p02640|0
u412960991|p02640|0
codenet
Compile Error
521
v2_s436208871
s436208871
s436208871
p02640
p02640
u412960991
u412960991
1,592,187,334
2020-06-15T02:15:34
Main.java
import java.io.*; import java.util.*; import java.lang.*; import java.math.*; public class Main { public static void main(String args[]) throws java.lang.Exception { Scanner sc = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int X = sc.nextInt(); int Y = sc.nextInt(); if(Y % 2 ==...
Main.java:20: error: cannot find symbol if(Math.ceil(a) == Math.floor(x) && a >= 0) ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412960991|p02640|0
u412960991|p02640|0
codenet
Compile Error
521
v2_s009580482
s009580482
s009580482
p02640
p02640
u413742847
u413742847
1,592,184,707
2020-06-15T01:31:47
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc =new Scanner(System.in); int x=sc.nextInt(); int y=sc.nextInt(); int cr=y/4; int tur=(y-cr)/2; int sum=cr+tur; if(sum==x) System.out,println("Yes"); else System.out,println("No"); } }
Main.java:13: error: not a statement System.out,println("Yes"); ^ Main.java:13: error: ';' expected System.out,println("Yes"); ^ Main.java:15: error: not a statement System.out,println("No"); ^ Main.java:15: error: ';' expected System.out,println("No"); ^ Main.java:14: error: 'else' with...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413742847|p02640|0
u413742847|p02640|0
codenet
Compile Error
276
v2_s017743124
s017743124
s017743124
p02640
p02640
u417506212
u417506212
1,592,183,896
2020-06-15T01:18:16
Main.java
public class Main { public static void main(String[] args) { // 読み込み Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); double a = (4*X -Y)/2; if(a >= 0 && a == (int)a) { System.out.println("Yes"); } else { System.out.println("No");; } } }
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u417506212|p02640|0
u417506212|p02640|0
codenet
Compile Error
309
v2_s678586744
s678586744
s678586744
p02640
p02640
u436783461
u436783461
1,593,178,091
2020-06-26T13:28:11
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); boolean ans = false; for(int i=0;i<X+1;i++){ for(int j=X-i;j>=0;j++){ if( i*2 + j*4 == Y ){ ...
Main.java:18: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02640|0
u436783461|p02640|0
codenet
Compile Error
493
v2_s409683368
s409683368
s409683368
p02640
p02640
u483791339
u483791339
1,592,188,056
2020-06-15T02:27:36
Main.java
import java.io.*; import java.util.*; import static java.lang.System.*; import static java.lang.Math.*; public class Main { public static void main(String []args)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String []s=br.readLine().split(" "); int X=Intege...
Main.java:18: error: cannot find symbol ans="No"; ^ symbol: variable ans location: class Main Main.java:20: error: cannot find symbol out.println(ans); ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483791339|p02640|0
u483791339|p02640|0
codenet
Compile Error
456
v2_s488111710
s488111710
s488111710
p02640
p02640
u512749016
u512749016
1,593,266,724
2020-06-27T14:05:24
Main.java
#include <bits/stdc++.h> //#define int long long using namespace std; signed main() { ios_base::sync_with_stdio(0); cin.tie(0); int x, y; cin >> x >> y; if (2*x > y) { cout << "No\n"; exit(0); } y -= 2*x; if (y%2==0 && y <= x) { cout << "Yes\n"; } else { ...
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:8: error: not a statement ios_base::sync_with_stdio(0); ^ Main.java:11: error: not a statement cin >> x >> y; ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u512749016|p02640|0
u512749016|p02640|0
codenet
Compile Error
358
v2_s949032050
s949032050
s949032050
p02640
p02640
u523115706
u523115706
1,595,771,625
2020-07-26T13:53:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = (Y - 2X)/2; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected float F = (Y - 2X)/2; ^ Main.java:10: error: ';' expected float F = (Y - 2X)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
417
v2_s892566754
s892566754
s892566754
p02640
p02640
u523115706
u523115706
1,595,771,654
2020-07-26T13:54:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = ((Y - 2X)/2); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected float F = ((Y - 2X)/2); ^ Main.java:10: error: ';' expected float F = ((Y - 2X)/2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
420
v2_s037041962
s037041962
s037041962
p02640
p02640
u523115706
u523115706
1,595,771,696
2020-07-26T13:54:56
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); int F = (Y - 2X)/2; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected int F = (Y - 2X)/2; ^ Main.java:10: error: ';' expected int F = (Y - 2X)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
416
v2_s914993870
s914993870
s914993870
p02640
p02640
u523115706
u523115706
1,595,771,721
2020-07-26T13:55:21
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = (Y-2X)/2; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected float F = (Y-2X)/2; ^ Main.java:10: error: ';' expected float F = (Y-2X)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
416
v2_s331992042
s331992042
s331992042
p02640
p02640
u523115706
u523115706
1,595,771,804
2020-07-26T13:56:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = Y-2X; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ if (...
Main.java:10: error: ';' expected float F = Y-2X; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
412
v2_s063704012
s063704012
s063704012
p02640
p02640
u523115706
u523115706
1,595,771,831
2020-07-26T13:57:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = Y-2(X); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ if...
Main.java:10: error: ';' expected float F = Y-2(X); ^ Main.java:10: error: not a statement float F = Y-2(X); ^ Main.java:10: error: ';' expected float F = Y-2(X); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
414
v2_s318307142
s318307142
s318307142
p02640
p02640
u523115706
u523115706
1,595,771,885
2020-07-26T13:58:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); float F = (Y-2(X)); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected float F = (Y-2(X)); ^ Main.java:10: error: not a statement float F = (Y-2(X)); ^ Main.java:10: error: ';' expected float F = (Y-2(X)); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
416
v2_s214337616
s214337616
s214337616
p02640
p02640
u523115706
u523115706
1,595,773,369
2020-07-26T14:22:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); /* The equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y give us 2t = Y - 2X */ if ((Y-2X)%2 == 0) { System.ou...
Main.java:13: error: ')' expected if ((Y-2X)%2 == 0) { ^ Main.java:13: error: ';' expected if ((Y-2X)%2 == 0) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
385
v2_s356920339
s356920339
s356920339
p02640
p02640
u523115706
u523115706
1,595,773,578
2020-07-26T14:26:18
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); X = scan.nextInt(); Y = scan.nextInt(); int F = Y - X; /* The equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y give us 2t = Y - 2X */ if (F%2 == 0) { ...
Main.java:8: error: cannot find symbol X = scan.nextInt(); ^ symbol: variable X location: class Main Main.java:9: error: cannot find symbol Y = scan.nextInt(); ^ symbol: variable Y location: class Main Main.java:10: error: cannot find symbol int F = Y - X; ^ symbol: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
399
v2_s115586734
s115586734
s115586734
p02640
p02640
u523115706
u523115706
1,595,774,168
2020-07-26T14:36:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); int F = (Y-2X)/2; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ')' expected int F = (Y-2X)/2; ^ Main.java:10: error: ';' expected int F = (Y-2X)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
422
v2_s144459286
s144459286
s144459286
p02640
p02640
u523115706
u523115706
1,595,774,235
2020-07-26T14:37:15
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); int F = Y-2(X); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ';' expected int F = Y-2(X); ^ Main.java:10: error: not a statement int F = Y-2(X); ^ Main.java:10: error: ';' expected int F = Y-2(X); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
420
v2_s901516603
s901516603
s901516603
p02640
p02640
u523115706
u523115706
1,595,774,264
2020-07-26T14:37:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); int F = Y-2X; /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ ...
Main.java:10: error: ';' expected int F = Y-2X; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
418
v2_s696322856
s696322856
s696322856
p02640
p02640
u523115706
u523115706
1,595,774,342
2020-07-26T14:39:02
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ if ((Y-2X)%2 == ...
Main.java:13: error: ')' expected if ((Y-2X)%2 == 0) { ^ Main.java:13: error: ';' expected if ((Y-2X)%2 == 0) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
405
v2_s199350628
s199350628
s199350628
p02640
p02640
u523115706
u523115706
1,595,774,389
2020-07-26T14:39:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int y = scan.nextInt(); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ if ((y-2x)%2 == ...
Main.java:13: error: ')' expected if ((y-2x)%2 == 0) { ^ Main.java:13: error: ';' expected if ((y-2x)%2 == 0) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
405
v2_s717859927
s717859927
s717859927
p02640
p02640
u523115706
u523115706
1,595,774,794
2020-07-26T14:46:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); int Y = scan.nextInt(); /* This comes from the equations c + t = X --> 2c + 2t = 2X and 2c + 4t = Y, so 2t = Y - 2X */ if (Y>X && (4*X-...
Main.java:13: error: illegal start of expression if (Y>X && (4*X-Y) => 0 && (Y-2*X)%2 == 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u523115706|p02640|0
u523115706|p02640|0
codenet
Compile Error
429
v2_s452382604
s452382604
s452382604
p02640
p02640
u533365505
u533365505
1,592,186,061
2020-06-15T01:54:21
Main.java
import java.util.*; public class Main { public static void main(String args[])throws Exception { try { Scanner sc=new Scanner(System.in); int x,y; x=sc.nextInt(); y=sc.nextInt(); if(y%2!=0) System.out.println("No"); else { t=y/2-x; c=x-t; if(...
Main.java:15: error: cannot find symbol t=y/2-x; ^ symbol: variable t location: class Main Main.java:16: error: cannot find symbol c=x-t; ^ symbol: variable c location: class Main Main.java:16: error: cannot find symbol c=x-t; ^ symbol: variable t lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u533365505|p02640|0
u533365505|p02640|0
codenet
Compile Error
517
v2_s161519498
s161519498
s161519498
p02640
p02640
u587100042
u587100042
1,592,183,191
2020-06-15T01:06:31
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x=sc.nextInt(),y=sc.nextInt(),a,b; if(y%2==0){ System.out.println("No"); }else{ for(int i=0;i<=x;i++){ a=i; b=x-i; int f=0; if((2*a+4*b)...
Main.java:21: error: cannot find symbol if(f==0){ ^ symbol: variable f location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02640|0
u587100042|p02640|0
codenet
Compile Error
483
v2_s062433147
s062433147
s062433147
p02640
p02640
u597558557
u597558557
1,592,532,981
2020-06-19T02:16:21
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n=in.nextInt(); int k=in.nextInt(); for(int i=1;i<=n;i++) { if((k-(i*2))%4==0) { int b=(k-(i*2))/4; if((b+i)==n) { System.out....
Main.java:24: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u597558557|p02640|1
u597558557|p02640|1
codenet
Compile Error
809
v2_s340460467
s340460467
s340460467
p02640
p02640
u608332609
u608332609
1,592,185,635
2020-06-15T01:47:15
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); int sc1; //頭の数 int sc2;//足の数 int legs = sc2 % 4 if(legs % 2 ==0){ Sy...
Main.java:11: error: illegal character: '\u3000' int sc1;?//??? ^ Main.java:14: error: ';' expected int legs = sc2 % 4 ^ Main.java:20: error: illegal start of expression ] ^ Main.java:24: error: reached end of file while parsing } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02640|0
u608332609|p02640|0
codenet
Compile Error
451
v2_s701203396
s701203396
s701203396
p02640
p02640
u608332609
u608332609
1,592,185,697
2020-06-15T01:48:17
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); int sc1; //頭の数 int sc2;//足の数 int legs = sc2 % 4; if(legs % 2 ==0){ S...
Main.java:20: error: illegal start of expression ] ^ Main.java:24: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02640|0
u608332609|p02640|0
codenet
Compile Error
451
v2_s359335180
s359335180
s359335180
p02640
p02640
u608332609
u608332609
1,592,185,764
2020-06-15T01:49:24
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); int sc1; //頭の数 int sc2;//足の数 int legs = sc2 % 4; if(legs % 2 ==0){ S...
Main.java:11: error: variable sc1 is already defined in method main(String[]) int sc1; //??? ^ Main.java:12: error: variable sc2 is already defined in method main(String[]) int sc2;//??? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02640|0
u608332609|p02640|0
codenet
Compile Error
449
v2_s940941582
s940941582
s940941582
p02640
p02640
u608332609
u608332609
1,592,185,829
2020-06-15T01:50:29
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); int legs = sc2 % 4; if(legs % 2 ==0){ System.out.println("Yes"); }else{ S...
Main.java:11: error: bad operand types for binary operator '%' int legs = sc2 % 4; ^ first type: Scanner second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02640|0
u608332609|p02640|0
codenet
Compile Error
389
v2_s986608563
s986608563
s986608563
p02640
p02640
u608332609
u608332609
1,592,185,877
2020-06-15T01:51:17
Main.java
import java.util.Scanner; import java.lang.*; public class Main{ public static void main(String args[]){ Scanner sc1 = new Scanner(System.in); Scanner sc2 = new Scanner(System.in); if((sc2 % 4) % 2 ==0){ System.out.println("Yes"); }else{ System.out.println("N...
Main.java:13: error: bad operand types for binary operator '%' if((sc2 % 4) % 2 ==0){ ^ first type: Scanner second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608332609|p02640|0
u608332609|p02640|0
codenet
Compile Error
369
v2_s853287542
s853287542
s853287542
p02640
p02640
u620353602
u620353602
1,592,183,971
2020-06-15T01:19:31
Main.java
public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int animals = scanner.nextInt(); int legs = scanner.nextInt(); int cranes = (legs - 2 * animals) / 2; int turtles = animals - cranes; boolean result = true; if(turtles * 2 + cranes * 4 != legs ...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u620353602|p02640|0
u620353602|p02640|0
codenet
Compile Error
447
v2_s351746349
s351746349
s351746349
p02640
p02640
u628610666
u628610666
1,595,296,570
2020-07-21T01:56:10
Solution.java
import java.util.Scanner; public class Solution{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n; c= 2; t= 4; m= 0; a= input.nextInt(); b= input.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.ou...
Solution.java:22: error: 'else' without 'if' else { ^ Solution.java:25: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
380
v2_s317319231
s317319231
s317319231
p02640
p02640
u628610666
u628610666
1,595,296,668
2020-07-21T01:57:48
Solution.java
import java.util.Scanner; public class Solution{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n; c= 2; t= 4; m= 0; a= input.nextInt(); b= input.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.ou...
Solution.java:9: error: cannot find symbol a= input.nextInt(); ^ symbol: variable input location: class Solution Solution.java:10: error: cannot find symbol b= input.nextInt(); ^ symbol: variable input location: class Solution Solution.java:11: error: cannot find symbol for (i=0;i<=a; i++){ ^ s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
385
v2_s219886227
s219886227
s219886227
p02640
p02640
u628610666
u628610666
1,595,296,833
2020-07-21T02:00:33
Solution.java
import java.util.Scanner; public class Solution{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n,i,j; c= 2; t= 4; m= 0; a= in.nextInt(); b= in.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.out....
Solution.java:16: error: variable f might not have been initialized n= e+f; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
383
v2_s839458333
s839458333
s839458333
p02640
p02640
u628610666
u628610666
1,595,296,913
2020-07-21T02:01:53
Solution.java
import java.util.Scanner; public class Solution.java{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n; c= 2; t= 4; m= 0; a= input.nextInt(); b= input.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ Syst...
Solution.java:2: error: '{' expected public class Solution.java{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
390
v2_s481431952
s481431952
s481431952
p02640
p02640
u628610666
u628610666
1,595,297,268
2020-07-21T02:07:48
main.java
import java.util.Scanner; public class main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n; c= 2; t= 4; m= 0; a= input.nextInt(); b= input.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.out.pr...
main.java:9: error: cannot find symbol a= input.nextInt(); ^ symbol: variable input location: class main main.java:10: error: cannot find symbol b= input.nextInt(); ^ symbol: variable input location: class main main.java:11: error: cannot find symbol for (i=0;i<=a; i++){ ^ symbol: variable i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
381
v2_s282908810
s282908810
s282908810
p02640
p02640
u628610666
u628610666
1,595,297,694
2020-07-21T02:14:54
main.java
import java.util.Scanner; public class main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n,i,j; c= 2; t= 4; m= 0; a= in.nextInt(); b= in.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.out.prin...
main.java:16: error: variable f might not have been initialized n= e+f; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
379
v2_s516181444
s516181444
s516181444
p02640
p02640
u628610666
u628610666
1,595,297,751
2020-07-21T02:15:51
main.java
import java.util.Scanner; public class main{java{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n,i,j; c= 2; t= 4; m= 0; a= in.nextInt(); b= in.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.out...
main.java:2: error: <identifier> expected public class main{java{ ^ main.java:3: error: illegal start of expression public static void main( String [] args){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
384
v2_s761675636
s761675636
s761675636
p02640
p02640
u628610666
u628610666
1,595,297,967
2020-07-21T02:19:27
Main.java
import java.util.Scanner; public class Main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n,i,j; c= 2; t= 4; m= 0; a= in.nextInt(); b= in.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; } n= e+f; if (n==b){ m++; } } if (m==0){ System.out.prin...
Main.java:16: error: variable f might not have been initialized n= e+f; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
379
v2_s971571536
s971571536
s971571536
p02640
p02640
u628610666
u628610666
1,595,298,099
2020-07-21T02:21:39
Main.java
import java.util.Scanner; public class Main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,a,b,e,f,m,n,i,j; c= 2; t= 4; m= 0; a= in.nextInt(); b= in.nextInt(); for (i=0;i<=a; i++){ e= c*i; for (j= 0; j <= a; j++){ f= t*a; n= e+f; }if(n==b){ m++; } } if (m==0){ System.out.printl...
Main.java:16: error: variable n might not have been initialized }if(n==b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
377
v2_s452952786
s452952786
s452952786
p02640
p02640
u628610666
u628610666
1,595,298,577
2020-07-21T02:29:37
Main.java
import java.util.Scanner; public class Main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,X,Y,e,f,m,n,i,j; c= 2; t= 4; m= 0; X= in.nextInt(); Y= in.nextInt(); for (i=0;i<=X; i++){ e= c*i; for (j= 0; j <= X; j++){ f= t*j; n= e+f; if (n==b){ m++; } } } if (m==0){ System.out.prin...
Main.java:16: error: cannot find symbol if (n==b){ ^ symbol: variable b location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
376
v2_s579372780
s579372780
s579372780
p02640
p02640
u628610666
u628610666
1,595,300,582
2020-07-21T03:03:02
Main.java
import java.util.Scanner; public class Main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,X,Y,e,f,m,n,i,j,k; c= 2; t= 4; m= 0; X= in.nextInt(); Y= in.nextInt(); for (i=0;i<=X; i++){ e= c*i; for (j= 0; j <= X; j++){ f= t*j; n= e+f; k= i+j if (n==Y && k=X){ m++; } } } if (m==0){...
Main.java:16: error: ';' expected k= i+j ^ Main.java:26: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
390
v2_s814232946
s814232946
s814232946
p02640
p02640
u628610666
u628610666
1,595,300,641
2020-07-21T03:04:01
Main.java
import java.util.Scanner; public class Main{ public static void main( String [] args){ Scanner in= new Scanner( System.in); int c,t,X,Y,e,f,m,n,i,j,k; c= 2; t= 4; m= 0; X= in.nextInt(); Y= in.nextInt(); for (i=0;i<=X; i++){ e= c*i; for (j= 0; j <= X; j++){ f= t*j; n= e+f; k= i+j; if (n==Y && k=X){ m++; } } } if (m==0)...
Main.java:17: error: bad operand types for binary operator '&&' if (n==Y && k=X){ ^ first type: boolean second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628610666|p02640|0
u628610666|p02640|0
codenet
Compile Error
393
v2_s528378796
s528378796
s528378796
p02640
p02640
u680966822
u680966822
1,592,183,827
2020-06-15T01:17:07
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); if (y % 2 == 0) { if (x >= y / 4) { System.out.println("Yes"); } else { System.out.println("No"); } } else { System.out.println("No"); } } }
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
u680966822|p02640|0
u680966822|p02640|0
codenet
Compile Error
316
v2_s756812656
s756812656
s756812656
p02640
p02640
u761516097
u761516097
1,592,488,074
2020-06-18T13:47:54
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); sc.close(); int b = Y / 2 - X; int a = X - b; if (a < 0 || b < 0) { System.out.prin...
Main.java:13: error: illegal character: '\u3000' if (a < 0?|| b < 0) { ^ Main.java:13: error: illegal start of type if (a < 0?|| b < 0) { ^ Main.java:13: error: not a statement if (a < 0?|| b < 0) { ^ Main.java:15: error: 'else' wi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u761516097|p02640|0
u761516097|p02640|0
codenet
Compile Error
526
v2_s343909840
s343909840
s343909840
p02640
p02640
u769291367
u769291367
1,594,160,973
2020-07-07T22:29:33
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int d = Y - (2 * x); if(d >= 0 && d % 2 == 0 && (d / 2) <= 0) { System.out.println("Yes"); } else ...
Main.java:10: error: cannot find symbol int d = Y - (2 * x); ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02640|0
u769291367|p02640|0
codenet
Compile Error
374
v2_s568819392
s568819392
s568819392
p02640
p02640
u769291367
u769291367
1,594,161,137
2020-07-07T22:32:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int d = Y - (2 * X); if(d >= 0 && d % 2 == 0 && (d / 2) <= x) { System.out.println("Yes"); } else ...
Main.java:12: error: cannot find symbol if(d >= 0 && d % 2 == 0 && (d / 2) <= x) ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02640|0
u769291367|p02640|0
codenet
Compile Error
374
v2_s148717571
s148717571
s148717571
p02640
p02640
u813895735
u813895735
1,598,146,846
2020-08-23T01:40:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String result = 'No'; if ((y%2 == 0) && (y/2 <= x) && (y/4 >= x)) { result = 'Yes'; } System.out.println(res...
Main.java:11: error: unclosed character literal String result = 'No'; ^ Main.java:11: error: unclosed character literal String result = 'No'; ^ Main.java:11: error: not a statement String result = 'No'; ^ Main.java:13: error: unclosed characte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02640|0
u813895735|p02640|0
codenet
Compile Error
332
v2_s019588401
s019588401
s019588401
p02640
p02640
u813895735
u813895735
1,598,147,000
2020-08-23T01:43:20
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); String result = ”No”; if ((y%2 == 0) && (y/2 <= x) && (y/4 >= x)) { result = ”Yes”; } System.out.println(res...
Main.java:11: error: illegal character: '\u201d' String result = ?No?; ^ Main.java:11: error: illegal character: '\u201d' String result = ?No?; ^ Main.java:11: error: not a statement String result = ?No?; ^ Main.java:13: error: illegal characte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u813895735|p02640|0
u813895735|p02640|0
codenet
Compile Error
340
v2_s769337121
s769337121
s769337121
p02640
p02640
u822502291
u822502291
1,592,273,574
2020-06-16T02:12:54
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n=0; int m=0; int bird=2; int tirtle=4; int sum=scanner.nextInt(); int legs=scanner.nextInt(); for(int i=0;i<=sum;i++) { n=bird*i; m=tirtle*(sum-i); if(n+m==legs)...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u822502291|p02640|0
u822502291|p02640|0
codenet
Compile Error
428