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_s111786769
s111786769
s111786769
p00005
p00005
u910780605
u910780605
1,410,357,985
2014-09-10T14:06:25
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(scan.hasNext()) { long a,b,a1,b1; a=sc.nextInt(); b=sc.nextInt(); a1=a; b1=b; if(b>a) { long tmp=b; b=a; a=tmp; } ...
Main.java:6: error: cannot find symbol while(scan.hasNext()) ^ symbol: variable scan location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910780605|p00005|0
u910780605|p00005|0
codenet
Compile Error
458
v2_s714282757
s714282757
s714282757
p00005
p00005
u911339522
u911339522
1,352,251,674
2012-11-07T01:27:54
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true){ Long m = scan.nextLong(); Long n = scan.nextLong(); Long g = gcd(m, n); System.out.println(g+" "+(m*n/g)); } } private static Long gcd(Long a, Long b){ if(b == 0){ return...
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
u911339522|p00005|0
u911339522|p00005|0
codenet
Compile Error
364
v2_s982689214
s982689214
s982689214
p00005
p00005
u928565401
u928565401
1,292,340,804
2010-12-14T15:33:24
Main.java
import java.io.*; public class Main { public static void main(String args[]) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); while(true){ String s = r.readLine(); if(s == null) break; int i = s.indexOf(" "); System.out.println(gcd(Integer.valueOf(s.substring(0, i))) + " " +...
Main.java:9: error: method gcd in class Main cannot be applied to given types; System.out.println(gcd(Integer.valueOf(s.substring(0, i))) + " " + lcm(Integer.valueOf(s.substring(i+1)))); ^ required: int,int found: Integer reason: actual and formal argument lists differ in length Main.java:9:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928565401|p00005|0
u928565401|p00005|0
codenet
Compile Error
504
v2_s355744672
s355744672
s355744672
p00005
p00005
u928565401
u928565401
1,292,340,961
2010-12-14T15:36:01
Main.java
import java.io.*; public class Main { public static void main(String args[]) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); while(true){ String s = r.readLine(); if(s == null) break; int i = s.indexOf(" "); int a = Integer.valueOf(s.substring(0, i)); int b = Integer.valueO...
Main.java:11: error: non-static method gcd(int,int) cannot be referenced from a static context System.out.println(gcd(a, b) + " " + lcm(a, b)); ^ Main.java:11: error: non-static method lcm(int,int) cannot be referenced from a static context System.out.println(gcd(a, b) + " " + lcm(a, b)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928565401|p00005|0
u928565401|p00005|0
codenet
Compile Error
532
v2_s607140150
s607140150
s607140150
p00006
p00006
u011621222
u011621222
1,379,181,060
2013-09-14T17:51:00
Main.java
public class Main { public static Scanner in; public static void main(String[] args) { in = new Scanner(System.in); doStuff(); } public static void doStuff() { String s = in.nextLine(); char[] c = s.toCharArray(); char[] c2 = new char[c.length]; for(int i = 0; i < ...
Main.java:3: error: cannot find symbol public static Scanner in; ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p00006|1
u011621222|p00006|1
codenet
Compile Error
497
v2_s266250792
s266250792
s266250792
p00006
p00006
u042200185
u042200185
1,462,004,061
2016-04-30T08:14:21
Main.java
class Main{ public static void main(String[] a){ File file = new File("reverse.txt"); try { Scanner input = new Scanner(file); String OrigWord = input.nextLine(); int OrigLen = OrigWord.length(); String NewWord = ""; for (int x=OrigLen-1; x >= 0; x--){ NewWord = NewWord + (OrigWord.cha...
Main.java:3: error: cannot find symbol File file = new File("reverse.txt"); ^ symbol: class File location: class Main Main.java:3: error: cannot find symbol File file = new File("reverse.txt"); ^ symbol: class File location: class Main Main.java:6: error: cannot find symbol Scanner input ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042200185|p00006|0
u042200185|p00006|0
codenet
Compile Error
451
v2_s480465750
s480465750
s480465750
p00006
p00006
u042200185
u042200185
1,462,007,074
2016-04-30T09:04:34
Main.java
import java.io.File; import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner file = new Scanner("System.in"); try { Scanner input = new Scanner(file); String OrigWord = input.nextLine(); int OrigLen = OrigWord.length(); String NewWord = ""; ...
Main.java:10: error: no suitable constructor found for Scanner(Scanner) Scanner input = new Scanner(file); ^ constructor Scanner.Scanner(Readable) is not applicable (argument mismatch; Scanner cannot be converted to Readable) constructor Scanner.Scanner(InputStream) is not applicable...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042200185|p00006|0
u042200185|p00006|0
codenet
Compile Error
530
v2_s338434872
s338434872
s338434872
p00006
p00006
u042200185
u042200185
1,462,007,231
2016-04-30T09:07:11
Main.java
import java.io.File; iimport java.io.File; import java.io.IOException; import java.util.Scanner; import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner file = new Scanner("System.in"); try { Scanner input = new Scanner(file); String OrigWord = inpu...
Main.java:2: error: class, interface, enum, or record expected iimport java.io.File; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:4: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:5: error: class, interface, enum, or re...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042200185|p00006|0
u042200185|p00006|0
codenet
Compile Error
606
v2_s496493623
s496493623
s496493623
p00006
p00006
u042200185
u042200185
1,462,007,390
2016-04-30T09:09:50
Main.java
import java.io.File; import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String[] a){ try { Scanner input = new Scanner(System.in); String OrigWord = input.nextLine(); int OrigLen = OrigWord.length(); String N...
Main.java:22: error: exception IOException is never thrown in body of corresponding try statement catch (IOException ex) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042200185|p00006|0
u042200185|p00006|0
codenet
Compile Error
659
v2_s562208095
s562208095
s562208095
p00006
p00006
u042200185
u042200185
1,462,007,501
2016-04-30T09:11:41
Main.java
import java.io.File; import java.io.IOException; import java.util.Scanner; class Main{ public static void main(String[] a){ try { Scanner input = new Scanner(System.in); String OrigWord = input.nextLine(); int OrigLen = OrigWord.length(); String NewWord = ""; for (int x=OrigLen-1; x >= 0; x--){ ...
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations try { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u042200185|p00006|0
u042200185|p00006|0
codenet
Compile Error
435
v2_s197758719
s197758719
s197758719
p00006
p00006
u056041257
u056041257
1,443,683,450
2015-10-01T07:10:50
Main.java
import java.util.Collections; class myClass { public static void main(String[] args) { List<String> list = Arrays.adList(args); Collections.reverse(list); for(String c:list){ System.out.print(c); } System.out.println(); } }
Main.java:5: error: cannot find symbol List<String> list = Arrays.adList(args); ^ symbol: class List location: class myClass Main.java:5: error: cannot find symbol List<String> list = Arrays.adList(args); ^ symbol: variable Arrays location: class myClass 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u056041257|p00006|0
u056041257|p00006|0
codenet
Compile Error
260
v2_s015630770
s015630770
s015630770
p00006
p00006
u079013159
u079013159
1,460,704,815
2016-04-15T07:20:15
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] a){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); StringBuffer str1 = new StringBuffer(""); if(str != nul...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown String str = br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079013159|p00006|0
u079013159|p00006|0
codenet
Compile Error
453
v2_s125694651
s125694651
s125694651
p00006
p00006
u088290348
u088290348
1,382,286,887
2013-10-20T16:34:47
Main.java
import java.io.*; class Main1 { public static void main(String args[]) throws IOException { System.out.println("文字列を入力"); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str1 = br.readline(); StringBuffer str2 = new StringBuffer(str1); str2.reverse(); System....
Main.java:8: error: cannot find symbol String str1 = br.readline(); ^ symbol: method readline() location: variable br of type BufferedReader 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00006|0
u088290348|p00006|0
codenet
Compile Error
405
v2_s541694641
s541694641
s541694641
p00006
p00006
u088290348
u088290348
1,382,287,383
2013-10-20T16:43:03
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] a = sc.next().toArray(); for(int i = a.length-1;i>=0;i--){ System.out.print(a[i]); System.out.println(); } } }
Main.java:6: error: cannot find symbol char[] a = sc.next().toArray(); ^ symbol: method toArray() location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00006|0
u088290348|p00006|0
codenet
Compile Error
304
v2_s098609529
s098609529
s098609529
p00006
p00006
u175493157
u175493157
1,386,744,251
2013-12-11T06:44:11
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.log4j.Logger; public class Main { private static final Logger logger = Logger.getLogger(Main.class); public static void main(String[] args) throws IOException { StringBuilder builder = new StringBuild...
Main.java:6: error: package org.apache.log4j does not exist import org.apache.log4j.Logger; ^ Main.java:10: error: cannot find symbol private static final Logger logger = Logger.getLogger(Main.class); ^ symbol: class Logger location: class Main Main.java:10: error: ca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u175493157|p00006|0
u175493157|p00006|0
codenet
Compile Error
596
v2_s548868084
s548868084
s548868084
p00006
p00006
u211138527
u211138527
1,434,373,174
2015-06-15T12:59:34
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner; String str=sc.next(); char[] c=new char[str.length()]; for(int i=0;i<str.length();i++){ c[i]=str.charAt(i); } for(int i=str.length()-1;i>=0;i--){ System.out.print(c[i]); }
Main.java:5: error: '(' or '[' expected Scanner sc=new Scanner; ^ Main.java:13: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00006|0
u211138527|p00006|0
codenet
Compile Error
268
v2_s392121587
s392121587
s392121587
p00006
p00006
u211138527
u211138527
1,434,373,192
2015-06-15T12:59:52
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner; String str=sc.next(); char[] c=new char[str.length()]; for(int i=0;i<str.length();i++){ c[i]=str.charAt(i); } for(int i=str.length()-1;i>=0;i--){ System.out.print(c[i]); } } }
Main.java:5: error: '(' or '[' expected Scanner sc=new Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00006|0
u211138527|p00006|0
codenet
Compile Error
272
v2_s646664327
s646664327
s646664327
p00006
p00006
u214219188
u214219188
1,432,212,324
2015-05-21T12:45:24
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] arg) throws NumberFormatException, IOException { InputStreamReader file = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(new FileReader(file)); ...
Main.java:9: error: cannot find symbol BufferedReader br = new BufferedReader(new FileReader(file)); ^ symbol: class FileReader location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u214219188|p00006|0
u214219188|p00006|0
codenet
Compile Error
543
v2_s462190088
s462190088
s462190088
p00006
p00006
u294593214
u294593214
1,426,923,279
2015-03-21T07:34:39
Main.java
import java.util.*; class Main { final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); final private static StringBuilder sb = new StringBuilder(); public statics void main(final String[] args) { final String line = in.nextLine(); for (int i...
Main.java:6: error: <identifier> expected public statics void main(final String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294593214|p00006|0
u294593214|p00006|0
codenet
Compile Error
446
v2_s253335032
s253335032
s253335032
p00006
p00006
u294593214
u294593214
1,426,923,329
2015-03-21T07:35:29
Main.java
import java.util.*; class Main { final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); final private static StringBuilder sb = new StringBuilder(); public static void main(final String[] args) { final String line = in.nextLine(); for (int i...
Main.java:4: error: cannot find symbol final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol final private static BufferedReader in = new BufferedRea...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294593214|p00006|0
u294593214|p00006|0
codenet
Compile Error
446
v2_s199259085
s199259085
s199259085
p00006
p00006
u294593214
u294593214
1,426,923,359
2015-03-21T07:35:59
Main.java
import java.util.*; import java.io.*; class Main { final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); final private static StringBuilder sb = new StringBuilder(); public static void main(final String[] args) { final String line = in.nextLine(); ...
Main.java:9: error: cannot find symbol final String line = in.nextLine(); ^ symbol: method nextLine() location: variable in of type BufferedReader 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294593214|p00006|0
u294593214|p00006|0
codenet
Compile Error
464
v2_s743419664
s743419664
s743419664
p00006
p00006
u294593214
u294593214
1,426,923,392
2015-03-21T07:36:32
Main.java
import java.util.*; import java.io.*; class Main { final private static BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); final private static StringBuilder sb = new StringBuilder(); public static void main(final String[] args) { final String line = in.readLine(); ...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown final String line = in.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294593214|p00006|0
u294593214|p00006|0
codenet
Compile Error
464
v2_s347169014
s347169014
s347169014
p00006
p00006
u460456614
u460456614
1,443,501,742
2015-09-29T04:42:22
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // ???????????????????¨??????§ // Let's ?????£??¬???????????? BufferedReader br = new BufferedReader(new InputStreamReader(Syste...
Main.java:12: error: cannot find symbol for(int i=line.length-1;i>=0;i--){ ^ symbol: variable length location: variable line of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460456614|p00006|0
u460456614|p00006|0
codenet
Compile Error
538
v2_s635205698
s635205698
s635205698
p00006
p00006
u460456614
u460456614
1,443,501,831
2015-09-29T04:43:51
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { // ???????????????????¨??????§ // Let's ?????£??¬???????????? BufferedReader br = new BufferedReader(new InputStreamReader(Syste...
Main.java:12: error: cannot find symbol for(int i=line.length-1;i>=0;i--){ ^ symbol: variable length location: variable line of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460456614|p00006|0
u460456614|p00006|0
codenet
Compile Error
538
v2_s718436407
s718436407
s718436407
p00006
p00006
u472560417
u472560417
1,461,728,782
2016-04-27T03:46:22
StringReverseExample1.java
public class StringReverseExample1{ public static void main(String[] args){ String string="abcdef"; String reverse = new StringBuffer(string). reverse().toString(); System.out.println("\nString before reverse: "+string); System.out.println("String after reverse: "+reverse); ...
StringReverseExample1.java:6: error: unclosed string literal System.out.println("\nString before reverse: ^ StringReverseExample1.java:7: error: unclosed string literal "+string); ^ StringReverseExample1.java:8: error: unclosed string literal System.out.println("String a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u472560417|p00006|0
u472560417|p00006|0
codenet
Compile Error
326
v2_s072975788
s072975788
s072975788
p00006
p00006
u530523861
u530523861
1,330,518,463
2012-02-29T12:27:43
Main.java
package p1; import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ Scanner sc = new Scanner(System.in); System.out.println(sc.next().reverse()); } }
Main.java:16: error: cannot find symbol System.out.println(sc.next().reverse()); ^ symbol: method reverse() location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u530523861|p00006|0
u530523861|p00006|0
codenet
Compile Error
337
v2_s057554762
s057554762
s057554762
p00006
p00006
u561477777
u561477777
1,397,833,661
2014-04-18T15:07:41
Main.java
import java.util.Scanner; public class Main { public int calcGCD(int a_in, int b_in) { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println((new StringBuilder(sc.nextLine()).reverse().toString())); } }
Main.java:7: error: illegal start of expression public static void main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u561477777|p00006|0
u561477777|p00006|0
codenet
Compile Error
257
v2_s399951431
s399951431
s399951431
p00006
p00006
u567364068
u567364068
1,481,706,589
2016-12-14T09:09:49
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException{ BufferReader br = new BufferReader(new InputStreamReader(System.in)); String line =""; while((line =br.readLine()) != null&&!line.isEmpty()){...
Main.java:7: error: cannot find symbol BufferReader br = new BufferReader(new InputStreamReader(System.in)); ^ symbol: class BufferReader location: class Main Main.java:7: error: cannot find symbol BufferReader br = new BufferReader(new InputStreamReader(System.in)); ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u567364068|p00006|0
u567364068|p00006|0
codenet
Compile Error
528
v2_s590144082
s590144082
s590144082
p00006
p00006
u567364068
u567364068
1,481,707,262
2016-12-14T09:21:02
Main.java
import java.io.*; public class Main{ public static void main(String[] args) throws IOException{ BufferReader br = new BufferReader(new InputStreamReader(System.in)); string line; while((line=br.readLine()) != null){ StringBuffer sb = new StringBuffer().append(line); System.out.print(sb.reverse()+"\n"); }...
Main.java:5: error: cannot find symbol BufferReader br = new BufferReader(new InputStreamReader(System.in)); ^ symbol: class BufferReader location: class Main Main.java:5: error: cannot find symbol BufferReader br = new BufferReader(new InputStreamReader(System.in)); ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u567364068|p00006|0
u567364068|p00006|0
codenet
Compile Error
328
v2_s421278364
s421278364
s421278364
p00006
p00006
u583163141
u583163141
1,432,657,182
2015-05-26T16:19:42
Str_Reverse.java
import java.io.*; public class Str_Reverse{ public static void main(String[] args){ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String line; while((line=br.readLine())!=null){ StringBuffer reverse = new StringBuffer().append(line); System.out.pr...
Str_Reverse.java:8: error: unreported exception IOException; must be caught or declared to be thrown while((line=br.readLine())!=null){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583163141|p00006|0
u583163141|p00006|0
codenet
Compile Error
357
v2_s499578264
s499578264
s499578264
p00006
p00006
u642549559
u642549559
1,297,952,152
2011-02-17T14:15:52
Main.java
import java.util.*;class _{void main(){System.out.println(new StringBuffer(new Scanner(System.in).next()).reverse());}
Main.java:1: error: as of release 9, '_' is a keyword, and may not be used as an identifier import java.util.*;class _{void main(){System.out.println(new StringBuffer(new Scanner(System.in).next()).reverse());} ^ Main.java:1: error: reached end of file while parsing import java.util.*;class _{v...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u642549559|p00006|0
u642549559|p00006|0
codenet
Compile Error
118
v2_s468843259
s468843259
s468843259
p00006
p00006
u745519209
u745519209
1,349,952,081
2012-10-11T10:41:21
Main.java
public class Main { public static void main(String[] args) throws IOException { StringBuffer sBuffer = new StringBuffer(); BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in)); String str = bReader.readLine(); sBuffer.append(str)...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader bReader = ^ symbol: class BufferedReade...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u745519209|p00006|0
u745519209|p00006|0
codenet
Compile Error
376
v2_s934943050
s934943050
s934943050
p00006
p00006
u759791460
u759791460
1,467,171,544
2016-06-29T03:39:04
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; import java.lang.StringBuilder; public class Main { public static void main(String args[] ) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); StringBuilder sb = new StringBuilder(str); ...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown String str = br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759791460|p00006|0
u759791460|p00006|0
codenet
Compile Error
363
v2_s027329025
s027329025
s027329025
p00006
p00006
u759791460
u759791460
1,467,171,611
2016-06-29T03:40:11
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; import java.lang.StringBuilder; public class Main { public static void main(String args[] ) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); StringBuilder sb = new StringBuilder(str); ...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown String str = br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759791460|p00006|0
u759791460|p00006|0
codenet
Compile Error
363
v2_s530117963
s530117963
s530117963
p00006
p00006
u815760676
u815760676
1,480,057,249
2016-11-25T07:00:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // ???????????????????¨??????§ // Let's ?????£??¬???????????? Scanner sc = new Scanner(System.in); String line = sc.nextLine(); System.out.println(line.reverse()); } }
Main.java:9: error: cannot find symbol System.out.println(line.reverse()); ^ symbol: method reverse() location: variable line of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u815760676|p00006|0
u815760676|p00006|0
codenet
Compile Error
301
v2_s171812212
s171812212
s171812212
p00006
p00006
u907626292
u907626292
1,337,693,220
2012-05-22T13:27:00
Main.java
class Main{ public static void main(String[] args) throws java.io.IOException{ reverse(); // TODO 自動生成されたメソッド・スタブ } public static void reverse()throws IOException{ BufferedReader input = new BufferedReader (new InputStreamReader (System.in)); String str = input.readLine(); String[] str...
Main.java:10: error: cannot find symbol public static void reverse()throws IOException{ ^ symbol: class IOException location: class Main Main.java:11: error: cannot find symbol BufferedReader input = ^ symbol: class BufferedReader location: class Main Main.java:12: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u907626292|p00006|0
u907626292|p00006|0
codenet
Compile Error
546
v2_s017056619
s017056619
s017056619
p00006
p00006
u908899927
u908899927
1,457,158,638
2016-03-05T06:17:18
Main.java
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] str=br.readLine(); for(int i=test.length-1;i>=0;i--){ System.out.print(str[i]); } System.out.print("\n"); } }
Main.java:9: error: incompatible types: String cannot be converted to String[] String[] str=br.readLine(); ^ Main.java:11: error: cannot find symbol for(int i=test.length-1;i>=0;i--){ ^ symbol: variable test location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u908899927|p00006|0
u908899927|p00006|0
codenet
Compile Error
302
v2_s584494406
s584494406
s584494406
p00006
p00006
u908899927
u908899927
1,457,158,711
2016-03-05T06:18:31
Main.java
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char[] str=br.readLine(); for(int i=test.length-1;i>=0;i--){ System.out.print(str[i]); } System.out.print("\n"); } }
Main.java:9: error: incompatible types: String cannot be converted to char[] char[] str=br.readLine(); ^ Main.java:11: error: cannot find symbol for(int i=test.length-1;i>=0;i--){ ^ symbol: variable test location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u908899927|p00006|0
u908899927|p00006|0
codenet
Compile Error
300
v2_s402189139
s402189139
s402189139
p00006
p00006
u910402677
u910402677
1,480,224,406
2016-11-27T05:26:46
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ String str = scan.next(); for(int i = str.length - 1; i >= 0; i--){ char ch = str.charAt(i); System.out.printf("%c", ch); } System.out.printf("\n"); } }
Main.java:8: error: cannot find symbol for(int i = str.length - 1; i >= 0; i--){ ^ symbol: variable length location: variable str of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00006|0
u910402677|p00006|0
codenet
Compile Error
310
v2_s387930021
s387930021
s387930021
p00006
p00006
u914531543
u914531543
1,508,400,789
2017-10-19T08:13:09
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String line=sc.nextLine(); for(int i=line.length()-1; i>=0; i--){ System.out.print(line.charAt(i); } }
Main.java:7: error: ')' or ',' expected System.out.print(line.charAt(i); ^ Main.java:9: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u914531543|p00006|0
u914531543|p00006|0
codenet
Compile Error
249
v2_s592466514
s592466514
s592466514
p00006
p00006
u972901560
u972901560
1,440,888,020
2015-08-29T22:40:20
Main.java
import java.io.*; public class Main{ static void scan()throws IOException{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str=br.readLine(); turn(str); } static void turn(String str){ int l = str.length(); for(int i=l-1;i>0;i--) Syst...
Main.java:14: error: cannot find symbol System.out.println(atr.length(0)); ^ symbol: variable atr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u972901560|p00006|0
u972901560|p00006|0
codenet
Compile Error
473
v2_s231611402
s231611402
s231611402
p00006
p00006
u972901560
u972901560
1,440,888,097
2015-08-29T22:41:37
Main.java
import java.io.*; public class Main{ static void scan()throws IOException{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String str=br.readLine(); turn(str); } static void turn(String str){ int l = str.length(); for(int i=l-1;i>0;i--) Syst...
Main.java:14: error: cannot find symbol System.out.println(atr.charAt(0)); ^ symbol: variable atr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u972901560|p00006|0
u972901560|p00006|0
codenet
Compile Error
473
v2_s922358690
s922358690
s922358690
p00007
p00007
u067299340
u067299340
1,427,193,555
2015-03-24T10:39:15
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { double debt = 100000.0; for(int i = 0; i< Scanner(System.in).nextInt(); i++) { debt = Math.ceil(debt * 0.00105) * 1000.0; } System.out.println(debt); } }
Main.java:6: error: cannot find symbol for(int i = 0; i< Scanner(System.in).nextInt(); i++) { ^ symbol: method Scanner(InputStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00007|0
u067299340|p00007|0
codenet
Compile Error
295
v2_s598158394
s598158394
s598158394
p00007
p00007
u074603828
u074603828
1,475,736,210
2016-10-06T06:43:30
Main.java
public class Main { public static void main(String args[]) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int result = 100000; int rishi = 5; int n = Integer.parseInt(br.readLine()); for(int i = 0; i < n; i++){ result = ...
Main.java:4: error: cannot find symbol public static void main(String args[]) throws NumberFormatException, IOException { ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new Buffere...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074603828|p00007|0
u074603828|p00007|0
codenet
Compile Error
441
v2_s060675193
s060675193
s060675193
p00007
p00007
u074603828
u074603828
1,475,737,625
2016-10-06T07:07:05
Main.java
import java.util.Scanner; 2 3 public class Main { 4 public static void main(String[] args) { 5 Scanner scn = new Scanner(System.in); 6 int n = scn.nextInt(); 7 int debt = 100; 8 for (int i = 0; i < n; i++) { 9 debt = (int)Math.ceil(debt * 1.05); 10 } 11 System.out.println(debt * 1000); 12 ...
Main.java:2: error: class, interface, enum, or record expected 2 ^ Main.java:5: error: illegal start of type 4 public static void main(String[] args) { ^ Main.java:6: error: not a statement 5 Scanner scn = new Scanner(System.in); ^ Main.java:6: error: ';' expected 5 Scanner scn = new Scanner(System.in); ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074603828|p00007|0
u074603828|p00007|0
codenet
Compile Error
329
v2_s072709113
s072709113
s072709113
p00007
p00007
u074603828
u074603828
1,476,326,757
2016-10-13T02:45:57
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int inputNum = in.nextDouble(); System.out.println(getNowShakkin(inputNum)); } public static int getKiriage1000(double shakkin) { double result = shakkin; result = (int) (Math.c...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int inputNum = in.nextDouble(); ^ Main.java:17: error: incompatible types: possible lossy conversion from double to int return result; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074603828|p00007|1
u074603828|p00007|1
codenet
Compile Error
628
v2_s084342250
s084342250
s084342250
p00007
p00007
u074603828
u074603828
1,476,326,816
2016-10-13T02:46:56
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int inputNum = in.nextInt(); System.out.println(getNowShakkin(inputNum)); } public static int getKiriage1000(double shakkin) { double result = shakkin; result = (int) (Math.ceil...
Main.java:17: error: incompatible types: possible lossy conversion from double to int return result; ^ Main.java:30: error: incompatible types: possible lossy conversion from double to int return result; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074603828|p00007|1
u074603828|p00007|1
codenet
Compile Error
622
v2_s587505479
s587505479
s587505479
p00007
p00007
u074603828
u074603828
1,476,328,015
2016-10-13T03:06:55
Main.java
public static void main(String args[]) { Scanner in = new Scanner(System.in); int inputNum = in.nextInt(); System.out.println(getNowShakkin(inputNum)); } public static int getNowShakkin(int weekInterval) { double result = 100; for (int i = 0; i < weekInterval; i++) { result = result + (result...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]) { ^ (use --enable-preview to enable unnamed classes) Main.java:17: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074603828|p00007|1
u074603828|p00007|1
codenet
Compile Error
415
v2_s973481956
s973481956
s973481956
p00007
p00007
u081343554
u081343554
1,499,939,905
2017-07-13T09:58:25
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); double sum = 100000; //????????????10?????? int ??? = 0; //??...
Main.java:10: error: not a statement int ??? = 0; //????????????????????? ^ Main.java:10: error: ';' expected int ??? = 0; //????????????????????? ^ Main.java:12: error: illegal start of expression ??? = Integer.parseInt(br.readLine()); ^ Main.java:12: error: illegal start of expression ??? = Integ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u081343554|p00007|0
u081343554|p00007|0
codenet
Compile Error
526
v2_s000041119
s000041119
s000041119
p00007
p00007
u081343554
u081343554
1,499,939,980
2017-07-13T09:59:40
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); double sum = 100000; //????????????10?????? int ??? = 0; //??...
Main.java:10: error: not a statement int ??? = 0; //????????????????????? ^ Main.java:10: error: ';' expected int ??? = 0; //????????????????????? ^ Main.java:12: error: illegal start of expression ??? = Integer.parseInt(br.readLine()); ^ Main.java:12: error: illegal start of expression ??? = Integ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u081343554|p00007|0
u081343554|p00007|0
codenet
Compile Error
526
v2_s459354359
s459354359
s459354359
p00007
p00007
u081343554
u081343554
1,500,015,133
2017-07-14T06:52:13
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sum = 100000; //????????????10?????? int ??? = 0; //?????...
Main.java:10: error: not a statement int ??? = 0; //????????????????????? ^ Main.java:10: error: ';' expected int ??? = 0; //????????????????????? ^ Main.java:12: error: illegal start of expression ??? = Integer.parseInt(br.readLine()); ^ Main.java:12: error: illegal start of expression ??? = Integ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u081343554|p00007|1
u081343554|p00007|1
codenet
Compile Error
524
v2_s118800160
s118800160
s118800160
p00007
p00007
u088290348
u088290348
1,384,747,865
2013-11-18T04:11:05
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int a = 100; for (int i = 0; i < n; i++) { a = Math.ceil(a * 1.05); } System.out.println(a * 1000); } }
Main.java:9: error: incompatible types: possible lossy conversion from double to int a = Math.ceil(a * 1.05); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00007|0
u088290348|p00007|0
codenet
Compile Error
253
v2_s024371838
s024371838
s024371838
p00007
p00007
u112528429
u112528429
1,429,177,839
2015-04-16T09:50:39
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //外部入力取り込んだ借金をしている期間(週単位) int week = Integer.parseInt(in.readLine()); //借金 double debt = 100000; //利子 double interest = 1.05; //借金の計算 for (int i =...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112528429|p00007|0
u112528429|p00007|0
codenet
Compile Error
694
v2_s824707785
s824707785
s824707785
p00007
p00007
u112528429
u112528429
1,429,177,940
2015-04-16T09:52:20
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //外部入力取り込んだ借金をしている期間(週単位) int week = Integer.parseInt(in.readLine()); //借金 double debt = 100000; //利子 double interest = 1.05; //借金の計算 for (int i =...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112528429|p00007|0
u112528429|p00007|0
codenet
Compile Error
694
v2_s253238227
s253238227
s253238227
p00007
p00007
u112528429
u112528429
1,429,177,979
2015-04-16T09:52:59
Main.java
mport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //外部入力取り込んだ借金をしている期間(週単位) int week = Integer.parseInt(in.readLine(...
Main.java:1: error: class, interface, enum, or record expected mport java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112528429|p00007|0
u112528429|p00007|0
codenet
Compile Error
787
v2_s580846373
s580846373
s580846373
p00007
p00007
u112528429
u112528429
1,429,178,188
2015-04-16T09:56:28
Main.java
class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //外部入力取り込んだ借金をしている期間(週単位) int week = Integer.parseInt(in.readLine()); //借金 double debt = 100000; //利子 double interest = 1.05; //借金の計算 for (int i = 0; i <...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u112528429|p00007|0
u112528429|p00007|0
codenet
Compile Error
687
v2_s962199906
s962199906
s962199906
p00007
p00007
u123411337
u123411337
1,429,169,178
2015-04-16T07:26:18
money.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class money { public static void main(String[] args) throws IOException { System.out.println("??´??°?????\????????????????????????"); //Input ??´??°?????\????????? ...
money.java:10: error: illegal escape character System.out.println("???????????\????????????????????????"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u123411337|p00007|0
u123411337|p00007|0
codenet
Compile Error
1,391
v2_s796307774
s796307774
s796307774
p00007
p00007
u143711828
u143711828
1,501,407,180
2017-07-30T09:33:00
Chika.java
package java_rensyu; import java.math.BigDecimal; import java.util.Scanner; public class Chika { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int week = scanner.nextInt(); BigDecimal debt = new BigDecimal(100000); BigDecimal rate = new BigDecimal(1.05); for (int i...
Chika.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u143711828|p00007|0
u143711828|p00007|0
codenet
Compile Error
590
v2_s689121844
s689121844
s689121844
p00007
p00007
u143711828
u143711828
1,501,407,245
2017-07-30T09:34:05
Chika.java
import java.math.BigDecimal; import java.util.Scanner; public class Chika { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int week = scanner.nextInt(); BigDecimal debt = new BigDecimal(100000); BigDecimal rate = new BigDecimal(1.05); for (int i = 0; i < week; i++) {...
Chika.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u143711828|p00007|0
u143711828|p00007|0
codenet
Compile Error
568
v2_s894234195
s894234195
s894234195
p00007
p00007
u158979022
u158979022
1,528,689,741
2018-06-11T04:02:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int debt = 100000; while(n-- != 0) { debt += debt*0.05; int a = debt%1000; if(a != 0) debt += 1000-a; } System.out.println(debt); } } 5
Main.java:16: error: class, interface, enum, or record expected 5 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u158979022|p00007|0
u158979022|p00007|0
codenet
Compile Error
306
v2_s734559371
s734559371
s734559371
p00007
p00007
u190923288
u190923288
1,431,001,255
2015-05-07T12:20:55
Main03.java
public class Main03 { public static void main(String[] args) { } /** * index番目のグループの到着時刻を返却する(正午からの経過時間) * 単位:分 * @param index * @return 到着時刻 */ private static int getArriveTime(int index) { return index * 5; } /** * index番目のグループの人数を返却する * 単位:人 ...
Main03.java:56: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u190923288|p00007|2
u190923288|p00007|2
codenet
Compile Error
1,400
v2_s962511164
s962511164
s962511164
p00007
p00007
u190923288
u190923288
1,431,001,900
2015-05-07T12:31:40
Main.java
public class Main { public static void main(String[] args) { } /** * index番目のグループの到着時刻を返却する(正午からの経過時間) * 単位:分 * @param index * @return 到着時刻 */ private static int getArriveTime(int index) { return index * 5; } /** * index番目のグループの人数を返却する * 単位:人 *...
Main.java:56: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u190923288|p00007|2
u190923288|p00007|2
codenet
Compile Error
1,398
v2_s805766061
s805766061
s805766061
p00007
p00007
u211138527
u211138527
1,434,374,955
2015-06-15T13:29:15
Main.java
import java.util.Scanner; import java.math.BigDecimal; import java.math.RoundingMode; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); double a=100000; for(int i=0;i<w;i++){ a=a*1.05; BigDecimal x=new BigDecimal(a); x=x/1000; x=x.setScale(0,RoundingMode.CEILING...
Main.java:13: error: bad operand types for binary operator '/' x=x/1000; ^ first type: BigDecimal second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00007|0
u211138527|p00007|0
codenet
Compile Error
375
v2_s019486378
s019486378
s019486378
p00007
p00007
u211138527
u211138527
1,434,375,509
2015-06-15T13:38:29
Main.java
import java.util.Scanner; import java.math.BigDecimal; import java.math.RoundingMode; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int a=100000; for(int i=0;i<w;i++){ a=a*1.05; double b=a/1000; BigDecimal x=new BigDecimal(b); x=x.setScale(0,RoundingMode.CEI...
Main.java:11: error: incompatible types: possible lossy conversion from double to int a=a*1.05; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00007|0
u211138527|p00007|0
codenet
Compile Error
376
v2_s295370392
s295370392
s295370392
p00007
p00007
u211138527
u211138527
1,434,375,749
2015-06-15T13:42:29
Main.java
import java.util.Scanner; import java.math.BigDecimal; import java.math.RoundingMode; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int a=100000; for(int i=0;i<w;i++){ a+=a/20; BigDecimal x=new BigDecimal(a); a=x.setScale(-3,RoundingMode.CEILING); } System.o...
Main.java:13: error: incompatible types: BigDecimal cannot be converted to int a=x.setScale(-3,RoundingMode.CEILING); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00007|0
u211138527|p00007|0
codenet
Compile Error
338
v2_s635539280
s635539280
s635539280
p00007
p00007
u211138527
u211138527
1,434,375,797
2015-06-15T13:43:17
Main.java
import java.util.Scanner; import java.math.BigDecimal; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int a=100000; for(int i=0;i<w;i++){ a+=a/20; BigDecimal x=new BigDecimal(a); x=x.setScale(-3,Round_UP); } System.out.println(a); } }
Main.java:12: error: cannot find symbol x=x.setScale(-3,Round_UP); ^ symbol: variable Round_UP location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00007|0
u211138527|p00007|0
codenet
Compile Error
295
v2_s169886677
s169886677
s169886677
p00007
p00007
u215707914
u215707914
1,489,411,657
2017-03-13T13:27:37
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader class Main{ public static void main(String[] a) { String line = ""; try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); line = stdReader.readLine(); stdReader.close();...
Main.java:2: error: ';' expected import java.io.InputStreamReader ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u215707914|p00007|0
u215707914|p00007|0
codenet
Compile Error
786
v2_s783242104
s783242104
s783242104
p00007
p00007
u215707914
u215707914
1,489,411,687
2017-03-13T13:28:07
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader class Main{ public static void main(String[] a) { String line = ""; try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); line = stdReader.readLine(); stdReader.close();...
Main.java:2: error: ';' expected import java.io.InputStreamReader ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u215707914|p00007|0
u215707914|p00007|0
codenet
Compile Error
786
v2_s582918313
s582918313
s582918313
p00007
p00007
u215707914
u215707914
1,489,411,824
2017-03-13T13:30:24
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader class Main{ public static void main(String[] a) { String line = ""; try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); line = stdReader.readLine(); stdReader.close();...
Main.java:2: error: ';' expected import java.io.InputStreamReader ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u215707914|p00007|0
u215707914|p00007|0
codenet
Compile Error
786
v2_s045936395
s045936395
s045936395
p00007
p00007
u226433140
u226433140
1,470,704,930
2016-08-09T01:08:50
AizuONLINEDbethell.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; //n??±?????????????????????????±?????????? public class AizuONLINEDbethell { public static void main(String[] args){ double syakkin = 100000;//?????????????????????10??? System.out.println("?????±????????£??????");...
AizuONLINEDbethell.java:27: error: illegal escape character System.out.println("???????????\????????????????????????"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u226433140|p00007|0
u226433140|p00007|0
codenet
Compile Error
792
v2_s114607540
s114607540
s114607540
p00007
p00007
u229177350
u229177350
1,275,727,345
2010-06-05T08:42:25
Main.java
import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}}
Main.java:1: error: unclosed character literal import java.util.*;class Main{public static void main(String[]a){System.out.println(f(new Scanner(System.in).nextInt())*'&#1000;');}static int f(int n){return n<1?100:(int)Math.ceil(f(n-1)*1.05);}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u229177350|p00007|0
u229177350|p00007|0
codenet
Compile Error
197
v2_s326543192
s326543192
s326543192
p00007
p00007
u361661357
u361661357
1,397,971,059
2014-04-20T05:17:39
Math.java
import java.util.*; public class Math{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double money = 10; for(int i=0;i<n;i++) money*=1.05; System.out.println(Math.ceil(money)*10000); } }
Math.java:9: error: cannot find symbol System.out.println(Math.ceil(money)*10000); ^ symbol: method ceil(double) location: class Math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u361661357|p00007|0
u361661357|p00007|0
codenet
Compile Error
256
v2_s512593603
s512593603
s512593603
p00007
p00007
u381256817
u381256817
1,429,105,324
2015-04-15T13:42:04
Main.java
class Main{ public static final int DEPT = 100000; public static final BigDecimal INTEREST = new BigDecimal(0.05); public static void main(String[] args) { Scanner s = new Scanner(System.in); int week = Integer.parseInt(s.next()); BigDecimal repay = new BigDecimal(DEPT); ...
Main.java:5: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ^ symbol: class BigDecimal location: class Main Main.java:5: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381256817|p00007|0
u381256817|p00007|0
codenet
Compile Error
522
v2_s041442868
s041442868
s041442868
p00007
p00007
u381256817
u381256817
1,429,105,391
2015-04-15T13:43:11
Main.java
class Main{ public static final int DEPT = 100000; public static final BigDecimal INTEREST = new BigDecimal(0.05); public static void main(String[] args) { Scanner s = new Scanner(System.in); int week = Integer.parseInt(s.next()); BigDecimal repay = new BigDecimal(DEPT); for ...
Main.java:3: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ^ symbol: class BigDecimal location: class Main Main.java:3: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381256817|p00007|0
u381256817|p00007|0
codenet
Compile Error
515
v2_s593698067
s593698067
s593698067
p00007
p00007
u381256817
u381256817
1,429,151,444
2015-04-16T02:30:44
Main.java
class Main { public static final int DEPT = 100000; public static final BigDecimal INTEREST = new BigDecimal(0.05); public static void main(String[] args) { Scanner s = new Scanner(System.in); int week = Integer.parseInt(s.next()); BigDecimal repay = new BigDecimal(DEPT); ...
Main.java:5: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ^ symbol: class BigDecimal location: class Main Main.java:5: error: cannot find symbol public static final BigDecimal INTEREST = new BigDecimal(0.05); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381256817|p00007|1
u381256817|p00007|1
codenet
Compile Error
593
v2_s954423418
s954423418
s954423418
p00007
p00007
u400974339
u400974339
1,488,373,618
2017-03-01T13:06:58
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int week = scan.nextInt(); double debt = 100000; for(int i = 0; i < week; i++){ debt = debt * 1.05 / 1000; debt = Math.ceil(debt); debt = debt * 1000; } int ans = (int)debt; System.out.prin...
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
u400974339|p00007|1
u400974339|p00007|1
codenet
Compile Error
336
v2_s930461759
s930461759
s930461759
p00007
p00007
u445841396
u445841396
1,428,243,978
2015-04-05T14:26:18
Main.java
class Debt_hell { public static void main(String[] args) { BigDecimal debt = new BigDecimal("100000"); BigDecimal interest = new BigDecimal("1.05"); for (int i = 1; i <= Integer.parseInt(args[0]); i++) { debt = calcDebt(debt, interest); } System.out.println(debt); } private static BigDecimal calcDe...
Main.java:15: error: cannot find symbol private static BigDecimal calcDebt(BigDecimal debt, BigDecimal interest) { ^ symbol: class BigDecimal location: class Debt_hell Main.java:15: error: cannot find symbol private static BigDecimal calcDebt(BigDecimal debt, BigDecimal inter...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445841396|p00007|0
u445841396|p00007|0
codenet
Compile Error
513
v2_s355481271
s355481271
s355481271
p00007
p00007
u445841396
u445841396
1,428,281,043
2015-04-06T00:44:03
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.math.BigDecimal; /** * 借金を計算する機能 * * @author kohei.nitta * */ class Debt_hell { /** * 標準入力から値を受け取り、n週間後の借金の残高を出力する。 * * @param args * @return * @throws IOException */ public static void main(String[] args){ BigDecimal d...
Main.java:29: error: unreported exception IOException; must be caught or declared to be thrown int inputNo = Integer.parseInt(input.readLine()); ^ Note: Main.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445841396|p00007|1
u445841396|p00007|1
codenet
Compile Error
835
v2_s915763701
s915763701
s915763701
p00007
p00007
u535271761
u535271761
1,508,151,258
2017-10-16T10:54:18
Main.java
import java.io.*; class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in));// ??\???????????????????????? String line = br.readLine(); int deptWeek = Integer.parseInt(line); int dept ...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u535271761|p00007|0
u535271761|p00007|0
codenet
Compile Error
927
v2_s904121478
s904121478
s904121478
p00007
p00007
u574420836
u574420836
1,402,965,315
2014-06-17T00:35:15
Main.java
import java.util.Scanner; import java.math.BigDecimal; public class Main{ private int first; DebtHell(int yen){ first = yen; } int calculate(int yen){ BigDecimal bd = new BigDecimal(yen*1.05); BigDecimal bd1 = bd.setScale(-4, BigDecimal.ROUND_HALF_UP); return bd1.intValue(); } public static void main(Stri...
Main.java:5: error: invalid method declaration; return type required DebtHell(int yen){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574420836|p00007|0
u574420836|p00007|0
codenet
Compile Error
564
v2_s114870097
s114870097
s114870097
p00007
p00007
u574420836
u574420836
1,402,965,367
2014-06-17T00:36:07
Main.java
import java.util.Scanner; import java.math.BigDecimal; public class Main{ private int first; Main(int yen){ first = yen; } int calculate(int yen){ BigDecimal bd = new BigDecimal(yen*1.05); BigDecimal bd1 = bd.setScale(-4, BigDecimal.ROUND_HALF_UP); return bd1.intValue(); } public static void main(String[]...
Main.java:15: error: illegal character: '\u3000' ????Main Deb = new Main(100000); ^ Main.java:15: error: illegal character: '\u3000' ????Main Deb = new Main(100000); ^ Main.java:15: error: illegal character: '\u3000' ????Main Deb = new Main(100000); ^ Main.java:15: error: illegal character: '\u3000' ??...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574420836|p00007|0
u574420836|p00007|0
codenet
Compile Error
564
v2_s297487594
s297487594
s297487594
p00007
p00007
u612947857
u612947857
1,427,879,487
2015-04-01T09:11:27
Main.java
public class Main { public static void main(String[] args) throws Exception { //????????? final BigDecimal TAX_RATE = new BigDecimal("0.05"); //?????°?????????????????????????????¨?????? final int ROUND_UP_FRACTION = 1000; //???????????????????????????10??? int deptL...
Main.java:5: error: cannot find symbol final BigDecimal TAX_RATE = new BigDecimal("0.05"); ^ symbol: class BigDecimal location: class Main Main.java:5: error: cannot find symbol final BigDecimal TAX_RATE = new BigDecimal("0.05"); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u612947857|p00007|0
u612947857|p00007|0
codenet
Compile Error
1,099
v2_s259273014
s259273014
s259273014
p00007
p00007
u720852264
u720852264
1,428,214,575
2015-04-05T06:16:15
Main.java
int n = Integer.parseInt(args[0]); // 1,000 ?????????????????????????????????????????????1,000??§?????£????????§?¨????????????? int pay_i = 100000 / 1000; for (int i = 0; i < n; i++) { float pay_f = (float) (pay_i * 1.05); pay_i = (int) (pay_i * 1.05); // ??´??°????°???°??????????¨??????????????????...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n = Integer.parseInt(args[0]); ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: class, interface, enum, or record expected for (int i = 0; i < n; i++) { ^ Main.java:6: error: class, interface, enum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720852264|p00007|0
u720852264|p00007|0
codenet
Compile Error
599
v2_s003617950
s003617950
s003617950
p00007
p00007
u787693583
u787693583
1,428,715,295
2015-04-11T01:21:35
Main.java
class Main { public static void main(int week) { BigDecimal a = new BigDecimal(100000); BigDecimal b = new BigDecimal(0.05); for (int i = 0; i < week; i++) { a = a.multiply(b).setScale(-3, BigDecimal.ROUND_UP); } System.out.println(a); } }
Main.java:4: error: cannot find symbol BigDecimal a = new BigDecimal(100000); ^ symbol: class BigDecimal location: class Main Main.java:4: error: cannot find symbol BigDecimal a = new BigDecimal(100000); ^ symbol: class BigDecimal location: class Main Main.java:5: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787693583|p00007|0
u787693583|p00007|0
codenet
Compile Error
258
v2_s460673483
s460673483
s460673483
p00007
p00007
u787693583
u787693583
1,428,891,996
2015-04-13T02:26:36
Main.java
class Main { public void main(int week) { BigDecimal shakkin = new BigDecimal(100000); BigDecimal taxper = new BigDecimal(0.05); BigDecimal rishi; int a = 0; for (int i = 0; i <= week; i++) { // 5%の利子を計算する rishi = shakkin.multiply(taxper); // 5%の利子を元金に足す shakkin = shakkin.add(rishi); // 1000...
Main.java:4: error: cannot find symbol BigDecimal shakkin = new BigDecimal(100000); ^ symbol: class BigDecimal location: class Main Main.java:4: error: cannot find symbol BigDecimal shakkin = new BigDecimal(100000); ^ symbol: class BigDecimal location: class Main Main.java:5...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787693583|p00007|1
u787693583|p00007|1
codenet
Compile Error
476
v2_s216123202
s216123202
s216123202
p00007
p00007
u787693583
u787693583
1,428,905,268
2015-04-13T06:07:48
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main { public static void main(String[] args) throws IOException { // 宣言 BigDecimal shakkin = new BigDecimal(100000); BigDecimal taxper = new BigDecima...
Main.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787693583|p00007|1
u787693583|p00007|1
codenet
Compile Error
964
v2_s748184314
s748184314
s748184314
p00007
p00007
u843866464
u843866464
1,399,348,217
2014-05-06T03:50:17
Main.java
mport java.util.Scanner; /** * Created by Reopard on 2014/05/06. */ public class Main { public static void main(String args[]){ int debt = 100000; Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for(int i = 0; i < n; i++){ debt += debt*0.05; ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843866464|p00007|0
u843866464|p00007|0
codenet
Compile Error
479
v2_s916346994
s916346994
s916346994
p00007
p00007
u897769968
u897769968
1,514,364,297
2017-12-27T08:44:57
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); double debt = 100000; while(n > 0){ debt *= 1.05; debt = 1000.0*Math.ceil(debt/1000.0); n--; } System.o...
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
u897769968|p00007|0
u897769968|p00007|0
codenet
Compile Error
386
v2_s705557373
s705557373
s705557373
p00007
p00007
u903884476
u903884476
1,507,117,002
2017-10-04T11:36:42
Main.java
class Main{ public static void main(String[] args){ double debt = 100000; double mo = 0.05; int turm = new Scanner(System.in).nextInt(); while(turm>0){ debt = debt*1.05; debt = Math.ceil(debt/1000)*1000; turm--; } System.out.println((int)debt); } }
Main.java:6: error: cannot find symbol int turm = new Scanner(System.in).nextInt(); ^ symbol: class Scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903884476|p00007|0
u903884476|p00007|0
codenet
Compile Error
296
v2_s750245989
s750245989
s750245989
p00007
p00007
u907626292
u907626292
1,337,740,822
2012-05-23T02:40:22
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws java.io.IOException{ Scanner scan = new Scanner(System.in); int sum=100000; for(int n=scan.nextInt();n>0;n--){ sum +=5000; int m= up3(sum); sum+=(10-m)*100; } System.out.pri...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u907626292|p00007|0
u907626292|p00007|0
codenet
Compile Error
392
v2_s176627612
s176627612
s176627612
p00007
p00007
u910402677
u910402677
1,480,226,396
2016-11-27T05:59:56
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); long mon = 100_000; while(n != 0){ mon = Math.ceil(m * 1.05); n--; } System.out.printf("%d\n", mon); } }
Main.java:10: error: cannot find symbol mon = Math.ceil(m * 1.05); ^ symbol: variable m location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00007|0
u910402677|p00007|0
codenet
Compile Error
288
v2_s979149326
s979149326
s979149326
p00007
p00007
u910402677
u910402677
1,480,226,434
2016-11-27T06:00:34
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); long mon = 100_000; while(n != 0){ mon = Math.ceil(mon * 1.05); n--; } System.out.printf("%d\n", mon); } }
Main.java:10: error: incompatible types: possible lossy conversion from double to long mon = Math.ceil(mon * 1.05); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00007|0
u910402677|p00007|0
codenet
Compile Error
290
v2_s502093144
s502093144
s502093144
p00007
p00007
u910402677
u910402677
1,480,387,336
2016-11-29T02:42:16
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); long mon = 100_000; for(int i = 0; i < n; i++){ mon = Math.ceil(mon * 1.05 / 1000) * 1000; } System.out.printf("%d\n", mon); } }
Main.java:10: error: incompatible types: possible lossy conversion from double to long mon = Math.ceil(mon * 1.05 / 1000) * 1000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00007|1
u910402677|p00007|1
codenet
Compile Error
309
v2_s658175783
s658175783
s658175783
p00007
p00007
u966339093
u966339093
1,427,110,015
2015-03-23T11:26:55
Main.java
class Main{ private static final double TAX = 1.05; public static void main(String[] args) throws IOException { double totalAmount = 100000; BigDecimal returnAmount=new BigDecimal(0); int i = Integer.parseInt(args[0]); //??\??????????????°???????????????????¢????????????? ...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:8: error: cannot find symbol BigDecimal returnAmount=new BigDecimal(0); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u966339093|p00007|0
u966339093|p00007|0
codenet
Compile Error
614
v2_s575445891
s575445891
s575445891
p00007
p00007
u972455308
u972455308
1,401,609,474
2014-06-01T07:57:54
Main.java
#include <iostream> #include <math.h> using namespace std; int calcDebt(int debt){ double tmp = debt * 1.05; int result = (int) ceil(tmp); if(result % 1000 == 0){ return result; }else{ return (result / 1000 + 1) * 1000; } } int main(int argc, char *argv[]) { int result = 100000; int n; scanf("%d", &n); ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <math.h> ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int calcDebt(int debt){ ^ (use --enable-preview to enable unnamed classes) Main.java:16: error: <identi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u972455308|p00007|0
u972455308|p00007|0
codenet
Compile Error
400
v2_s117294999
s117294999
s117294999
p00007
p00007
u974705817
u974705817
1,476,925,852
2016-10-20T01:10:52
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); int week = Integer.parseInt(input); ...
Main.java:12: error: incompatible types: possible lossy conversion from double to int loan = (loan * 1.05); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u974705817|p00007|0
u974705817|p00007|0
codenet
Compile Error
495
v2_s736743158
s736743158
s736743158
p00008
p00008
u011621222
u011621222
1,510,353,673
2017-11-10T22:41:13
Main.java
import java.util.Scanner; class Problem { public static int sumOf4Int(int n){ int count = 0; if(n > 36){ return 0; } for(int a = 0; a < 10; a ++){ for(int b = 0; b < 10; b ++){ for(int c = 0; c < 10; c ++){ for(int d = 0; ...
Main.java:24: error: incompatible types: String cannot be converted to int System.out.println(sumOf4Int(args[1])); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p00008|5
u011621222|p00008|5
codenet
Compile Error
611
v2_s906901831
s906901831
s906901831
p00008
p00008
u054547908
u054547908
1,390,976,387
2014-01-29T06:19:47
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String line = sc.nextLine(); Scanner s = new Scanner(line); int n = s.nextInt(); int m = 0; if (n < 37) { //37以上の場合はm=0は確かであるため for(int a=0; a<=9; a++) { for(int b=0; b<=...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u054547908|p00008|0
u054547908|p00008|0
codenet
Compile Error
529
v2_s849041670
s849041670
s849041670
p00008
p00008
u172902549
u172902549
1,379,127,234
2013-09-14T02:53:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] a) { Scanner keyboad=new Scanner(System.in); n=keyboad.nextInt() for(int a=0;a<10;a++){ for(int b=0;b<10;b++){ for(int c=0;c<10;c++){ for(int d=0;d<10;d++){ if(a+b+c+d==n)...
Main.java:7: error: ';' expected n=keyboad.nextInt() ^ Main.java:18: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u172902549|p00008|0
u172902549|p00008|0
codenet
Compile Error
448
v2_s316136651
s316136651
s316136651
p00008
p00008
u211138527
u211138527
1,434,377,823
2015-06-15T14:17:03
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int n=sc.nectInt(); int num=0; for(int a=0;a<=9;a++){ for(int b=0;b<=9;b++){ for(int c=0;c<=9;c++){ if(binary_search(n-a-b-c)){ num++; } } } } System.out.println(num); } } public sta...
Main.java:24: error: ';' expected n[a]=a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00008|0
u211138527|p00008|0
codenet
Compile Error
549