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_s273945100
s273945100
s273945100
p03565
p03565
u313111801
u313111801
1,509,240,846
2017-10-29T01:34:06
Main.java
#include <string> #include <cmath> #include <cstdio> #include <vector> #include <algorithm> #include <iostream> #include <queue> #include <tuple> #include <functional> #include <set> using namespace std; string s; string t; int main() { cin >> s; cin >> t; bool f = false; string ans = ""; for (int i = 0; i < s...
Main.java:1: error: illegal character: '#' #include <string> ^ Main.java:2: error: illegal character: '#' #include <cmath> ^ Main.java:3: error: illegal character: '#' #include <cstdio> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <algorithm> ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03565|0
u313111801|p03565|0
codenet
Compile Error
829
v2_s854452183
s854452183
s854452183
p03565
p03565
u358295478
u358295478
1,509,243,736
2017-10-29T02:22:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] argv){ Scanner scan = new Scanner(System.in); String ss = scan.nextLine(); String t = scan.nextLine(); StringBuilder s = new StringBuilder(ss); boolean already = false; for (int i = s.le...
Main.java:54: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358295478|p03565|0
u358295478|p03565|0
codenet
Compile Error
1,074
v2_s554708176
s554708176
s554708176
p03565
p03565
u417727951
u417727951
1,509,502,097
2017-11-01T02:08:17
main.java
import java.io.InputStream; import java.util.Scanner; /** * Created on 2017/10/29. */ public class main { public static void Main(String args[]) { Scanner sc = new Scanner(System.in); char[] s = sc.nextLine().toCharArray(); //?,t,c,?,?,?,? char[] t = sc.nextLine().toCharArray(); //c,o,...
main.java:32: error: 'else' without 'if' }else { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u417727951|p03565|1
u417727951|p03565|1
codenet
Compile Error
984
v2_s383083446
s383083446
s383083446
p03565
p03565
u480442172
u480442172
1,509,246,354
2017-10-29T03:05:54
Main.java
import static java.lang.System.out; import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] str = sc.next().toCharArray(); String aaa = sc.next(); char[] target = aaa.toCharArray(); boolea...
Main.java:19: error: '.class' expected if(str[k]=='?' || str[k] == target[]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480442172|p03565|0
u480442172|p03565|0
codenet
Compile Error
1,214
v2_s423784889
s423784889
s423784889
p03565
p03565
u489783389
u489783389
1,518,513,727
2018-02-13T09:22:07
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String t = sc.nextLine(); StringBuilder sb = new StringBuilder(); int tLength = t.length(); int sLength = s.length(); int i = sLength - tLength; for(;i>=0;i--){ boolean replace...
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
u489783389|p03565|1
u489783389|p03565|1
codenet
Compile Error
766
v2_s247357450
s247357450
s247357450
p03565
p03565
u785061386
u785061386
1,587,757,559
2020-04-24T19:45:59
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String sd = scan.next(); String t = scan.next(); scan.close(); for(int i = 0; i < sd.length(); i++) { for(int j = 0; j < t.length() && i+j < sd.length(); j++) { if(sd.cha...
Main.java:3: error: illegal character: '\u3000' public class?Main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785061386|p03565|0
u785061386|p03565|0
codenet
Compile Error
938
v2_s684652959
s684652959
s684652959
p03565
p03565
u809433990
u809433990
1,576,608,301
2019-12-17T18:45:01
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { // Dubious Document 2 Scanner scan = new Scanner(System.in); String s = scan.next(); String t = scan.next(); scan.close(); char sc[]=s.toCharArray(); char st[]=t.toCharArray(); int check=0; int check_i=0; for...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809433990|p03565|0
u809433990|p03565|0
codenet
Compile Error
839
v2_s442732269
s442732269
s442732269
p03565
p03565
u964623614
u964623614
1,509,262,748
2017-10-29T07:39:08
Main.java
import java.util.Scanner; class Main{ static char wildcard='?'; static boolean isWild; static boolean matches; static int ans=-1; static String ansString="UNRESTORABLE"; public static void main(String[] args){ Scanner scn=new Scanner(System.in); ...
Main.java:43: error: cannot find symbol for(i=ans+TLength;i<SLength;i++){ ^ symbol: variable SLength location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964623614|p03565|0
u964623614|p03565|0
codenet
Compile Error
2,102
v2_s597435123
s597435123
s597435123
p03566
p03566
u401141372
u401141372
1,509,438,912
2017-10-31T08:35:12
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.DataInputStream; import java.text.DecimalFormat; import java.io.IOException; import java.io.FileInputStream; import java.text.NumberFormat; import java.io.InputStream; /** * Built using CHel...
Main.java:17: error: ';' expected public static void main(String[] args)thorws Exception { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401141372|p03566|0
u401141372|p03566|0
codenet
Compile Error
5,218
v2_s688141270
s688141270
s688141270
p03566
p03566
u511853544
u511853544
1,509,398,830
2017-10-30T21:27:10
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int n; int t[102]; int v[101]; int a[20100]; int b[20100]; int s; double ans; Scanner in = new Scanner (System.in); n = Integer.parseInt(in.next()); for(int i=1; i<=n; ++i){ t[i]=Integer.parseInt(in.next()); s += t[i]; t[i] += t[i-1]; ...
Main.java:7: error: ']' expected int t[102]; ^ Main.java:8: error: ']' expected int v[101]; ^ Main.java:9: error: ']' expected int a[20100]; ^ Main.java:10: error: ']' expected int b[20100]; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03566|0
u511853544|p03566|0
codenet
Compile Error
1,205
v2_s382901324
s382901324
s382901324
p03566
p03566
u511853544
u511853544
1,509,398,934
2017-10-30T21:28:54
Main.java
import java.util.*; class Main{ int n; int t[]= new int(102); int v[] = new int(101); int a[] = new int(20100); int b[] = new int(20100); int s; double ans; public static void main(String args[]){ Scanner in = new Scanner (System.in); n = Integer.parseInt(in.next()); for(int i=1; i<=n; ++i){ t[i]=Integer.parse...
Main.java:5: error: '[' expected int t[]= new int(102); ^ Main.java:5: error: ']' expected int t[]= new int(102); ^ Main.java:6: error: '[' expected int v[] = new int(101); ^ Main.java:6: error: ']' expected int v[] = new int(101); ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03566|0
u511853544|p03566|0
codenet
Compile Error
1,252
v2_s202440258
s202440258
s202440258
p03566
p03566
u511853544
u511853544
1,509,399,013
2017-10-30T21:30:13
Main.java
import java.util.*; class Main{ int n; int t[]= new int[102]; int v[] = new int[101]; int a[] = new int[20100]; int b[] = new int[20100]; int s; double ans; public static void main(String args[]){ Scanner in = new Scanner (System.in); n = Integer.parseInt(in.next()); for(int i=1; i<=n; ++i){ t[i]=Integer.parse...
Main.java:14: error: non-static variable n cannot be referenced from a static context n = Integer.parseInt(in.next()); ^ Main.java:15: error: non-static variable n cannot be referenced from a static context for(int i=1; i<=n; ++i){ ^ Main.java:16: error: non-static variable t cannot be referenced from...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03566|0
u511853544|p03566|0
codenet
Compile Error
1,252
v2_s643093887
s643093887
s643093887
p03566
p03566
u511853544
u511853544
1,509,399,104
2017-10-30T21:31:44
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int n; int t[]= new int[102]; int v[] = new int[101]; int a[] = new int[20100]; int b[] = new int[20100]; int s; double ans; Scanner in = new Scanner (System.in); n = Integer.parseInt(in.next()); for(int i=1; i<=n; ++i){ t[i]=Integer.parse...
Main.java:43: error: package Sytem does not exist Sytem.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03566|0
u511853544|p03566|0
codenet
Compile Error
1,252
v2_s868694178
s868694178
s868694178
p03566
p03566
u511853544
u511853544
1,509,399,155
2017-10-30T21:32:35
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int n; int t[]= new int[102]; int v[] = new int[101]; int a[] = new int[20100]; int b[] = new int[20100]; int s; double ans; Scanner in = new Scanner (System.in); n = Integer.parseInt(in.next()); for(int i=1; i<=n; ++i){ t[i]=Integer.parse...
Main.java:17: error: variable s might not have been initialized s += t[i]; ^ Main.java:28: error: variable s might not have been initialized for(int i=0; i<=s; ++i) a[i] = Math.min(i, s-i); ^ Main.java:38: error: variable ans might not have been initialized for(int i=1; i<s; ++i) ans += (float)a[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511853544|p03566|0
u511853544|p03566|0
codenet
Compile Error
1,253
v2_s921015739
s921015739
s921015739
p03566
p03566
u731412691
u731412691
1,526,048,600
2018-05-11T14:23:20
Main.java
import java.util.*; public class Main { @lombok.ToString private class Section { int l, r, v; public Section(int now, int t, int v) { this.l = now; this.r = now + t; this.v = v; } public double getMaxV(double t) { if (t < l) { ...
Main.java:4: error: package lombok does not exist @lombok.ToString ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u731412691|p03566|0
u731412691|p03566|0
codenet
Compile Error
1,599
v2_s824988508
s824988508
s824988508
p03567
p03567
u060468699
u060468699
1,508,964,534
2017-10-25T20:48:54
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = null; try { scanner = new Scanner(System.in); String s = scanner.next(); if (s.contains("AC")) { System.out.println("Yes"); return ; } System.out.println("No"); } finally { if (scanner != null) { scanne...
Main.java:4: error: cannot find symbol Scanner scanner = null; ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060468699|p03567|0
u060468699|p03567|0
codenet
Compile Error
345
v2_s701767764
s701767764
s701767764
p03567
p03567
u653981267
u653981267
1,508,720,755
2017-10-23T01:05:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String ans = "No"; for(int i = 0; i < s.length() - 1; i++) { if((s.charAt(i) == 'A')) && (s.charAt(i + 1) == 'C')) ans = "Yes"; } System.out.printl...
Main.java:9: error: illegal start of expression if((s.charAt(i) == 'A')) && (s.charAt(i + 1) == 'C')) ans = "Yes"; ^ Main.java:9: error: ';' expected if((s.charAt(i) == 'A')) && (s.charAt(i + 1) == 'C')) ans = "Yes"; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03567|0
u653981267|p03567|0
codenet
Compile Error
333
v2_s687883029
s687883029
s687883029
p03567
p03567
u934790581
u934790581
1,508,721,236
2017-10-23T01:13:56
Main.java
package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.indexOf("AC")==-1) System.out.println("No"); else System.out.printlm("Yes") } }
Main.java:8: error: ';' expected else System.out.printlm("Yes") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934790581|p03567|0
u934790581|p03567|0
codenet
Compile Error
296
v2_s858009687
s858009687
s858009687
p03567
p03567
u934790581
u934790581
1,508,721,245
2017-10-23T01:14:05
Main.java
package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (S.indexOf("AC")==-1) System.out.println("No"); else System.out.printlm("Yes"); } }
Main.java:8: error: cannot find symbol else System.out.printlm("Yes"); ^ symbol: method printlm(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934790581|p03567|0
u934790581|p03567|0
codenet
Compile Error
297
v2_s247807088
s247807088
s247807088
p03567
p03567
u960637342
u960637342
1,509,325,224
2017-10-30T01:00:24
Main.java
public class Main { public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String S = in.readLine(); if(S.indexOf("AC") >= 0) { System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960637342|p03567|0
u960637342|p03567|0
codenet
Compile Error
350
v2_s308952030
s308952030
s308952030
p03568
p03568
u222822036
u222822036
1,599,315,689
2020-09-05T14:21:29
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ static void solve(){//Here is the main function int N = nextInt(); ArrayList<Integer> list = nextIntArray(); int output = Math.pow(3, N); int even = 1; for(int i = 0; i < N; i++){ if(list.get(i) % 2 == 0){ even *= 2; } }...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int output = Math.pow(3, N); ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03568|0
u222822036|p03568|0
codenet
Compile Error
3,050
v2_s115146236
s115146236
s115146236
p03568
p03568
u659156129
u659156129
1,596,828,194
2020-08-07T19:23:14
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[] a = new int[n]; for(int i=0; i<a.length; i++){ a[i] = scn.nextInt(); } int check = 0; for(int i=0; i<a.length; i++){ if(a[i]...
Main.java:16: error: cannot find symbol else System.out.println(math.pow(2,n)); ^ symbol: variable math location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03568|0
u659156129|p03568|0
codenet
Compile Error
436
v2_s527940418
s527940418
s527940418
p03568
p03568
u659156129
u659156129
1,596,829,354
2020-08-07T19:42:34
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[] a = new int[n]; for(int i=0; i<a.length; i++){ a[i] = scn.nextInt(); } int check = 1; for(int i=0; i<a.length; i++){ if(a[i]...
Main.java:15: error: incompatible types: possible lossy conversion from double to int int ans = Math.pow(3,n) - check; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03568|0
u659156129|p03568|0
codenet
Compile Error
428
v2_s461011261
s461011261
s461011261
p03568
p03568
u659156129
u659156129
1,596,829,410
2020-08-07T19:43:30
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[] a = new int[n]; for(int i=0; i<a.length; i++){ a[i] = scn.nextInt(); } int check = 1; for(int i=0; i<a.length; i++){ if(a[i]...
Main.java:15: error: incompatible types: possible lossy conversion from double to long long ans = Math.pow(3,n) - check; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03568|0
u659156129|p03568|0
codenet
Compile Error
429
v2_s721074817
s721074817
s721074817
p03568
p03568
u659156129
u659156129
1,596,829,827
2020-08-07T19:50:27
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[] a = new int[n]; for(int i=0; i<a.length; i++){ a[i] = scn.nextInt(); } int check = 1; for(int i=0; i<a.length; i++){ if(a[i]...
Main.java:15: error: incompatible types: possible lossy conversion from double to int int ans = Math.pow(3,n) - check; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03568|0
u659156129|p03568|0
codenet
Compile Error
418
v2_s764141926
s764141926
s764141926
p03569
p03569
u255122982
u255122982
1,508,723,411
2017-10-23T01:50:11
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int f = scanner.nextInt(); scanner = new Scanner(System.in); String str = new String; str = scanner.nextLine(); Syste...
Main.java:7: error: '(' or '[' expected String str = new String; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u255122982|p03569|0
u255122982|p03569|0
codenet
Compile Error
1,707
v2_s162540822
s162540822
s162540822
p03569
p03569
u274962354
u274962354
1,601,086,808
2020-09-26T02:20:08
Main.java
oxxx
Main.java:1: error: reached end of file while parsing oxxx ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03569|0
u274962354|p03569|0
codenet
Compile Error
4
v2_s846551744
s846551744
s846551744
p03569
p03569
u450832845
u450832845
1,508,726,065
2017-10-23T02:34:25
Main.java
import java.util.Scanner; import java.util.Stack; class Main { public static void main(String[] args) { new Main().compute(); } void compute() { Scanner sc = new Scanner(System.in); String S = sc.next(); List<Character> removedX = new ArrayList<>(); int N = S.lengt...
Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class ArrayList locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u450832845|p03569|0
u450832845|p03569|0
codenet
Compile Error
1,210
v2_s195250344
s195250344
s195250344
p03569
p03569
u450832845
u450832845
1,508,733,989
2017-10-23T04:46:29
Main.java
import java.util.Scanner; import java.util.Stack; class Main { public static void main(String[] args) { new Main().compute(); } void compute() { Scanner sc = new Scanner(System.in); String S = sc.next(); List<Character> removedX = new ArrayList<>(); boolean[] is...
Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class ArrayList locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u450832845|p03569|1
u450832845|p03569|0
codenet
Compile Error
1,202
v2_s381730447
s381730447
s381730447
p03569
p03569
u450832845
u450832845
1,508,734,111
2017-10-23T04:48:31
Main.java
import java.util.Scanner; import java.util.Stack; class Main { public static void main(String[] args) { new Main().compute(); } void compute() { Scanner sc = new Scanner(System.in); String S = sc.next(); List<Character> removedX = new ArrayList<>(); boolean[] is...
Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:13: error: cannot find symbol List<Character> removedX = new ArrayList<>(); ^ symbol: class ArrayList locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u450832845|p03569|1
u450832845|p03569|0
codenet
Compile Error
1,203
v2_s542614131
s542614131
s542614131
p03570
p03570
u675503966
u675503966
1,508,725,356
2017-10-23T02:22:36
Main.java
import java.io.*; import java.util.*; public class Main { InputStream is; PrintWriter out; String INPUT = ""; boolean[] k1; int[] k2; void solve() { char[] c = ns().toCharArray(); k1 = new boolean[c.length]; k2 = new int[c.length]; int N = dfs(0,c); o...
Main.java:39: error: cannot find symbol m ^ symbol: class m location: class Main Main.java:40: error: variable tmpmin is already defined in method dfs(int,char[]) tmpmin = Math.min(tmpmin,dfs(i+1,c)+1); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03570|0
u675503966|p03570|0
codenet
Compile Error
4,175
v2_s854731338
s854731338
s854731338
p03573
p03573
u018773111
u018773111
1,593,406,813
2020-06-29T05:00:13
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 ans; if (a == b) ans = c; if (b == c) ans = a; if (c == a) ans = b; System.out.println(ans); ...
Main.java:13: error: variable ans might not have been initialized System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p03573|0
u018773111|p03573|0
codenet
Compile Error
324
v2_s920482590
s920482590
s920482590
p03573
p03573
u090164191
u090164191
1,574,657,328
2019-11-25T04:48:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] input = new int[3]; for(int i = 0; i < 3; i++){ input[i] = sc.nextInt(); } if(candidate == input[1]) System.out.println(input[2]); ...
Main.java:11: error: cannot find symbol if(candidate == input[1]) ^ symbol: variable candidate location: class Main Main.java:13: error: cannot find symbol else if(candidate == input[2]) ^ symbol: variable candidate location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u090164191|p03573|0
u090164191|p03573|0
codenet
Compile Error
457
v2_s069021270
s069021270
s069021270
p03573
p03573
u189568205
u189568205
1,508,029,802
2017-10-15T01:10:02
Main.java
import java.util.* public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int A = in.nextInt(); int B = in.nextInt(); int C = in.nextInt(); if (A == B) { System.out.println(C); } else if (A == C) { System.out.println(B); } e...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u189568205|p03573|0
u189568205|p03573|0
codenet
Compile Error
366
v2_s870894074
s870894074
s870894074
p03573
p03573
u313111801
u313111801
1,508,029,997
2017-10-15T01:13:17
Main.java
#include "stdafx.h" #include <string> #include <cmath> #include <cstdio> #include <vector> #include <algorithm> #include <iostream> #include <queue> #include <tuple> #include <functional> #include <set> #include "stdafx.h" using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a == b) { cout << c ...
Main.java:1: error: illegal character: '#' #include "stdafx.h" ^ Main.java:1: error: class, interface, enum, or record expected #include "stdafx.h" ^ Main.java:2: error: illegal character: '#' #include <string> ^ Main.java:3: error: illegal character: '#' #include <cmath> ^ Main.java:4: error: illegal characte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03573|0
u313111801|p03573|0
codenet
Compile Error
438
v2_s944438204
s944438204
s944438204
p03573
p03573
u313111801
u313111801
1,508,038,594
2017-10-15T03:36:34
Main.java
#include <string> #include <cmath> #include <cstdio> #include <vector> #include <algorithm> #include <iostream> #include <queue> #include <tuple> #include <functional> #include <set> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout <<a^b^c<<endl; return 0; }
Main.java:1: error: illegal character: '#' #include <string> ^ Main.java:2: error: illegal character: '#' #include <cmath> ^ Main.java:3: error: illegal character: '#' #include <cstdio> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <algorithm> ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03573|1
u313111801|p03573|0
codenet
Compile Error
292
v2_s433089882
s433089882
s433089882
p03573
p03573
u334656323
u334656323
1,518,817,084
2018-02-16T21:38:04
Main.java
import com.sun.java_cup.internal.runtime.Scanner; import com.sun.java_cup.internal.runtime.Symbol; 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(); if(A==B){ S...
Main.java:1: error: package com.sun.java_cup.internal.runtime is not visible import com.sun.java_cup.internal.runtime.Scanner; ^ (package com.sun.java_cup.internal.runtime is declared in module java.xml, which does not export it) Main.java:2: error: package com.sun.java_cup.internal.ru...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03573|0
u334656323|p03573|0
codenet
Compile Error
494
v2_s183885298
s183885298
s183885298
p03573
p03573
u362743886
u362743886
1,562,088,004
2019-07-02T17:20:04
hogehoge.java
public class hogehoge { public static void main(String[] args) { int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int z = Integer.parseInt(args[2]); ans = x; if (x == y) { ans = z; } else if (x == z) { ans = y; } System.out.println(ans); ...
hogehoge.java:8: error: cannot find symbol ans = x; ^ symbol: variable ans location: class hogehoge hogehoge.java:10: error: cannot find symbol ans = z; ^ symbol: variable ans location: class hogehoge hogehoge.java:12: error: cannot find symbol ans = y; ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362743886|p03573|0
u362743886|p03573|0
codenet
Compile Error
328
v2_s934330716
s934330716
s934330716
p03573
p03573
u362743886
u362743886
1,562,088,200
2019-07-02T17:23:20
Main.java
public class Main { public static void main(String[] args) { int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int z = Integer.parseInt(args[2]); ans = x; if (x == y) { ans = z; } else if (x == z) { ans = y; } System.out.println(ans); } ...
Main.java:8: error: cannot find symbol ans = x; ^ symbol: variable ans location: class Main Main.java:10: error: cannot find symbol ans = z; ^ symbol: variable ans location: class Main Main.java:12: error: cannot find symbol ans = y; ^ symbol: variable ans locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362743886|p03573|0
u362743886|p03573|0
codenet
Compile Error
324
v2_s170242477
s170242477
s170242477
p03573
p03573
u362743886
u362743886
1,562,088,242
2019-07-02T17:24:02
Main.java
public class Main { public static void main(String[] args) { int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int z = Integer.parseInt(args[2]); int ans = x; if (x == y) { ans = z; } else if (x == z) { ans = y; } System.out.println(ans); ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362743886|p03573|0
u362743886|p03573|0
codenet
Compile Error
323
v2_s819812155
s819812155
s819812155
p03573
p03573
u362743886
u362743886
1,562,088,541
2019-07-02T17:29:01
Main.java
public class Main { public static void main(String[] args) { String[] str = args[0].split(" ", 0); int x = Integer.parseInt(str[0]); int y = Integer.parseInt(str[1]); int z = Integer.parseInt(str[2]); int ans = x; if (x == y) { ans = z; } else if (x == z) { ...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362743886|p03573|0
u362743886|p03573|0
codenet
Compile Error
371
v2_s446249223
s446249223
s446249223
p03573
p03573
u362743886
u362743886
1,562,088,978
2019-07-02T17:36:18
Main.java
import java.util.*; public class Main { public static void main(String[] args) { int x = Integer.parseInt(str[0]); int y = Integer.parseInt(str[1]); int z = Integer.parseInt(str[2]); int ans = x; if (x == y) { ans = z; } else if (x == z) { ans = y; } System.ou...
Main.java:6: error: cannot find symbol int x = Integer.parseInt(str[0]); ^ symbol: variable str location: class Main Main.java:7: error: cannot find symbol int y = Integer.parseInt(str[1]); ^ symbol: variable str location: class Main Main.java:8:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362743886|p03573|0
u362743886|p03573|0
codenet
Compile Error
343
v2_s721654306
s721654306
s721654306
p03573
p03573
u397065106
u397065106
1,553,313,346
2019-03-23T03:55:46
Main.java
import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; class Main { public static void main(String[] args) throws FileNotFoundException { Scanner sc = new Scanner(System.in); Scanner sc = new Scanner(new File("stdin.txt")); int H = sc.nextInt(); int W = sc....
Main.java:10: error: variable sc is already defined in method main(String[]) Scanner sc = new Scanner(new File("stdin.txt")); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397065106|p03573|0
u397065106|p03573|0
codenet
Compile Error
1,448
v2_s113650702
s113650702
s113650702
p03573
p03573
u440949328
u440949328
1,512,330,634
2017-12-03T19:50:34
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(); //計算 if (A == B && B != C){ System.out.println(C); }else if (A == C && A != B){ System.out.printl...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440949328|p03573|0
u440949328|p03573|0
codenet
Compile Error
417
v2_s335328072
s335328072
s335328072
p03573
p03573
u499381410
u499381410
1,591,560,317
2020-06-07T20:05:17
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner sc = new Scanner(System.in); int a[] = new int[3]; for(int i=0;i<3;i++)a[i]=sc.nextInt(); if(a[0]==a[1])System.out.println(a[2]); else if (a[0]==a[2])System.out.println(a[1]); els...
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499381410|p03573|0
u499381410|p03573|0
codenet
Compile Error
350
v2_s780522927
s780522927
s780522927
p03573
p03573
u540491484
u540491484
1,553,746,213
2019-03-28T04:10:13
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; cout << (a == b ? c : a == c ? b : a) << endl; }
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:7: error: not a statement cin >> a >> b >> c; ^ Main.java:9: error: not a statement cout << (a == b ? c : a == c ? ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u540491484|p03573|0
u540491484|p03573|0
codenet
Compile Error
163
v2_s731831809
s731831809
s731831809
p03573
p03573
u547363570
u547363570
1,597,631,945
2020-08-17T02:39:05
Main.java
/** * */ package One out of Three; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int A = scanner.nextInt(); int B = scanner.nextInt(); int C = scanner.nextInt(); if(A==B){ System.out.println(C); } if(B==C){ Sys...
Main.java:4: error: ';' expected package One out of Three; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03573|0
u547363570|p03573|0
codenet
Compile Error
449
v2_s283486576
s283486576
s283486576
p03573
p03573
u547363570
u547363570
1,597,631,979
2020-08-17T02:39:39
Main.java
/** * */ package One_out_of_Three; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int A = scanner.nextInt(); int B = scanner.nextInt(); int C = scanner.nextInt(); if(A==B){ System.out.println(C); } if(B==C){ Sys...
Main.java:13: error: cannot find symbol int A = scanner.nextInt(); ^ symbol: variable scanner location: class Main Main.java:14: error: cannot find symbol int B = scanner.nextInt(); ^ symbol: variable scanner location: class Main Main.java:15: error: cannot find symbol int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03573|0
u547363570|p03573|0
codenet
Compile Error
449
v2_s451507098
s451507098
s451507098
p03573
p03573
u600215903
u600215903
1,584,070,749
2020-03-13T03:39:09
Main.java
#include <iostream> using namespace std; int main(){ int a; int b; int c; cin >> a >> b >> c; if(a == b){ cout << c << endl; } else if(a == c){ cout << b << endl; } else{ cout << a << endl; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:9: error: not a statement cin >> a >> b >> c; ^ Main.java:11: error: not a statement cout << c << endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u600215903|p03573|0
u600215903|p03573|0
codenet
Compile Error
259
v2_s169802748
s169802748
s169802748
p03573
p03573
u653981267
u653981267
1,508,029,443
2017-10-15T01:04: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(); for(int i = 0; i < 3; i++) { a[i] = sc.nextInt(); } int f = a[0]; int ans = 0; int c = 0; for(int i = 0; i < 3; i++) { if(a[i] != f...
Main.java:6: error: incompatible types: int cannot be converted to int[] int[] a = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03573|0
u653981267|p03573|0
codenet
Compile Error
429
v2_s192117876
s192117876
s192117876
p03573
p03573
u754062586
u754062586
1,562,088,380
2019-07-02T17:26:20
Main.java
import java.util; public class Main{ public static void main(String[] args){ Scanner sc = Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if(A=B){ System.out.println("C"); }else if (A=C){ System.out.println("B"); }else if ...
Main.java:1: error: cannot find symbol import java.util; ^ symbol: class util location: package java Main.java:6: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = Scanner(System....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754062586|p03573|0
u754062586|p03573|0
codenet
Compile Error
369
v2_s009069812
s009069812
s009069812
p03573
p03573
u754062586
u754062586
1,562,089,334
2019-07-02T17:42:14
Main.java
import java.util; public class Main{ public static void main(String[] args){ Scanner sc = Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); if(A=B){ System.out.println("C"); }else if (A=C){ System.out.println("B"); }else if ...
Main.java:1: error: cannot find symbol import java.util; ^ symbol: class util location: package java Main.java:6: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = Scanner(System....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754062586|p03573|0
u754062586|p03573|0
codenet
Compile Error
369
v2_s152679858
s152679858
s152679858
p03573
p03573
u754363448
u754363448
1,508,164,369
2017-10-16T14:32:49
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ int A,B,C; Scanner scan = new Scanner(System.in); A = scan.nextInt(); B = scan.nextInt(); C = scan.nextInt(); if(A==B){ System.out.println(C...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754363448|p03573|0
u754363448|p03573|0
codenet
Compile Error
508
v2_s524451642
s524451642
s524451642
p03573
p03573
u754363448
u754363448
1,508,164,500
2017-10-16T14:35:00
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ int A,B,C; Scanner scan = new Scanner(System.in); A = scan.nextInt(); B = scan.nextInt(); C = scan.nextInt(); if(A==B){ System.out.println(C...
Main.java:12: error: cannot find symbol System.out.println(C?); ^ symbol: variable C? location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754363448|p03573|0
u754363448|p03573|0
codenet
Compile Error
519
v2_s455327291
s455327291
s455327291
p03573
p03573
u781719273
u781719273
1,508,097,051
2017-10-15T19:50:51
Main.java
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.InputMismatchException; import java.util.Map; public class Main { InputStream is; PrintWriter out; St...
Main.java:43: error: cannot find symbol { new Tester().run(); } ^ symbol: class Tester location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u781719273|p03573|0
u781719273|p03573|0
codenet
Compile Error
3,029
v2_s900623679
s900623679
s900623679
p03573
p03573
u789281321
u789281321
1,509,068,024
2017-10-27T01:33:44
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { Scanner in=new Scanner(System.in); int a=in.n...
Main.java:14: error: ';' expected int arr[]={a,b,c} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u789281321|p03573|0
u789281321|p03573|0
codenet
Compile Error
675
v2_s078857980
s078857980
s078857980
p03573
p03573
u789281321
u789281321
1,509,068,046
2017-10-27T01:34:06
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner in=new Scanner(System.in); int a=i...
Main.java:14: error: ';' expected int arr[]={a,b,c} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u789281321|p03573|0
u789281321|p03573|0
codenet
Compile Error
678
v2_s287880121
s287880121
s287880121
p03573
p03573
u789281321
u789281321
1,509,068,077
2017-10-27T01:34:37
Main.java
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner in=new Scanner(System.in); int a=i...
Main.java:19: error: cannot find symbol out.println(arr[2]); ^ symbol: variable out location: class Main Main.java:23: error: cannot find symbol out.println(arr[0]); ^ symbol: variable out location: class Main Main.java:28: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u789281321|p03573|0
u789281321|p03573|0
codenet
Compile Error
679
v2_s830407590
s830407590
s830407590
p03573
p03573
u856382746
u856382746
1,511,288,377
2017-11-21T18:19:37
Main.java
package contest; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String x = br.readLine...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856382746|p03573|0
u856382746|p03573|0
codenet
Compile Error
595
v2_s102105741
s102105741
s102105741
p03573
p03573
u856382746
u856382746
1,511,288,389
2017-11-21T18:19:49
Main.java
package contest; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // TODO 自動生成されたメソッド・スタブ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String x = br.readLine...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856382746|p03573|0
u856382746|p03573|0
codenet
Compile Error
595
v2_s314655083
s314655083
s314655083
p03573
p03573
u902482201
u902482201
1,590,723,339
2020-05-29T03:35:39
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = sc...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902482201|p03573|0
u902482201|p03573|0
codenet
Compile Error
513
v2_s969634180
s969634180
s969634180
p03573
p03573
u922853348
u922853348
1,508,033,008
2017-10-15T02:03:28
Main.java
public class Main{ static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreTokens()) { try { ...
Main.java:3: error: cannot find symbol BufferedReader br; ^ symbol: class BufferedReader location: class FastReader Main.java:4: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class FastReader Main.java:46: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922853348|p03573|0
u922853348|p03573|0
codenet
Compile Error
1,523
v2_s389303921
s389303921
s389303921
p03573
p03573
u937106652
u937106652
1,508,029,976
2017-10-15T01:12:56
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a==b){ System.out.println(c); }else if(a==c){ System.out.println(b); }else{ System.out...
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
u937106652|p03573|0
u937106652|p03573|0
codenet
Compile Error
346
v2_s014270617
s014270617
s014270617
p03573
p03573
u948522631
u948522631
1,583,961,751
2020-03-11T21:22:31
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a=Integer.parseInt(scan.next()); int b=Integer.parseInt(scan.next()); int c=Integer.parseInt(scan.next()); if (a==b) { S...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u948522631|p03573|0
u948522631|p03573|0
codenet
Compile Error
451
v2_s790511438
s790511438
s790511438
p03573
p03573
u975719989
u975719989
1,586,487,769
2020-04-10T03:02:49
Main.java
class One out of Three{ public static void main(String[] args){ java.util.Scanner scan = new java.util.Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a == b){ System.out.println(c); } else if(a == c){...
Main.java:1: error: '{' expected class One out of Three{ ^ Main.java:19: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u975719989|p03573|0
u975719989|p03573|0
codenet
Compile Error
409
v2_s238253863
s238253863
s238253863
p03573
p03573
u975719989
u975719989
1,586,487,913
2020-04-10T03:05:13
Main.java
class main{ public static void main(String[] args){ java.util.Scanner scan = new java.util.Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a == b){ System.out.println(c); } else if(a == c){ Syst...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u975719989|p03573|0
u975719989|p03573|0
codenet
Compile Error
398
v2_s482669343
s482669343
s482669343
p03574
p03574
u018679195
u018679195
1,523,232,603
2018-04-09T00:10:03
Main.java
class Solution { public: vector<vector<bool>> visited; int n,m; void dfs(vector<vector<char>>& board, int x, int y) { if (board[x][y] == 'M') { board[x][y] = 'X'; return ; } if (board[x][y] != 'E') return ; int offsetX[8] = {-1, -1, -1, ...
Main.java:2: error: illegal start of type public: ^ Main.java:6: error: <identifier> expected void dfs(vector<vector<char>>& board, int x, int y) { ^ Main.java:6: error: <identifier> expected void dfs(vector<vector<char>>& board, int x, int y) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03574|3
u018679195|p03574|3
codenet
Compile Error
1,544
v2_s795730873
s795730873
s795730873
p03574
p03574
u018679195
u018679195
1,562,691,000
2019-07-09T16:50:00
Main.java
#include <iostream> using namespace std; int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,}; int main( ) { int h,w; cin>>h>>w; char _map[55][55]; for(int i = 0; i<52; i++) { _map[0][i]='.'; _map[i][0]='.'; } for(int i = 1; i<=h; i++) { for(int j = 1; j<=w;...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:3: error: class, interface, enum, or record expected int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,}; ^ Main.java:7: error: not a statement ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03574|4
u018679195|p03574|4
codenet
Compile Error
951
v2_s363094028
s363094028
s363094028
p03574
p03574
u176003399
u176003399
1,593,788,299
2020-07-03T14:58:19
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 W = sc.nextInt(); char grid[][] = new char [H][W]; for(int i=0; i<H; i++){ for(int j=0; j<W; j++){ grid[i][j]=sc.next(); } } ...
Main.java:11: error: incompatible types: String cannot be converted to char grid[i][j]=sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176003399|p03574|0
u176003399|p03574|0
codenet
Compile Error
1,481
v2_s287075200
s287075200
s287075200
p03574
p03574
u218740431
u218740431
1,586,047,844
2020-04-05T00:50:44
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 = 0; String d; String [] str = new String [a+2]; String [] str2 = new String [a]; StringBuilder sb = new S...
Main.java:21: error: ')' or ',' expected for(int i=0;i<a;i++){System.out.println(str2[i];} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03574|0
u218740431|p03574|0
codenet
Compile Error
737
v2_s282603010
s282603010
s282603010
p03574
p03574
u547363570
u547363570
1,597,806,656
2020-08-19T03:10:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); map=new String [H][W]; for(int i=0;i<H;i++) {//データの打ち込み for(int j=0;j<W...
Main.java:9: error: cannot find symbol map=new String [H][W]; ^ symbol: variable map location: class Main Main.java:14: error: cannot find symbol map[i][j]=sc.nextInt(); ^ symbol: variable map location: class Main Main.java:20: error: cannot find symbol if(map[i][j]=="."){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,358
v2_s867130106
s867130106
s867130106
p03574
p03574
u547363570
u547363570
1,597,806,798
2020-08-19T03:13:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); ststic public String[][] map; map=new String [H][W]; for(int i=0;i<H;i++) ...
Main.java:9: error: not a statement ststic public String[][] map; ^ Main.java:9: error: ';' expected ststic public String[][] map; ^ Main.java:9: error: illegal start of expression ststic public String[][] map; ^ Main.java:10: error: <identifier> expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,395
v2_s579009728
s579009728
s579009728
p03574
p03574
u547363570
u547363570
1,597,806,895
2020-08-19T03:14:55
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); static public String[][] map; map=new String [H][W]; for(int i=0;i<H;i++) ...
Main.java:9: error: illegal start of expression static public String[][] map; ^ Main.java:10: error: <identifier> expected map=new String [H][W]; ^ Main.java:13: error: illegal start of type for(int i=0;i<H;i++) {//???????? ^ Main.java:13: error: > or ',' expected f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,395
v2_s428408140
s428408140
s428408140
p03574
p03574
u547363570
u547363570
1,597,806,938
2020-08-19T03:15:38
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; map=new String [H][W]; for(int i=0;i<H;i++) {//データの打ち込み ...
Main.java:15: error: incompatible types: int cannot be converted to String map[i][j]=sc.nextInt(); ^ Main.java:22: error: incompatible types: int cannot be converted to String map[i][j]=0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,381
v2_s754783001
s754783001
s754783001
p03574
p03574
u547363570
u547363570
1,597,807,169
2020-08-19T03:19:29
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; map=new String [H][W]; for(int i=0;i<H;i++) {//データの打ち込み ...
Main.java:15: error: cannot find symbol map[i][j]=sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner Main.java:22: error: incompatible types: int cannot be converted to String map[i][j]=0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,384
v2_s829533111
s829533111
s829533111
p03574
p03574
u547363570
u547363570
1,597,807,446
2020-08-19T03:24:06
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; map=new String [H][W]; for(int i=0;i<H;i++) {//データの打ち込み ...
Main.java:22: error: incompatible types: int cannot be converted to String map[i][j]=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,378
v2_s291207001
s291207001
s291207001
p03574
p03574
u547363570
u547363570
1,597,808,067
2020-08-19T03:34:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; map=new String [H][W]; result=new int[H][W]; for(in...
Main.java:64: error: not a statement }even if{ ^ Main.java:64: error: ';' expected }even if{ ^ Main.java:64: error: '(' expected }even if{ ^ Main.java:65: error: ';' expected System.out.print(result[i][j]) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,780
v2_s196850694
s196850694
s196850694
p03574
p03574
u547363570
u547363570
1,597,808,148
2020-08-19T03:35:48
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; map=new String [H][W]; result=new int[H][W]; for(in...
Main.java:11: error: cannot find symbol result=new int[H][W]; ^ symbol: variable result location: class Main Main.java:21: error: cannot find symbol result[i][j]=-1; ^ symbol: variable result location: class Main Main.java:28: error: cannot find symbol result[H][W]="0"; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,777
v2_s980541927
s980541927
s980541927
p03574
p03574
u547363570
u547363570
1,597,808,208
2020-08-19T03:36:48
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; int[][] result; map=new String [H][W]; result=new int[H][W]; ...
Main.java:29: error: incompatible types: String cannot be converted to int result[H][W]="0"; ^ Main.java:70: error: cannot find symbol if(result[i][W]==-1){ ^ symbol: variable i location: class Main Main.java:71: error: cannot find symbol System.out.print...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,800
v2_s537619765
s537619765
s537619765
p03574
p03574
u547363570
u547363570
1,597,808,279
2020-08-19T03:37:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H = sc.nextInt();//マス目の設定 int W = sc.nextInt(); String[][] map; int[][] result; map=new String [H][W]; result=new int[H][W]; ...
Main.java:70: error: cannot find symbol if(result[i][W]==-1){ ^ symbol: variable i location: class Main Main.java:71: error: cannot find symbol System.out.println(map[i][W]); ^ symbol: variable i location: class Main Main.java:73: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547363570|p03574|0
u547363570|p03574|0
codenet
Compile Error
1,798
v2_s163844874
s163844874
s163844874
p03574
p03574
u587100042
u587100042
1,591,644,184
2020-06-08T19:23:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h=sc.nextInt(),w=sc.nextInt(); char[][] ch=new int[h][w]; int[] dx={1,0,-1,0,1,-1,1,-1}; int[] dy={0,1,0,-1,1,-1,-1,1}; for(int i=0;i<h;i++){ ch[i]=sc.next().toCharAr...
Main.java:20: error: ';' expected for(int d=0,d<8;d++){ ^ Main.java:20: error: illegal start of type for(int d=0,d<8;d++){ ^ Main.java:20: error: ')' expected for(int d=0,d<8;d++){ ^ Main.java:20: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p03574|0
u587100042|p03574|0
codenet
Compile Error
900
v2_s584549463
s584549463
s584549463
p03574
p03574
u587100042
u587100042
1,591,644,216
2020-06-08T19:23:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h=sc.nextInt(),w=sc.nextInt(); char[][] ch=new int[h][w]; int[] dx={1,0,-1,0,1,-1,1,-1}; int[] dy={0,1,0,-1,1,-1,-1,1}; for(int i=0;i<h;i++){ ch[i]=sc.next().toCharAr...
Main.java:8: error: incompatible types: int[][] cannot be converted to char[][] char[][] ch=new int[h][w]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p03574|0
u587100042|p03574|0
codenet
Compile Error
900
v2_s359880388
s359880388
s359880388
p03574
p03574
u711620077
u711620077
1,564,943,303
2019-08-04T18:28:23
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:19: error: ')' expected if (s.charAt(i).equal("#") { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,184
v2_s218436688
s218436688
s218436688
p03574
p03574
u711620077
u711620077
1,564,943,368
2019-08-04T18:29:28
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:19: error: cannot find symbol if (s.charAt(i).equal("#")) { ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,186
v2_s794397565
s794397565
s794397565
p03574
p03574
u711620077
u711620077
1,564,943,607
2019-08-04T18:33:27
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:20: error: char cannot be dereferenced if (s.charAt(i).equal("#")) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,222
v2_s336945715
s336945715
s336945715
p03574
p03574
u711620077
u711620077
1,564,943,767
2019-08-04T18:36:07
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:20: error: char cannot be dereferenced if (s.charAt(i).equal("#")) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,222
v2_s199641625
s199641625
s199641625
p03574
p03574
u711620077
u711620077
1,564,943,808
2019-08-04T18:36:48
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:20: error: char cannot be dereferenced if (s.charAt(i).equal("#")) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,222
v2_s741906198
s741906198
s741906198
p03574
p03574
u711620077
u711620077
1,564,947,561
2019-08-04T19:39:21
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:20: error: cannot find symbol if (s[i].equal("#")) { ^ symbol: method equal(String) location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,227
v2_s305630721
s305630721
s305630721
p03574
p03574
u711620077
u711620077
1,564,948,049
2019-08-04T19:47:29
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:20: error: cannot find symbol if (s[i].equal("#")) { ^ symbol: method equal(String) location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,229
v2_s252745118
s252745118
s252745118
p03574
p03574
u711620077
u711620077
1,564,948,717
2019-08-04T19:58:37
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int hight = sc.nextInt(); int width = sc.nextInt(); ArrayList<String> list = new ArrayList<>(); for (int i =0; i < hight; i++) { // 文字列の入力 ...
Main.java:22: error: cannot find symbol if (mine.equal(s[i])) { ^ symbol: method equal(String) location: variable mine of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p03574|0
u711620077|p03574|0
codenet
Compile Error
2,264
v2_s545007283
s545007283
s545007283
p03574
p03574
u816631826
u816631826
1,540,142,130
2018-10-21T17:15:30
Main.java
#include <iostream> using namespace std; int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,}; int main( ) { int h,w; cin>>h>>w; char _map[55][55]; for(int i = 0; i<52; i++) { _map[0][i]='.'; _map[i][0]='.'; } for(int i = 1; i<=h; i++) { for(int j = 1; j<=w;...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:3: error: class, interface, enum, or record expected int _move[8][2] = {-1,-1,0,-1,1,-1,-1,0,1,0,-1,1,0,1,1,1,}; ^ Main.java:7: error: not a statement ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p03574|0
u816631826|p03574|0
codenet
Compile Error
951
v2_s734701555
s734701555
s734701555
p03574
p03574
u849943974
u849943974
1,508,031,188
2017-10-15T01:33:08
Main.java
public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int H = sc.nextInt(); int W = sc.nextInt(); String map[][] = new String[H][W]; String S; for (int i = 0; i < H; i++) { S = sc.next(); for (int j = 0; j < W; j++) { map[i][j] = "."; if (S.charAt(j + ...
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
u849943974|p03574|0
u849943974|p03574|0
codenet
Compile Error
1,260
v2_s434558612
s434558612
s434558612
p03574
p03574
u863370423
u863370423
1,523,232,293
2018-04-09T00:04:53
Solution.java
public class Solution { public char[][] updateBoard(char[][] board, int[] click) { int m = board.length, n = board[0].length; Queue<int[]> queue = new LinkedList<>(); queue.add(click); while (!queue.isEmpty()) { int[] cell = queue.poll(); int row = cell[0], c...
Solution.java:4: error: cannot find symbol Queue<int[]> queue = new LinkedList<>(); ^ symbol: class Queue location: class Solution Solution.java:4: error: cannot find symbol Queue<int[]> queue = new LinkedList<>(); ^ symbol: class LinkedList location:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03574|2
u863370423|p03574|1
codenet
Compile Error
1,861
v2_s944570927
s944570927
s944570927
p03574
p03574
u863370423
u863370423
1,540,142,132
2018-10-21T17:15:32
Main.java
#include<stdio.h> #include<string.h> #include<math.h> int main() { int n,len,i,j,x; int b; char a[10001]; while(scanf("%d",&n)!=EOF) { getchar(); while(n--) { memset(a,0,sizeof(a)); gets(a); len=strlen(a); b=sqrt(len); ...
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<string.h> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:7: error: unnamed classes are ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03574|3
u863370423|p03574|2
codenet
Compile Error
605
v2_s222219435
s222219435
s222219435
p03575
p03575
u024824950
u024824950
1,556,232,157
2019-04-25T22:42:37
Main.java
import java.util.*; //System.out.println("") public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] a = new int[m]; int[] b = new int[m]; for (int i=0; i<m; i++){ ...
Main.java:17: error: illegal character: '\u3000' UF.init();?//??? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03575|0
u024824950|p03575|0
codenet
Compile Error
2,971
v2_s417258161
s417258161
s417258161
p03575
p03575
u627528006
u627528006
1,508,034,398
2017-10-15T02:26:38
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(),m=sc.nextInt(); ArrayList<Integer>[] data=new ArrayList[n+1]; for(int i=0;i<n+1;i++){ data[i]=new ArrayList<Integer>(); } int[] info=new int[n]; for(int i=0;i<m;i+...
Main.java:9: error: cannot find symbol ArrayList<Integer>[] data=new ArrayList[n+1]; ^ symbol: class ArrayList location: class Main Main.java:9: error: cannot find symbol ArrayList<Integer>[] data=new ArrayList[n+1]; ^ symbol: class ArrayList location: class Main Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u627528006|p03575|0
u627528006|p03575|0
codenet
Compile Error
978
v2_s563294416
s563294416
s563294416
p03575
p03575
u849943974
u849943974
1,508,038,583
2017-10-15T03:36:23
Main.java
import java.util.Scanner; public class Main { static int n; static int m; static int a[], b[]; static boolean visited[]; static boolean graph[][]; static void DFS(int v) { visited[v] = true; for (int v2 = 0; v2 < n; v2++) { if (graph[v][v2] == false) continue; if (visited[v2] == true) continu...
Main.java:24: error: not a statement ? int count = 0; ^ Main.java:24: error: ';' expected ? int count = 0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849943974|p03575|0
u849943974|p03575|0
codenet
Compile Error
1,280
v2_s185705555
s185705555
s185705555
p03576
p03576
u653981267
u653981267
1,508,033,969
2017-10-15T02:19:29
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 k = sc.nextInt(); long[][] arr = new long[n][2]; for(int i = 0; i < n; i++) { long x = sc.nextLong(); long y = sc.nextLong(); arr[i] = ...
Main.java:12: error: illegal start of expression arr[i] = {x, y}; ^ Main.java:12: error: not a statement arr[i] = {x, y}; ^ Main.java:12: error: ';' expected arr[i] = {x, y}; ^ Main.java:12: error: not a statement arr[i] = {x, y}; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03576|0
u653981267|p03576|0
codenet
Compile Error
921
v2_s830632320
s830632320
s830632320
p03576
p03576
u653981267
u653981267
1,508,040,892
2017-10-15T04:14:52
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 k = sc.nextInt(); ArrayList<Long> xlist = new ArrayList<Long>(); ArrayList<Long> ylist = new ArrayList<Long>(); long[][] co = new long[n][2]; for...
Main.java:24: error: variable k is already defined in method main(String[]) for(int k = 0; k < n; k++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03576|0
u653981267|p03576|0
codenet
Compile Error
1,229
v2_s408059536
s408059536
s408059536
p03576
p03576
u729186675
u729186675
1,577,669,459
2019-12-30T01:30:59
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.IntStream; public class Main public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int n = scanner.nextInt(); int k = scanner.nextInt(); List<Point> points = new ArrayLi...
Main.java:6: error: '{' expected public class Main ^ Main.java:8: 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:52: error: class, interface, enum, or recor...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729186675|p03576|0
u729186675|p03576|0
codenet
Compile Error
1,474