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_s566184405
s566184405
s566184405
p02848
p02848
u369712616
u369712616
1,584,266,274
2020-03-15T09:57:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] s = sc.next().toCharArray(); for(int i = 0; i < s.length; i++){ s[i] = (char)((c[i] - 'A' + n) % 26 + 'A'); } System.out.println(String.valueOf(s));...
Main.java:8: error: cannot find symbol s[i] = (char)((c[i] - 'A' + n) % 26 + 'A'); ^ symbol: variable c location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02848|0
u369712616|p02848|0
codenet
Compile Error
324
v2_s708526876
s708526876
s708526876
p02848
p02848
u416404329
u416404329
1,575,140,851
2019-11-30T19:07:31
Caesar.java
import java.util.Scanner; public final class Caesar { public static final void main(String[] d) { final String dic = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; final String target = new Scanner(System.in).next(); final StringBuilder ret = new StringBuilder(target.length); final int offset = 3; ...
Caesar.java:6: error: cannot find symbol final StringBuilder ret = new StringBuilder(target.length); ^ symbol: variable length location: variable target of type String Caesar.java:8: error: cannot find symbol for (int i = 0; i < target.leng...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u416404329|p02848|1
u416404329|p02848|1
codenet
Compile Error
493
v2_s782472277
s782472277
s782472277
p02848
p02848
u416404329
u416404329
1,575,140,872
2019-11-30T19:07:52
Main.java
import java.util.Scanner; public final class Main { public static final void main(String[] d) { final String dic = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; final String target = new Scanner(System.in).next(); final StringBuilder ret = new StringBuilder(target.length); final int offset = 3; ...
Main.java:6: error: cannot find symbol final StringBuilder ret = new StringBuilder(target.length); ^ symbol: variable length location: variable target of type String Main.java:8: error: cannot find symbol for (int i = 0; i < target.length; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u416404329|p02848|1
u416404329|p02848|1
codenet
Compile Error
491
v2_s304235276
s304235276
s304235276
p02848
p02848
u431125128
u431125128
1,574,713,627
2019-11-25T20:27:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); char[] c=sc.next().toCharArray(); for(int i=0;i<c.length;i++){ c[i]=((int)c[i]+n)%26; } System.out.println(String.valueOf(c[i])); } }
Main.java:9: error: incompatible types: possible lossy conversion from int to char c[i]=((int)c[i]+n)%26; ^ Main.java:11: error: cannot find symbol System.out.println(String.valueOf(c[i])); ^ symbol: variable i location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02848|0
u431125128|p02848|0
codenet
Compile Error
302
v2_s346475826
s346475826
s346475826
p02848
p02848
u431125128
u431125128
1,574,713,681
2019-11-25T20:28:01
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); char[] c=sc.next().toCharArray(); for(int i=0;i<c.length;i++){ c[i]=(char)((int)c[i]+n)%26; } System.out.println(String.valueOf(c); } }
Main.java:11: error: ')' or ',' expected System.out.println(String.valueOf(c); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02848|0
u431125128|p02848|0
codenet
Compile Error
304
v2_s520997876
s520997876
s520997876
p02848
p02848
u431125128
u431125128
1,574,713,697
2019-11-25T20:28:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); char[] c=sc.next().toCharArray(); for(int i=0;i<c.length;i++){ c[i]=(char)((int)c[i]+n)%26; } System.out.println(String.valueOf(c)); } }
Main.java:9: error: incompatible types: possible lossy conversion from int to char c[i]=(char)((int)c[i]+n)%26; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02848|0
u431125128|p02848|0
codenet
Compile Error
305
v2_s469755490
s469755490
s469755490
p02848
p02848
u440812556
u440812556
1,576,432,708
2019-12-15T17:58:28
Main.java
import java.import.*; class Main { public static main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStringReader(System.in)); String N = br.readLine(); String S = br.readLine(); int n = Integer.parseInt(N); for(int i=0; i<28; i++){ String A...
Main.java:1: error: <identifier> expected import java.import.*; ^ Main.java:1: error: <identifier> expected import java.import.*; ^ Main.java:5: error: invalid method declaration; return type required public static main(String[] args)throws IOException ^ Main.java:16: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02848|0
u440812556|p02848|0
codenet
Compile Error
607
v2_s337885292
s337885292
s337885292
p02848
p02848
u440812556
u440812556
1,576,432,763
2019-12-15T17:59:23
Main.java
import java.io.*; class Main { public static main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStringReader(System.in)); String N = br.readLine(); String S = br.readLine(); int n = Integer.parseInt(N); for(int i=0; i<28; i++){ String A = "...
Main.java:5: error: invalid method declaration; return type required public static main(String[] args)throws IOException ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02848|0
u440812556|p02848|0
codenet
Compile Error
603
v2_s916182077
s916182077
s916182077
p02848
p02848
u440812556
u440812556
1,576,432,803
2019-12-15T18:00:03
Main.java
import java.io.*; class Main { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStringReader(System.in)); String N = br.readLine(); String S = br.readLine(); int n = Integer.parseInt(N); for(int i=0; i<28; i++){ String ...
Main.java:8: error: cannot find symbol new BufferedReader(new InputStringReader(System.in)); ^ symbol: class InputStringReader location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02848|0
u440812556|p02848|0
codenet
Compile Error
608
v2_s883948222
s883948222
s883948222
p02848
p02848
u499512304
u499512304
1,581,581,001
2020-02-13T08:03:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int number = scanner.nextInt(); String word = scanner.next(); String answer = ""; for(int i = 0; i < word.length; i ++){ answer += (word...
Main.java:9: error: cannot find symbol for(int i = 0; i < word.length; i ++){ ^ symbol: variable length location: variable word of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499512304|p02848|0
u499512304|p02848|0
codenet
Compile Error
396
v2_s213815148
s213815148
s213815148
p02848
p02848
u505331148
u505331148
1,579,732,338
2020-01-22T22:32:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); String text = scanner.next(); ROT(n, text); } public static void ROT(int n, String text){ for(int i = 0; i < ...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505331148|p02848|0
u505331148|p02848|0
codenet
Compile Error
589
v2_s934782063
s934782063
s934782063
p02848
p02848
u513307051
u513307051
1,574,964,193
2019-11-28T18:03:13
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("num: "); int n = sc.nextInt(); String s = sc.next(); char[] c = s.toCharArray(); int len = s.length(); for (int i = 0; i < len; i ++) { if (c[i] + n > 'Z') { ...
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
u513307051|p02848|0
u513307051|p02848|0
codenet
Compile Error
475
v2_s918287203
s918287203
s918287203
p02848
p02848
u526355529
u526355529
1,574,650,020
2019-11-25T02:47:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); // 文字列の入力 String s = sc.next(); String org = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String con; String t = ""; if ( n == 0 || n == 26 ) { con = org; } else {...
Main.java:16: error: ')' or ',' expected con.concat(org.substring(0,n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526355529|p02848|0
u526355529|p02848|0
codenet
Compile Error
590
v2_s273067515
s273067515
s273067515
p02848
p02848
u526355529
u526355529
1,574,650,055
2019-11-25T02:47:35
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); // 文字列の入力 String s = sc.next(); String org = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; String con; String t = ""; if ( n == 0 || n == 26 ) { con = org; } else {...
Main.java:20: error: incompatible types: char cannot be converted to String String c = s.charAt(i); ^ Main.java:22: error: incompatible types: char cannot be converted to String t.concat(con.charAt(ps)); ^ Note: Some messages have been simplified; recompile with -Xdiags...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526355529|p02848|0
u526355529|p02848|0
codenet
Compile Error
591
v2_s597473940
s597473940
s597473940
p02848
p02848
u534504780
u534504780
1,574,648,873
2019-11-25T02:27:53
Main.java
import java.util.*; import static java.lang.System.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char Alpha[] = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]; int N = sc.nextInt(); String S = sc.next(); String ans =""; for(int i=0;i<(S.length);i++){ for(int...
Main.java:7: error: illegal start of expression char Alpha[] = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]; ^ Main.java:7: error: not a statement char Alpha[] = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z]; ^ Main.java:7: error: ';' expected char Alpha[] = [A,B,C,D,E,F,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02848|0
u534504780|p02848|0
codenet
Compile Error
435
v2_s697753447
s697753447
s697753447
p02848
p02848
u534504780
u534504780
1,574,648,988
2019-11-25T02:29:48
Main.java
import java.util.*; import static java.lang.System.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char Alpha[] = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]; int N = sc.nextInt(); String S = sc.next(); Str...
Main.java:7: error: illegal start of expression char Alpha[] = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02848|0
u534504780|p02848|0
codenet
Compile Error
488
v2_s822433573
s822433573
s822433573
p02848
p02848
u534504780
u534504780
1,574,649,068
2019-11-25T02:31:08
Main.java
import java.util.*; import static java.lang.System.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char Alpha[] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; int N = sc.nextInt(); String S = sc.next(); Str...
Main.java:7: error: incompatible types: String cannot be converted to char char Alpha[] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; ^ Main.java:7: error: incompatible types: String cannot be converted to char char Alpha[] = {"A","B","C","D...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02848|0
u534504780|p02848|0
codenet
Compile Error
488
v2_s971480466
s971480466
s971480466
p02848
p02848
u534504780
u534504780
1,574,649,440
2019-11-25T02:37:20
Main.java
import java.util.*; import static java.lang.System.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String Alphabet[] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; int N = sc.nextInt(); String S = sc.next()...
Main.java:11: error: cannot find symbol int longth = S.length; ^ symbol: variable length location: variable S of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u534504780|p02848|0
u534504780|p02848|0
codenet
Compile Error
525
v2_s131013619
s131013619
s131013619
p02848
p02848
u537070292
u537070292
1,578,317,195
2020-01-06T13:26:35
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int s = scan.next(); for(int i = 0; i < s.length(); i ++){ s.charAt(i) = s.charAt(i) + n; if(s.charAt(i) > Z){ s.charAt(i) -= 25; ...
Main.java:6: error: incompatible types: String cannot be converted to int int s = scan.next(); ^ Main.java:7: error: int cannot be dereferenced for(int i = 0; i < s.length(); i ++){ ^ Main.java:8: error: int cannot be dereferenced s.charAt(i) = s.charAt(i) + n;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02848|0
u537070292|p02848|0
codenet
Compile Error
335
v2_s000504631
s000504631
s000504631
p02848
p02848
u537070292
u537070292
1,578,317,271
2020-01-06T13:27:51
Main.java
import java.util.Scanner; import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); String s = scan.next(); for(int i = 0; i < s.length(); i ++){ s.charAt(i) = s.charAt(i) + n; if(s.charAt(i) > Z){ ...
Main.java:9: error: unexpected type s.charAt(i) = s.charAt(i) + n; ^ required: variable found: value Main.java:10: error: cannot find symbol if(s.charAt(i) > Z){ ^ symbol: variable Z location: class Main Main.java:11: error: unexpected type s.charAt(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02848|0
u537070292|p02848|0
codenet
Compile Error
359
v2_s469454952
s469454952
s469454952
p02848
p02848
u653981267
u653981267
1,586,021,391
2020-04-04T17:29:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); char[] c1 = s.toCharArray(); for(int i = 0; i < s.length(); i++) { int r = c1[i] - 'A'; r = (r + n) % 26; c1[i] = 'A'...
Main.java:12: error: incompatible types: possible lossy conversion from int to char c1[i] = 'A' + r; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02848|1
u653981267|p02848|1
codenet
Compile Error
377
v2_s799841873
s799841873
s799841873
p02848
p02848
u659156129
u659156129
1,596,637,002
2020-08-05T14:16:42
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 = scn.next(); byte[] asc; asc = s.getBytes("US-ASCII"); for (int i=0; i<s.length(); i++) { acs[i] = acs[i] + n; ...
Main.java:7: error: cannot find symbol string s = scn.next(); ^ symbol: class string location: class Main Main.java:11: error: cannot find symbol acs[i] = acs[i] + n; ^ symbol: variable acs location: class Main Main.java:11: error: cannot find symbol acs[i] = acs[i] + n; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02848|0
u659156129|p02848|0
codenet
Compile Error
466
v2_s032737715
s032737715
s032737715
p02848
p02848
u659156129
u659156129
1,596,640,068
2020-08-05T15:07:48
Main.java
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); String s = scn.next(); int asc ; char ch[] = new char[s.length()]; for(int i=0; i<s.length();i++){ asc = (int)s.charAt...
Main.java:14: error: cannot find symbol if(asc > 90) acs -=26; ^ symbol: variable acs location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02848|0
u659156129|p02848|0
codenet
Compile Error
470
v2_s728405280
s728405280
s728405280
p02848
p02848
u740551476
u740551476
1,586,898,028
2020-04-14T21:00:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); for (int i = 0; i < S.length; i++) { s[i] = (char)((s[i] - 'A' + n) % 26 + 'A'); } System.out.print(String.valueOf(s)); ...
Main.java:9: error: cannot find symbol for (int i = 0; i < S.length; i++) { ^ symbol: variable length location: variable S of type String Main.java:10: error: cannot find symbol s[i] = (char)((s[i] - 'A' + n) % 26 + 'A'); ^ symbol: variable s location: class Main Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740551476|p02848|0
u740551476|p02848|0
codenet
Compile Error
325
v2_s500344174
s500344174
s500344174
p02848
p02848
u740551476
u740551476
1,586,898,079
2020-04-14T21:01:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); for (int i = 0; i < S.length; i++) { S[i] = (char)((S[i] - 'A' + N) % 26 + 'A'); } System.out.print(String.valueOf(S));...
Main.java:9: error: cannot find symbol for (int i = 0; i < S.length; i++) { ^ symbol: variable length location: variable S of type String Main.java:10: error: array required, but String found S[i] = (char)((S[i] - 'A' + N) % 26 + 'A'); ^ Main.java:10: error: array require...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740551476|p02848|0
u740551476|p02848|0
codenet
Compile Error
326
v2_s478454258
s478454258
s478454258
p02848
p02848
u786488524
u786488524
1,574,649,072
2019-11-25T02:31:12
Main.java
import java.util.*; public class Main { public static void main(String[] args){ List<String> l = new ArrayList<>(); l.add("A"); l.add("B"); l.add("C"); l.add("D"); l.add("E"); l.add("F"); l.add("G"); l.add("H"); l.add("I"); l.add("J"); l.add("K"); l.add("L"); l....
Main.java:45: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786488524|p02848|0
u786488524|p02848|0
codenet
Compile Error
1,552
v2_s281510068
s281510068
s281510068
p02848
p02848
u786488524
u786488524
1,574,649,128
2019-11-25T02:32:08
Main.java
import java.util.*; public class Main { public static void main(String[] args){ List<String> l = new ArrayList<>(); l.add("A"); l.add("B"); l.add("C"); l.add("D"); l.add("E"); l.add("F"); l.add("G"); l.add("H"); l.add("I"); l.add("J"); l.add("K"); l.add("L"); l...
Main.java:35: error: cannot find symbol Int a = sc.nextInt(); ^ symbol: class Int location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786488524|p02848|0
u786488524|p02848|0
codenet
Compile Error
776
v2_s886802928
s886802928
s886802928
p02848
p02848
u863370423
u863370423
1,579,862,711
2020-01-24T10:45:11
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int b = in.nextInt(); String a=in.next(); String str=""; for(int i=0;i<a.length();i++) { int asc = (int) a.charAt(i); if((asc+b)...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02848|1
u863370423|p02848|1
codenet
Compile Error
550
v2_s628865394
s628865394
s628865394
p02848
p02848
u863370423
u863370423
1,599,280,925
2020-09-05T04:42:05
Main.java
private static void rotALL(String input) { //Loop 25 times, starting with ROT-1 and ending at ROT-25 (every possibliity besides the original input) for (int i = 1; i < 26; i++) { int rot = 26 - i; System.out.print("ROT" + rot + ": "); for (int charIndex = 0; charIndex < input.length(); c...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. private static void rotALL(String input) { ^ (use --enable-preview to enable unnamed classes) Main.java:30: error: reached end of file while parsing System.out.println(); ^ 2 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02848|2
u863370423|p02848|2
codenet
Compile Error
1,223
v2_s271036715
s271036715
s271036715
p02848
p02848
u896847891
u896847891
1,581,895,272
2020-02-16T23:21:12
Main.java
#include <iostream> using namespace std; int main() { int n; string S, myString = "abcdefghijklmnopqrstuvwxyz"; cin >> n >> S; for (int i = 0; i < S.length(); i++) S[i] = myString[(myString.find(S[i])+n)%26]; cout << S << 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 >> n >> S; ^ Main.java:13: error: not a statement cout << S << endl; ^ Main.java:5: error: unnamed...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u896847891|p02848|0
u896847891|p02848|0
codenet
Compile Error
242
v2_s821404916
s821404916
s821404916
p02848
p02848
u907460862
u907460862
1,575,167,940
2019-12-01T02:39:00
Main.java
import java.util.Scanner; class Main{ public static String shiftChar(int num, String str){ char[] ch = str.toCharArray(); int length = ch.length; int temp = 0; char ch = '0'; String result = ""; for(int i = 0;i< length; i++){ int input = ch[i]; int value = inpu...
Main.java:8: error: variable ch is already defined in method shiftChar(int,String) char ch = '0'; ^ Main.java:12: error: array required, but char found int input = ch[i]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u907460862|p02848|0
u907460862|p02848|0
codenet
Compile Error
734
v2_s798644509
s798644509
s798644509
p02848
p02848
u956322200
u956322200
1,574,888,070
2019-11-27T20:54:30
Main.java
import java.util.Scanner; class Contest_B{ public static void main(String[] args){ final String ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int n; Scanner sc = new Scanner(System.in); int ch = sc.nextInt(); String str = sc.next(); String result = ""; for(...
Main.java:17: error: incompatible types: char cannot be converted to String result.concat((String)ALPHA.charAt(n)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u956322200|p02848|0
u956322200|p02848|0
codenet
Compile Error
586
v2_s672664897
s672664897
s672664897
p02848
p02848
u956322200
u956322200
1,574,888,339
2019-11-27T20:58:59
Main.java
import java.util.Scanner; class Contest_B{ public static void main(String[] args){ final String ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int n; Scanner scan = new Scanner(System.in); int ch = sc.nextInt(); String str = sc.next(); StringBuilder r = new StringBui...
Main.java:9: error: cannot find symbol int ch = sc.nextInt(); ^ symbol: variable sc location: class Contest_B Main.java:10: error: cannot find symbol String str = sc.next(); ^ symbol: variable sc location: class Contest_B 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u956322200|p02848|0
u956322200|p02848|0
codenet
Compile Error
627
v2_s390008802
s390008802
s390008802
p02848
p02848
u964468944
u964468944
1,574,650,248
2019-11-25T02:50:48
Main.java
import java.util.*; public class Main { static final String ascii = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; public static void main(String args[]){ Scanner sc = new Scanner(System.in); int index = sc.nextInt(); String str = sc.next(); if (index == 0){ System.out.println(str); }else { ...
Main.java:16: error: cannot find symbol char c = s.charAt(i); ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964468944|p02848|0
u964468944|p02848|0
codenet
Compile Error
672
v2_s944106033
s944106033
s944106033
p02850
p02850
u235169423
u235169423
1,575,030,080
2019-11-29T12:21:20
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Main main = new Main(); main.run(); } class Pair{ int s; int t; Pair(int s, int t){ this.s=s; this.t=t; } @Override public...
Main.java:50: error: cannot find symbol private Main2 getOuterType() { ^ symbol: class Main2 location: class Main.Pair Main.java:51: error: cannot find symbol return Main2.this; ^ symbol: class Main2 location: class Main.Pair 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u235169423|p02850|3
u235169423|p02850|3
codenet
Compile Error
2,340
v2_s760769612
s760769612
s760769612
p02850
p02850
u288042356
u288042356
1,574,837,454
2019-11-27T06:50:54
Main.java
import java.util.*; import java.io.*; class Main{ static HashMap<Pair, Integer> colors; static ArrayList<Integer> edges[]; public static void main(String[] args){ FastScanner fsc=new FastScanner(); int n=fsc.nextInt(); edges=new ArrayList[n]; ArrayList a = {1}; Array...
Main.java:11: error: illegal initializer for ArrayList ArrayList a = {1}; ^ Main.java:17: error: variable a is already defined in method main(String[]) int a=fsc.nextInt()-1, b=fsc.nextInt()-1; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02850|1
u288042356|p02850|0
codenet
Compile Error
3,756
v2_s809160116
s809160116
s809160116
p02850
p02850
u288042356
u288042356
1,574,837,519
2019-11-27T06:51:59
Main.java
import java.util.*; import java.io.*; class Main{ static HashMap<Pair, Integer> colors; static ArrayList<Integer> edges[]; public static void main(String[] args){ FastScanner fsc=new FastScanner(); int n=fsc.nextInt(); edges=new ArrayList[n]; ArrayList x = {1}; Array...
Main.java:11: error: illegal initializer for ArrayList ArrayList x = {1}; ^ 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
u288042356|p02850|1
u288042356|p02850|0
codenet
Compile Error
3,756
v2_s624774313
s624774313
s624774313
p02850
p02850
u288042356
u288042356
1,574,838,887
2019-11-27T07:14:47
Main.java
import java.util.*; import java.io.*; class Main{ static HashMap<Pair, Integer> colors; static ArrayList<Integer> edges[]; public static void main(String[] args){ FastScanner fsc=new FastScanner(); int n=fsc.nextInt(); edges=new ArrayList[n]; for(int i=0;i<n;i++) edges[i]=ne...
Main.java:22: error: cannot find symbol colors=new HashMap<>(N-1); ^ symbol: variable N location: class Main 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
u288042356|p02850|1
u288042356|p02850|0
codenet
Compile Error
3,698
v2_s255622998
s255622998
s255622998
p02850
p02850
u345932819
u345932819
1,578,631,832
2020-01-10T04:50:32
Main.java
import javafx.util.Pair; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; import java.util.stream.Stream; public class Main { public static void main(String[] args) throws IOException { new Main().solve(); } pri...
Main.java:2: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:95: error: cannot find symbol private List<Pair<Integer, Integer>> next; ^ symbol: class Pair location: class Point Main.java:98: error: cannot find symbol next = ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p02850|0
u345932819|p02850|0
codenet
Compile Error
11,443
v2_s002074684
s002074684
s002074684
p02850
p02850
u517219904
u517219904
1,574,652,023
2019-11-25T03:20:23
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); Pair[] P = new Pair[N-1]; ArrayList<ArrayList<Integer>> Path = new ArrayList<ArrayList<Integer>>(); for(int i = 0;i < N;i++) { ...
Main.java:9: error: cannot find symbol Pair[] P = new Pair[N-1]; ^ symbol: class Pair location: class Main Main.java:9: error: cannot find symbol Pair[] P = new Pair[N-1]; ^ symbol: class Pair location: class Main Main.java:19: error: cannot find symbol P[i] = new Pair(a,b); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517219904|p02850|0
u517219904|p02850|0
codenet
Compile Error
1,058
v2_s459425863
s459425863
s459425863
p02850
p02850
u517219904
u517219904
1,574,652,066
2019-11-25T03:21:06
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); Pair[] P = new Pair[N-1]; ArrayList<ArrayList<Integer>> Path = new ArrayList<ArrayList<Integer>>(); for(int i = 0;i < N;i++) { ...
Main.java:73: error: illegal start of type import java.util.ArrayList; ^ Main.java:73: error: <identifier> expected import java.util.ArrayList; ^ Main.java:74: error: illegal start of type import java.util.Scanner; ^ Main.java:74: error: <identifier> expected import java.util.Scanner; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517219904|p02850|0
u517219904|p02850|0
codenet
Compile Error
3,047
v2_s688462733
s688462733
s688462733
p02850
p02850
u601932003
u601932003
1,580,868,101
2020-02-05T02:01:41
Main.java
import java.io.*; import java.util.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() ...
Main.java:107: error: cannot find symbol set.add(new Pair(node,v)); ^ symbol: variable set location: class Main 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
u601932003|p02850|0
u601932003|p02850|0
codenet
Compile Error
2,833
v2_s198909027
s198909027
s198909027
p02850
p02850
u645304546
u645304546
1,577,999,640
2020-01-02T21:14:00
Main.java
=import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayDeque; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.Queue; public class Main { static FastScanner sc = new FastScanner(); static PrintWriter out = new PrintWriter(System.ou...
Main.java:1: error: class, interface, enum, or record expected =import java.io.IOException; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.PrintWriter; ^ Main.java:4: error: class, interface, en...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u645304546|p02850|0
u645304546|p02850|0
codenet
Compile Error
4,170
v2_s947060230
s947060230
s947060230
p02850
p02850
u653981267
u653981267
1,586,037,771
2020-04-04T22:02:51
Main.java
import java.util.*; public class Main { public static int C; public static ArrayList[] edge; public static HashMap[] map; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); edge = new ArrayList[n]; map = new HashMap[n]; for(int i = 0; i < n; ...
Main.java:19: error: ']' expected int a[i] = sc.nextInt() - 1; ^ Main.java:19: error: ';' expected int a[i] = sc.nextInt() - 1; ^ Main.java:19: error: not a statement int a[i] = sc.nextInt() - 1; ^ Main.java:20: error: ']' expected int b[i] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02850|1
u653981267|p02850|1
codenet
Compile Error
1,366
v2_s757292000
s757292000
s757292000
p02850
p02850
u653981267
u653981267
1,586,037,809
2020-04-04T22:03:29
Main.java
import java.util.*; public class Main { public static int C; public static ArrayList[] edge; public static HashMap[] map; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); edge = new ArrayList[n]; map = new HashMap[n]; for(int i = 0; i < n; ...
Main.java:33: error: incompatible types: Object cannot be converted to int int v = queue.poll(); ^ 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
u653981267|p02850|1
u653981267|p02850|1
codenet
Compile Error
1,358
v2_s077777817
s077777817
s077777817
p02850
p02850
u672402312
u672402312
1,574,654,350
2019-11-25T03:59:10
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int a[] = new int[n + 1]; int b[] = new int[n + 1]; int color[] = new int[n + 1]; int num[] = new int[n ...
Main.java:12: error: incompatible types: boolean[] cannot be converted to boolean boolean flag = new boolean[n + 1]; ^ Main.java:23: error: array required, but boolean found flag[i] = true; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u672402312|p02850|0
u672402312|p02850|0
codenet
Compile Error
1,386
v2_s841491048
s841491048
s841491048
p02850
p02850
u845442981
u845442981
1,589,780,874
2020-05-18T05:47:54
Main.java
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { @SuppressWarnings("...
Main.java:73: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u845442981|p02850|0
u845442981|p02850|0
codenet
Compile Error
2,379
v2_s317292003
s317292003
s317292003
p02850
p02850
u847535452
u847535452
1,575,751,890
2019-12-07T20:51:30
Main.java
package ABC146D; import java.util.*; public class Main extends Tree{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); LinkedList <Integer>[] tree=new LinkedList [n+1]; for(int i=0;i<n+1;i++){ tree[i]=new LinkedList(); } for(int i=0;i<n...
Main.java:5: error: cannot find symbol public class Main extends Tree{ ^ symbol: class Tree 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
u847535452|p02850|1
u847535452|p02850|1
codenet
Compile Error
1,508
v2_s159002934
s159002934
s159002934
p02850
p02850
u847535452
u847535452
1,575,751,916
2019-12-07T20:51:56
Main.java
import java.util.*; public class Main extends Tree{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); LinkedList <Integer>[] tree=new LinkedList [n+1]; for(int i=0;i<n+1;i++){ tree[i]=new LinkedList(); } for(int i=0;i<n-1;i++){ int ...
Main.java:4: error: cannot find symbol public class Main extends Tree{ ^ symbol: class Tree 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
u847535452|p02850|1
u847535452|p02850|1
codenet
Compile Error
1,491
v2_s000259732
s000259732
s000259732
p02850
p02850
u941274418
u941274418
1,586,586,191
2020-04-11T06:23:11
Main.java
import java.io.BufferedInputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; public class Main { public static class Edge { int idx; int node; public Edge(int n, ...
Main.java:72: error: class In is public, should be declared in a file named In.java public class In { ^ Main.java:25: error: cannot find symbol Map<Integer, List<Edge>> graph = new HashMap<>(); ^ symbol: class Map location: class Main Main.java:25: error: cannot find symbol Map<Inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p02850|0
u941274418|p02850|0
codenet
Compile Error
4,841
v2_s748252530
s748252530
s748252530
p02850
p02850
u941274418
u941274418
1,586,586,419
2020-04-11T06:26:59
Main.java
import java.io.BufferedInputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import java.util.*; public class Main { public static class Edge { int idx; int node; ...
Main.java:73: error: class In is public, should be declared in a file named In.java public class In { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p02850|0
u941274418|p02850|0
codenet
Compile Error
4,862
v2_s829591442
s829591442
s829591442
p02851
p02851
u063043074
u063043074
1,575,955,092
2019-12-10T05:18:12
Main.java
//Compete against Yourself. #include <bits/stdc++.h> #define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define int long long #define pb push_back #define sz(i) (int)(i.size()) #define F first #define S second #define L long double #define P pair<int, int> const int inf = 0x3f3f3f3f3f3f3f3LL; cons...
Main.java:2: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:2: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define _ ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); ^ Main.java:3: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u063043074|p02851|0
u063043074|p02851|0
codenet
Compile Error
1,193
v2_s033764242
s033764242
s033764242
p02851
p02851
u720384347
u720384347
1,574,818,016
2019-11-27T01:26:56
Main.java
int N,K; ll A[202020]; ll S[202020]; void solve() { int i,j,k,l,r,x,y; string s; cin>>N>>K; map<ll,int> M; ll ret=0; M[0]=1; FOR(i,N) { cin>>A[i]; S[i+1]=S[i]+A[i]+K-1; if(i+1-K>=0) M[S[i+1-K]%K]--; ret+=M[S[i+1]%K]; M[(S[i+1])%K]++; } cout<<ret<<endl; }
Main.java:1: error: class, interface, enum, or record expected int N,K; ^ Main.java:2: error: class, interface, enum, or record expected ll A[202020]; ^ Main.java:3: error: class, interface, enum, or record expected ll S[202020]; ^ Main.java:8: error: not a statement cin>>N>>K; ^ Main.java:13: error: not a stat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720384347|p02851|0
u720384347|p02851|0
codenet
Compile Error
275
v2_s266177217
s266177217
s266177217
p02851
p02851
u847535452
u847535452
1,576,471,111
2019-12-16T04:38:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int n=sc.nextInt(); final int k=sc.nextInt(); int[] sum=new int[n]; long ans=0; long[] map=new int[k]; for(int i=0;i<n;i++){ int m=sc.nextInt(); int a=(m-1)%k; ...
Main.java:14: error: incompatible types: int[] cannot be converted to long[] long[] map=new int[k]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u847535452|p02851|2
u847535452|p02851|1
codenet
Compile Error
700
v2_s416494646
s416494646
s416494646
p02852
p02852
u167206842
u167206842
1,585,878,957
2020-04-03T01:55: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 M = sc.nextInt(); String S = sc.next(); int dp[] = new int[N+1]; //マスiに到達するための最短手数 int dp[0]=0; int gr[] = new int[N+1]; for(int i=0;i<N+1;i++){...
Main.java:9: error: ']' expected int dp[0]=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02852|0
u167206842|p02852|0
codenet
Compile Error
690
v2_s410431005
s410431005
s410431005
p02852
p02852
u617255029
u617255029
1,579,674,971
2020-01-22T06:36:11
Main.java
import hiro116s.lib.io.scanner.FastScanner; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeSet; public class Main { ...
Main.java:1: error: package hiro116s.lib.io.scanner does not exist import hiro116s.lib.io.scanner.FastScanner; ^ Main.java:21: error: cannot find symbol FastScanner in; ^ symbol: class FastScanner location: class Main Main.java:67: error: cannot find symbol in = new F...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u617255029|p02852|0
u617255029|p02852|0
codenet
Compile Error
1,961
v2_s237148864
s237148864
s237148864
p02853
p02853
u314559067
u314559067
1,574,560,978
2019-11-24T02:02:58
Main.java
import java.util.*; public class Main { public static void main(String[] args) { int count = 0; boolean sw = false; int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; double dMax = Double.MIN_VALUE; double dMin = Double.MAX_VALUE; //StringBuilder an...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314559067|p02853|0
u314559067|p02853|0
codenet
Compile Error
803
v2_s318405671
s318405671
s318405671
p02853
p02853
u332858102
u332858102
1,574,561,911
2019-11-24T02:18:31
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; switch(a) { case 1: sum += 300000; break; case 2: sum += 200000; break; case 3: sum += 100000; break; ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u332858102|p02853|0
u332858102|p02853|0
codenet
Compile Error
565
v2_s542979492
s542979492
s542979492
p02853
p02853
u965895131
u965895131
1,593,813,759
2020-07-03T22:02:39
Main.java
public class Main { public static void main(String [] args) { int posCC, posR; Scanner scan = new Scanner(System.in); posCC = scan.nextInt(); posR = scan.nextInt(); int prizeMoney = 0; int [] prizeAmt = {300000, 200000, 100000}; if (posCC < 4) { ...
Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u965895131|p02853|0
u965895131|p02853|0
codenet
Compile Error
563
v2_s092287851
s092287851
s092287851
p02854
p02854
u092025199
u092025199
1,574,613,488
2019-11-24T16:38:08
Main.java
import java.utill.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; int[] s=new int[n]; int sum=0; int res=Integer.MAX_VALUE; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); sum+=a[i]; ...
Main.java:1: error: package java.utill does not exist import java.utill.Scanner; ^ 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); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092025199|p02854|0
u092025199|p02854|0
codenet
Compile Error
453
v2_s024904415
s024904415
s024904415
p02854
p02854
u212397344
u212397344
1,585,187,813
2020-03-26T01:56:53
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] bar = new int[N]; int sum = 0; for(int i=0; i<N; i++){ bar[i] = sc.nextInt(); sum += bar[i]; } int ans = Integer.MAX_VALUE; int temp = 0;...
Main.java:15: error: ';' expected int temp += bar[i]; ^ Main.java:15: error: not a statement int temp += bar[i]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02854|0
u212397344|p02854|0
codenet
Compile Error
471
v2_s671559146
s671559146
s671559146
p02854
p02854
u212397344
u212397344
1,585,188,029
2020-03-26T02:00:29
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] bar = new int[N]; long sum = 0; for(int i=0; i<N; i++){ bar[i] = sc.nextLong(); sum += bar[i]; } long ans = sum; long temp = 0; for(...
Main.java:6: error: incompatible types: int[] cannot be converted to long[] long[] bar = new int[N]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02854|0
u212397344|p02854|0
codenet
Compile Error
459
v2_s049632245
s049632245
s049632245
p02854
p02854
u431125128
u431125128
1,574,566,668
2019-11-24T03:37:48
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[] a=new long[n]; double sum=0.0; for(int i=0;i<n;i++){ a[i]=sc.nextLong(); sum+=a[i]; } long x=0; long y=0; for(int i=0;i<n;i++){ ...
Main.java:31: error: incompatible types: possible lossy conversion from double to long if(x=sum/2.0){ ^ Main.java:31: error: incompatible types: long cannot be converted to boolean if(x=sum/2.0){ ^ Main.java:40: error: incompatible types: possible lossy conversion from double...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02854|0
u431125128|p02854|0
codenet
Compile Error
912
v2_s113205230
s113205230
s113205230
p02854
p02854
u431615124
u431615124
1,574,563,709
2019-11-24T02:48:29
Main.java
import java.io.*; import java.math.*; import java.math.BigInteger; import java.util.Scanner; import java.lang.Math; import java.math.BigDecimal; import java.math.*; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import com.google.common.math.BigIntegerMath; class myfib{ // static int[] f...
Main.java:11: error: package com.google.common.math does not exist import com.google.common.math.BigIntegerMath; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431615124|p02854|0
u431615124|p02854|0
codenet
Compile Error
2,406
v2_s869434432
s869434432
s869434432
p02854
p02854
u656572785
u656572785
1,574,561,114
2019-11-24T02:05:14
Main.java
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vll = vector<ll>; using vvi = vector<vector<int>>; using vvl = vector<vector<ll>>; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector<ll> a(n); for (int i = 0; i < n; i++) ci...
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:5: error: unnamed classes are a preview feature and are disabled by default. using ll = long long; ^ (use --enable-preview to enable unname...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u656572785|p02854|0
u656572785|p02854|0
codenet
Compile Error
569
v2_s908938128
s908938128
s908938128
p02854
p02854
u814026219
u814026219
1,574,561,080
2019-11-24T02:04:40
Main.java
n = read_line.to_i a = read_line.split.map(&.to_i64) all = a.sum sum = 0i64 min = all n.times do |i| sum += a[i] min = {min, (all - sum - sum).abs}.min end puts min
Main.java:1: error: class, interface, enum, or record expected n = read_line.to_i ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814026219|p02854|0
u814026219|p02854|0
codenet
Compile Error
169
v2_s750385110
s750385110
s750385110
p02854
p02854
u990037841
u990037841
1,585,926,804
2020-04-03T15:13:24
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[] a = new int[n]; for(int i = 0; i < n; i++){ a[i] = sc.nextInt(); } long sum = 0; for(int i = 0; i < n;...
Main.java:7: error: incompatible types: int[] cannot be converted to long[] long[] a = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990037841|p02854|0
u990037841|p02854|0
codenet
Compile Error
651
v2_s343842501
s343842501
s343842501
p02855
p02855
u110087226
u110087226
1,574,566,780
2019-11-24T03:39:40
Main.java
import java.io.*; import java.util.*; public class Main{ static String str=new String[300]; static int[][] ary=new int[300][300]; static int w,h,k; static void search(int count,int x,int y){ int xm=0,xp=0; for(int i=x-1;i>-1;i--){ if(str[y].charAt[x]=='#'||ary[y][i]>0)break;...
Main.java:21: error: ';' expected boolean flag=false ^ Main.java:32: error: ';' expected boolean flag=false ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110087226|p02855|0
u110087226|p02855|0
codenet
Compile Error
1,942
v2_s997160247
s997160247
s997160247
p02855
p02855
u686175224
u686175224
1,574,569,643
2019-11-24T04:27:23
Main.java
import java.util.*; import java.util.Map.Entry; public class Main{ public static long answer = 0; public static long MOD=1000000007; //最大公約数・最小公倍数(セットで使う) public static long gcm(long a, long b) { long result = a; long k = 0; long n = b; do { k = result % n; result = n; n = ...
Main.java:162: error: no suitable method found for print(no arguments) System.out.print(); ^ method PrintStream.print(boolean) is not applicable (actual and formal argument lists differ in length) method PrintStream.print(char) is not applicable (actual and formal...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686175224|p02855|0
u686175224|p02855|0
codenet
Compile Error
3,033
v2_s738153106
s738153106
s738153106
p02856
p02856
u146364934
u146364934
1,574,563,443
2019-11-24T02:44:03
Main.java
3 1 1 0 8 7 1
Main.java:1: error: class, interface, enum, or record expected 3 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u146364934|p02856|0
u146364934|p02856|0
codenet
Compile Error
13
v2_s783403350
s783403350
s783403350
p02856
p02856
u675751622
u675751622
1,574,566,770
2019-11-24T03:39:30
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()); int digit; int times; long temp = 0; long long sum = 0; StringBuilder sb = new StringBuilder(); for(int i = 0; i < n; i++) { ...
Main.java:10: error: not a statement long long sum = 0; ^ Main.java:10: error: ';' expected long long sum = 0; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02856|0
u675751622|p02856|0
codenet
Compile Error
507
v2_s103409782
s103409782
s103409782
p02856
p02856
u990857161
u990857161
1,574,566,394
2019-11-24T03:33:14
Main.java
import java.io.*; import java.util.*; public class Main { static InputReader in = new InputReader(System.in); static PrintWriter out = new PrintWriter(System.out); static int oo = (int)1e9; // static long oo = (long)1e15; static int mod = 1_000_000_007; static int[] di = {1, 0, 0, -1}; static int[] dj...
Main.java:445: error: class, interface, enum, or record expected }import java.io.*; ^ Main.java:446: error: class, interface, enum, or record expected import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990857161|p02856|0
u990857161|p02856|0
codenet
Compile Error
16,708
v2_s126619719
s126619719
s126619719
p02858
p02858
u541055501
u541055501
1,574,566,955
2019-11-24T03:42:35
Main.java
import java.util.*; import java.io.*; class Main{ static long MOD=1000000007; public static void main(String[] args){ FastScanner fsc=new FastScanner(); long h=fsc.nextLong(), w=fsc.nextLong(), t=fsc.nextLong(); fsc.close(); if(t%h==0 && t%w==0){ System.out.println(p...
Main.java:11: error: cannot find symbol System.out.println(pow3(h*w)); ^ symbol: method pow3(long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02858|0
u541055501|p02858|0
codenet
Compile Error
3,668
v2_s706213077
s706213077
s706213077
p02858
p02858
u809597559
u809597559
1,574,566,746
2019-11-24T03:39:06
Main.java
//#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1000000007; int gcd (int x, int y) { if (x < y) { return gcd(y, x); } if (y > 0) { return gcd(y, x % y); } return x; } ll todeg (ll x, ll deg) { if (deg < 0) { ...
Main.java:2: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:2: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:6: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:8: error: class, interface, enum, or record expected c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809597559|p02858|0
u809597559|p02858|0
codenet
Compile Error
947
v2_s811120751
s811120751
s811120751
p02859
p02859
u011996008
u011996008
1,583,959,168
2020-03-11T20:39:28
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(r*r); } }
Main.java:6: error: cannot find symbol System.out.println(r*r); ^ symbol: variable r location: class Main Main.java:6: error: cannot find symbol System.out.println(r*r); ^ symbol: variable r location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02859|0
u011996008|p02859|0
codenet
Compile Error
146
v2_s892103087
s892103087
s892103087
p02859
p02859
u046999599
u046999599
1,582,776,371
2020-02-27T04:06:11
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int r = scan.nextInt(); System.out.println(r*r); } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046999599|p02859|0
u046999599|p02859|0
codenet
Compile Error
160
v2_s734206769
s734206769
s734206769
p02859
p02859
u046999599
u046999599
1,582,776,867
2020-02-27T04:14:27
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int r = scan.nextInt(); r = r * r; System.out.println(r); } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046999599|p02859|0
u046999599|p02859|0
codenet
Compile Error
171
v2_s899004332
s899004332
s899004332
p02859
p02859
u089230684
u089230684
1,574,422,681
2019-11-22T11:38:01
Main.java
import java.util.*; import java.text.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int big = Math.pow(r, 2); System.out.println(big); } }
Main.java:7: error: incompatible types: possible lossy conversion from double to int int big = Math.pow(r, 2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02859|0
u089230684|p02859|0
codenet
Compile Error
222
v2_s452434907
s452434907
s452434907
p02859
p02859
u093172826
u093172826
1,576,307,856
2019-12-14T07:17:36
Main.java
import java.util.* public class Main{ public static void main(String[]args){ int result; Scanner sc=new Scanner(System.in); int r=sc.nextInt(); int PI=3.14; result=r*r*PI/1*1*PI; System.out.println("result"); } }
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02859|0
u093172826|p02859|0
codenet
Compile Error
218
v2_s364118068
s364118068
s364118068
p02859
p02859
u093172826
u093172826
1,576,307,883
2019-12-14T07:18:03
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ int result; Scanner sc=new Scanner(System.in); int r=sc.nextInt(); int PI=3.14; result=r*r*PI/1*1*PI; System.out.println("result"); } }
Main.java:10: error: incompatible types: possible lossy conversion from double to int int PI=3.14; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02859|0
u093172826|p02859|0
codenet
Compile Error
219
v2_s042413590
s042413590
s042413590
p02859
p02859
u093172826
u093172826
1,576,307,910
2019-12-14T07:18:30
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ int result; Scanner sc=new Scanner(System.in); int r=sc.nextInt(); double PI=3.14; result=r*r*PI/1*1*PI; System.out.println("result"); } }
Main.java:12: error: incompatible types: possible lossy conversion from double to int result=r*r*PI/1*1*PI; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02859|0
u093172826|p02859|0
codenet
Compile Error
222
v2_s029397044
s029397044
s029397044
p02859
p02859
u097086797
u097086797
1,575,462,775
2019-12-04T12:32:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(r * r) } }
Main.java:8: error: ';' expected System.out.println(r * r) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u097086797|p02859|0
u097086797|p02859|0
codenet
Compile Error
203
v2_s511161633
s511161633
s511161633
p02859
p02859
u109843456
u109843456
1,586,783,701
2020-04-13T13:15:01
Main.java
int R = r*r*3.14; System.out.println(R);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int R = r*r*3.14; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected System.out.println(R); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109843456|p02859|0
u109843456|p02859|0
codenet
Compile Error
42
v2_s918666871
s918666871
s918666871
p02859
p02859
u109843456
u109843456
1,586,784,258
2020-04-13T13:24:18
Main.java
int Circle = 0; int r = 100; Circle = r*r*3.14; System.out.println(Circle+"倍です");
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int Circle = 0; ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected Circle = r*r*3.14; ^ Main.java:4: error: class, interface, enum, or record expected System.out.printl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109843456|p02859|0
u109843456|p02859|0
codenet
Compile Error
89
v2_s563682027
s563682027
s563682027
p02859
p02859
u109843456
u109843456
1,586,784,413
2020-04-13T13:26:53
Main.java
public static void main(String[] args){ int r = 100; int Circle = r*r*3.14; System.out.print(Circle+"倍です"); }
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
u109843456|p02859|0
u109843456|p02859|0
codenet
Compile Error
117
v2_s709538604
s709538604
s709538604
p02859
p02859
u116409732
u116409732
1,574,624,660
2019-11-24T19:44:20
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // get a integer int a = sc.nextInt(); // output System.out.println((a * a); } }
Main.java:8: error: ')' or ',' expected System.out.println((a * a); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u116409732|p02859|0
u116409732|p02859|0
codenet
Compile Error
209
v2_s176026667
s176026667
s176026667
p02859
p02859
u128927017
u128927017
1,574,460,696
2019-11-22T22:11:36
Main.java
r = int(input().strip()) print(r**2)
Main.java:1: error: class, interface, enum, or record expected r = int(input().strip()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128927017|p02859|0
u128927017|p02859|0
codenet
Compile Error
37
v2_s801643843
s801643843
s801643843
p02859
p02859
u164161367
u164161367
1,575,768,836
2019-12-08T01:33:56
Main.java
Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); System.out.println(a * a);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner sc = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected System.out.println(a * a); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u164161367|p02859|0
u164161367|p02859|0
codenet
Compile Error
104
v2_s490655519
s490655519
s490655519
p02859
p02859
u164161367
u164161367
1,575,768,922
2019-12-08T01:35:22
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); System.out.println(a * a); }
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
u164161367|p02859|0
u164161367|p02859|0
codenet
Compile Error
158
v2_s484919314
s484919314
s484919314
p02859
p02859
u231776587
u231776587
1,573,956,132
2019-11-17T02:02:12
Main.java
i = int(input()) print(i*i)
Main.java:1: error: class, interface, enum, or record expected i = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u231776587|p02859|0
u231776587|p02859|0
codenet
Compile Error
27
v2_s298110964
s298110964
s298110964
p02859
p02859
u241090452
u241090452
1,587,858,272
2020-04-25T23:44:32
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanne(System.in); int r = sc.nextInt(); System.out.println(r*r); } }
Main.java:5: error: cannot find symbol Scanner sc = new Scanne(System.in); ^ symbol: class Scanne location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p02859|0
u241090452|p02859|0
codenet
Compile Error
198
v2_s775847385
s775847385
s775847385
p02859
p02859
u252791538
u252791538
1,588,895,766
2020-05-07T23:56:06
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(problem145a(r)); } private static int problem145a(int r) { return r * r; }
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
u252791538|p02859|0
u252791538|p02859|0
codenet
Compile Error
210
v2_s046124162
s046124162
s046124162
p02859
p02859
u252791538
u252791538
1,588,895,924
2020-05-07T23:58:44
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(problem145a(r)); } private static int problem145a(int r) { return r * r; }
Main.java:3: 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
u252791538|p02859|0
u252791538|p02859|0
codenet
Compile Error
237
v2_s917491843
s917491843
s917491843
p02859
p02859
u252791538
u252791538
1,588,896,026
2020-05-08T00:00:26
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(problem145a(r)); } private static int problem145a(int r) { return r * r; }
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252791538|p02859|0
u252791538|p02859|0
codenet
Compile Error
258
v2_s525145515
s525145515
s525145515
p02859
p02859
u260426822
u260426822
1,600,909,917
2020-09-24T01:11:57
Main.java
int main(int r){ int value = r*r; return value; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int main(int r){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u260426822|p02859|0
u260426822|p02859|0
codenet
Compile Error
51
v2_s953619719
s953619719
s953619719
p02859
p02859
u268132693
u268132693
1,581,271,810
2020-02-09T18:10:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(r * r); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u268132693|p02859|0
u268132693|p02859|0
codenet
Compile Error
189
v2_s675348774
s675348774
s675348774
p02859
p02859
u294547658
u294547658
1,582,767,751
2020-02-27T01:42:31
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Integer lenChara = Integer.valueOf(scan.nextLine()); String targetChara = scan.nextLine(); if (lenChara % 2 == 0) { int divide = lenChara / 2; String start = targ...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294547658|p02859|0
u294547658|p02859|0
codenet
Compile Error
598
v2_s692841616
s692841616
s692841616
p02859
p02859
u305758815
u305758815
1,582,561,491
2020-02-24T16:24:51
Main.java
import java.io.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(r^2); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305758815|p02859|0
u305758815|p02859|0
codenet
Compile Error
183
v2_s298498051
s298498051
s298498051
p02859
p02859
u323806158
u323806158
1,574,533,822
2019-11-23T18:30:22
Main.java
class main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(N*N); } }
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
u323806158|p02859|0
u323806158|p02859|0
codenet
Compile Error
159
v2_s850875259
s850875259
s850875259
p02859
p02859
u346307762
u346307762
1,575,516,574
2019-12-05T03:29:34
Main.java
import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = Integer.parseInt(br.readLine()); System.out.println(Math.pow(num,2)); } }
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown int num = Integer.parseInt(br.readLine()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u346307762|p02859|0
u346307762|p02859|0
codenet
Compile Error
246