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_s066155896
s066155896
s066155896
p02773
p02773
u499889187
u499889187
1,587,241,367
2020-04-18T20:22:47
Scanner.java
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // package java.util; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputS...
Scanner.java:6: error: package exists in another module: java.base package java.util; ^ Scanner.java:39: error: package sun.util.locale.provider is not visible import sun.util.locale.provider.LocaleProviderAdapter; ^ (package sun.util.locale.provider is declared in module java.base, which does n...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499889187|p02773|0
u499889187|p02773|0
codenet
Compile Error
51,039
v2_s732890085
s732890085
s732890085
p02773
p02773
u526365587
u526365587
1,588,272,134
2020-04-30T18:42:14
Main.java
import apple.laf.JRSUIUtils; import javax.print.DocFlavor; import java.awt.*; import java.io.PrintWriter; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.*; import java.util.List; import java.util.stream.Collectors; public class Main { static String br = System.getProperty("line.sep...
Main.java:1: error: package apple.laf does not exist import apple.laf.JRSUIUtils; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526365587|p02773|0
u526365587|p02773|0
codenet
Compile Error
1,487
v2_s373283592
s373283592
s373283592
p02773
p02773
u541235354
u541235354
1,585,692,115
2020-03-31T22:01:55
Main.java
import java.util.Scanner; import java.util.Map; import java.util.Map.Entry; import java.util.HashMap; import java.util.List; import java.security.KeyStore.Entry; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; class Main { ...
Main.java:6: error: a type with the same simple name is already defined by the single-type-import of Entry import java.security.KeyStore.Entry; ^ Main.java:28: error: reference to Entry is ambiguous List<Entry<String, Integer>> list = new ArrayList<>(map.entrySet()); ^ both interface java.util.Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541235354|p02773|0
u541235354|p02773|0
codenet
Compile Error
1,553
v2_s625654394
s625654394
s625654394
p02773
p02773
u587100042
u587100042
1,590,366,569
2020-05-25T00:29: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(),f=1; HashMap<String,Integer> map=new HashMap<String,Integer>(); for(int i=0;i<n;i++){ String s=sc.next(); if(map.get(s)==null){ map.put(s,1); ...
Main.java:19: error: cannot find symbol for(String key:map.setKey()){ ^ symbol: method setKey() location: variable map of type HashMap<String,Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02773|0
u587100042|p02773|0
codenet
Compile Error
554
v2_s636403873
s636403873
s636403873
p02773
p02773
u610133777
u610133777
1,581,891,391
2020-02-16T22:16:31
atcoder0216_C.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class atcoder0216_C{ public class Main{ // public static void main(String args[]){ Scanner scan = new Scanner(System.in); List<String> S = new ArrayList<String>(); List<String> I = new ArrayList<Str...
atcoder0216_C.java:15: error: illegal start of type for(int i=0;i<N;i++) { ^ atcoder0216_C.java:15: error: > or ',' expected for(int i=0;i<N;i++) { ^ atcoder0216_C.java:15: error: <identifier> expected for(int i=0;i<N;i++) { ^ atcoder0216_C.java:19: error: <identifier> expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610133777|p02773|0
u610133777|p02773|0
codenet
Compile Error
1,349
v2_s618290417
s618290417
s618290417
p02773
p02773
u659156129
u659156129
1,596,811,132
2020-08-07T14:38:52
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(); String[] s = new String[n]; int[] count = new int[]; for(int i=0; i<s.length; i++){ a[i] = scn.next(); count[i] = 0; } Arr...
Main.java:8: error: array dimension missing int[] count = new int[]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
656
v2_s340874893
s340874893
s340874893
p02773
p02773
u659156129
u659156129
1,596,811,167
2020-08-07T14:39: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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ a[i] = scn.next(); count[i] = 0; } Ar...
Main.java:10: error: cannot find symbol a[i] = scn.next(); ^ symbol: variable a location: class Main Main.java:23: error: cannot find symbol if(count[i] == max) System.out.println(s[i]); ^ symbol: variable max location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
658
v2_s779680965
s779680965
s779680965
p02773
p02773
u659156129
u659156129
1,596,811,227
2020-08-07T14:40: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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ a[i] = scn.next(); count[i] = 0; } Ar...
Main.java:10: error: cannot find symbol a[i] = scn.next(); ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
653
v2_s604298209
s604298209
s604298209
p02773
p02773
u659156129
u659156129
1,596,811,270
2020-08-07T14:41:10
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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ s[i] = scn.next(); count[i] = 0; } Ar...
Main.java:23: error: cannot find symbol if(count[i] == max) System.out.println(s[i]); ^ symbol: variable max location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
658
v2_s220557422
s220557422
s220557422
p02773
p02773
u659156129
u659156129
1,596,811,304
2020-08-07T14:41:44
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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ a[i] = scn.next(); count[i] = 0; } Ar...
Main.java:10: error: cannot find symbol a[i] = scn.next(); ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
654
v2_s828559008
s828559008
s828559008
p02773
p02773
u659156129
u659156129
1,596,811,347
2020-08-07T14:42: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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ s[i] = scn.next(); count[i] = 0; } Ar...
Main.java:19: error: variable x might not have been initialized x = Math.max(x,count[i]); ^ Main.java:23: error: variable x might not have been initialized if(count[i]==x) System.out.println(s[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
653
v2_s057919231
s057919231
s057919231
p02773
p02773
u659156129
u659156129
1,596,811,433
2020-08-07T14:43:53
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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ s[i] = scn.next(); count[i] = 0; } Ar...
Main.java:19: error: variable max might not have been initialized max = Math.max(max,count[i]); ^ Main.java:23: error: variable max might not have been initialized if(count[i]==max) System.out.println(s[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
661
v2_s752562285
s752562285
s752562285
p02773
p02773
u659156129
u659156129
1,596,811,853
2020-08-07T14:50:53
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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ s[i] = scn.next(); count[i] = 0; } Ar...
Main.java:19: error: variable max might not have been initialized max = Math.max(max,count[i]); ^ Main.java:23: error: variable max might not have been initialized if(count[i]==max) System.out.println(s[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
661
v2_s914798020
s914798020
s914798020
p02773
p02773
u659156129
u659156129
1,596,811,977
2020-08-07T14:52:57
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(); String[] s = new String[n]; int[] count = new int[n]; for(int i=0; i<s.length; i++){ s[i] = scn.next(); count[i] = 0; } Ar...
Main.java:22: error: variable max might not have been initialized max = Math.max(max,count[i]); ^ Main.java:26: error: variable max might not have been initialized if(count[i]==max) System.out.println(s[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02773|0
u659156129|p02773|0
codenet
Compile Error
725
v2_s186775349
s186775349
s186775349
p02773
p02773
u686751625
u686751625
1,585,940,742
2020-04-03T19:05:42
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { InputReader in = new InputReader(System.in); int n = in.readInt(); HashMap<String ,Integer> map = new HashMap<>(); for(int i =0; i<n; i++) { String s = ...
Main.java:6: error: cannot find symbol InputReader in = new InputReader(System.in); ^ symbol: class InputReader location: class Main Main.java:6: error: cannot find symbol InputReader in = new InputReader(System.in); ^ symbol: class InputReader location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686751625|p02773|0
u686751625|p02773|0
codenet
Compile Error
1,032
v2_s463057157
s463057157
s463057157
p02773
p02773
u699628455
u699628455
1,590,676,050
2020-05-28T14:27:30
Main.java
import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int N = sc.nextInt(); Map<String, Integer> count = new TreeMap<String, Integer>(); String base = sc.next(); count.put(base, 1); for (int i = 1; i < N; i++) { String temp = sc.next(); ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02773|0
u699628455|p02773|0
codenet
Compile Error
647
v2_s065441453
s065441453
s065441453
p02773
p02773
u771368026
u771368026
1,581,885,240
2020-02-16T20:34:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ string[] name; int[] num; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; int a = sc.nextInt(); int listlen = name.length if (listlen == 0){ str...
Main.java:14: error: ';' expected int listlen = name.length ^ Main.java:27: error: ';' expected string[listlen] = a: ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
886
v2_s757500836
s757500836
s757500836
p02773
p02773
u771368026
u771368026
1,581,885,281
2020-02-16T20:34:41
Main.java
import java.util.*; public class Main { public static void main(String[] args){ string[] name; int[] num; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; int a = sc.nextInt(); int listlen = name.length; if (listlen == 0){ st...
Main.java:4: error: cannot find symbol string[] name; ^ symbol: class string location: class Main Main.java:16: error: cannot find symbol string[0] = a; ^ symbol: variable string location: class Main Main.java:20: error: cannot find symbol if(string[k]==a){ ^ symbol: variable st...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
885
v2_s475093321
s475093321
s475093321
p02773
p02773
u771368026
u771368026
1,581,885,315
2020-02-16T20:35:15
Main.java
import java.util.*; public class Main { public static void main(String[] args){ string name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; int a = sc.nextInt(); int listlen = name.length; if (listlen == 0){ st...
Main.java:4: error: cannot find symbol string name[]; ^ symbol: class string location: class Main Main.java:16: error: cannot find symbol string[0] = a; ^ symbol: variable string location: class Main Main.java:20: error: cannot find symbol if(string[k]==a){ ^ symbol: variable st...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
885
v2_s055583293
s055583293
s055583293
p02773
p02773
u771368026
u771368026
1,581,885,354
2020-02-16T20:35:54
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; int a = sc.nextInt(); int listlen = name.length; if (listlen == 0){ st...
Main.java:16: error: cannot find symbol string[0] = a; ^ symbol: variable string location: class Main Main.java:20: error: cannot find symbol if(string[k]==a){ ^ symbol: variable string location: class Main Main.java:27: error: cannot find symbol string[listlen] = a; ^ symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
885
v2_s437364146
s437364146
s437364146
p02773
p02773
u771368026
u771368026
1,581,885,398
2020-02-16T20:36:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.nextInt(); int listlen = name.length; if (listlen == 0){ ...
Main.java:13: error: incompatible types: int cannot be converted to String String a = sc.nextInt(); ^ Main.java:16: error: cannot find symbol string[0] = a; ^ symbol: variable string location: class Main Main.java:20: error: cannot find symbol if(string[k]==a){ ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
888
v2_s967302834
s967302834
s967302834
p02773
p02773
u771368026
u771368026
1,581,885,427
2020-02-16T20:37:07
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.nextInt(); int listlen = name.length; if (listlen == 0){ ...
Main.java:13: error: incompatible types: int cannot be converted to String String a = sc.nextInt(); ^ Main.java:28: error: incompatible types: int cannot be converted to String name[listlen] = 1; ^ Main.java:33: error: variable i is already defined in method main(Str...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
882
v2_s904619830
s904619830
s904619830
p02773
p02773
u771368026
u771368026
1,581,885,472
2020-02-16T20:37:52
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.nextString(); int listlen = name.length; if (listlen == 0){ ...
Main.java:13: error: cannot find symbol String a = sc.nextString(); ^ symbol: method nextString() location: variable sc of type Scanner Main.java:33: error: variable i is already defined in method main(String[]) for(int i=0;i<num.length-1;i++){ ^ Main.java:39: error: cannot find sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
884
v2_s488120176
s488120176
s488120176
p02773
p02773
u771368026
u771368026
1,581,885,544
2020-02-16T20:39:04
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.next(); int listlen = name.length; if (listlen == 0){ na...
Main.java:33: error: variable i is already defined in method main(String[]) for(int i=0;i<num.length-1;i++){ ^ Main.java:39: error: cannot find symbol string s=name[j]; ^ symbol: class string location: class Main Main.java:45: error: variable i is already defined in method main(String[]) f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
878
v2_s339014561
s339014561
s339014561
p02773
p02773
u771368026
u771368026
1,581,885,659
2020-02-16T20:40:59
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; int num[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.next(); int listlen = name.length; if (listlen == 0){ na...
Main.java:14: error: variable name might not have been initialized int listlen = name.length; ^ Main.java:17: error: variable num might not have been initialized num[0] = 1; ^ Main.java:21: error: variable num might not have been initialized num[k] = num[k]+1; ^ Main.java:28: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
878
v2_s541665171
s541665171
s541665171
p02773
p02773
u771368026
u771368026
1,581,885,703
2020-02-16T20:41:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[] = new String[]; int num[] = new int[]; int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.next(); int listlen = name.length; ...
Main.java:4: error: array dimension missing String name[] = new String[]; ^ Main.java:5: error: array dimension missing int num[] = new int[]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
905
v2_s812323362
s812323362
s812323362
p02773
p02773
u771368026
u771368026
1,581,885,803
2020-02-16T20:43:23
Main.java
import java.util.*; public class Main { public static void main(String[] args){ String name[]; name = new String[200000]; int num[]; num = new int[200000] int flag = 0; Scanner sc = new Scanner(System.in); int i = sc.nextInt(); for(int j = 0 ;j<i ;j++){ flag = 0; String a = sc.next(); in...
Main.java:7: error: ';' expected num = new int[200000] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771368026|p02773|0
u771368026|p02773|0
codenet
Compile Error
931
v2_s428540577
s428540577
s428540577
p02773
p02773
u793144126
u793144126
1,593,610,257
2020-07-01T13:30:57
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); HashMap<String,Integer> hash = new HashMap<>(); int n =sc.nextInt(); for (int i=0;i<n;i++){ String s = sc.next(); if (hash.containsKey(s)){ ...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u793144126|p02773|0
u793144126|p02773|0
codenet
Compile Error
776
v2_s689145214
s689145214
s689145214
p02773
p02773
u816631826
u816631826
1,587,339,689
2020-04-19T23:41:29
Main.java
public static void main(String[] args) { ArrayList<String> name = new ArrayList<>(); ArrayList<Integer> count = new ArrayList<>(); ArrayList<String> ans = new ArrayList<>(); int max=0,n; Scanner input=new Scanner(System.in); ...
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|p02773|1
u816631826|p02773|1
codenet
Compile Error
1,705
v2_s004496984
s004496984
s004496984
p02773
p02773
u816631826
u816631826
1,587,347,828
2020-04-20T01:57:08
Main.java
public class Main { public static void main(String[] args) { ArrayList<String> name = new ArrayList<>(); ArrayList<Integer> count = new ArrayList<>(); ArrayList<String> ans = new ArrayList<>(); int max=0,n; Scanner input=ne...
Main.java:3: error: cannot find symbol ArrayList<String> name = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:3: error: cannot find symbol ArrayList<String> name = new ArrayList<>(); ^ symbol: class Arra...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02773|2
u816631826|p02773|1
codenet
Compile Error
1,740
v2_s354425648
s354425648
s354425648
p02773
p02773
u834431693
u834431693
1,593,793,575
2020-07-03T16:26:15
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); HashMap<String, Integer> map = new HashMap<String, Integer>(); int max=1; for(int i=0; i<N; i++){ String str = sc.next(); if(map.containsKey(str))...
Main.java:22: error: cannot find symbol List<Entry<String, Integer>> list = new ArrayList<Entry<String, Integer>>(map.entrySet()); ^ symbol: class Entry location: class Main Main.java:22: error: cannot find symbol List<Entry<String, Integer>> list = new ArrayList<Entry<String, Integer>>(map.entrySet())...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u834431693|p02773|1
u834431693|p02773|0
codenet
Compile Error
1,026
v2_s628456940
s628456940
s628456940
p02773
p02773
u845442981
u845442981
1,581,883,985
2020-02-16T20:13:05
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Scanner; import java.util.TreeMap; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner...
Main.java:46: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u845442981|p02773|0
u845442981|p02773|0
codenet
Compile Error
1,271
v2_s420309663
s420309663
s420309663
p02773
p02773
u863370423
u863370423
1,587,347,859
2020-04-20T01:57:39
Main.java
public class Main { public static void main(String[] args) { ArrayList<String> name = new ArrayList<>(); ArrayList<Integer> count = new ArrayList<>(); ArrayList<String> ans = new ArrayList<>(); int max=0,n; Scanner input=ne...
Main.java:3: error: cannot find symbol ArrayList<String> name = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:3: error: cannot find symbol ArrayList<String> name = new ArrayList<>(); ^ symbol: class Arra...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02773|0
u863370423|p02773|0
codenet
Compile Error
1,740
v2_s951972297
s951972297
s951972297
p02773
p02773
u870981361
u870981361
1,588,337,244
2020-05-01T12:47:24
Main.java
import java.util.*; public class Main{ public static void main(String[] args) throws IOException{ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); int S[] = new int[N]; Map<String, Integer> map = new HashMap<String, Integer>(); int max_cnt =1; for(int i=0;i<N;i++){ ...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException{ ^ symbol: class IOException location: class Main Main.java:10: error: cannot find symbol A[i] = sc.next(); ^ symbol: variable A location: class Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02773|0
u870981361|p02773|0
codenet
Compile Error
782
v2_s674507113
s674507113
s674507113
p02773
p02773
u870981361
u870981361
1,588,338,364
2020-05-01T13:06:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); String A[] = new String[N]; Map<String, Integer> map = new HashMap<String, Integer>(); int max_cnt = 1; for(int i = 0; i < N;i++){ A[i]...
Main.java:24: error: cannot find symbol Collection.sort(ar); ^ symbol: method sort(ArrayList<String>) location: interface Collection 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02773|0
u870981361|p02773|0
codenet
Compile Error
799
v2_s729913556
s729913556
s729913556
p02773
p02773
u870981361
u870981361
1,588,338,395
2020-05-01T13:06:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); String A[] = new String[N]; Map<String, Integer> map = new HashMap<String, Integer>(); int max_cnt = 1; for(int i = 0; i < N;i++){ A[i]...
Main.java:24: error: cannot find symbol Collection.sort(ar); ^ symbol: method sort(ArrayList<String>) location: interface Collection 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870981361|p02773|0
u870981361|p02773|0
codenet
Compile Error
799
v2_s032858403
s032858403
s032858403
p02773
p02773
u878116546
u878116546
1,581,889,119
2020-02-16T21:38:39
Main.java
#include <bits/stdc++.h> #include <iostream> #include <list> #include <string> #include <algorithm> using namespace std; int main() { // 頂点数 (木なので辺数は N-1 で確定) int n; cin >> n; string data[n]; set<string> lists; for(int i=0;i<n;i++){ cin >> data[i]; lists.insert(data[i]); } sort(lists,lists+n); vector<tuple<st...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <list> ^ Main.java:4: error: illeg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u878116546|p02773|0
u878116546|p02773|0
codenet
Compile Error
783
v2_s628509483
s628509483
s628509483
p02773
p02773
u878116546
u878116546
1,581,889,197
2020-02-16T21:39:57
Main.java
#include <bits/stdc++.h> #include <iostream> #include <list> #include <string> #include <algorithm> using namespace std; int main() { // 頂点数 (木なので辺数は N-1 で確定) int n; cin >> n; string data[n]; set<string> lists; for(int i=0;i<n;i++){ cin >> data[i]; lists.insert(data[i]); } sort(lists,lists+n); vector<tuple<st...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <list> ^ Main.java:4: error: illeg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u878116546|p02773|0
u878116546|p02773|0
codenet
Compile Error
783
v2_s374903922
s374903922
s374903922
p02773
p02773
u878116546
u878116546
1,581,889,405
2020-02-16T21:43:25
Main.java
#include <bits/stdc++.h> #include <iostream> #include <list> #include <string> #include <algorithm> using namespace std; int main() { // 頂点数 (木なので辺数は N-1 で確定) int n; cin >> n; string data[n]; set<string> lists; for(int i=0;i<n;i++){ cin >> data[i]; lists.insert(data[i]); } sort(data,data+n); vector<tuple<stri...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <list> ^ Main.java:4: error: illeg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u878116546|p02773|0
u878116546|p02773|0
codenet
Compile Error
781
v2_s637725006
s637725006
s637725006
p02773
p02773
u878116546
u878116546
1,581,889,465
2020-02-16T21:44:25
Main.java
#include <bits/stdc++.h> #include <iostream> #include <list> #include <string> #include <algorithm> using namespace std; int main() { // 頂点数 (木なので辺数は N-1 で確定) int n; cin >> n; string data[n]; set<string> lists; for(int i=0;i<n;i++){ cin >> data[i]; lists.insert(data[i]); } sort(data,data+n); vector<tuple<stri...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <list> ^ Main.java:4: error: illeg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u878116546|p02773|0
u878116546|p02773|0
codenet
Compile Error
781
v2_s751183827
s751183827
s751183827
p02773
p02773
u918923596
u918923596
1,596,534,087
2020-08-04T09:41:27
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 max = 0; Map<String, Integer> map = new HashMap<String, Integer>(); while(N > 0) { String str = sc.next(); if(Map.containsKey(str)) { Map.put(str,...
Main.java:13: error: non-static method containsKey(Object) cannot be referenced from a static context if(Map.containsKey(str)) { ^ Main.java:14: error: non-static method put(K,V) cannot be referenced from a static context Map.put(str,(Map.get(str))); ^ where K,V are type-variables: K extend...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918923596|p02773|0
u918923596|p02773|0
codenet
Compile Error
799
v2_s277259797
s277259797
s277259797
p02774
p02774
u167206842
u167206842
1,584,199,973
2020-03-14T15:32:53
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); //X未満の数が何個あるか数える方針でにぶたん //数える時もにぶたん long N = sc.nextLong(); long K = sc.nextLong(); long A[] = new long[N]; for(int i =0;i<N;i++){ A[i]=sc.nextLong(); } //昇順に整列...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long A[] = new long[N]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02774|0
u167206842|p02774|0
codenet
Compile Error
557
v2_s007082813
s007082813
s007082813
p02774
p02774
u431125128
u431125128
1,581,886,317
2020-02-16T20:51:57
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(); int[] a=new int[n]; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); } long[] b=new long[n*(n-1)/2]; long cnt=0; for(int i=0;i<n;...
Main.java:16: error: incompatible types: possible lossy conversion from long to int b[cnt]=a[i]*a[j]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02774|0
u431125128|p02774|0
codenet
Compile Error
468
v2_s291950348
s291950348
s291950348
p02774
p02774
u436783461
u436783461
1,592,778,976
2020-06-21T22:36:16
Main.java
public class Main { //クラス名はMain public static void main(String[] args) { //コード Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); print(n); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
213
v2_s802569101
s802569101
s802569101
p02774
p02774
u436783461
u436783461
1,592,779,065
2020-06-21T22:37:45
Main.java
import java.util.Scanner; public class Main { //クラス名はMain public static void main(String[] args) { //コード Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); print(n); } }
Main.java:7: error: cannot find symbol print(n); ^ symbol: method print(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
239
v2_s235175352
s235175352
s235175352
p02774
p02774
u436783461
u436783461
1,592,779,519
2020-06-21T22:45:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[] A = new int[n]; int cnt = 0; while(sc.hasNextLine()){ A[cnt++] =...
Main.java:14: error: class Tmp is public, should be declared in a file named Tmp.java public class Tmp{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
1,050
v2_s689121271
s689121271
s689121271
p02774
p02774
u436783461
u436783461
1,592,779,612
2020-06-21T22:46:52
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[] A = new int[n]; int cnt = 0; while(sc.hasNextLine()){ A[cnt++] =...
Main.java:16: error: class Tmp is public, should be declared in a file named Tmp.java public class Tmp{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
1,099
v2_s751205246
s751205246
s751205246
p02774
p02774
u436783461
u436783461
1,592,779,695
2020-06-21T22:48:15
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[] A = new int[n]; int cnt = 0; while(sc.hasNextLine()){ A[cnt++] =...
Main.java:42: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
1,047
v2_s240070329
s240070329
s240070329
p02774
p02774
u436783461
u436783461
1,592,780,192
2020-06-21T22:56:32
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[] a = new int[n]; int cnt = 0; while(sc.hasNextLine()){ a[cnt...
Main.java:14: error: variable cnt is already defined in method main(String[]) int cnt=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|0
u436783461|p02774|0
codenet
Compile Error
995
v2_s814384960
s814384960
s814384960
p02774
p02774
u436783461
u436783461
1,593,098,806
2020-06-25T15:26:46
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long k = sc.nextLong(); long[] tmp = new long[n]; long[] a = new long[n*(n-1)/2]; for(int i=0;i<tmp.length;i++){ tmp[i] = sc.nextInt(...
Main.java:20: error: incompatible types: possible lossy conversion from long to int System.out.println(a[k-1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02774|1
u436783461|p02774|1
codenet
Compile Error
578
v2_s310084423
s310084423
s310084423
p02774
p02774
u504228740
u504228740
1,582,030,420
2020-02-18T12:53:40
Main.java
import java.util.*; import java.io.PrintWriter; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); long k=sc.nextLong(); Double[] a=new Double[n]; long zero=0; long plus=0; long ma=0; ArrayList<Double> p=new ArrayList<>(); ArrayList<Doubl...
Main.java:36: error: cannot find symbol Collections.sort(p,reverseOrder()); ^ symbol: method reverseOrder() location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p02774|0
u504228740|p02774|0
codenet
Compile Error
1,339
v2_s928948230
s928948230
s928948230
p02774
p02774
u504228740
u504228740
1,582,215,240
2020-02-20T16:14:00
Main.java
public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); System.out.println(0); } }
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
u504228740|p02774|1
u504228740|p02774|1
codenet
Compile Error
130
v2_s933247563
s933247563
s933247563
p02774
p02774
u507706381
u507706381
1,581,981,444
2020-02-17T23:17:24
Main.java
import java.util.*; public class Main { private static int N; private static long K; private static int[] A; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); K = sc.nextLong(); A = new int[N]; for (int i = 0; i < N; i++) { A[i] = Integer....
Main.java:13: error: cannot find symbol A[i] = Integer.paraeInt(sc.next()); ^ symbol: method paraeInt(String) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p02774|0
u507706381|p02774|0
codenet
Compile Error
1,623
v2_s280556451
s280556451
s280556451
p02774
p02774
u596403663
u596403663
1,582,290,283
2020-02-21T13:04:43
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc =new Scanner(System.in); long n =sc.nextLong();long k =sc.nextLong();long[] array = new long[n];long[] new_array = new long[n*(n-1)/2]; for(int i=0;i<n;i++) ...
Main.java:6: error: incompatible types: possible lossy conversion from long to int long n =sc.nextLong();long k =sc.nextLong();long[] array = new long[n];long[] new_array = new long[n*(n-1)/2]; ^ Main.java:6: error: incompatible types: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u596403663|p02774|0
u596403663|p02774|0
codenet
Compile Error
612
v2_s990860013
s990860013
s990860013
p02774
p02774
u631934736
u631934736
1,581,895,648
2020-02-16T23:27:28
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.stream.Stream; public class Main{ public static void main(String[] args)t...
Main.java:23: error: incompatible types: possible lossy conversion from long to int cul[count] = na[i] * na[j]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631934736|p02774|0
u631934736|p02774|0
codenet
Compile Error
1,060
v2_s116422516
s116422516
s116422516
p02774
p02774
u766280310
u766280310
1,582,542,593
2020-02-24T11:09:53
Main.java
public class Main { static int mod = (int) 1e9 + 7; static int DX[] = { -1, 0, 1, 0 }, DY[] = { 0, -1, 0, 1 }; static int n; static long k; static long a[]; public static void main(String[] args) { FastScanner fs = new FastScanner(System.in); n = fs.nextInt(); k = fs.nex...
Main.java:55: error: cannot find symbol private BufferedReader reader = null; ^ symbol: class BufferedReader location: class FastScanner Main.java:56: error: cannot find symbol private StringTokenizer tokenizer = null; ^ symbol: class StringTokenizer location: class FastScann...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766280310|p02774|0
u766280310|p02774|0
codenet
Compile Error
2,870
v2_s595504847
s595504847
s595504847
p02775
p02775
u109925697
u109925697
1,581,889,088
2020-02-16T21:38:08
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 String N = sc.next()+"0"; int Nl = N.length()+1; long count = 0; for(int i=0;i<Nl;i++){ String p = N.substring(i, i+1); int p1 = (int)N.substring(i+1...
Main.java:11: error: incompatible types: String cannot be converted to int int p1 = (int)N.substring(i+1, i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109925697|p02775|0
u109925697|p02775|0
codenet
Compile Error
1,447
v2_s101901298
s101901298
s101901298
p02775
p02775
u255154774
u255154774
1,581,889,150
2020-02-16T21:39:10
Main.java
import java.io.BufferedInputStream; import java.math.BigInteger; import java.util.Arrays; import java.util.Scanner; public class Main { public static int fun(BigInteger a){ //System.out.print(a+" "); String b=a+""; int v=Integer.parseInt(b.charAt(b.length()-1)+""); BigInteger fiv...
Main.java:47: error: class, interface, enum, or record expected import java.io.BufferedInputStream; ^ Main.java:48: error: class, interface, enum, or record expected import java.math.BigInteger; ^ Main.java:49: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:50: error: class, inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u255154774|p02775|0
u255154774|p02775|0
codenet
Compile Error
3,120
v2_s861842507
s861842507
s861842507
p02775
p02775
u273816974
u273816974
1,581,889,181
2020-02-16T21:39:41
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); String str = sc.next(); int n = str.length(); if (str = "3141592653589793238462643383279502884197169399375510582...
Main.java:10: error: incompatible types: String cannot be converted to boolean if (str = "314159265358979323846264338327950288419716939937551058209749445923078164062862089986280348253421170") { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02775|0
u273816974|p02775|0
codenet
Compile Error
2,216
v2_s063354083
s063354083
s063354083
p02775
p02775
u795978684
u795978684
1,581,926,236
2020-02-17T07:57:16
Main.java
class Main { static int mod = (int) (Math.pow(10,9)+7); public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = "0" + sc.next(); char[] c = S.toCharArray(); int N =c.length; int[][] dp =new int[N+1][2]; dp[N][0]=Character.getN...
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 Main.java:14: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795978684|p02775|1
u795978684|p02775|1
codenet
Compile Error
867
v2_s198614617
s198614617
s198614617
p02775
p02775
u981808900
u981808900
1,581,886,388
2020-02-16T20:53:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import static com.yu212.Utils.println; clas...
Main.java:10: error: package com.yu212 does not exist import static com.yu212.Utils.println; ^ Main.java:10: error: static import only from classes and interfaces import static com.yu212.Utils.println; ^ Main.java:31: error: cannot find symbol println(c, j, k, d, e); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02775|0
u981808900|p02775|0
codenet
Compile Error
3,113
v2_s464687293
s464687293
s464687293
p02776
p02776
u766280310
u766280310
1,582,575,566
2020-02-24T20:19:26
Main.java
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; const int MX = 100005; vector<P> g[MX]; int x[MX]; bool used[MX]; vector<int> ans; int dfs(int v) { used[v] = true; int res = x[v]; for (P e : g[v]) { if (used[e.first...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define rep(i,n) for (int i = 0; i < (n); ++i) ^ Main.java:2: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766280310|p02776|0
u766280310|p02776|0
codenet
Compile Error
1,177
v2_s910148574
s910148574
s910148574
p02776
p02776
u766280310
u766280310
1,582,578,399
2020-02-24T21:06:39
Main.java
import java.util.*; public class Main { public static class Pair{ int pos; int state; public Pair(int pos,int state){ this.pos=pos; this.state=state; } } public static int N; public static HashMap<Integer,ArrayList<Pair>>g=new HashMap<>(); pu...
Main.java:48: error: non-static variable this cannot be referenced from a static context this.N=n; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766280310|p02776|0
u766280310|p02776|0
codenet
Compile Error
3,101
v2_s618534471
s618534471
s618534471
p02777
p02777
u025516388
u025516388
1,581,278,974
2020-02-09T20:09:34
Main.java
public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); String t = scanner.next(); int a = scanner.nextInt(); int b = scanner.nextInt(); String u = scanner.next(); if (u.equals(s)) { a--; } if (u.equals(t)) { b--; } System.out.printl...
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
u025516388|p02777|0
u025516388|p02777|0
codenet
Compile Error
337
v2_s426743720
s426743720
s426743720
p02777
p02777
u030791900
u030791900
1,581,279,669
2020-02-09T20:21:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); System.out.println("キーボードから...
Main.java:36: error: ';' expected b-- ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030791900|p02777|0
u030791900|p02777|0
codenet
Compile Error
1,076
v2_s076297835
s076297835
s076297835
p02777
p02777
u038260095
u038260095
1,581,282,783
2020-02-09T21:13:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.next().spilt(" "); // スペース区切りの整数の入力 int[] b = sc.nextInt().spilt(" "); int c = sc.next(); if (c == a[0]) { b[0]++; } else if (c == a[1]) ...
Main.java:5: error: cannot find symbol String[] a = sc.next().spilt(" "); ^ symbol: method spilt(String) location: class String Main.java:7: error: int cannot be dereferenced int[] b = sc.nextInt().spilt(" "); ^ Main.java:9: error: incompatible types: String can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
470
v2_s045415579
s045415579
s045415579
p02777
p02777
u038260095
u038260095
1,581,282,857
2020-02-09T21:14:17
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.next().split(" "); // スペース区切りの整数の入力 int[] b = sc.nextInt().split(" "); int c = sc.next(); if (c == a[0]) { b[0]++; } else if (c == a[1]) ...
Main.java:7: error: int cannot be dereferenced int[] b = sc.nextInt().split(" "); ^ Main.java:9: error: incompatible types: String cannot be converted to int int c = sc.next(); ^ Main.java:11: error: bad operand types for binary operator '==' if (c == a[0]) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
472
v2_s139030594
s139030594
s139030594
p02777
p02777
u038260095
u038260095
1,581,283,023
2020-02-09T21:17:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.next().spilt(" "); // スペース区切りの整数の入力 int[] b = sc.next().spilt(" "); int c = sc.next(); if (c == a[0]) { b[0] = Integer.toString(Integer.parseInt(...
Main.java:5: error: cannot find symbol String[] a = sc.next().spilt(" "); ^ symbol: method spilt(String) location: class String Main.java:7: error: cannot find symbol int[] b = sc.next().spilt(" "); ^ symbol: method spilt(String) location: class String Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
555
v2_s524052038
s524052038
s524052038
p02777
p02777
u038260095
u038260095
1,581,283,112
2020-02-09T21:18:32
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.next().split(" "); // スペース区切りの整数の入力 String[] b = sc.next().split(" "); String c = sc.next(); if (c == a[0]) { b[0] = Integer.toString(Integer.par...
Main.java:12: error: unexpected type b[0] = Integer.toString(Integer.parseInt(b[0])++); ^ required: variable found: value Main.java:14: error: unexpected type b[1] = Integer.toString(Integer.parseInt(b[1])++); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
560
v2_s189473735
s189473735
s189473735
p02777
p02777
u038260095
u038260095
1,581,283,273
2020-02-09T21:21:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.next().split(" "); String[] b = sc.next().split(" "); String c = sc.next(); if (c == a[0]) { b[0] = Integer.toString(Integer.parseInt(b[0])++); } ...
Main.java:10: error: unexpected type b[0] = Integer.toString(Integer.parseInt(b[0])++); ^ required: variable found: value Main.java:12: error: unexpected type b[1] = Integer.toString(Integer.parseInt(b[1])++); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
472
v2_s273539869
s273539869
s273539869
p02777
p02777
u038260095
u038260095
1,581,283,743
2020-02-09T21:29:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.nextLine().split(" "); String[] b = sc.nextLine().split(" "); String c = sc.nextLine(); if (c == a[0]) { b[0] = Integer.toString(Integer.parseInt(b[0])++)...
Main.java:10: error: unexpected type b[0] = Integer.toString(Integer.parseInt(b[0])++); ^ required: variable found: value Main.java:12: error: unexpected type b[1] = Integer.toString(Integer.parseInt(b[1])++); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
484
v2_s500120557
s500120557
s500120557
p02777
p02777
u038260095
u038260095
1,581,283,855
2020-02-09T21:30:55
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.nextLine().split(" "); String[] b = sc.nextLine().split(" "); String c = sc.nextLine(); if (c == a[0]) { b[0] = Integer.toString(Integer.parseInt((String)...
Main.java:10: error: unexpected type b[0] = Integer.toString(Integer.parseInt((String)b[0])++); ^ required: variable found: value Main.java:12: error: unexpected type b[1] = Integer.toString(Integer.parseInt((String)b[1])++); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
500
v2_s916996151
s916996151
s916996151
p02777
p02777
u038260095
u038260095
1,581,283,945
2020-02-09T21:32:25
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.nextLine().split(" "); String[] b = sc.nextLine().split(" "); String c = sc.nextLine(); if (c == a[0]) { b[0] = Integer.toString(b[0]++); } else i...
Main.java:10: error: bad operand type String for unary operator '++' b[0] = Integer.toString(b[0]++); ^ Main.java:12: error: bad operand type String for unary operator '++' b[1] = Integer.toString(b[1]++); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
448
v2_s912297160
s912297160
s912297160
p02777
p02777
u038260095
u038260095
1,581,284,014
2020-02-09T21:33:34
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] a = sc.nextLine().split(" "); String[] b = sc.nextLine().split(" "); String temp1= b[0]; String temp2 = b[1]; String c = sc.nextLine(); if (c == a[0]) { ...
Main.java:12: error: unexpected type b[0] = Integer.toString(Integer.parseInt(temp1)++); ^ required: variable found: value Main.java:14: error: unexpected type b[1] = Integer.toString(Integer.parseInt(temp2)++); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038260095|p02777|0
u038260095|p02777|0
codenet
Compile Error
543
v2_s820088050
s820088050
s820088050
p02777
p02777
u056355471
u056355471
1,581,283,448
2020-02-09T21:24:08
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b1,b2; String str = sc.nextLine(); String[] a = str.split(" "); String str1 = sc.nextLine(); String[] a1 = str1.split(" "); String str2 = sc.nextLine(); if(str2==a1[0]) { b1 = Int...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056355471|p02777|0
u056355471|p02777|0
codenet
Compile Error
500
v2_s088153946
s088153946
s088153946
p02777
p02777
u056355471
u056355471
1,581,283,996
2020-02-09T21:33:16
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b1,b2; String str = sc.nextLine(); String[] a = str.split(" "); String str1 = sc.nextLine(); String[] a1 = str1.split(" "); String str2 = sc.nextLine(); if(str2==a1[0]) { b1 = Int...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056355471|p02777|0
u056355471|p02777|0
codenet
Compile Error
516
v2_s585777636
s585777636
s585777636
p02777
p02777
u056355471
u056355471
1,581,284,026
2020-02-09T21:33:46
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b1,b2; String str = sc.nextLine(); String[] a = str.split(" "); String str1 = sc.nextLine(); String[] a1 = str1.split(" "); String str2 = sc.nextLine(); if(str2==a1[0]) { b1 = Int...
Main.java:19: error: variable b1 might not have been initialized System.out.println(b1+" "+b2); ^ Main.java:19: error: variable b2 might not have been initialized System.out.println(b1+" "+b2); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056355471|p02777|0
u056355471|p02777|0
codenet
Compile Error
518
v2_s614222820
s614222820
s614222820
p02777
p02777
u062736195
u062736195
1,582,130,263
2020-02-19T16:37:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String T = sc.next(); int A = sc.nextInt(); int B = sc.nextInt(); String U = sc.next(); if( S == U) S--; else T--; System.out.println(S ...
Main.java:11: error: bad operand type String for unary operator '--' if( S == U) S--; ^ Main.java:12: error: bad operand type String for unary operator '--' else T--; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02777|0
u062736195|p02777|0
codenet
Compile Error
347
v2_s194959732
s194959732
s194959732
p02777
p02777
u073606136
u073606136
1,588,516,426
2020-05-03T14:33:46
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); for(int i = 0; i < str.lenght(); i++){ System.out.print("x"); } } }
Main.java:7: error: cannot find symbol for(int i = 0; i < str.lenght(); i++){ ^ symbol: method lenght() location: variable str of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02777|1
u073606136|p02777|1
codenet
Compile Error
287
v2_s512033499
s512033499
s512033499
p02777
p02777
u079088332
u079088332
1,582,651,395
2020-02-25T17:23:15
Main.java
import java.util.Scanner; public class Main{ private void main(String[] args){ Scanner scanner = new Scanner(); Scanner scanInt = new Scanner(System.in); String S = scanner.next(); String T = scanner.next(); int a = scanInt.nextInt(); int b = scanInt.nextInt(); String U = scanner.next(); ...
Main.java:5: error: no suitable constructor found for Scanner(no arguments) Scanner scanner = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079088332|p02777|0
u079088332|p02777|0
codenet
Compile Error
395
v2_s707431591
s707431591
s707431591
p02777
p02777
u222822036
u222822036
1,599,084,304
2020-09-02T22:05:04
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:78: error: variable S is already defined in method solve() String S = next(); ^ Main.java:79: error: cannot find symbol if(S.equals(U)){ ^ symbol: variable U location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for det...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p02777|0
u222822036|p02777|0
codenet
Compile Error
3,100
v2_s510086661
s510086661
s510086661
p02777
p02777
u233179341
u233179341
1,586,604,668
2020-04-11T11:31:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; class Main { public static void main(String[] args) throws Exception { try { ...
Main.java:47: error: cannot find symbol System.out.print(ballsCountAndColor.get(firstRow.get(0)).intValue() + " " + ballsCountAndColor.get(firstRow.get(i)).intValue()); ^ symbol: v...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u233179341|p02777|0
u233179341|p02777|0
codenet
Compile Error
1,789
v2_s345082119
s345082119
s345082119
p02777
p02777
u277204378
u277204378
1,581,644,813
2020-02-14T01:46:53
Main.java
import java.util.*; class Main { public static void main(String[]args){ Scanner scanner = new scanner(System.in); String s = scanner.next(); String t = scanner.next(); int sN = scanner.nextInt(); int tN = scanner.nextInt(); String u = scanner.next(); if(u==s){ s -= 1; }...
Main.java:4: error: cannot find symbol Scanner scanner = new scanner(System.in); ^ symbol: class scanner location: class Main Main.java:13: error: bad operand types for binary operator '-' s -= 1; ^ first type: String second type: int Main.java:15: error: bad opera...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277204378|p02777|0
u277204378|p02777|0
codenet
Compile Error
397
v2_s923633536
s923633536
s923633536
p02777
p02777
u277204378
u277204378
1,581,644,902
2020-02-14T01:48:22
Main.java
import java.util.*; class Main { public static void main(String[]args){ Scanner scanner = new Scanner(System.in); String s = scanner.next(); String t = scanner.next(); int sN = scanner.nextInt(); int tN = scanner.nextInt(); String u = scanner.next(); if(u==s){ s--; }els...
Main.java:13: error: bad operand type String for unary operator '--' s--; ^ Main.java:15: error: bad operand type String for unary operator '--' t--; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277204378|p02777|0
u277204378|p02777|0
codenet
Compile Error
391
v2_s006885560
s006885560
s006885560
p02777
p02777
u285411698
u285411698
1,581,427,045
2020-02-11T13:17:25
Main.java
pubic void main (args[]){ String S,T; int A,B; String U; if (U == S){ A--; } else if (U == T){ B--; } system.out.print(A && " " && B); }
Main.java:3: error: class, interface, enum, or record expected pubic void main (args[]){ ^ Main.java:6: error: class, interface, enum, or record expected int A,B; ^ Main.java:7: error: unnamed classes are a preview feature and are disabled by default. String U; ^ (use --enable-preview to enable unnamed cl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
207
v2_s843840716
s843840716
s843840716
p02777
p02777
u285411698
u285411698
1,581,427,244
2020-02-11T13:20:44
Main.java
public void main (args[]){ String S,T; int A,B; String U; if (U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void main (args[]){ ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected public void main (args[]){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
221
v2_s872133870
s872133870
s872133870
p02777
p02777
u285411698
u285411698
1,581,427,302
2020-02-11T13:21:42
Main.java
public int void main (args[]){ String S,T; int A,B; String U; if (U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); }
Main.java:1: error: class, interface, enum, or record expected public int void main (args[]){ ^ Main.java:4: error: class, interface, enum, or record expected int A,B; ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. String U; ^ (use --enable-preview to enabl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
218
v2_s265523464
s265523464
s265523464
p02777
p02777
u285411698
u285411698
1,581,427,347
2020-02-11T13:22:27
Main.java
void Main (args[]){ String S,T; int A,B; String U; if (U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. void Main (args[]){ ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected void Main (args[]){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
207
v2_s033961752
s033961752
s033961752
p02777
p02777
u285411698
u285411698
1,581,427,468
2020-02-11T13:24:28
Main.java
public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; if(U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); }
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
268
v2_s140952576
s140952576
s140952576
p02777
p02777
u285411698
u285411698
1,581,427,502
2020-02-11T13:25:02
Main.java
public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; if(U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); } }
Main.java:14: error: package system does not exist system.out.print(String.valueOf(A) + " " + String.valueOf(B)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
274
v2_s353853589
s353853589
s353853589
p02777
p02777
u285411698
u285411698
1,581,427,565
2020-02-11T13:26:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; if(U == S){ A--; } else if (U == T){ B--; } system.out.print(String.valueOf(A) + " " + String.valueOf(B)); } }
Main.java:16: error: package system does not exist system.out.print(String.valueOf(A) + " " + String.valueOf(B)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
295
v2_s223152356
s223152356
s223152356
p02777
p02777
u285411698
u285411698
1,581,427,601
2020-02-11T13:26:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; if(U == S){ A--; } else if (U == T){ B--; } System.out.print(String.valueOf(A) + " " + String.valueOf(B)); } }
Main.java:10: error: variable U might not have been initialized if(U == S){ ^ Main.java:10: error: variable S might not have been initialized if(U == S){ ^ Main.java:11: error: variable A might not have been initialized A--; ^ Main.java:12: error: variable T might not have been initia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
295
v2_s653488680
s653488680
s653488680
p02777
p02777
u285411698
u285411698
1,581,427,838
2020-02-11T13:30:38
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; Scanner scan = new Snanner(System.in); S = scan.next(); T = scan.next(); A = scan.next(); B = scan.next(); U = scan.next(); if(U == S){ A--...
Main.java:10: error: cannot find symbol Scanner scan = new Snanner(System.in); ^ symbol: class Snanner location: class Main Main.java:13: error: incompatible types: String cannot be converted to int A = scan.next(); ^ Main.java:14: error: incompatible types: String cann...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
442
v2_s352000960
s352000960
s352000960
p02777
p02777
u285411698
u285411698
1,581,427,872
2020-02-11T13:31:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; Scanner scan = new Scanner(System.in); S = scan.next(); T = scan.next(); A = scan.next(); B = scan.next(); U = scan.next(); if(U == S){ A--...
Main.java:13: error: incompatible types: String cannot be converted to int A = scan.next(); ^ Main.java:14: error: incompatible types: String cannot be converted to int B = scan.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
442
v2_s780194914
s780194914
s780194914
p02777
p02777
u285411698
u285411698
1,581,427,945
2020-02-11T13:32:25
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; Scanner scan = new Scanner(System.in); S = String.valueOf(scan.next()); T = String.valueOf(scan.next()); A = scan.next(); B = scan.next(); U = String.va...
Main.java:13: error: incompatible types: String cannot be converted to int A = scan.next(); ^ Main.java:14: error: incompatible types: String cannot be converted to int B = scan.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
490
v2_s108511779
s108511779
s108511779
p02777
p02777
u285411698
u285411698
1,581,427,997
2020-02-11T13:33:17
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { String S,T; int A,B; String U; Scanner scan = new Scanner(System.in); S = String.valueOf(scan.next()); T = String.valueOf(scan.next()); A = Integer.perseInt(scan.next()); B = Integer.per...
Main.java:13: error: cannot find symbol A = Integer.perseInt(scan.next()); ^ symbol: method perseInt(String) location: class Integer Main.java:14: error: cannot find symbol B = Integer.perseInt(scan.next()); ^ symbol: method perseInt(String) location: class Integer 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
526
v2_s308199790
s308199790
s308199790
p02777
p02777
u285411698
u285411698
1,581,432,333
2020-02-11T14:45:33
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); String S = String.valueOf(scan.next()); String T = String.valueOf(scan.next()); int A = Integer.parseInt(scan.next()); int B = Integer.parseInt(scan.next(...
Main.java:21: error: bad operand types for binary operator '&' System.out.println(String.valueOf(A) & " " & String.valueOf(B)); ^ first type: String second type: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285411698|p02777|0
u285411698|p02777|0
codenet
Compile Error
525
v2_s522267587
s522267587
s522267587
p02777
p02777
u305758815
u305758815
1,585,471,221
2020-03-29T08:40:21
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int length = sc.next().length(); for (int i = 0; i < length; i++) { System.out.print(x); } } }
Main.java:7: error: cannot find symbol System.out.print(x); ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305758815|p02777|0
u305758815|p02777|0
codenet
Compile Error
238
v2_s637984053
s637984053
s637984053
p02777
p02777
u306751200
u306751200
1,581,278,871
2020-02-09T20:07:51
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String T = sc.nextLine(); int A = sc.nextInt(); int B = sc.nextInt(); String U = sc.nextLine(); if(U.equals(S)){ A = A - 1; } elseif(U.equals(T)){ B =...
Main.java:14: error: ';' expected elseif(U.equals(T)){ ^ Main.java:18: error: ')' or ',' expected System.out.println(A B); ^ Main.java:18: error: not a statement System.out.println(A B); ^ Main.java:18: error: ';' expected System.out.println(A B)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u306751200|p02777|0
u306751200|p02777|0
codenet
Compile Error
367
v2_s202842633
s202842633
s202842633
p02777
p02777
u314087694
u314087694
1,581,293,224
2020-02-10T00:07:04
Main.java
mport java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); String s=scan.next(); String t=scan.next(); int a=scan.nextInt(); int b=scan.nextInt(); String u=scan.next(); if(s.equals(u)){ a=a-1; }else{ b=b-1; } System.out.println(a+" "+b) } }...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ Main.java:17: error: ';' expected System.out.println(a+" "+b) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314087694|p02777|1
u314087694|p02777|0
codenet
Compile Error
321