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_s397456461
s397456461
s397456461
p03351
p03351
u073606136
u073606136
1,588,440,062
2020-05-02T17:21:02
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next(); int b = sc.next(); int c = sc.next(); int d = sc.next(); if(b - a <= d && c - b <= d){ Syst...
Main.java:6: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int b = sc.next(); ^ Main.java:8: error: incompatible types: String canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p03351|0
u073606136|p03351|0
codenet
Compile Error
431
v2_s203007495
s203007495
s203007495
p03351
p03351
u136378781
u136378781
1,526,174,139
2018-05-13T01:15:39
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); int d = scanner.nextInt(); if (Math.abs(a - c) <= d){ System.ou...
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136378781|p03351|0
u136378781|p03351|0
codenet
Compile Error
502
v2_s858810504
s858810504
s858810504
p03351
p03351
u136378781
u136378781
1,526,174,173
2018-05-13T01:16:13
Main.java
class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); int d = scanner.nextInt(); if (Math.abs(a - c) <= d){ System.out.print("Yes")...
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
u136378781|p03351|0
u136378781|p03351|0
codenet
Compile Error
490
v2_s874809804
s874809804
s874809804
p03351
p03351
u185044036
u185044036
1,526,177,909
2018-05-13T02:18:29
Main.java
public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if(Math.abs(a - c) <= d || (Math.abs(a - b) <= d && Math.abs(c - b) <= d)) { Sy...
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
u185044036|p03351|0
u185044036|p03351|0
codenet
Compile Error
396
v2_s331071250
s331071250
s331071250
p03351
p03351
u188396343
u188396343
1,579,538,450
2020-01-20T16:40:50
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin >> a >> b >> c >> d; if(abs(c-a)<=d){ cout << "Yes"; }else{ if(abs(b-a)<=d&&abs(c-b)<=d&&((b<=a&&b>=c)||(b>=a&&b<=c))){ cout << "Yes"; }else{ cout << "NO"; } } }
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:6: error: not a statement cin >> a >> b >> c >> d; ^ Main.java:8: error: not a statement cout << "Yes"; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03351|0
u188396343|p03351|0
codenet
Compile Error
277
v2_s704338205
s704338205
s704338205
p03351
p03351
u200268153
u200268153
1,526,183,674
2018-05-13T03:54:34
Main.java
import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Main { private static final Scanner scan = new Scanner(System.in); public static void main(String[] args) { String[] arrItems = scan.nextLine().split(" "); int a =...
Main.java:16: error: incompatible types: possible lossy conversion from long to int int a = Long.parseLong(arrItems[0].trim()); ^ Main.java:17: error: incompatible types: possible lossy conversion from long to int int b = Long.parseLong(arrItems[1].trim()); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200268153|p03351|0
u200268153|p03351|0
codenet
Compile Error
794
v2_s410505233
s410505233
s410505233
p03351
p03351
u434662823
u434662823
1,527,312,913
2018-05-26T05:35:13
Main.java
�������5�1 � �� �� �� ���� �� � �!�"�#�<init>�()V�Code�LineNumberTable�main�([Ljava/lang/String;)V� StackMapTable�$�%� SourceFile� Abc97a.java � � �java/util/Scanner�& �'�( � �) �*�+�Yes�No �,�-�. �/�0�Abc97a�java/lang/Object�[Ljava/lang/String;�java/lang/String�java/...
Main.java:1: error: illegal character: '\ufffd' ???????5?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????5?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????5?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????5?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????5?1 ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03351|0
u434662823|p03351|0
codenet
Compile Error
1,184
v2_s133910341
s133910341
s133910341
p03351
p03351
u451301702
u451301702
1,526,412,856
2018-05-15T19:34:16
Main.java
public class Main { public static void main(String[] args) { int a,b,c,d; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); d = sc.nextInt(); if(juge(a,c,d)) { System.out.println("Yes"); }else if(juge(a,b,d)&&juge(b,c,d)) { System.out.println("Yes"); }e...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451301702|p03351|0
u451301702|p03351|0
codenet
Compile Error
489
v2_s716559723
s716559723
s716559723
p03351
p03351
u461321601
u461321601
1,570,468,016
2019-10-07T17:06:56
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if (Math.abs(b - a) + Math.abs(c - b) <= d  || Math.abs(c - a...
Main.java:11: error: illegal character: '\u3000' if (Math.abs(b - a) + Math.abs(c - b) <= d? || Math.abs(c - a) <= d * 2) { ^ Main.java:11: error: not a statement if (Math.abs(b - a) + Math.abs(c - b) <= d? || Math.abs(c - a) <= d * 2) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461321601|p03351|0
u461321601|p03351|0
codenet
Compile Error
465
v2_s617186973
s617186973
s617186973
p03351
p03351
u499381410
u499381410
1,593,548,652
2020-06-30T20:24:12
Main.java
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION; import java.io.CharArrayReader; import java.lang.reflect.Array; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), d = s...
Main.java:1: error: package org.omg.PortableInterceptor does not exist import org.omg.PortableInterceptor.SYSTEM_EXCEPTION; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499381410|p03351|0
u499381410|p03351|0
codenet
Compile Error
531
v2_s162690247
s162690247
s162690247
p03351
p03351
u562120243
u562120243
1,526,177,714
2018-05-13T02:15:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if(b-a+...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u562120243|p03351|0
u562120243|p03351|0
codenet
Compile Error
446
v2_s353398390
s353398390
s353398390
p03351
p03351
u562120243
u562120243
1,526,177,770
2018-05-13T02:16:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if(b-a+...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u562120243|p03351|0
u562120243|p03351|0
codenet
Compile Error
452
v2_s900793236
s900793236
s900793236
p03351
p03351
u562120243
u562120243
1,526,177,811
2018-05-13T02:16:51
Main.java
public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if(b-a+c-b <= d*2 || c-a <= d...
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
u562120243|p03351|0
u562120243|p03351|0
codenet
Compile Error
432
v2_s131772526
s131772526
s131772526
p03351
p03351
u582940224
u582940224
1,570,395,742
2019-10-06T21:02:22
Main.java
import java.util.Scanner; class Main { public static void main(String args[]){ int a,b,c,d; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); d = sc.nextInt(); if ((b-a<=d && a-b<=d && c-b<=d && b-c<=d) || (c-a<=d && a-c<=d){ System.out.print("Yes"); }else...
Main.java:13: error: ')' expected if ((b-a<=d && a-b<=d && c-b<=d && b-c<=d) || (c-a<=d && a-c<=d){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03351|0
u582940224|p03351|0
codenet
Compile Error
370
v2_s341125735
s341125735
s341125735
p03351
p03351
u646483356
u646483356
1,544,388,499
2018-12-09T20:48:19
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 c = sc.nextInt(); int d = sc.nextInt(); if(c-a=<d){ System.out.println("Yes"); } else ...
Main.java:12: error: > or ',' expected if(c-a=<d){ ^ Main.java:14: error: > or ',' expected } else if(b-a=<d && c-b=<d){ ^ Main.java:14: error: > or ',' expected } else if(b-a=<d && c-b=<d){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03351|0
u646483356|p03351|0
codenet
Compile Error
446
v2_s809509529
s809509529
s809509529
p03351
p03351
u646483356
u646483356
1,550,124,654
2019-02-14T06:10:54
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 c = sc.nextInt(); int d = sc.nextInt(); if(b-a<=d&&c-b<=d){System.out.println("Yes");} else if(c-a<...
Main.java:12: error: '(' expected else if{System.out.println("No");} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u646483356|p03351|1
u646483356|p03351|1
codenet
Compile Error
401
v2_s079031947
s079031947
s079031947
p03351
p03351
u659156129
u659156129
1,594,040,966
2020-07-06T13:09:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner scn = new Scanner(System.in); int a = scn.nextInt(); int b = scn.nextInt(); int c = scn.nextInt(); int d = scn.nextInt(); int x = Math.abs(b-a); int y = Math.abs(c-b); int z = Math.abs(c-a); ...
Main.java:20: error: incompatible types: int cannot be converted to boolean if(check=1){ ^ Main.java:23: error: incompatible types: int cannot be converted to boolean if(check=0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03351|0
u659156129|p03351|0
codenet
Compile Error
561
v2_s711261257
s711261257
s711261257
p03351
p03351
u676101468
u676101468
1,526,175,203
2018-05-13T01:33:23
Main.java
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); //A public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if(b+c-2*a>2d) System.out.println("Yes"); else System.out.println("No"); } }
Main.java:7: error: non-static variable sc cannot be referenced from a static context int a = sc.nextInt(); ^ Main.java:8: error: non-static variable sc cannot be referenced from a static context int b = sc.nextInt(); ^ Main.java:9: error: non-static variable sc cannot be referenced from a stati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676101468|p03351|0
u676101468|p03351|0
codenet
Compile Error
319
v2_s173218905
s173218905
s173218905
p03351
p03351
u676101468
u676101468
1,526,176,014
2018-05-13T01:46:54
Main.java
import java.util.Scanner; public class Main { public static Scanner sc = new Scanner(System.in); //A public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if((Math.abs(b - a )<d && Math.abs(c-b)< d)||Math.abs(c-a) < d) System.ou...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676101468|p03351|0
u676101468|p03351|0
codenet
Compile Error
378
v2_s566079025
s566079025
s566079025
p03351
p03351
u772563415
u772563415
1,559,840,459
2019-06-06T17:00:59
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x=sc.nextInt(); for(;x>1;x--) { for(int i=2;i < x; i++) { int n = i; if(n*n > x) break; while(n < x) { n *= n; if(n==x) { System.out.println(x); return; } } } }...
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
u772563415|p03351|1
u772563415|p03351|1
codenet
Compile Error
351
v2_s066507997
s066507997
s066507997
p03351
p03351
u784448849
u784448849
1,544,069,360
2018-12-06T04:09:20
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { solve(sc); } } public static void solve(Scanner sc) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); ...
Main.java:17: error: cannot find symbol } else if (Math.abs(a - b) <= d && MAth.abs(b - c) <= d) { ^ symbol: variable MAth location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03351|0
u784448849|p03351|0
codenet
Compile Error
601
v2_s059693315
s059693315
s059693315
p03351
p03351
u834431693
u834431693
1,591,364,762
2020-06-05T13:46:02
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 = sc.nextInt(); int d = sc.nextInt(); if((abs(a-c)<=d)||((abs(a-b)<=d)&&(abs(b-c)))){ Syst...
Main.java:11: error: cannot find symbol if((abs(a-c)<=d)||((abs(a-b)<=d)&&(abs(b-c)))){ ^ symbol: method abs(int) location: class Main Main.java:11: error: cannot find symbol if((abs(a-c)<=d)||((abs(a-b)<=d)&&(abs(b-c)))){ ^ symbol: method abs(int) locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p03351|0
u834431693|p03351|0
codenet
Compile Error
421
v2_s111127276
s111127276
s111127276
p03351
p03351
u931462782
u931462782
1,526,173,669
2018-05-13T01:07:49
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 c = sc.nextInt(); int d = sc.nextInt(); String ans; if (c-a==d || a-c==d){ ans = "Yes"; } else if ((c+b)-a==d || a-(c+b)==d){ ans = "Yes"; }...
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
u931462782|p03351|0
u931462782|p03351|0
codenet
Compile Error
396
v2_s195479201
s195479201
s195479201
p03351
p03351
u931462782
u931462782
1,526,174,046
2018-05-13T01:14:06
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 c = sc.nextInt(); int d = sc.nextInt(); String ans; if (c-a<=d || a-c<=d){ ans = "Yes"; } else if (a < b && b < c){ if ((c+b)-a==d || a-(c+b)=...
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
u931462782|p03351|0
u931462782|p03351|0
codenet
Compile Error
453
v2_s751831087
s751831087
s751831087
p03351
p03351
u931462782
u931462782
1,526,182,418
2018-05-13T03:33:38
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 c = sc.nextInt(); int d = sc.nextInt(); String ans; if (a == c) { ans = "Yes"; } else if (a < c){ if (c-a <= d){ ans = "Yes"; } else if ...
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
u931462782|p03351|0
u931462782|p03351|0
codenet
Compile Error
741
v2_s686106186
s686106186
s686106186
p03351
p03351
u934782869
u934782869
1,596,890,023
2020-08-08T12:33:43
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 c = sc.nextInt(); int d = sc.nextInt(); int aa = Math.abs(a - b); int bb = Math.abs(b - c); if(aa <= d &&...
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
u934782869|p03351|0
u934782869|p03351|0
codenet
Compile Error
403
v2_s801144928
s801144928
s801144928
p03352
p03352
u028413707
u028413707
1,526,765,731
2018-05-19T21:35:31
Main.java
X = int(input()) a = 1 b = 2 c = 0 if X = 1: print(X) else: while b < 10: while a < 32: d = a**b if d > c and d < X: c = d a += 1 b +=1 print(c)
Main.java:1: error: class, interface, enum, or record expected X = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u028413707|p03352|0
u028413707|p03352|0
codenet
Compile Error
232
v2_s051721536
s051721536
s051721536
p03352
p03352
u033343781
u033343781
1,526,176,224
2018-05-13T01:50:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); List<Integer> expList = new ArrayList<>(); for (int i=1; i<=Math.sqrt(X); i++) { for (int j=2; j<10; j++) { if (Math.pow(i, j)<=X) { expList.add(Math.pow(i, j...
Main.java:12: error: incompatible types: double cannot be converted to Integer expList.add(Math.pow(i, j)); ^ 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
u033343781|p03352|0
u033343781|p03352|0
codenet
Compile Error
428
v2_s507177905
s507177905
s507177905
p03352
p03352
u110115790
u110115790
1,570,455,192
2019-10-07T13:33:12
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { int num; Scanner sc = new Scanner(System.in); System.err.print("num: "); num = sc.nextInt(); int temporaryNum = 1; while (num >= temporaryNum) { for (int i = 1; Math.pow(i, 2) <= num; i++) { for (...
Main.java:17: error: incompatible types: possible lossy conversion from double to int temporaryNum = Math.pow(i, n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110115790|p03352|0
u110115790|p03352|0
codenet
Compile Error
531
v2_s413933254
s413933254
s413933254
p03352
p03352
u136378781
u136378781
1,526,175,204
2018-05-13T01:33:24
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int X = scanner.nextInt(); int max = 1; for (int x = X / 2; x > 1; x--) { for (int y = X / 2; y > 1; y--) { double pow = Math.pow((do...
Main.java:11: error: > or ',' expected if (pow > max && pow =< X) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136378781|p03352|0
u136378781|p03352|0
codenet
Compile Error
509
v2_s116220544
s116220544
s116220544
p03352
p03352
u140306344
u140306344
1,526,173,940
2018-05-13T01:12:20
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new String...
Main.java:19: error: variable m is already defined in method main(String[]) int m = m * i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140306344|p03352|0
u140306344|p03352|0
codenet
Compile Error
621
v2_s941258895
s941258895
s941258895
p03352
p03352
u200268153
u200268153
1,526,184,414
2018-05-13T04:06:54
Main.java
import java.io.*; import java.math.*; import java.text.*; import java.util.*; import java.util.regex.*; public class Main { private static final Scanner scan = new Scanner(System.in); public static void main(String[] args) { int x=Integer.parseInt(scan.nextLine()); float f=Math.sqrt(x); int...
Main.java:13: error: incompatible types: possible lossy conversion from double to float float f=Math.sqrt(x); ^ Main.java:14: error: incompatible types: possible lossy conversion from double to int int d= Math.floor(f); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200268153|p03352|0
u200268153|p03352|0
codenet
Compile Error
380
v2_s324548083
s324548083
s324548083
p03352
p03352
u233586402
u233586402
1,526,181,878
2018-05-13T03:24:38
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 i = 2; int ans = 0; if(X == 1){ System.out.println("1"); }else{ while(i*i <= X){ int tmp = i*i; while(tmp <= X){ tmp*=i; } tmp /= i; ...
Main.java:27: error: unnamed classes are a preview feature and are disabled by default. int X = sc.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:30: error: class, interface, enum, or record expected if(X == 1){ ^ Main.java:32: error: class, interface, enum, or record expected }else{ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233586402|p03352|0
u233586402|p03352|0
codenet
Compile Error
683
v2_s969280139
s969280139
s969280139
p03352
p03352
u371791265
u371791265
1,593,711,575
2020-07-02T17:39:35
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); //べき乗数を探す for(int i=X;i>0;i++){ if(judge(i)){ break; } } //べき乗数かどうか public static boolean judge(int n){ for(int i=1;i<n;i++){ ...
Main.java:13: error: illegal start of expression public static boolean judge(int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
565
v2_s152294829
s152294829
s152294829
p03352
p03352
u371791265
u371791265
1,593,711,916
2020-07-02T17:45:16
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); //べき乗数を探す for(int i=X;i>0;i++){ if(judge(i)){ break; } } //べき乗数かどうか private static boolean judge(int n){ for(int i=1;i<n;i++)...
Main.java:13: error: illegal start of expression private static boolean judge(int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
566
v2_s986415983
s986415983
s986415983
p03352
p03352
u371791265
u371791265
1,593,711,983
2020-07-02T17:46:23
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); //べき乗数を探す for(int i=X;i>0;i++){ if(judge(i)){ break; } }System.out.println(i); } //べき乗数かどうか private static boolean judge(int n){ ...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
561
v2_s573535048
s573535048
s573535048
p03352
p03352
u371791265
u371791265
1,593,712,072
2020-07-02T17:47:52
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); //べき乗数を探す for(int i=X;i>0;i++){ if(judge(i)){ break; } } System.out.println(i); } //べき乗数かどうか private static boolean judge(int...
Main.java:12: error: cannot find symbol System.out.println(i); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
576
v2_s170440904
s170440904
s170440904
p03352
p03352
u371791265
u371791265
1,593,712,123
2020-07-02T17:48:43
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 i=0; //べき乗数を探す for(i=X;i>0;i++){ if(judge(i)){ break; } } System.out.println(i); } //べき乗数かどうか private static boolean ...
Main.java:27: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
585
v2_s985671106
s985671106
s985671106
p03352
p03352
u371791265
u371791265
1,593,721,669
2020-07-02T20:27:49
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 ans = 1; for(int i=2;ans<x;i++){ for(int j=1;j<=x;j++){ ans = Math.pow(i,j); } } System.out.println(ans); } }
Main.java:10: error: incompatible types: possible lossy conversion from double to int ans = Math.pow(i,j); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
307
v2_s846639948
s846639948
s846639948
p03352
p03352
u371791265
u371791265
1,593,722,141
2020-07-02T20:35:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int b; int p; if (b == X){ System.out.println(1); return; } int max = 4; ...
Main.java:16: error: variable max is already defined in method main(String[]) int max = (int) Math.pow(b,p); ^ Main.java:17: error: cannot find symbol if(expo > X) { ^ symbol: variable expo location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
603
v2_s082477243
s082477243
s082477243
p03352
p03352
u371791265
u371791265
1,593,722,210
2020-07-02T20:36:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int b; int p; if (b == X){ System.out.println(1); return; } int max = 4; ...
Main.java:9: error: variable b might not have been initialized if (b == X){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03352|0
u371791265|p03352|0
codenet
Compile Error
571
v2_s273792963
s273792963
s273792963
p03352
p03352
u461321601
u461321601
1,570,649,298
2019-10-09T19:28:18
Main.java
import java.util.Scanner; class Rp1ABC097B { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int g = 0; for (int b = 1; a <= x; a++) { for (int p = 2; b <= x; b++) { if (a * b > x) { ...
Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Rp1ABC097B Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Rp1ABC097B ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461321601|p03352|0
u461321601|p03352|0
codenet
Compile Error
494
v2_s517060267
s517060267
s517060267
p03352
p03352
u461321601
u461321601
1,570,649,336
2019-10-09T19:28:56
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int g = 0; for (int b = 1; a <= x; a++) { for (int p = 2; b <= x; b++) { if (a * b > x) { break;...
Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Main Main.java:10...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461321601|p03352|0
u461321601|p03352|0
codenet
Compile Error
488
v2_s587830940
s587830940
s587830940
p03352
p03352
u461321601
u461321601
1,570,649,411
2019-10-09T19:30:11
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int g = 0; for (int b = 1; a <= x; a++) { for (int p = 2; b <= x; b++) { if (a * b > x) { break;...
Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol for (int b = 1; a <= x; a++) { ^ symbol: variable a location: class Main Main.java:10...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461321601|p03352|0
u461321601|p03352|0
codenet
Compile Error
488
v2_s748486659
s748486659
s748486659
p03352
p03352
u505420467
u505420467
1,547,782,460
2019-01-18T03:34:20
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int x = stdIn.nextInt() int a = 0, b, p, i, t; for(int b = 1;b <= x;b++) { int t = b; for(int p = 2;p <= x;p++) { int t *= b; if(t <=x && a < t) a = t; } } if(x ...
Main.java:6: error: ';' expected int x = stdIn.nextInt() ^ Main.java:11: error: ';' expected int t *= b; ^ Main.java:11: error: not a statement int t *= b; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505420467|p03352|0
u505420467|p03352|0
codenet
Compile Error
361
v2_s966438900
s966438900
s966438900
p03352
p03352
u534918612
u534918612
1,528,133,385
2018-06-04T17:29:45
Main.java
mport java.util.*; public class Main{ public static void main(String[] args) { Scanner scn=new Scanner(System.in); int n=scn.nextInt(); while(n!=0){ double a=Math.sqrt((double)n); if(n%a==0){ System.out.println(n); break; ...
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
u534918612|p03352|0
u534918612|p03352|0
codenet
Compile Error
358
v2_s835102918
s835102918
s835102918
p03352
p03352
u582940224
u582940224
1,581,393,018
2020-02-11T03:50:18
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ int x,y,i,j; Scanner sc = new Scanner(System.in); x = sc.nextInt(); i = j = 0; while(true){ if (i * j <= x && x > y) y = x; else break; j++; } } }
Main.java:12: error: variable y might not have been initialized if (i * j <= x && x > y) y = x; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|0
u582940224|p03352|0
codenet
Compile Error
251
v2_s463314292
s463314292
s463314292
p03352
p03352
u582940224
u582940224
1,581,394,009
2020-02-11T04:06:49
Main.java
import java.util.scanner; class Main{ public static void main(String args[]){ int x, a, b; Scanner sc = new Scanner(System.in); x = sc.nextInt(); b = x; while(b > 2) { b -= 1; a = b; while(a > 0) { a -= b; if(a == 0) { System.out.println(b); } } } } }
Main.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|0
u582940224|p03352|0
codenet
Compile Error
295
v2_s344911531
s344911531
s344911531
p03352
p03352
u582940224
u582940224
1,583,185,757
2020-03-02T21:49:17
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ int x, a, b, c; int n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); if(x == 1){ System.out.print(1); return; } for(int i = 2; i < 34; i++){ b = i; while(b < x)){ b *= b; } if(n < b){ n =...
Main.java:15: error: illegal start of expression while(b < x)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|1
u582940224|p03352|1
codenet
Compile Error
360
v2_s295182259
s295182259
s295182259
p03352
p03352
u582940224
u582940224
1,583,185,975
2020-03-02T21:52:55
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ int x, a, b, c; int n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); if(x == 1){ System.out.print(1); return; } for(int i = 2; i < 34; i++){ b = i; while(b *= b < x){ } if(n < b){ n = b; }...
Main.java:15: error: bad operand types for binary operator '*' while(b *= b < x){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|1
u582940224|p03352|1
codenet
Compile Error
352
v2_s168431132
s168431132
s168431132
p03352
p03352
u582940224
u582940224
1,583,186,587
2020-03-02T22:03:07
Main.java
import java.util.Scanner; class test{ public static void main(String args[]){ int x, a, b, c; int n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); if(x == 1){ System.out.print(1); return; } for(int i = 2; i < 34; i++){ b = i; while(b * b < x){ b *= b; if(n =< ...
Main.java:17: error: > or ',' expected if(n =< b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|1
u582940224|p03352|1
codenet
Compile Error
381
v2_s035919323
s035919323
s035919323
p03352
p03352
u582940224
u582940224
1,583,186,720
2020-03-02T22:05:20
Main.java
import java.util.Scanner; class test{ public static void main(String args[]){ int x, a, b, c; int n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); if(x == 1){ System.out.print(1); return; } for(int i = 2; i < 34; i++){ b = i; while(b * b =< x){ b *= b; if(n =<...
Main.java:15: error: > or ',' expected while(b * b =< x){ ^ Main.java:17: error: > or ',' expected if(n =< b){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|1
u582940224|p03352|1
codenet
Compile Error
382
v2_s261488340
s261488340
s261488340
p03352
p03352
u582940224
u582940224
1,583,186,740
2020-03-02T22:05:40
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ int x, a, b, c; int n = 1; Scanner sc = new Scanner(System.in); x = sc.nextInt(); if(x == 1){ System.out.print(1); return; } for(int i = 2; i < 34; i++){ b = i; while(b * b =< x){ b *= b; if(n =<...
Main.java:15: error: > or ',' expected while(b * b =< x){ ^ Main.java:17: error: > or ',' expected if(n =< b){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u582940224|p03352|1
u582940224|p03352|1
codenet
Compile Error
382
v2_s096434566
s096434566
s096434566
p03352
p03352
u650591877
u650591877
1,562,459,057
2019-07-07T00:24:17
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int ans = 0; for (int i = 1; i < x; i++) { if (Math.pow(i,2) <= x) { ans = Math.pow(i,2)...
Main.java:12: error: incompatible types: possible lossy conversion from double to int ans = Math.pow(i,2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650591877|p03352|0
u650591877|p03352|0
codenet
Compile Error
412
v2_s559870836
s559870836
s559870836
p03352
p03352
u659156129
u659156129
1,598,904,603
2020-08-31T20:10:03
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int max = 1; for(int i=2; i*i<=x; i++){ int num = i; while (num <= x) { num *= i; } num /= i; max = Math.max(...
Main.java:8: error: cannot find symbol for(int i=2; i*i<=x; i++){ ^ symbol: variable x location: class Main Main.java:10: error: cannot find symbol while (num <= x) { ^ symbol: variable x location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03352|0
u659156129|p03352|0
codenet
Compile Error
378
v2_s253764128
s253764128
s253764128
p03352
p03352
u733054042
u733054042
1,526,691,373
2018-05-19T00:56:13
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { int X; int Y; do{ Scanner stdIn= new Scanner(System.in); X = stdIn.nextInt(); }while(X<1||5000<X); for(int i =0;i*i<=X;i++){ Y=i*i; } System.out.println(Y); } }
Main.java:15: error: variable Y might not have been initialized System.out.println(Y); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u733054042|p03352|0
u733054042|p03352|0
codenet
Compile Error
275
v2_s566471498
s566471498
s566471498
p03352
p03352
u800780376
u800780376
1,557,863,877
2019-05-14T19:57:57
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int X = Integer.parseInt(br.readLine()); int[] prime = {2,3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97 }; Lis...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800780376|p03352|0
u800780376|p03352|0
codenet
Compile Error
642
v2_s696986493
s696986493
s696986493
p03352
p03352
u893373443
u893373443
1,529,035,568
2018-06-15T04:06:08
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 ans = 0; int i = 0; while (true) { i++; if (!(int)Math.pow(i, 2) > X) { break; } else { ans = (int)Math.pow(i, 2); } } System.out.pri...
Main.java:12: error: bad operand type int for unary operator '!' if (!(int)Math.pow(i, 2) > X) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u893373443|p03352|0
u893373443|p03352|0
codenet
Compile Error
336
v2_s811824570
s811824570
s811824570
p03352
p03352
u918923596
u918923596
1,593,623,255
2020-07-01T17:07:35
Main.java
import java.util.*; public class Main{ public static void main (String []args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i = 0; i < N; i++){ int num = i * i; while(num =< N){ num *= i; } } System.out.println(num); } }
Main.java:11: error: > or ',' expected while(num =< N){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p03352|0
u918923596|p03352|0
codenet
Compile Error
313
v2_s923646958
s923646958
s923646958
p03352
p03352
u934782869
u934782869
1,596,891,161
2020-08-08T12:52:41
Main.java
mport java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); ArrayList<Integer> list = new ArrayList<>(); list.add(1); for (int i = ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.ArrayList; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.Collections; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934782869|p03352|0
u934782869|p03352|0
codenet
Compile Error
663
v2_s589747936
s589747936
s589747936
p03353
p03353
u091010228
u091010228
1,558,616,263
2019-05-23T12:57:43
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { static ArrayList<String> list = new ArrayList<>(); static String s; static int N; static String[] array; public static void main(String[] args) { Scanner sc = new Scanner(System.in); s = sc.next(); N = sc.nextInt(); array = new Str...
Main.java:25: error: illegal start of expression go(s + array[start], ); ^ Main.java:26: error: ';' expected go() ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u091010228|p03353|1
u091010228|p03353|1
codenet
Compile Error
546
v2_s644856220
s644856220
s644856220
p03353
p03353
u114053864
u114053864
1,595,617,299
2020-07-24T19:01:39
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String s = scan.next(); int k = scan.nextInt(); HashSet<String> a = new HashSet<String>(); for (int i=1;i<=Math.min(k,s.length());i++){ for (int...
Main.java:12: error: ')' or ',' expected a.add(s.substring(j,j+i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114053864|p03353|0
u114053864|p03353|0
codenet
Compile Error
551
v2_s654934145
s654934145
s654934145
p03353
p03353
u183509493
u183509493
1,526,175,205
2018-05-13T01:33:25
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); String s = sc.next(); int l = sc.nextInt(); List<String> list = new ArrayList<>(l+1); for (int i = 0;...
Main.java:34: error: <identifier> expected int ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u183509493|p03353|0
u183509493|p03353|0
codenet
Compile Error
3,406
v2_s422113078
s422113078
s422113078
p03353
p03353
u273816974
u273816974
1,560,037,268
2019-06-08T23:41:08
Main.java
import java.util.*; public class Main { static int k; static set<String> set; public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); String str = sc.next(); k = sc.nextInt(); set = new TreeSet<String>(); ...
Main.java:5: error: cannot find symbol static set<String> set; ^ symbol: class set location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p03353|0
u273816974|p03353|0
codenet
Compile Error
1,391
v2_s883063449
s883063449
s883063449
p03353
p03353
u409872261
u409872261
1,580,417,314
2020-01-30T20:48:34
Main.java
#include <algorithm> #include<stdio.h> #include <cstdio> #include <iostream> #include <iomanip> #include <string> #include <algorithm> #include <vector> #include <math.h> #include <stack> #include <queue> #include<map> #include <set> #include<math.h> using namespace std; #define int long long #define ll long long #defi...
Main.java:1: error: illegal character: '#' #include <algorithm> ^ Main.java:2: error: illegal character: '#' #include<stdio.h> ^ Main.java:3: error: illegal character: '#' #include <cstdio> ^ Main.java:4: error: illegal character: '#' #include <iostream> ^ Main.java:5: error: illegal character: '#' #include <iomanip> ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u409872261|p03353|0
u409872261|p03353|0
codenet
Compile Error
2,564
v2_s945631171
s945631171
s945631171
p03353
p03353
u480612744
u480612744
1,531,089,597
2018-07-08T22:39:57
Substring.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.*; public class Substring { int[] inputArray; Set<String> set = new HashSet<>(); public static void main(String[] args) throws IOException { new ...
Substring.java:13: error: cannot find symbol new Main().run(); ^ symbol: class Main location: class Substring 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480612744|p03353|0
u480612744|p03353|0
codenet
Compile Error
1,288
v2_s211914884
s211914884
s211914884
p03353
p03353
u552502395
u552502395
1,531,094,974
2018-07-09T00:09:34
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.Scanner; import util.Utils; public class Main { public static void main(String args[]) { try (Scanner in = new Scanner(System.in)) { String s = in.nextLine(); int K = Integer.parseI...
Main.java:6: error: package util does not exist import util.Utils; ^ Main.java:53: error: cannot find symbol Utils.debug(subs2); ^ symbol: variable Utils location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u552502395|p03353|0
u552502395|p03353|0
codenet
Compile Error
1,838
v2_s553148520
s553148520
s553148520
p03353
p03353
u861857310
u861857310
1,526,484,259
2018-05-16T15:24:19
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String s = sc.next(); int k = sc.nextInt(); List<String> sub = new ArrayList<String>(); String c; int count; for(int i = 0;i < s.length();i++){ count++; for(int j = i+1...
Main.java:12: error: variable count might not have been initialized count++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861857310|p03353|0
u861857310|p03353|0
codenet
Compile Error
587
v2_s006609630
s006609630
s006609630
p03353
p03353
u923606520
u923606520
1,526,176,090
2018-05-13T01:48:10
Main.java
import java.util.stream.Collectors; public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); final String s=scanner.next(); final int K=scanner.nextInt(); final String alphabet="abcdefghijklmnopqrstuvwxyz"; Set<String> sets=new Ha...
Main.java:6: error: cannot find symbol Scanner scanner=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scanner=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u923606520|p03353|0
u923606520|p03353|0
codenet
Compile Error
584
v2_s035445723
s035445723
s035445723
p03354
p03354
u012071778
u012071778
1,526,440,894
2018-05-16T03:21:34
Main.java
import java.util.Scanner; class UnionFind{ int[] parent; public void init(int N){ parent = new int[N]; for (int i = 0; i < N; i++) parent[i] = i; } public int root(int x){ if (parent[x] == x) return x; else{ return parent[x] = root(parent[x]); } } public void unite(int x, ...
Main.java:37: error: constructor UnionFind in class UnionFind cannot be applied to given types; UnionFind unionFind = new UnionFind(N); ^ required: no arguments found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012071778|p03354|0
u012071778|p03354|0
codenet
Compile Error
1,191
v2_s180472450
s180472450
s180472450
p03354
p03354
u234826697
u234826697
1,526,338,415
2018-05-14T22:53:35
Main.java
import java.lang.reflect.Array; import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; class UnionTree{ int[] tree; public UnionTree(int N){ tree = new int[N]; for(int i = 0; i < N; i++) tree[i] = i; } //return root public int root(int x){ if(tree...
Main.java:62: error: cannot find symbol if(tree.same(root(i), tree.root(p[i]))) c++; ^ symbol: method root(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234826697|p03354|0
u234826697|p03354|0
codenet
Compile Error
1,464
v2_s656199758
s656199758
s656199758
p03354
p03354
u660444966
u660444966
1,549,511,441
2019-02-07T03:50:41
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] P = new int[N+1]; // P[i]:整数iがある場所(iにある整数、ではない) for (int i = 1; i <= N; i++...
Main.java:15: error: cannot find symbol DJSet ds = new DJSet(N+1); ^ symbol: class DJSet location: class Main Main.java:15: error: cannot find symbol DJSet ds = new DJSet(N+1); ^ symbol: class DJSet location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660444966|p03354|0
u660444966|p03354|0
codenet
Compile Error
3,059
v2_s712049743
s712049743
s712049743
p03355
p03355
u238640707
u238640707
1,526,176,976
2018-05-13T02:02:56
Main.java
import java.util.*; import java.io.*; import java.math.*; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main{ static long mod=1000000007; static int dx[]={1,-1,0,0}; static int dy[]={0,0,1,-1}; // static int dx[]={1,-1,0,...
Main.java:39: error: variable sb might not have been initialized for(int w=0; w<5; w++)if(z[w].equals(sb)){ ^ Main.java:41: error: variable sb might not have been initialized z[5] = sb; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238640707|p03355|0
u238640707|p03355|0
codenet
Compile Error
2,974
v2_s636627367
s636627367
s636627367
p03355
p03355
u324669236
u324669236
1,526,815,089
2018-05-20T11:18:09
Q1.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class SuffixArray { class Suffix implements Comparable<Suffix> { int index; int[] rank = new int[2]; public int compareTo(Suffix o) { if (rank[0] != o.rank[0]) return rank[0] - o.rank[0]...
Q1.java:113: error: cannot find symbol Helper.tr(SA); ^ symbol: variable Helper location: class Q1 Q1.java:115: error: cannot find symbol Helper.tr(arr); ^ symbol: variable Helper location: class Q1 Q1.java:120: error: cannot find symbol Helper.tr(i, k); ^ symbol: variable Helper locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324669236|p03355|0
u324669236|p03355|0
codenet
Compile Error
3,151
v2_s879044514
s879044514
s879044514
p03355
p03355
u358537550
u358537550
1,526,962,505
2018-05-22T04:15:05
Main.java
mport java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); int n = sc.nextInt(); Set<String> substr = new HashSet<>(); for (int i = 1; i <= n; i++) { for (int j = 0; j < str.len...
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
u358537550|p03355|0
u358537550|p03355|0
codenet
Compile Error
796
v2_s496418018
s496418018
s496418018
p03355
p03355
u757631043
u757631043
1,526,591,490
2018-05-17T21:11:30
Main.java
public class Main { public static void main(String args[]) { InputParser parser = new InputParser(System.in); final String s = parser.scanLineNTimes(1).get(0); final Integer K = Integer.parseInt(parser.scanLineNTimes(1).get(0)); List<String> subs = getSubstrings(s).stream() ...
Main.java:18: error: cannot find symbol public static List<String> getSubstrings(String s) { ^ symbol: class List location: class Main Main.java:31: error: cannot find symbol private static Scanner scanner; ^ symbol: class Scanner location: class InputPar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u757631043|p03355|0
u757631043|p03355|0
codenet
Compile Error
1,246
v2_s774729216
s774729216
s774729216
p03356
p03356
u020177012
u020177012
1,552,035,046
2019-03-08T08:50:46
Main.java
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // parameter "input" gets all data function Equals(input) { // the first line is assigned to input[0], the second line is assigned to input[1] similarly. var _a = parseInput(input), N = _a.N, p = _a.p, xy = _a.xy; var sets = Disjoi...
Main.java:1: error: class, interface, enum, or record expected "use strict"; ^ Main.java:2: error: class, interface, enum, or record expected Object.defineProperty(exports, "__esModule", { value: true }); ^ Main.java:9: error: not a statement var count = p.filter(function (num, i) { return sets.areInSameSet(num, i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u020177012|p03356|1
u020177012|p03356|0
codenet
Compile Error
2,689
v2_s070610953
s070610953
s070610953
p03356
p03356
u485601469
u485601469
1,526,175,772
2018-05-13T01:42:52
Main.java
import java.io.*; import java.math.BigInteger; import java.util.*; public class Main { public void solve(int testNumber, InputReader in, OutputWriter out) { int n = in.nextInt(); int m = in.nextInt(); int[] p = new int[n + 1]; for (int i = 1; i <= n; i++) { p[i] = in....
Main.java:120: error: package fastio.InputReader does not exist private fastio.InputReader.SpaceCharFilter filter; ^ Main.java:328: error: package fastio.InputReader does not exist public fastio.InputReader.SpaceCharFilter getFilter() { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485601469|p03356|0
u485601469|p03356|0
codenet
Compile Error
10,190
v2_s045261736
s045261736
s045261736
p03357
p03357
u359413838
u359413838
1,555,793,634
2019-04-20T20:53:54
Main.java
#include <stdio.h> #include <stdlib.h> #include <algorithm> #define MAX_N (2000) #define SIZE_BUF (30) #define INF (1000000000) using namespace std; void swap(int *as, char *cs, int i, int j) { const int a = as[i]; const char c = cs[i]; as[i] = as[j]; cs[i] = cs[j]; as[j] = a; cs[j] = c; } int main(int ...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #include <stdlib.h> ^ Main.java:3: error: illegal character: '#' #include <algorithm> ^ Main.java:5: error: illegal char...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u359413838|p03357|0
u359413838|p03357|0
codenet
Compile Error
1,457
v2_s206194608
s206194608
s206194608
p03359
p03359
u137332130
u137332130
1,525,622,759
2018-05-06T16:05:59
Main.java
// AtCoder.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" #include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <algorithm> #include <string> #include <sstream> #include <complex> #include <vector> #include <list> #include <queue> #include <deque> #include <stack> #include ...
Main.java:4: error: illegal character: '#' #include "stdafx.h" ^ Main.java:4: error: class, interface, enum, or record expected #include "stdafx.h" ^ Main.java:5: error: illegal character: '#' #include <iostream> ^ Main.java:6: error: illegal character: '#' #include <cstdio> ^ Main.java:7: error: illegal chara...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137332130|p03359|1
u137332130|p03359|1
codenet
Compile Error
703
v2_s623480103
s623480103
s623480103
p03359
p03359
u194969710
u194969710
1,529,507,523
2018-06-20T15:12:03
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int manth = Integer.parseInt(sc.next()); int day = Integer.parseInt(sc.next()); int takahasi = 0; if(manth<=day) takahasi = manth; else takahasi = manth-1 System.out....
Main.java:11: error: ';' expected else takahasi = manth-1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u194969710|p03359|0
u194969710|p03359|0
codenet
Compile Error
344
v2_s919399344
s919399344
s919399344
p03359
p03359
u362825937
u362825937
1,525,826,827
2018-05-09T00:47:07
Main.java
Scanner s=new Scanner(System.in); int a=s.nextInt(); int b=s.nextInt(); if(a>b)System.out.print(b); if(b>a)Syatem.out.print(a);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner s=new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record expected if(a>b)System.out.print(b); ^ Main.java:6: error: class, interface, enum, or record...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p03359|0
u362825937|p03359|0
codenet
Compile Error
128
v2_s625520563
s625520563
s625520563
p03359
p03359
u362825937
u362825937
1,525,827,084
2018-05-09T00:51:24
Main.java
import java.util.*; public void main(){ Scanner s=new Scanner(System.in); int a=s.nextInt(); int b=s.nextInt(); if(a>b)System.out.print(b); if(b>a)Syatem.out.print(a); }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public void main(){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p03359|0
u362825937|p03359|0
codenet
Compile Error
171
v2_s872363768
s872363768
s872363768
p03359
p03359
u362825937
u362825937
1,525,889,321
2018-05-09T18:08:41
Main.java
import java.untl.*; public class Main{ public void main(){ Scanner s=new Scanner(System.in); int a=s.nextInt(); int b=s.nextInt(); if(a>=b)System.out.print(b); if(b>a)System.out.print(a); } }
Main.java:1: error: package java.untl does not exist import java.untl.*; ^ Main.java:6: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Sca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p03359|1
u362825937|p03359|1
codenet
Compile Error
196
v2_s037828670
s037828670
s037828670
p03359
p03359
u467764002
u467764002
1,570,660,278
2019-10-09T22:31:18
Main.java
class Rp1ABC096A { public static void main(String[] args) { int a, b; Scanner Scan = new Scanner(System.in); if (a <= b) { System.err.print(a); } if else { System.err.print(b); } } }
Main.java:9: error: '(' expected if else { ^ Main.java:9: error: illegal start of expression if else { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u467764002|p03359|0
u467764002|p03359|0
codenet
Compile Error
316
v2_s870088699
s870088699
s870088699
p03359
p03359
u487433273
u487433273
1,577,119,291
2019-12-23T16:41:31
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a=<b) System.out.println(a); else System.out.println(a-1); } }
Main.java:9: error: > or ',' expected if(a=<b) System.out.println(a); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p03359|0
u487433273|p03359|0
codenet
Compile Error
246
v2_s476956654
s476956654
s476956654
p03359
p03359
u509454403
u509454403
1,528,772,322
2018-06-12T02:58:42
Main.java
import java.util.*; public class Main { public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); int result =0; if(a>b){ result =a-1; }else{ result =a; } System.out.println(result);
Main.java:12: error: reached end of file while parsing System.out.println(result); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u509454403|p03359|0
u509454403|p03359|0
codenet
Compile Error
226
v2_s307041243
s307041243
s307041243
p03359
p03359
u558164218
u558164218
1,525,708,675
2018-05-07T15:57:55
Main.java
5
Main.java:1: error: class, interface, enum, or record expected 5 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u558164218|p03359|0
u558164218|p03359|0
codenet
Compile Error
2
v2_s269159521
s269159521
s269159521
p03359
p03359
u558164218
u558164218
1,525,708,861
2018-05-07T16:01:01
Main.java
2018 年 a 月 b 日はグレゴリオ暦において正しい日付である. 入力 入力は以下の形式で標準入力から与えられる. a b 出力 2018 年 1 月 1 日から 2018 年 a 月 b 日までに「高橋」は何日あるか、出力しなさい。 入力例 1 Copy 5 5 出力例 1 Copy 5 1 月 1 日, 2 月 2 日, 3 月 3 日, 4 月 4 日, 5 月 5 日, 合計 5 日が「高橋」です. 入力例 2 Copy 2 1 出力例 2 Copy 1 1 月 1 日のみが「高橋」です. 入力例 3 Copy 11 30 出力例 3 Copy 11 1⁄1, 2⁄2, 3⁄3, 4⁄4, 5⁄5, 6⁄...
Main.java:1: error: class, interface, enum, or record expected 2018 ? a ? b ????????????????????. ^ Main.java:7: error: illegal character: '\u300c' 2018 ? 1 ? 1 ??? 2018 ? a ? b ?????????????????????? ^ Main.java:7: error: illegal character: '\u300d' 2018 ? 1 ? 1 ??? 2018 ? a ? b ????...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u558164218|p03359|0
u558164218|p03359|0
codenet
Compile Error
647
v2_s413418672
s413418672
s413418672
p03359
p03359
u600215903
u600215903
1,553,985,582
2019-03-30T22:39:42
Main.java
�������8�1 �� ��� ��������<init>�()V�Code�LineNumberTable�main�([Ljava/lang/String;)V� StackMapTable� SourceFile� kyoupro.java �� � ���高橋� �!�"�BootstrapMethods�#�$ �%�&�kyoupro�java/lang/Object�java/lang/System�out�Ljava/io/PrintStream;�java/io/PrintStream�print...
Main.java:1: error: illegal character: '\ufffd' ???????8?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????8?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????8?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????8?1 ^ Main.java:1: error: illegal character: '\ufffd' ???????8?1 ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u600215903|p03359|0
u600215903|p03359|0
codenet
Compile Error
1,445
v2_s431872332
s431872332
s431872332
p03359
p03359
u633463117
u633463117
1,526,782,059
2018-05-20T02:07:39
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new sc(System.in); int a = nextInt(); int b = nextInt(); if(a=<b){ System.out.println(a); }else{ System.out.println(a-1); } } }
Main.java:9: error: > or ',' expected if(a=<b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633463117|p03359|0
u633463117|p03359|0
codenet
Compile Error
243
v2_s614381072
s614381072
s614381072
p03359
p03359
u633463117
u633463117
1,526,782,094
2018-05-20T02:08:14
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new sc(System.in); int a = nextInt(); int b = nextInt(); if(a<=b){ System.out.println(a); }else{ System.out.println(a-1); } }
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633463117|p03359|0
u633463117|p03359|0
codenet
Compile Error
242
v2_s755721090
s755721090
s755721090
p03359
p03359
u675269406
u675269406
1,593,860,381
2020-07-04T10:59:41
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(); System.out.println(a >= b ? a : a-1) } }
Main.java:8: error: ';' expected System.out.println(a >= b ? a : a-1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675269406|p03359|0
u675269406|p03359|0
codenet
Compile Error
244
v2_s819170559
s819170559
s819170559
p03359
p03359
u752907799
u752907799
1,558,050,273
2019-05-16T23:44:33
Main.java
#include <stdio.h> int main(void) { int a, b; scanf("%d%d", &a, &b); int days = a-1; if(b >= 5) days++; printf("%d\n", days); }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:6: error: class, interface, enum, or record expected scanf("%d%d", &a, &b); ^ Main.java:7: error: unnamed classes are a preview feature and are disab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752907799|p03359|0
u752907799|p03359|0
codenet
Compile Error
138
v2_s506131161
s506131161
s506131161
p03359
p03359
u810066979
u810066979
1,580,506,109
2020-01-31T21:28:29
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); if b>=a{ System.out.println(a); }else{ System.out.println(a-1); } } }
Main.java:6: error: '(' expected if b>=a{ ^ Main.java:6: error: ')' expected if b>=a{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u810066979|p03359|0
u810066979|p03359|0
codenet
Compile Error
308
v2_s569072586
s569072586
s569072586
p03359
p03359
u891161439
u891161439
1,526,171,069
2018-05-13T00:24:29
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(): int b = sc.nextInt(); System.out.println(a <= b ? a:a-1); }}
Main.java:5: error: ';' expected int a = sc.nextInt(): ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03359|0
u891161439|p03359|0
codenet
Compile Error
204
v2_s697521405
s697521405
s697521405
p03359
p03359
u918923596
u918923596
1,594,989,986
2020-07-17T12:46:26
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a > b) { System.out.println(a - 1); }else { ...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p03359|0
u918923596|p03359|0
codenet
Compile Error
353
v2_s132640347
s132640347
s132640347
p03359
p03359
u954520953
u954520953
1,525,570,089
2018-05-06T01:28:09
Main.java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); System.out.println(Math.min(a,b)); } }
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u954520953|p03359|0
u954520953|p03359|0
codenet
Compile Error
222
v2_s154983494
s154983494
s154983494
p03360
p03360
u137332130
u137332130
1,525,572,123
2018-05-06T02:02: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 = sc.nextInt(); int C = sc.nextInt(); int K = sc.nextInt(); for(int i = 0; i < K; i++){ if(A > B && A > C){ A = A*2; } if(B > A && B > C){ B...
Main.java:22: error: bad operand types for binary operator '||' if(A = C || A = B){ ^ first type: int second type: int Main.java:22: error: incompatible types: int cannot be converted to boolean if(A = C || A = B){ ^ Main.java:26: error: incompatible types: int cannot be converted to bool...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137332130|p03360|0
u137332130|p03360|0
codenet
Compile Error
512
v2_s629164466
s629164466
s629164466
p03360
p03360
u138794088
u138794088
1,525,570,611
2018-05-06T01:36:51
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.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.Input...
Main.java:133: error: reached end of file while parsing public OutputWriter(Writer writer) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u138794088|p03360|0
u138794088|p03360|0
codenet
Compile Error
3,742