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_s515427475 | s515427475 | s515427475 | p02786 | p02786 | u924807180 | u924807180 | 1,580,069,379 | 2020-01-26T20:09:39 | Main.java | public class Main {
public static void main(String[] args) {
execute5_1();
}
private static void execute5_1() {
try (Scanner sc = new Scanner(System.in)) {
long H = sc.nextLong();
long pw=0;
long ans = 1;
while(H>1) {
pw++;
ans += (long) (Math.pow(2, pw));
H=H/2;
}
Syste... | Main.java:8: error: cannot find symbol
try (Scanner sc = new Scanner(System.in)) {
^
symbol: class Scanner
location: class Main
Main.java:8: error: cannot find symbol
try (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 | u924807180|p02786|0 | u924807180|p02786|0 | codenet | Compile Error | 351 | |
v2_s560303547 | s560303547 | s560303547 | p02786 | p02786 | u941274418 | u941274418 | 1,580,652,040 | 2020-02-02T14:00:40 | Main.java | import java.util.*;
public class Main {
int cnt = 0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(helper(n));
}
private static void helper(int h) {
cnt++;
if(h == 1) {
return;
... | Main.java:7: error: 'void' type not allowed here
System.out.println(helper(n));
^
Main.java:11: error: non-static variable cnt cannot be referenced from a static context
cnt++;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u941274418|p02786|0 | u941274418|p02786|0 | codenet | Compile Error | 367 | |
v2_s226304426 | s226304426 | s226304426 | p02786 | p02786 | u956322200 | u956322200 | 1,580,073,077 | 2020-01-26T21:11:17 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
long hp = scan.nextLong();
scan.close();
long count = 1;
int jyosu = 0; //hpは2の何乗か?
if(hp == 1) System.out.println(count);
else{
while(... | Main.java:20: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u956322200|p02786|0 | u956322200|p02786|0 | codenet | Compile Error | 521 | |
v2_s472732822 | s472732822 | s472732822 | p02787 | p02787 | u087672117 | u087672117 | 1,580,511,523 | 2020-01-31T22:58:43 | Main.java |
import static java.lang.Math.max;
import static java.lang.Math.min;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
final int h = scanner.nextInt();
final int n = scanner.nextInt();
final int[] a = new int[n];
fin... | Main.java:20: error: ')' expected
max = (max, a[i]);
^
Main.java:20: error: not a statement
max = (max, a[i]);
^
Main.java:20: error: ';' expected
max = (max, a[i]);
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u087672117|p02787|0 | u087672117|p02787|0 | codenet | Compile Error | 1,060 | |
v2_s044453632 | s044453632 | s044453632 | p02787 | p02787 | u111285482 | u111285482 | 1,588,295,351 | 2020-05-01T01:09:11 | Main.java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
Scan sc = new Scan();
int h = sc.scanInt();
int n = sc.scanInt();
long[] dp = new long[20004];
Arrays.fill(dp,Integer.MAX_VALUE);
dp[0] = 0;
int ans... | Main.java:19: error: incompatible types: possible lossy conversion from long to int
ans = Math.min(ans, dp[j]);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u111285482|p02787|0 | u111285482|p02787|0 | codenet | Compile Error | 3,658 | |
v2_s193859121 | s193859121 | s193859121 | p02787 | p02787 | u369190981 | u369190981 | 1,580,077,758 | 2020-01-26T22:29:18 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.PriorityQueue;
class FastScanner {
private final InputStream in = System.in;
private final byte[] buffer = new byte[1024];
private int ptr = 0;
private int buflen = 0;... | Main.java:85: error: cannot find symbol
public int helper(int sum, int[] a, int[] b, int h, PriorityQueue<magic> queue, int ans) {
^
symbol: class magic
location: class FastScanner
Main.java:88: error: cannot find symbol
for (magic ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u369190981|p02787|0 | u369190981|p02787|0 | codenet | Compile Error | 4,889 | |
v2_s806734233 | s806734233 | s806734233 | p02787 | p02787 | u492614439 | u492614439 | 1,580,286,027 | 2020-01-29T08:20:27 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
static BufferedReader reader;
final static boolean MODE_DEBUG = true;
//static field here
public static void main(String[] args) {
// TODO Auto-generated method stub
reader = new BufferedReader(new Input... | Main.java:169: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u492614439|p02787|1 | u492614439|p02787|1 | codenet | Compile Error | 3,785 | |
v2_s609312590 | s609312590 | s609312590 | p02787 | p02787 | u568787360 | u568787360 | 1,580,074,784 | 2020-01-26T21:39:44 | Main.java | import java.util.*;
public class Main {
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int H = sc.nextInt();
int N = sc.nextInt();
Map<Integer,Integer> AB = new HashMap<>();
Map<Integer,Integer> BA = new HashMap<>();
ArrayList<Integer> L... | Main.java:42: error: ')' or ',' expected
if(min_p<AB.get(List.get(i)*num)) min_p=AB.get(List.get(i)*num;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u568787360|p02787|0 | u568787360|p02787|0 | codenet | Compile Error | 1,847 | |
v2_s872636350 | s872636350 | s872636350 | p02787 | p02787 | u673344466 | u673344466 | 1,580,074,979 | 2020-01-26T21:42:59 | Main.java | ////////////////////////////////////////////////////
// //
// For her who keeps the fire kindling in me... //
// //
////////... | Main.java:83: error: cannot find symbol
w.write(knapSack(h, arrw, arrval, n)+"\n");
^
symbol: variable w
location: class Main
Main.java:84: error: cannot find symbol
w.close();
^
symbol: variable w
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u673344466|p02787|0 | u673344466|p02787|0 | codenet | Compile Error | 3,761 | |
v2_s259940234 | s259940234 | s259940234 | p02787 | p02787 | u679312480 | u679312480 | 1,588,967,850 | 2020-05-08T19:57:30 | Main.java | import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int h = Integer.parseInt(sc.next());
int n = Integer.parseInt(sc.next());
Map<Integer, Integer> atkMp = new TreeMap<>()... | Main.java:23: error: cannot find symbol
if(goodmagic < judgeMagic){
^
symbol: variable goodmagic
location: class Main
Main.java:29: error: cannot find symbol
if(atkMp.get(atkNum) == null) atkMp.set(atkNum, mpNum);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u679312480|p02787|0 | u679312480|p02787|0 | codenet | Compile Error | 1,616 | |
v2_s886666504 | s886666504 | s886666504 | p02787 | p02787 | u679312480 | u679312480 | 1,588,967,902 | 2020-05-08T19:58:22 | Main.java | import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int h = Integer.parseInt(sc.next());
int n = Integer.parseInt(sc.next());
Map<Integer, Integer> atkMp = new TreeMap<>()... | Main.java:23: error: cannot find symbol
if(goodmagic < judgeMagic){
^
symbol: variable goodmagic
location: class Main
Main.java:42: error: cannot find symbol
if(atkMp.get(mod) < goodMagicMp) ans += mpNum;
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u679312480|p02787|0 | u679312480|p02787|0 | codenet | Compile Error | 1,586 | |
v2_s367618836 | s367618836 | s367618836 | p02787 | p02787 | u679312480 | u679312480 | 1,588,967,937 | 2020-05-08T19:58:57 | Main.java | import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int h = Integer.parseInt(sc.next());
int n = Integer.parseInt(sc.next());
Map<Integer, Integer> atkMp = new TreeMap<>()... | Main.java:23: error: cannot find symbol
if(goodmagic < judgeMagic){
^
symbol: variable goodmagic
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u679312480|p02787|0 | u679312480|p02787|0 | codenet | Compile Error | 1,592 | |
v2_s511775280 | s511775280 | s511775280 | p02788 | p02788 | u241874341 | u241874341 | 1,580,074,069 | 2020-01-26T21:27:49 | Main.java | import jlib.dataset.operation.Operation;
import java.util.*;
public class Main implements Runnable {
private static int MOD = 1_000_000_007;
public static void main(String[] args) {
// Run with 32MB stack
Thread thread = new Thread(null, new Main(), "", 32 * 1024 * 1024);
thread.star... | Main.java:1: error: package jlib.dataset.operation does not exist
import jlib.dataset.operation.Operation;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u241874341|p02788|0 | u241874341|p02788|0 | codenet | Compile Error | 2,941 | |
v2_s144428844 | s144428844 | s144428844 | p02788 | p02788 | u314087694 | u314087694 | 1,581,206,802 | 2020-02-09T00:06:42 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
long d=scan.nextLong();
long a=scan.nextLong();
long[] x=new long[n];
long[] h=new long[n];
int i=0;
for(i=0;i<n;i++){
x[i]=scan.nextLong();
h[i]=scan.nextLong();
... | Main.java:42: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u314087694|p02788|0 | u314087694|p02788|0 | codenet | Compile Error | 746 | |
v2_s950550169 | s950550169 | s950550169 | p02788 | p02788 | u672402312 | u672402312 | 1,580,072,545 | 2020-01-26T21:02:25 | Main.java | //無理ぽよ
int n = stdIn.nextInt(); //モンスター数
int d = stdIn.nextInt(); //爆発範囲
int a = stdIn.nextInt(); //減らせる体力
int x[] = new int[n];
int h[] = new int[n]; | Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int n = stdIn.nextInt(); //??????
^
(use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
int x[] = new int[n];
^
Main.java:7: error: class, interface, enum,... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u672402312|p02788|0 | u672402312|p02788|0 | codenet | Compile Error | 223 | |
v2_s707060297 | s707060297 | s707060297 | p02788 | p02788 | u775730524 | u775730524 | 1,581,010,830 | 2020-02-06T17:40:30 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int d = sc.nextInt();
int a = sc.nextInt();
Dis[] arr = new Dis[n];
for(int i=0;i<n;i++) {
int x = sc.nextInt();
int h = sc.nextInt();
int l = x-d;
in... | Main.java:52: error: cannot find symbol
ht = arr[i].t;
^
symbol: variable ht
location: class Main
Main.java:55: error: cannot find symbol
if(h!=0)
^
symbol: variable h
location: class Main
Main.java:56: error: cannot find symbol
ans+=h;
^
symbol: variable h
location: class Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u775730524|p02788|0 | u775730524|p02788|0 | codenet | Compile Error | 1,127 | |
v2_s861067052 | s861067052 | s861067052 | p02788 | p02788 | u777241431 | u777241431 | 1,580,869,706 | 2020-02-05T02:28:26 | Main.java | import java.util.*;
public class Main
{
void main(String[] args)
{
Scanner ob=new Scanner(System.in);
int n=ob.newLong();
long d=ob.newLong();
long a=ob.newLong();
long x[]=new long[];
long h[]=new long[];
sort(x,h,n);
long k=0;
while(true)
{
int i=0;
if(check(h,... | Main.java:10: error: array dimension missing
long x[]=new long[];
^
Main.java:11: error: array dimension missing
long h[]=new long[];
^
Main.java:24: error: illegal start of expression
}
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u777241431|p02788|0 | u777241431|p02788|0 | codenet | Compile Error | 1,352 | |
v2_s520211903 | s520211903 | s520211903 | p02788 | p02788 | u777241431 | u777241431 | 1,580,870,065 | 2020-02-05T02:34:25 | Main.java | import java.util.*;
public class Main
{
void main(String[] args)
{
Scanner ob=new Scanner(System.in);
int n=ob.newInt();
long d=ob.newLong();
long a=ob.newLong();
long x[]=new long[n];
long h[]=new long[n];
sort(x,h,n);
long k=0;
while(true)
{
int i=0;
if(check(h... | Main.java:7: error: cannot find symbol
int n=ob.newInt();
^
symbol: method newInt()
location: variable ob of type Scanner
Main.java:8: error: cannot find symbol
long d=ob.newLong();
^
symbol: method newLong()
location: variable ob of type Scanner
Main.java:9: error: cannot f... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u777241431|p02788|0 | u777241431|p02788|0 | codenet | Compile Error | 1,338 | |
v2_s909462741 | s909462741 | s909462741 | p02788 | p02788 | u866891215 | u866891215 | 1,580,074,790 | 2020-01-26T21:39:50 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
long D=sc.nextLong();
long A=sc.nextLong();
long[] X=new long[N];
long[] H=new long[N];
Queue queue=new PriorityQueue();
Map<Long,Long>map=new HashMap<>();
... | Main.java:26: error: incompatible types: Object cannot be converted to long
k=queue.poll();
^
Main.java:37: error: variable i is already defined in method main(String[])
for(int i=0;i<N;i++){
^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:u... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u866891215|p02788|0 | u866891215|p02788|0 | codenet | Compile Error | 1,078 | |
v2_s954450285 | s954450285 | s954450285 | p02788 | p02788 | u875818555 | u875818555 | 1,580,832,904 | 2020-02-04T16:15:04 | Main.java | import java.util.Collections;
import java.io.*;
import java.util.*;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
int arr[] = new int[n];
long sum = 0;
for(int i=0;i<n;i++)
ar... | Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>)
Arrays.sort(arr,Collections.reverseOrder());
^
method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
(inference variable T#1 has incompatible bounds
equality constraints: int
upper... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u875818555|p02788|0 | u875818555|p02788|0 | codenet | Compile Error | 478 | |
v2_s522756055 | s522756055 | s522756055 | p02789 | p02789 | u000820372 | u000820372 | 1,579,470,044 | 2020-01-19T21:40:44 | Main.java | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a==b){
cout<<"Yes"<<endl;
}else{
cout<<"No"<<endl;
}
} | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
^
Main.java:7: error: not a statement
cin>>a>>b;
^
Main.java:11: error: not a statement
cout<<"Yes"<<endl;
^
Main.java:15: error: not a state... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u000820372|p02789|0 | u000820372|p02789|0 | codenet | Compile Error | 165 | |
v2_s642527543 | s642527543 | s642527543 | p02789 | p02789 | u018679195 | u018679195 | 1,582,352,551 | 2020-02-22T06:22:31 | Main.java | class Main {
public static boolean contest (int required, int accepted) {
if (required == accepted) {
return true;
}
else return false;
}
public static void main (String[] args) {
Scanner input = new Scanner(System.in);
int required = input.nextInt();
int accepted = input.nextInt();
if (contest(re... | Main.java:10: error: cannot find symbol
Scanner input = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:10: error: cannot find symbol
Scanner input = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u018679195|p02789|1 | u018679195|p02789|1 | codenet | Compile Error | 428 | |
v2_s084543173 | s084543173 | s084543173 | p02789 | p02789 | u018679195 | u018679195 | 1,582,354,051 | 2020-02-22T06:47:31 | Main.java | public class Main {
public static void main(String[] args) {
Scanner twonum = new Scanner(System.in);
int n = twonum.nextInt();
int m = twonum.nextInt();
if (m == n) {
if (n >= 1 || n <=100) {
System.out.println("yes");
}
}
else {
System.out.println("no");
}
}
} | Main.java:3: error: cannot find symbol
Scanner twonum = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner twonum = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u018679195|p02789|1 | u018679195|p02789|1 | codenet | Compile Error | 292 | |
v2_s769114477 | s769114477 | s769114477 | p02789 | p02789 | u023934604 | u023934604 | 1,579,463,619 | 2020-01-19T19:53:39 | Main.java | public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int m = in.nextInt();
if(m<n) System.out.println("No");
else System.out.println("Yes");
}
} | 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 | u023934604|p02789|0 | u023934604|p02789|0 | codenet | Compile Error | 225 | |
v2_s575801152 | s575801152 | s575801152 | p02789 | p02789 | u038260095 | u038260095 | 1,579,463,783 | 2020-01-19T19:56:23 | Main.java | mport java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
// 出力
if ( m >= n ) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | 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 | u038260095|p02789|0 | u038260095|p02789|0 | codenet | Compile Error | 311 | |
v2_s333719956 | s333719956 | s333719956 | p02789 | p02789 | u038260095 | u038260095 | 1,579,463,857 | 2020-01-19T19:57:37 | Main.java | mport java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
if ( m >= n ) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | 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 | u038260095|p02789|0 | u038260095|p02789|0 | codenet | Compile Error | 283 | |
v2_s241446292 | s241446292 | s241446292 | p02789 | p02789 | u057875982 | u057875982 | 1,579,464,151 | 2020-01-19T20:02:31 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m =sc.nextInt();
if(n==m) {
System.out.println("Yes");
}else {
System.out.println("No");
}
}
}
| Main.java:2: error: illegal character: '\u3000'
public class ?Main{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u057875982|p02789|0 | u057875982|p02789|0 | codenet | Compile Error | 270 | |
v2_s374461001 | s374461001 | s374461001 | p02789 | p02789 | u060012100 | u060012100 | 1,579,463,859 | 2020-01-19T19:57:39 | Main.java | int N;
int M;
public static void main(String[] args){
public class A{
if(N == M)
{
return yes;
}
else
{
return no;
}
}
}
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int N;
^
(use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
public class A{
^
Main.java:5: error: illegal start of type
if(N == M)
^
Main.java:5: error: <identifier> expected
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u060012100|p02789|0 | u060012100|p02789|0 | codenet | Compile Error | 185 | |
v2_s772997524 | s772997524 | s772997524 | p02789 | p02789 | u060012100 | u060012100 | 1,579,463,971 | 2020-01-19T19:59:31 | Main.java | public static void main(String[] args){
public class A{
int N;
int M;
if(N == M)
{
return yes;
}
else
{
return no;
}
}
} | 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)
Main.java:2: error: illegal start of expression
public class A{
^
Main.java:5: error: illegal start of type
if(... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u060012100|p02789|0 | u060012100|p02789|0 | codenet | Compile Error | 238 | |
v2_s893806698 | s893806698 | s893806698 | p02789 | p02789 | u060012100 | u060012100 | 1,579,464,434 | 2020-01-19T20:07:14 | Main.java | public class Main {
public static void main(String[] args){
int N;
int M;
if(N == M)
{
System.out.println("yes");;
}
else
{
System.out.println("no");
}
}
} | Main.java:5: error: variable N might not have been initialized
if(N == M)
^
Main.java:5: error: variable M might not have been initialized
if(N == M)
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u060012100|p02789|0 | u060012100|p02789|0 | codenet | Compile Error | 229 | |
v2_s437812817 | s437812817 | s437812817 | p02789 | p02789 | u060186877 | u060186877 | 1,579,486,908 | 2020-01-20T02:21:48 | Part09.java |
import java.util.Scanner;
public class Part09{
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
int N = input.nextInt();
int M = input.nextInt();
System.out.println(N==M?"Yes":"No")
}
} | Part09.java:9: error: ';' expected
System.out.println(N==M?"Yes":"No")
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u060186877|p02789|0 | u060186877|p02789|0 | codenet | Compile Error | 269 | |
v2_s062464332 | s062464332 | s062464332 | p02789 | p02789 | u073606136 | u073606136 | 1,587,888,587 | 2020-04-26T08:09:47 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int correct = sc.nextInt();
int test = sc.nextInt();
if(correct == next) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:8: error: cannot find symbol
if(correct == next) {
^
symbol: variable next
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u073606136|p02789|0 | u073606136|p02789|0 | codenet | Compile Error | 320 | |
v2_s377355331 | s377355331 | s377355331 | p02789 | p02789 | u073879055 | u073879055 | 1,593,962,732 | 2020-07-05T15:25:32 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(Ststem.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a == b){
System.out.println("Yes");
}else{
System.out.println("No");
}
sc.close();
}
} | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(Ststem.in);
^
symbol: variable Ststem
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u073879055|p02789|0 | u073879055|p02789|0 | codenet | Compile Error | 300 | |
v2_s749442793 | s749442793 | s749442793 | p02789 | p02789 | u078890023 | u078890023 | 1,582,990,111 | 2020-02-29T15:28:31 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
String str1 = scan.next();
String str2 = scan.next();
if(str1.equals(str2)){
System.out.print(“Yes”);
... | Main.java:9: error: illegal character: '\u201c'
System.out.print(?Yes?);
^
Main.java:9: error: illegal character: '\u201d'
System.out.print(?Yes?);
^
Main.java:9: error: not a statement
System.out.print(?Yes?);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u078890023|p02789|0 | u078890023|p02789|0 | codenet | Compile Error | 392 | |
v2_s135099323 | s135099323 | s135099323 | p02789 | p02789 | u078890023 | u078890023 | 1,582,990,344 | 2020-02-29T15:32:24 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
int str1 = scan.nextInt();
int str2 = scan.nextInt();
if(str1==str2){
System.out.print(“Yes”);
} els... | Main.java:9: error: illegal character: '\u201c'
System.out.print(?Yes?);
^
Main.java:9: error: illegal character: '\u201d'
System.out.print(?Yes?);
^
Main.java:9: error: not a statement
System.out.print(?Yes?);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u078890023|p02789|0 | u078890023|p02789|0 | codenet | Compile Error | 385 | |
v2_s474250432 | s474250432 | s474250432 | p02789 | p02789 | u080183144 | u080183144 | 1,589,662,209 | 2020-05-16T20:50:09 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String s = null;
if(a < b) {
s = (int) a;
for(int i= 1; i<b;i++){
s += (int)a;
}
}
else {
s ... | Main.java:9: error: incompatible types: int cannot be converted to String
s = (int) a;
^
Main.java:15: error: incompatible types: int cannot be converted to String
s = (int) b;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u080183144|p02789|0 | u080183144|p02789|0 | codenet | Compile Error | 429 | |
v2_s352871706 | s352871706 | s352871706 | p02789 | p02789 | u080183144 | u080183144 | 1,589,662,249 | 2020-05-16T20:50:49 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String s = null;
if(a < b) {
s = (String) a;
for(int i= 1; i<b;i++){
s += (String)a;
}
}
else {
... | Main.java:9: error: incompatible types: int cannot be converted to String
s = (String) a;
^
Main.java:11: error: incompatible types: int cannot be converted to String
s += (String)a;
^
Main.java:15: error: incompatible types: int cannot be converted to String
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u080183144|p02789|0 | u080183144|p02789|0 | codenet | Compile Error | 441 | |
v2_s164066905 | s164066905 | s164066905 | p02789 | p02789 | u080183144 | u080183144 | 1,589,662,294 | 2020-05-16T20:51:34 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
String s = null;
if(a < b) {
s = a;
for(int i= 1; i<b;i++){
s += a;
}
}
else {
s = b;
... | Main.java:9: error: incompatible types: int cannot be converted to String
s = a;
^
Main.java:15: error: incompatible types: int cannot be converted to String
s = b;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u080183144|p02789|0 | u080183144|p02789|0 | codenet | Compile Error | 407 | |
v2_s853781528 | s853781528 | s853781528 | p02789 | p02789 | u090765289 | u090765289 | 1,592,050,519 | 2020-06-13T12:15:19 | Main.java | import java.util.Scanner;
public static void main(String []args){
System.out.println("hoge");
Scanner scan = new Scanner(System.in);
int str1 = scan.nextInt();
int str2 = scan.nextInt();
if(str1 == str2){
System.out.println("Yes");
}
else{
... | 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 | u090765289|p02789|0 | u090765289|p02789|0 | codenet | Compile Error | 394 | |
v2_s262460380 | s262460380 | s262460380 | p02789 | p02789 | u110087226 | u110087226 | 1,579,463,557 | 2020-01-19T19:52:37 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws Exception{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt();
if(n==m){
System.out.println("Yes");
}else{
System.uout.println("No")
... | Main.java:11: error: ';' expected
System.uout.println("No")
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u110087226|p02789|0 | u110087226|p02789|0 | codenet | Compile Error | 331 | |
v2_s737600780 | s737600780 | s737600780 | p02789 | p02789 | u110087226 | u110087226 | 1,579,463,643 | 2020-01-19T19:54:03 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws Exception{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt(),m=sc.nextInt();
if(n==m){
System.out.println("Yes");
}else{
System.uout.println("No");
... | Main.java:11: error: cannot find symbol
System.uout.println("No");
^
symbol: variable uout
location: class System
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u110087226|p02789|0 | u110087226|p02789|0 | codenet | Compile Error | 332 | |
v2_s510953936 | s510953936 | s510953936 | p02789 | p02789 | u111044572 | u111044572 | 1,580,052,180 | 2020-01-26T15:23:00 | Main.java | mport 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.print("Yes");
}else{
System.out.print("No");
}
} | Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:13: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u111044572|p02789|0 | u111044572|p02789|0 | codenet | Compile Error | 279 | |
v2_s137129343 | s137129343 | s137129343 | p02789 | p02789 | u154928783 | u154928783 | 1,579,969,906 | 2020-01-25T16:31:46 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
String N = scan.nextLine();
String M = scan.nextLine();
if( N == M ) {
System.out.System.... | Main.java:12: error: cannot find symbol
System.out.System.out.println("Yes");
^
symbol: variable System
location: variable out of type PrintStream
Main.java:14: error: cannot find symbol
System.out.System.out.println("No");
^
symbol: vari... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u154928783|p02789|0 | u154928783|p02789|0 | codenet | Compile Error | 437 | |
v2_s126111472 | s126111472 | s126111472 | p02789 | p02789 | u176982046 | u176982046 | 1,585,553,725 | 2020-03-30T07:35:25 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n,m = 0;
n = sc.nextInt();
m = sc.nextInt();
if(n==m){
system.out.println("Yes");
} else {
System.out.println("No");
}
... | Main.java:10: error: package system does not exist
system.out.println("Yes");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u176982046|p02789|0 | u176982046|p02789|0 | codenet | Compile Error | 325 | |
v2_s385200552 | s385200552 | s385200552 | p02789 | p02789 | u178329956 | u178329956 | 1,581,178,517 | 2020-02-08T16:15:17 | Main.java | /******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debu... | Main.java:12: error: cannot find symbol
Scanner s=new Scanner (System.in);
^
symbol: class Scanner
location: class Main
Main.java:12: error: cannot find symbol
Scanner s=new Scanner (System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u178329956|p02789|0 | u178329956|p02789|0 | codenet | Compile Error | 678 | |
v2_s694792490 | s694792490 | s694792490 | p02789 | p02789 | u178329956 | u178329956 | 1,581,178,585 | 2020-02-08T16:16:25 | Main.java | /******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debu... | Main.java:9: error: cannot find symbol
import java.util.scanner;
^
symbol: class scanner
location: package java.util
Main.java:13: error: cannot find symbol
Scanner s=new Scanner (System.in);
^
symbol: class Scanner
location: class Main
Main.java:13: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u178329956|p02789|0 | u178329956|p02789|0 | codenet | Compile Error | 704 | |
v2_s333059977 | s333059977 | s333059977 | p02789 | p02789 | u202701961 | u202701961 | 1,579,556,671 | 2020-01-20T21:44:31 | Main.java | import java.util.*;
public class Main(){
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
if(N>=1 && N<=100 && N>=M && N<=0){
if(N == M){
System.out.println("Yes");
}else{
System.out.println("No");
... | Main.java:3: error: '{' expected
public class Main(){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u202701961|p02789|0 | u202701961|p02789|0 | codenet | Compile Error | 336 | |
v2_s345496529 | s345496529 | s345496529 | p02789 | p02789 | u273816974 | u273816974 | 1,579,466,154 | 2020-01-19T20:35:54 | 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("Yes");
... | Main.java:14: error: unclosed string literal
System.out.println("No);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u273816974|p02789|0 | u273816974|p02789|0 | codenet | Compile Error | 386 | |
v2_s365566931 | s365566931 | s365566931 | p02789 | p02789 | u285734280 | u285734280 | 1,596,204,177 | 2020-07-31T14:02:57 | Main.java | import java.util.*;
public class Main{
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
String a = "";
String b = "";
for (int i=0;i<m;i++){
a += n+"";
}
for (int j=0;j<n;j++){
b += m+"";
}
if (n>=m){
System.out.println... | Main.java:10: error: illegal start of type
for (int i=0;i<m;i++){
^
Main.java:10: error: > or ',' expected
for (int i=0;i<m;i++){
^
Main.java:10: error: <identifier> expected
for (int i=0;i<m;i++){
^
Main.java:14: error: illegal start of type
for (int j=0;j<... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u285734280|p02789|0 | u285734280|p02789|0 | codenet | Compile Error | 381 | |
v2_s054968444 | s054968444 | s054968444 | p02789 | p02789 | u312964891 | u312964891 | 1,579,467,187 | 2020-01-19T20:53:07 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
String[] split = input.split(" ");
int n = Integer.parseInt(split[0]);
int m = Integer.parseInt(split[... | Main.java:4: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
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 | u312964891|p02789|0 | u312964891|p02789|0 | codenet | Compile Error | 439 | |
v2_s617390854 | s617390854 | s617390854 | p02789 | p02789 | u314087694 | u314087694 | 1,581,337,294 | 2020-02-10T12:21:34 | Main.java | import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int m=scan.nextInt();
if(n==m){
System.out.println("Yes");}
else{
System.out println("No");}
}
} | Main.java:12: error: ';' expected
System.out println("No");}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u314087694|p02789|1 | u314087694|p02789|1 | codenet | Compile Error | 274 | |
v2_s095124386 | s095124386 | s095124386 | p02789 | p02789 | u347471422 | u347471422 | 1,579,473,861 | 2020-01-19T22:44:21 | Test.java | import java.util.*;
public class Test
{
public static void main(String []args) throws IOException
{
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int M=sc.nextInt();
if(N==m)
{
System.out.print("Yes");
}
else
{
System.out.print("No");
}
}
} | Test.java:5: error: cannot find symbol
public static void main(String []args) throws IOException
^
symbol: class IOException
location: class Test
Test.java:11: error: cannot find symbol
if(N==m)
^
symbol: variable m
location: class Test
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u347471422|p02789|0 | u347471422|p02789|0 | codenet | Compile Error | 262 | |
v2_s034816162 | s034816162 | s034816162 | p02789 | p02789 | u347471422 | u347471422 | 1,579,473,918 | 2020-01-19T22:45:18 | Test.java | import java.util.*;
public class Test
{
public static void main(String []args) throws IOException
{
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int M=sc.nextInt();
if(N==M)
{
System.out.print("Yes");
}
else
{
System.out.print("No");
}
}
}
| Test.java:5: error: cannot find symbol
public static void main(String []args) throws IOException
^
symbol: class IOException
location: class Test
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u347471422|p02789|0 | u347471422|p02789|0 | codenet | Compile Error | 263 | |
v2_s475238458 | s475238458 | s475238458 | p02789 | p02789 | u347471422 | u347471422 | 1,579,473,985 | 2020-01-19T22:46:25 | Main.java | import java.util.*;
class Test
{
public static void main(String []args)
{
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int M=sc.nextInt();
if(N==m)
{
System.out.print("Yes");
}
else
{
System.out.print("No");
}
}
}
| Main.java:10: error: cannot find symbol
if(N==m)
^
symbol: variable m
location: class Test
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u347471422|p02789|0 | u347471422|p02789|0 | codenet | Compile Error | 236 | |
v2_s402640785 | s402640785 | s402640785 | p02789 | p02789 | u369712616 | u369712616 | 1,583,974,858 | 2020-03-12T01:00:58 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
byte n = sc.nextByte();
byte m = sc.nextByte();
if(n==m){
System.out.println("Yes");
}else{
System.out.printlm("No");
}
}
} | Main.java:10: error: cannot find symbol
System.out.printlm("No");
^
symbol: method printlm(String)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u369712616|p02789|0 | u369712616|p02789|0 | codenet | Compile Error | 281 | |
v2_s403082820 | s403082820 | s403082820 | p02789 | p02789 | u395242880 | u395242880 | 1,579,547,208 | 2020-01-20T19:06:48 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
if (n == m) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
| 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 | u395242880|p02789|0 | u395242880|p02789|0 | codenet | Compile Error | 258 | |
v2_s717960542 | s717960542 | s717960542 | p02789 | p02789 | u406588655 | u406588655 | 1,579,463,507 | 2020-01-19T19:51:47 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextINt();
String ans;
if(n == m){
ans = "Yes";
}else{
ans = "No;"
}
System.out.println(ans);
}
}
| Main.java:11: error: ';' expected
ans = "No;"
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u406588655|p02789|0 | u406588655|p02789|0 | codenet | Compile Error | 309 | |
v2_s788213863 | s788213863 | s788213863 | p02789 | p02789 | u406588655 | u406588655 | 1,579,463,545 | 2020-01-19T19:52:25 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
String ans;
if(n == m){
ans = "Yes";
}else{
ans = "No;"
}
System.out.println(ans);
}
}
| Main.java:11: error: ';' expected
ans = "No;"
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u406588655|p02789|0 | u406588655|p02789|0 | codenet | Compile Error | 309 | |
v2_s468382717 | s468382717 | s468382717 | p02789 | p02789 | u438271393 | u438271393 | 1,579,464,815 | 2020-01-19T20:13:35 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner();
int n = nextInt();
int m = nextInt();
if(m = n){
System.out.print("Yes");
}else{
System.out.print("No");
}
}
} | Main.java:4: error: no suitable constructor found for Scanner(no arguments)
Scanner sc = new Scanner();
^
constructor Scanner.Scanner(Readable,Pattern) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Readable) is not applicable
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438271393|p02789|0 | u438271393|p02789|0 | codenet | Compile Error | 290 | |
v2_s420577822 | s420577822 | s420577822 | p02789 | p02789 | u453339133 | u453339133 | 1,579,994,818 | 2020-01-25T23:26:58 | Main.java | class Solution {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int m = in.nextInt();
if(n == m) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:3: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Solution
Main.java:3: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class Solution
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u453339133|p02789|0 | u453339133|p02789|0 | codenet | Compile Error | 296 | |
v2_s959820577 | s959820577 | s959820577 | p02789 | p02789 | u469852021 | u469852021 | 1,579,464,283 | 2020-01-19T20:04:43 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args ) throws Exception {
Scanner sc = new Scanner(System.in);
int N = nextInt();
int M = nextInt();
if(N==M){
System.out.println("Yes");
}
else{
System.out.println("No");
}
}
} | Main.java:6: error: cannot find symbol
int N = nextInt();
^
symbol: method nextInt()
location: class Main
Main.java:7: error: cannot find symbol
int M = nextInt();
^
symbol: method nextInt()
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u469852021|p02789|0 | u469852021|p02789|0 | codenet | Compile Error | 300 | |
v2_s508924364 | s508924364 | s508924364 | p02789 | p02789 | u486515092 | u486515092 | 1,579,464,629 | 2020-01-19T20:10:29 | Main.java | mport java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sn = new Scanner(System.in);
int N = sn.nextInt();
int M = sn.nextInt();
if(N == M){
System.out.print("Yes");
}else{
System.out.print("No");
}
}
} | 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 | u486515092|p02789|0 | u486515092|p02789|0 | codenet | Compile Error | 320 | |
v2_s988048740 | s988048740 | s988048740 | p02789 | p02789 | u489126017 | u489126017 | 1,579,553,702 | 2020-01-20T20:55:02 | main.java | import java.util.Scanner;
public class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);
... | main.java:14: error: ';' expected
if(N = M){System.out.println("yes")}
^
main.java:15: error: ';' expected
else{System.out.println("No")}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 496 | |
v2_s858991864 | s858991864 | s858991864 | p02789 | p02789 | u489126017 | u489126017 | 1,579,553,792 | 2020-01-20T20:56:32 | Main.java | import java.util.Scanner;
class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);
... | Main.java:14: error: ';' expected
if(N = M){System.out.println("yes")}
^
Main.java:15: error: ';' expected
else{System.out.println("No")}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 492 | |
v2_s064148274 | s064148274 | s064148274 | p02789 | p02789 | u489126017 | u489126017 | 1,579,553,861 | 2020-01-20T20:57:41 | main.java | import java.util.Scanner;
public class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | main.java:15: error: reached end of file while parsing
else{System.out.println("No");}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 491 | |
v2_s372399212 | s372399212 | s372399212 | p02789 | p02789 | u489126017 | u489126017 | 1,579,553,929 | 2020-01-20T20:58:49 | main.java | import java.util.Scanner;
public class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | main.java:15: error: reached end of file while parsing
else{System.out.println("No");
^
main.java:15: error: reached end of file while parsing
else{System.out.println("No");
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 489 | |
v2_s833054339 | s833054339 | s833054339 | p02789 | p02789 | u489126017 | u489126017 | 1,579,554,189 | 2020-01-20T21:03:09 | main.java | import java.util.Scanner;
public class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | main.java:17: error: reached end of file while parsing
System.out.println("No");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 509 | |
v2_s567865296 | s567865296 | s567865296 | p02789 | p02789 | u489126017 | u489126017 | 1,579,554,255 | 2020-01-20T21:04:15 | main.java | import java.util.Scanner;
public class main {
public static void main(String args[]){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | main.java:15: error: 'else' without 'if'
else{System.out.println("No");
^
main.java:17: error: reached end of file while parsing
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|0 | u489126017|p02789|0 | codenet | Compile Error | 522 | |
v2_s342702221 | s342702221 | s342702221 | p02789 | p02789 | u489126017 | u489126017 | 1,579,593,506 | 2020-01-21T07:58:26 | main.java | import java.util.Scanner;
public class main {
public static void main(String[] args){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | main.java:11: error: variable scan is already defined in method main(String[])
Scanner scan = new Scanner(System.in);
^
main.java:14: error: incompatible types: int cannot be converted to boolean
if(N = M){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 539 | |
v2_s971652675 | s971652675 | s971652675 | p02789 | p02789 | u489126017 | u489126017 | 1,579,593,594 | 2020-01-21T07:59:54 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
System.out.println("Nの値を入力してください");
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.in);... | Main.java:11: error: variable scan is already defined in method main(String[])
Scanner scan = new Scanner(System.in);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 540 | |
v2_s871300162 | s871300162 | s871300162 | p02789 | p02789 | u489126017 | u489126017 | 1,579,593,711 | 2020-01-21T08:01:51 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
System.out.println("Nの値を入力してください");
Scanner scanner = new Scanner(System.in);
int N = scan.nextInt();
System.out.println("Mの値を入力してください");
Scanner scan = new Scanner(System.i... | Main.java:8: error: cannot find symbol
int N = scan.nextInt();
^
symbol: variable scan
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 543 | |
v2_s780824776 | s780824776 | s780824776 | p02789 | p02789 | u489126017 | u489126017 | 1,579,593,760 | 2020-01-21T08:02:40 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
System.out.println("Nの値を入力してください");
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
System.out.println("Mの値を入力してください");
Scanner scanner = new Scanner(Sy... | Main.java:11: error: variable scanner is already defined in method main(String[])
Scanner scanner = new Scanner(System.in);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 552 | |
v2_s579899000 | s579899000 | s579899000 | p02789 | p02789 | u489126017 | u489126017 | 1,579,599,139 | 2020-01-21T09:32:19 | Main.java | import java.util.Scanner
class Main
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = scanner.nextInt();
int M = scanner.nextInt();
scanner.close();
if (N == M){
System.out.println("Yes")
}else{
System.out.println("No")
}
} | Main.java:1: error: ';' expected
import java.util.Scanner
^
Main.java:3: error: '{' expected
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... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 293 | |
v2_s153924826 | s153924826 | s153924826 | p02789 | p02789 | u489126017 | u489126017 | 1,579,599,196 | 2020-01-21T09:33:16 | Main.java | import java.util.Scanner
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = scanner.nextInt();
int M = scanner.nextInt();
scanner.close();
if (N == M){
System.out.println("Yes")
}else{
System.out.println("No")
}
}
} | Main.java:1: error: ';' expected
import java.util.Scanner
^
Main.java:11: error: ';' expected
System.out.println("Yes")
^
Main.java:13: error: ';' expected
System.out.println("No")
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 302 | |
v2_s959044117 | s959044117 | s959044117 | p02789 | p02789 | u489126017 | u489126017 | 1,579,599,239 | 2020-01-21T09:33:59 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = scanner.nextInt();
int M = scanner.nextInt();
scanner.close();
if (N == M){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
} | Main.java:6: error: cannot find symbol
int N = scanner.nextInt();
^
symbol: variable scanner
location: class Main
Main.java:7: error: cannot find symbol
int M = scanner.nextInt();
^
symbol: variable scanner
location: class Main
Main.java:8: error: cannot find symbol
scanner.clo... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489126017|p02789|1 | u489126017|p02789|1 | codenet | Compile Error | 305 | |
v2_s763303574 | s763303574 | s763303574 | p02789 | p02789 | u504876858 | u504876858 | 1,580,150,738 | 2020-01-27T18:45:38 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println(s.nextInt() == s.nextInt() ? "Yes" : "No");
}
}
| Main.java:2: error: illegal character: '\u00a0'
?
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u504876858|p02789|0 | u504876858|p02789|0 | codenet | Compile Error | 217 | |
v2_s709365377 | s709365377 | s709365377 | p02789 | p02789 | u505331148 | u505331148 | 1,580,099,387 | 2020-01-27T04:29:47 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
System.out.println(submit(3,2));
}
public static String submit(int n, int m){
if(n == m)
return "Yes";
return "No";
} | Main.java:13: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u505331148|p02789|0 | u505331148|p02789|0 | codenet | Compile Error | 261 | |
v2_s292851487 | s292851487 | s292851487 | p02789 | p02789 | u530100465 | u530100465 | 1,579,726,713 | 2020-01-22T20:58:33 | Main.java | public class Main {
public static void main(String[] args) {
int n = Integer.valueOf(args[0]);
int m = Integer.valueOf(args[1]);
System.out.print(n == m ? 'Yes' : 'No');
}
} | Main.java:5: error: unclosed character literal
System.out.print(n == m ? 'Yes' : 'No');
^
Main.java:5: error: unclosed character literal
System.out.print(n == m ? 'Yes' : 'No');
^
Main.java:5: error: not a statement
System.o... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u530100465|p02789|0 | u530100465|p02789|0 | codenet | Compile Error | 205 | |
v2_s511425911 | s511425911 | s511425911 | p02789 | p02789 | u534342076 | u534342076 | 1,593,605,668 | 2020-07-01T12:14:28 | Main.java | ああfw | Main.java:1: error: reached end of file while parsing
????
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u534342076|p02789|0 | u534342076|p02789|0 | codenet | Compile Error | 12 | |
v2_s865577379 | s865577379 | s865577379 | p02789 | p02789 | u547671064 | u547671064 | 1,580,041,513 | 2020-01-26T12:25:13 | Main.java | import java.util*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in)
int M = sc.nextInt();
int N = sc.nextInt();
if (M==N){
System.out.println("YES")};
else{
System.out.println("NO")};
}
} | Main.java:1: error: ';' expected
import java.util*;
^
Main.java:4: error: ';' expected
Scanner sc = new Scanner(System.in)
^
Main.java:8: error: ';' expected
System.out.println("YES")};
^
Main.java:10: error: ';' expecte... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u547671064|p02789|0 | u547671064|p02789|0 | codenet | Compile Error | 278 | |
v2_s285734738 | s285734738 | s285734738 | p02789 | p02789 | u547671064 | u547671064 | 1,580,041,545 | 2020-01-26T12:25:45 | Main.java | import java.util*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in)
int M = sc.nextInt();
int N = sc.nextInt();
if (M==N){
System.out.println("YES");}
else{
System.out.println("NO");}
}
} | Main.java:1: error: ';' expected
import java.util*;
^
Main.java:4: error: ';' expected
Scanner sc = new Scanner(System.in)
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u547671064|p02789|0 | u547671064|p02789|0 | codenet | Compile Error | 278 | |
v2_s906284666 | s906284666 | s906284666 | p02789 | p02789 | u563321291 | u563321291 | 1,585,927,582 | 2020-04-03T15:26:22 | Main.java | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//Arra... | Main.java:30: error: array required, but List<String> found
cc[0]="";
^
Main.java:31: error: array required, but List<String> found
cc[1]="";
^
Main.java:33: error: array required, but List<String> found
cc[0]=cc[0]+b;
^
Main.java:33: error: array required, but List<String> found
cc[0]=cc[0]+b;
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u563321291|p02789|1 | u563321291|p02789|0 | codenet | Compile Error | 1,154 | |
v2_s463950570 | s463950570 | s463950570 | p02789 | p02789 | u563321291 | u563321291 | 1,585,927,672 | 2020-04-03T15:27:52 | Main.java | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//Arra... | Main.java:30: error: cannot find symbol
tmp1="";
^
symbol: variable tmp1
location: class Main
Main.java:31: error: cannot find symbol
tmp2="";
^
symbol: variable tmp2
location: class Main
Main.java:33: error: cannot find symbol
tmp1=tmp1+b;
^
symbol: variable tmp1
location: class Main
Main.j... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u563321291|p02789|1 | u563321291|p02789|0 | codenet | Compile Error | 1,192 | |
v2_s483969829 | s483969829 | s483969829 | p02789 | p02789 | u585510378 | u585510378 | 1,584,264,310 | 2020-03-15T09:25:10 | Main.java | import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
if (N == M) {
System.out.println("Yes");
} else {
System.out.printfln("No");
}
}
} | Main.java:13: error: cannot find symbol
System.out.printfln("No");
^
symbol: method printfln(String)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u585510378|p02789|0 | u585510378|p02789|0 | codenet | Compile Error | 292 | |
v2_s422125301 | s422125301 | s422125301 | p02789 | p02789 | u659156129 | u659156129 | 1,593,520,502 | 2020-06-30T12:35:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] a = new int[n];
int min = 0;
int count = 1;
for(int i = 0; i < a.length; ++i){
a[i] = sc.nextInt;
min = a[0];
... | Main.java:11: error: cannot find symbol
a[i] = sc.nextInt;
^
symbol: variable nextInt
location: variable sc of type Scanner
Main.java:19: error: package system does not exist
system.out.println(min);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u659156129|p02789|0 | u659156129|p02789|0 | codenet | Compile Error | 507 | |
v2_s408325751 | s408325751 | s408325751 | p02789 | p02789 | u686751625 | u686751625 | 1,586,014,054 | 2020-04-04T15:27:34 | Main.java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
System.out.println(n == m ? "Yes" : "No");
}
| Main.java:10: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u686751625|p02789|0 | u686751625|p02789|0 | codenet | Compile Error | 271 | |
v2_s316740712 | s316740712 | s316740712 | p02789 | p02789 | u723583932 | u723583932 | 1,584,408,869 | 2020-03-17T01:34:29 | Main.java | #include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
int a,b;
cin>>a>>b;
if(a==b){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
return 0;
}
| 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;
^
Main.java:8: error: not a statement
cout<<"Yes"<<endl;
^
Main.java:11: er... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u723583932|p02789|0 | u723583932|p02789|0 | codenet | Compile Error | 199 | |
v2_s751080494 | s751080494 | s751080494 | p02789 | p02789 | u725115297 | u725115297 | 1,579,624,532 | 2020-01-21T16:35:32 | Main.java | import java.util.Scanner;
import java.util.Arrays;
import Java.lang.Integer;
class Problem1 {
public static void main (String[] args) {
Scanner scanner = new Scanner(System.in);
String tokens[] = scanner.nextLine().split(" ");
int n = Integer.parseInt(tokens[0]);
int m = Integer.parseInt(token... | Main.java:3: error: package Java.lang does not exist
import Java.lang.Integer;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u725115297|p02789|0 | u725115297|p02789|0 | codenet | Compile Error | 460 | |
v2_s169404618 | s169404618 | s169404618 | p02789 | p02789 | u753092134 | u753092134 | 1,584,380,068 | 2020-03-16T17:34:28 | test.java | import java.util.Scanner;
import java.lang.Math;
public class test {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int m=scan.nextInt(),n=scan.nextInt();
if(m==n){
System.out.println("Yes");
}
else{
System.out.println("No")
... | test.java:11: error: ';' expected
System.out.println("No")
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753092134|p02789|0 | u753092134|p02789|0 | codenet | Compile Error | 330 | |
v2_s755393170 | s755393170 | s755393170 | p02789 | p02789 | u753092134 | u753092134 | 1,584,380,688 | 2020-03-16T17:44:48 | test.java | import java.util.Scanner;
import java.lang.Math;
public class test {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt(),b=scan.nextInt();
String str1 = (String.valueOf(a))*b;
String str2 = (String.valueOf(b))*a;
if (str1<str2){
... | test.java:7: error: bad operand types for binary operator '*'
String str1 = (String.valueOf(a))*b;
^
first type: String
second type: int
test.java:8: error: bad operand types for binary operator '*'
String str2 = (String.valueOf(b))*a;
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753092134|p02789|0 | u753092134|p02789|0 | codenet | Compile Error | 411 | |
v2_s292242760 | s292242760 | s292242760 | p02789 | p02789 | u753092134 | u753092134 | 1,584,382,946 | 2020-03-16T18:22:26 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt(),b=scan.nextInt();
String stra = (String.valueOf(a));
String strb = (String.valueOf(b));
if(b>=a){
System.out.println(str... | Main.java:9: error: cannot find symbol
System.out.println(str1.repeat(b));
^
symbol: variable str1
location: class Main
Main.java:12: error: cannot find symbol
System.out.println(str2.repeat(a));
^
symbol: variable str2
lo... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753092134|p02789|0 | u753092134|p02789|0 | codenet | Compile Error | 424 | |
v2_s598229605 | s598229605 | s598229605 | p02789 | p02789 | u753092134 | u753092134 | 1,584,383,070 | 2020-03-16T18:24:30 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int a=scan.nextInt(),b=scan.nextInt();
if(b>=a){
System.out.println(a.repeat(b));
}
else{
System.out.println(b.repeat(a)... | Main.java:8: error: int cannot be dereferenced
System.out.println(a.repeat(b));
^
Main.java:11: error: int cannot be dereferenced
System.out.println(b.repeat(a));
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753092134|p02789|0 | u753092134|p02789|0 | codenet | Compile Error | 341 | |
v2_s069300280 | s069300280 | s069300280 | p02789 | p02789 | u757610032 | u757610032 | 1,584,560,472 | 2020-03-18T19:41:12 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int allTest = scanner.nextInt();
int passed = scanner.nextInt();
if (allTest == passed) {
System.out.println('Yes');
} else {
System.out.println('No');
}
}
} | Main.java:8: error: unclosed character literal
System.out.println('Yes');
^
Main.java:8: error: unclosed character literal
System.out.println('Yes');
^
Main.java:8: error: not a statement
System.out.println('Yes');
^
Main... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u757610032|p02789|0 | u757610032|p02789|0 | codenet | Compile Error | 311 | |
v2_s716457697 | s716457697 | s716457697 | p02789 | p02789 | u767682383 | u767682383 | 1,590,348,244 | 2020-05-24T19:24:04 | Main.java | import java.util.Scanner;
public class Main{
public static void main(Strings[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int M = sc.nextInt();
if(N == M){
System.out.println("Yes");
} else {
System.out.println("No");
}
}
} | Main.java:4: error: cannot find symbol
public static void main(Strings[] args){
^
symbol: class Strings
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u767682383|p02789|0 | u767682383|p02789|0 | codenet | Compile Error | 306 | |
v2_s591732089 | s591732089 | s591732089 | p02789 | p02789 | u768246830 | u768246830 | 1,580,415,685 | 2020-01-30T20:21:25 | Main.java | public static void main(String args[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str[] = br.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
System.out.println(n == m ? "Yes" : "No");
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768246830|p02789|1 | u768246830|p02789|1 | codenet | Compile Error | 300 | |
v2_s526163086 | s526163086 | s526163086 | p02789 | p02789 | u768246830 | u768246830 | 1,580,419,717 | 2020-01-30T21:28:37 | Main.java | public static void main(String args[]) throws IOException {
// 2020/1/30 No.152
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str[] = br.readLine().split(" ");
int n = Integer.parseInt(str[0]);
int m = Integer.parseInt(str[1]);
br.close();
if (n == m )
System.out.p... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768246830|p02789|1 | u768246830|p02789|1 | codenet | Compile Error | 373 | |
v2_s342538569 | s342538569 | s342538569 | p02789 | p02789 | u801296495 | u801296495 | 1,579,466,955 | 2020-01-19T20:49:15 | Main.java | import java.util.Scanner;
class A{
public static void main(String args[]){
Scanner scanner1 = new Scanner(System.in);
int first = Integer.parseInt(scanner1.nextLine());
Scanner scanner2 = new Scanner(System.in);
int second = Integer.parseInt(scanner2.nextLine());
if(first >= 1 && first <= 100 && ... | Main.java:16: error: cannot find symbol
scanner1.colse();
^
symbol: method colse()
location: variable scanner1 of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u801296495|p02789|0 | u801296495|p02789|0 | codenet | Compile Error | 525 | |
v2_s707972922 | s707972922 | s707972922 | p02789 | p02789 | u801296495 | u801296495 | 1,579,467,826 | 2020-01-19T21:03:46 | Main.java | class A{
public static void main(String args[]){
Scanner scanner = new Scanner(System.in);
int first = scanner.nextInt();
int second = scanner.nextInt();
if(first >= 1 && first <= 100 && second >= 0 && second <= first){
if(first == second){
System.out.println("Yes");
}else{
... | Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class A
Main.java:3: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class A
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u801296495|p02789|0 | u801296495|p02789|0 | codenet | Compile Error | 366 | |
v2_s453289819 | s453289819 | s453289819 | p02789 | p02789 | u814949325 | u814949325 | 1,585,493,145 | 2020-03-29T14:45:45 | Main.java | import java.util.*;
class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int m=sc.nextInt();
int n=sc.nextInt();
if(m=n) System.out.println("yes");
else System.out.println("no");
}
} | Main.java:9: error: incompatible types: int cannot be converted to boolean
if(m=n) System.out.println("yes");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u814949325|p02789|0 | u814949325|p02789|0 | codenet | Compile Error | 246 | |
v2_s853632148 | s853632148 | s853632148 | p02789 | p02789 | u816631826 | u816631826 | 1,582,352,956 | 2020-02-22T06:29:16 | Main.java | public static void main(String[] args) {
int n = Integer.parseInt(args[0]);
int m = Integer.parseInt(args[0]);
if (n >=1 || n<= 100) {
if (m >= 0 || m <= n) {
if (m== n) {
System.out.println("yes");
}
}
}
else {
System.out.println("no");
}
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u816631826|p02789|1 | u816631826|p02789|1 | codenet | Compile Error | 276 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.