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_s629955722
s629955722
s629955722
p00001
p00001
u889289466
u889289466
1,498,201,159
2017-06-23T06:59:19
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main{ public static void main (String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(Sys...
Main.java:13: error: incompatible types: boolean cannot be converted to String while(line = (br.readLine()) != null){ ^ Main.java:13: error: incompatible types: String cannot be converted to boolean while(line = (br.readLine()) != null){ ^ Note: Main.java uses unchecked o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u889289466|p00001|0
u889289466|p00001|0
codenet
Compile Error
612
v2_s614027857
s614027857
s614027857
p00001
p00001
u899602969
u899602969
1,526,602,464
2018-05-18T00:14:24
Main.java
#include<stdio.h> void noone(int[10]); int main(void){ int mt[10]; int i=0; for(i=0; i<10; i++){ scanf("%d",&mt[i]);//10個の配列に数値を入れる } noone(mt);//一番大きい値を決める } void noone(int hai[10]){ int i=0; int max=0; int max2=0; int max3=0; hai[0]=max; for(i=0;i<10;i++){ if(max<hai[i]){ max3=max2; m...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int main(void){ ^ (use --enable-preview to enable unnamed classes) Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899602969|p00001|0
u899602969|p00001|0
codenet
Compile Error
539
v2_s645991743
s645991743
s645991743
p00001
p00001
u910402677
u910402677
1,479,978,775
2016-11-24T09:12:55
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int[] mt = int[10]; for(int i = 0; i < 10; i++){ int h = scan.nextInt(); mt[i] = h; } for(int i = 0; i < 10 - 1; i++){ for(int j = 10 - 1; j > i; j--){ if(m...
Main.java:7: error: ']' expected int[] mt = int[10]; ^ Main.java:24: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00001|0
u910402677|p00001|0
codenet
Compile Error
482
v2_s775787473
s775787473
s775787473
p00001
p00001
u910402677
u910402677
1,479,978,810
2016-11-24T09:13:30
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int[] mt = new int[10]; for(int i = 0; i < 10; i++){ int h = scan.nextInt(); mt[i] = h; } for(int i = 0; i < 10 - 1; i++){ for(int j = 10 - 1; j > i; j--){ ...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00001|0
u910402677|p00001|0
codenet
Compile Error
486
v2_s694196238
s694196238
s694196238
p00001
p00001
u911244533
u911244533
1,494,043,172
2017-05-06T03:59:32
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int[] heights = new int[10]; for(int i = 0; i < 10; i++){ heights[i] = scan.nextInt(); } Arrays.sort(heights); for(int i = 9; i >= 7; i--){ System.out...
Main.java:14: error: cannot find symbol System.out.ptintln(height[i]); ^ symbol: variable height location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u911244533|p00001|0
u911244533|p00001|0
codenet
Compile Error
349
v2_s779467303
s779467303
s779467303
p00001
p00001
u911244533
u911244533
1,494,043,199
2017-05-06T03:59:59
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int[] heights = new int[10]; for(int i = 0; i < 10; i++){ heights[i] = scan.nextInt(); } Arrays.sort(heights); for(int i = 9; i >= 7; i--){ System.out...
Main.java:14: error: cannot find symbol System.out.println(height[i]); ^ symbol: variable height location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u911244533|p00001|0
u911244533|p00001|0
codenet
Compile Error
349
v2_s401104312
s401104312
s401104312
p00001
p00001
u918410812
u918410812
1,436,614,728
2015-07-11T11:38:48
Main.java
public class Main { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { list.add(Integer.parseInt(scanner.next())); } Collections.sort(list); Collections.rev...
Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918410812|p00001|0
u918410812|p00001|0
codenet
Compile Error
400
v2_s499610287
s499610287
s499610287
p00001
p00001
u918410812
u918410812
1,436,614,892
2015-07-11T11:41:32
Main.java
public class Main { public static void main(String[] args) { List<Integer> list = new ArrayList<Integer>(); Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { list.add(Integer.parseInt(scanner.next())); } Collections.sort(list); Collecti...
Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class ArrayList location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918410812|p00001|0
u918410812|p00001|0
codenet
Compile Error
439
v2_s659494622
s659494622
s659494622
p00001
p00001
u918410812
u918410812
1,436,614,974
2015-07-11T11:42:54
Main.java
public class Main { public static void main(String[] args) { List<Integer> list = new ArrayList<Integer>(); Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { list.add(Integer.parseInt(scanner.next())); } Collections.sort(list); Collecti...
Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol List<Integer> list = new ArrayList<Integer>(); ^ symbol: class ArrayList location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u918410812|p00001|0
u918410812|p00001|0
codenet
Compile Error
439
v2_s941641916
s941641916
s941641916
p00001
p00001
u926238961
u926238961
1,371,716,919
2013-06-20T08:28:39
Main.java
public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); ArrayList<Integer> h = new ArrayList<Integer>(); for (int i = 0; i < 10; ++i) { h.add(s.nextInt()); } Collections.sort(h); Collections.reverse(h); for ...
Main.java:3: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926238961|p00001|0
u926238961|p00001|0
codenet
Compile Error
405
v2_s932278133
s932278133
s932278133
p00001
p00001
u942404782
u942404782
1,479,282,051
2016-11-16T07:40:51
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); int[] mt = new Integer[10]; String[] asd = s.split("\n"); for(int i=0;i<10;i++){ mt[i]=s[i]; } Arrays.sort(a...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
441
v2_s821585144
s821585144
s821585144
p00001
p00001
u942404782
u942404782
1,479,282,096
2016-11-16T07:41:36
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); int[] mt = new Integer[10]; String[] asd = s.split("\n"); for(int i=0;i<10;i++){ mt[i]=s[i]; Arrays.sort(a)...
Main.java:16: error: reached end of file while parsing }} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
441
v2_s400729836
s400729836
s400729836
p00001
p00001
u942404782
u942404782
1,479,282,130
2016-11-16T07:42:10
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); int[] mt = new Integer[10]; String[] asd = s.split("\n"); for(int i=0;i<10;i++){ mt[i]=s[i]; } Arrays.sort(a...
Main.java:6: error: incompatible types: Integer[] cannot be converted to int[] int[] mt = new Integer[10]; ^ Main.java:7: error: cannot find symbol String[] asd = s.split("\n"); ^ symbol: method split(String) location: variable s of type Scanner Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
447
v2_s789228850
s789228850
s789228850
p00001
p00001
u942404782
u942404782
1,479,282,165
2016-11-16T07:42:45
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); Integer[] mt = new Integer[10]; String[] asd = s.split("\n"); for(int i=0;i<10;i++){ mt[i]=s[i]; } Arrays.so...
Main.java:7: error: cannot find symbol String[] asd = s.split("\n"); ^ symbol: method split(String) location: variable s of type Scanner Main.java:9: error: array required, but Scanner found mt[i]=s[i]; ^ Main.java:11: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
451
v2_s949148543
s949148543
s949148543
p00001
p00001
u942404782
u942404782
1,479,282,222
2016-11-16T07:43:42
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); Integer[] mt = new Integer[10]; String[] asd = s.split("\n",-1); for(int i=0;i<10;i++){ mt[i]=s[i]; } Arrays...
Main.java:7: error: cannot find symbol String[] asd = s.split("\n",-1); ^ symbol: method split(String,int) location: variable s of type Scanner Main.java:9: error: array required, but Scanner found mt[i]=s[i]; ^ Main.java:11: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
454
v2_s389473018
s389473018
s389473018
p00001
p00001
u942404782
u942404782
1,479,282,354
2016-11-16T07:45:54
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner (System.in); String str = s.nextString(); Integer[] mt = new Integer[10]; String[] asd = str.split("\n",-1); for(int i=0;i<10;i++){ ...
Main.java:6: error: cannot find symbol String str = s.nextString(); ^ symbol: method nextString() location: variable s of type Scanner Main.java:10: error: array required, but Scanner found mt[i]=Integer.parseInt(s[i]); ^ Main.java:12: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u942404782|p00001|0
u942404782|p00001|0
codenet
Compile Error
511
v2_s436724666
s436724666
s436724666
p00001
p00001
u950025841
u950025841
1,464,162,446
2016-05-25T07:47:26
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; class Main { public static void main(String[] args) throws NumberFormatException, IOException { ArrayList<Integer> input = new ArrayList<Integer>(); Bu...
Main.java:9: error: cannot find symbol ArrayList<Integer> input = new ArrayList<Integer>(); ^ symbol: class ArrayList location: class Main Main.java:9: error: cannot find symbol ArrayList<Integer> input = new ArrayList<Integer>(); ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u950025841|p00001|0
u950025841|p00001|0
codenet
Compile Error
608
v2_s860595051
s860595051
s860595051
p00001
p00001
u950025841
u950025841
1,464,162,485
2016-05-25T07:48:05
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.ArrayList; import java.util.Collections; class Main { public static void main(String[] args) throws NumberFormatException, IOException { ArrayList<Integer> input = new Arra...
Main.java:13: error: no suitable method found for sort(ArrayList<Integer>,Comparator<Object>) Arrays.sort(input, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (cannot infer type-variable(s) T#1 (argument mismatch; ArrayLis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u950025841|p00001|0
u950025841|p00001|0
codenet
Compile Error
636
v2_s013065781
s013065781
s013065781
p00002
p00002
u011621222
u011621222
1,395,314,740
2014-03-20T11:25:40
Main.java
import java.util.*; public class Main { public static void main(String[] args) { ArrayList<Integer> count = new ArrayList<Integer>(); String a, b; Scanner input = new Scanner(System.in); while(input.hasNext()) { a = input.next(); b = input.next(); int sum = Integer.parseInt(a) + Integer...
Main.java:25: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011621222|p00002|8
u011621222|p00002|8
codenet
Compile Error
452
v2_s810157278
s810157278
s810157278
p00002
p00002
u011621222
u011621222
1,433,347,892
2015-06-03T16:11:32
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()) { long a,b,s,p=0; a=sc.nextInt(); b=sc.nextInt(); s=a+b; while(s>0) { p++; s/=10; } System.out.println(p); } } }
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
u011621222|p00002|12
u011621222|p00002|11
codenet
Compile Error
278
v2_s065208865
s065208865
s065208865
p00002
p00002
u023493579
u023493579
1,376,073,066
2013-08-09T18:31:06
Main.java
public class Main{ public static void main(String args[]) throws IOException{ Scanner s = new Scanner(System.in); int a,b; while(s.hasNext()){ a=s.nextInt(); b=s.nextInt(); String t=((Integer)(a+b)).toString(); System.out.println(t.length()); } }}
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 Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u023493579|p00002|0
u023493579|p00002|0
codenet
Compile Error
264
v2_s898359596
s898359596
s898359596
p00002
p00002
u024715419
u024715419
1,336,763,663
2012-05-11T19:14:23
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()) { int a = sc.nextInt(); int b = sc.nextInt(); System.out.println((int)Integer.toString(a+b).length); } } }
Main.java:8: error: cannot find symbol System.out.println((int)Integer.toString(a+b).length); ^ symbol: variable length location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024715419|p00002|0
u024715419|p00002|0
codenet
Compile Error
275
v2_s058833693
s058833693
s058833693
p00002
p00002
u026004148
u026004148
1,342,285,133
2012-07-14T16:58:53
Sample.java
public class Sample { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int a, b, c; int count = 1; a = scanner.nextInt(); b = scanner.nextInt(); c = a + b; while (10 <= c) { c /= 10; count++; } System.out.println(count); } }
Sample.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample Sample.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sample 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u026004148|p00002|0
u026004148|p00002|0
codenet
Compile Error
287
v2_s810147370
s810147370
s810147370
p00002
p00002
u031194354
u031194354
1,472,730,980
2016-09-01T11:56:20
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNextInt()) { int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println( (int)Math.floor( Math.log10(a...
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u031194354|p00002|0
u031194354|p00002|0
codenet
Compile Error
348
v2_s207044561
s207044561
s207044561
p00002
p00002
u031194354
u031194354
1,472,731,003
2016-09-01T11:56:43
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNextInt()) { int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println( (int)Math.floor( Math.log10(a+b) ) +...
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u031194354|p00002|0
u031194354|p00002|0
codenet
Compile Error
341
v2_s158555880
s158555880
s158555880
p00002
p00002
u053208998
u053208998
1,381,121,836
2013-10-07T04:57:16
Main.java
class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a,b,c; while(sc.hasNextInt()){ a=sc.nextInt(); b=sc.nextInt(); c=String.valueOf(a+b).length(); System.out.println(c); } } }
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
u053208998|p00002|1
u053208998|p00002|1
codenet
Compile Error
272
v2_s136472780
s136472780
s136472780
p00002
p00002
u059957603
u059957603
1,524,678,919
2018-04-25T17:55:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a,b; int c; a = sc.nextInt(); b = sc.nextInt(); c = (int)log10(a+b); System.out.println(c+1); } }
Main.java:12: error: cannot find symbol c = (int)log10(a+b); ^ symbol: method log10(double) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059957603|p00002|0
u059957603|p00002|0
codenet
Compile Error
271
v2_s202829955
s202829955
s202829955
p00002
p00002
u059957603
u059957603
1,524,755,062
2018-04-26T15:04:22
Main.java
import java.io.*; public class Main{ public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ int keta; double num[] = new double[2]; String str[] = new String[200]; str[0] = br.readLine(); int i = 0; ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059957603|p00002|2
u059957603|p00002|2
codenet
Compile Error
795
v2_s519765742
s519765742
s519765742
p00002
p00002
u088290348
u088290348
1,382,889,287
2013-10-27T15:54:47
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int a = sc.nextInt(), b = sc.nextInt(); int c = a+b; int x = 1; while (c >= 10) { c /= 10; ...
Main.java:14: error: cannot find symbol cnt++; ^ symbol: variable cnt location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00002|0
u088290348|p00002|0
codenet
Compile Error
403
v2_s085441570
s085441570
s085441570
p00002
p00002
u158394506
u158394506
1,420,953,390
2015-01-11T05:16:30
Main.java
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int i = 0...
Main.java:15: error: incompatible types: int[] cannot be converted to int int arr = new int[2]; ^ Main.java:17: error: incompatible types: int[] cannot be converted to int arr = new int[2]; ^ Main.java:20: error: array required, but int found arr[0] = Integer.parseInt(line[0]); ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u158394506|p00002|0
u158394506|p00002|0
codenet
Compile Error
600
v2_s501403110
s501403110
s501403110
p00002
p00002
u170030319
u170030319
1,435,068,884
2015-06-23T14:14:44
Main.java
import java.util.Scanner; public class Main {import java.util.Scanner; public class Main { /** * Digit Number * @param args */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int a = scanner.nextInt(); int b = scanner.nextInt(); Sy...
Main.java:3: error: illegal start of type public class Main {import java.util.Scanner; ^ Main.java:3: error: <identifier> expected public class Main {import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170030319|p00002|0
u170030319|p00002|0
codenet
Compile Error
1,040
v2_s204184942
s204184942
s204184942
p00002
p00002
u180583228
u180583228
1,391,522,958
2014-02-04T14:09:18
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while(scanner.hasNextInt()) { int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println( (int)Math.floor( Math.log10(a+b) ) + 1 ); } }...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u180583228|p00002|0
u180583228|p00002|0
codenet
Compile Error
322
v2_s946153244
s946153244
s946153244
p00002
p00002
u182453220
u182453220
1,340,961,509
2012-06-29T09:18:29
Main.java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int input1,input2; int h = 0; int ans = 0; Scanner sc = new Scanner(System.in); while(sc.hasNext()){ input1 = sc.nextInt(); input2 = sc.nextInt(); int x = input1 + input2; for(ans = 1; ;ans++){ if(x/10 == 0)break; x/=10...
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
u182453220|p00002|0
u182453220|p00002|0
codenet
Compile Error
400
v2_s931921552
s931921552
s931921552
p00002
p00002
u184166075
u184166075
1,471,891,786
2016-08-22T18:49:46
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] a){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split("\\s"); int a = Integer.parseInt(input[0]); int b = Integer.parseI...
Main.java:11: error: variable a is already defined in method main(String[]) int a = Integer.parseInt(input[0]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184166075|p00002|0
u184166075|p00002|0
codenet
Compile Error
443
v2_s921918658
s921918658
s921918658
p00002
p00002
u184166075
u184166075
1,471,891,985
2016-08-22T18:53:05
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; class test { public static void main(String[] a){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split("\\s"); int a = Integer.parseInt(input[0]); int b = Integer.parseI...
Main.java:11: error: variable a is already defined in method main(String[]) int a = Integer.parseInt(input[0]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184166075|p00002|0
u184166075|p00002|0
codenet
Compile Error
443
v2_s710327000
s710327000
s710327000
p00002
p00002
u184166075
u184166075
1,471,892,112
2016-08-22T18:55:12
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] a){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split("\\s"); int a; a = Integer.parseInt(input[0]); int b; ...
Main.java:11: error: variable a is already defined in method main(String[]) int a; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184166075|p00002|0
u184166075|p00002|0
codenet
Compile Error
467
v2_s220899408
s220899408
s220899408
p00002
p00002
u184166075
u184166075
1,471,892,212
2016-08-22T18:56:52
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] x){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input = br.readLine().split("\\s"); int a = Integer.parseInt(input[0]); int b ...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown String[] input = br.readLine().split("\\s"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184166075|p00002|0
u184166075|p00002|0
codenet
Compile Error
470
v2_s006817615
s006817615
s006817615
p00002
p00002
u184166075
u184166075
1,471,937,817
2016-08-23T07:36:57
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] a) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] input; int a; int b; int sum; while((input = br.readLine().split("\\s")) !...
Main.java:10: error: variable a is already defined in method main(String[]) int a; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u184166075|p00002|1
u184166075|p00002|1
codenet
Compile Error
531
v2_s553759967
s553759967
s553759967
p00002
p00002
u193103338
u193103338
1,487,691,476
2017-02-21T15:37:56
Main.java
public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); { try { String s =in.r...
Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u193103338|p00002|0
u193103338|p00002|0
codenet
Compile Error
800
v2_s378121848
s378121848
s378121848
p00002
p00002
u193103338
u193103338
1,487,691,535
2017-02-21T15:38:55
Main.java
class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); { try { String s =in.readLine...
Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u193103338|p00002|0
u193103338|p00002|0
codenet
Compile Error
793
v2_s528885200
s528885200
s528885200
p00002
p00002
u193103338
u193103338
1,487,691,574
2017-02-21T15:39:34
Main.java
class Main { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); { try { String s =in.readLine...
Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:8: error: cannot find symbol BufferedReader in = new BufferedReader(new java.io.InputStreamReader(System.in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u193103338|p00002|0
u193103338|p00002|0
codenet
Compile Error
793
v2_s715106296
s715106296
s715106296
p00002
p00002
u211138527
u211138527
1,434,214,408
2015-06-13T16:53:28
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int a; int b; Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ a=sc.nextInt(); b=sc.nextInt(); int d=Math.log10(a+b) System.out.println(d); } }
Main.java:11: error: ';' expected int d=Math.log10(a+b) ^ Main.java:14: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00002|0
u211138527|p00002|0
codenet
Compile Error
226
v2_s011508786
s011508786
s011508786
p00002
p00002
u211138527
u211138527
1,434,214,428
2015-06-13T16:53:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int a; int b; Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ a=sc.nextInt(); b=sc.nextInt(); int d=Math.log10(a+b); System.out.println(d); } } }
Main.java:11: error: incompatible types: possible lossy conversion from double to int int d=Math.log10(a+b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00002|0
u211138527|p00002|0
codenet
Compile Error
229
v2_s545035015
s545035015
s545035015
p00002
p00002
u230406202
u230406202
1,457,345,588
2016-03-07T10:13:08
Main.java
import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner in = new Scanner(System.in); int a, b, sum; int digit = 1; while(in.hasNextInt()){ a = in.NextInt(); if(in.hasNextInt()){ b = in.NextInt(); }else{ break; } sum = a+b; while(sum>=10){ sum /= 10; ...
Main.java:5: error: variable a is already defined in method main(String[]) int a, b, sum; ^ Main.java:8: error: cannot find symbol a = in.NextInt(); ^ symbol: method NextInt() location: variable in of type Scanner Main.java:10: error: cannot find symbol b = in.NextInt(); ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u230406202|p00002|0
u230406202|p00002|0
codenet
Compile Error
392
v2_s453681634
s453681634
s453681634
p00002
p00002
u230406202
u230406202
1,457,345,654
2016-03-07T10:14:14
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int a, b, sum; int digit = 1; while(in.hasNextInt()){ a = in.NextInt(); if(in.hasNextInt()){ b = in.NextInt(); }else{ break; } sum = a+b; while(sum>=10){ sum /= 10...
Main.java:8: error: cannot find symbol a = in.NextInt(); ^ symbol: method NextInt() location: variable in of type Scanner Main.java:10: error: cannot find symbol b = in.NextInt(); ^ symbol: method NextInt() location: variable in of type Scanner 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u230406202|p00002|0
u230406202|p00002|0
codenet
Compile Error
395
v2_s680473792
s680473792
s680473792
p00002
p00002
u231369830
u231369830
1,529,549,357
2018-06-21T02:49:17
Main.java
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<iostream> #include<string> using namespace std; int main() { int a, b; while (cin >> a >> b) { printf("%d\n", a + b); } //system("pause"); return 0; }
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:4: error: illegal character: '...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u231369830|p00002|0
u231369830|p00002|0
codenet
Compile Error
225
v2_s072266275
s072266275
s072266275
p00002
p00002
u234052535
u234052535
1,502,788,461
2017-08-15T09:14:21
Main.java
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: break
Main.java:1: error: '.' expected import math ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234052535|p00002|0
u234052535|p00002|0
codenet
Compile Error
153
v2_s524559832
s524559832
s524559832
p00002
p00002
u237438186
u237438186
1,390,973,186
2014-01-29T05:26:26
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 = null; while*1 != null) { ...
Main.java:9: error: '(' expected while*1 != null) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u237438186|p00002|0
u237438186|p00002|0
codenet
Compile Error
524
v2_s616243955
s616243955
s616243955
p00002
p00002
u237438186
u237438186
1,390,973,950
2014-01-29T05:39:10
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int a, b; public static void main(String[] args) { while(read()){ slove(); } } static boolean read(){ if(!sc.hasNext())return false; a = sc.nextInt();     b = sc.n...
Main.java:14: error: illegal character: '\u3000' ????b = sc.nextInt(); ^ Main.java:14: error: illegal character: '\u3000' ????b = sc.nextInt(); ^ Main.java:14: error: illegal character: '\u3000' ????b = sc.nextInt(); ^ Main.java:14: error: illegal character: '\u3000' ????b = sc.nextInt(); ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u237438186|p00002|0
u237438186|p00002|0
codenet
Compile Error
482
v2_s611540941
s611540941
s611540941
p00002
p00002
u241916889
u241916889
1,464,395,359
2016-05-28T00:29:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n,m; String str; List<Integer> list = new LinkedList<Integer>(); while(scan.hasInt()){ n = scan.nextInt(); m = scan.nextInt(); str = String.valueOf(n+m); list.add(st...
Main.java:18: error: ';' expected for(Iterator<Integer> it = list.iterator(); it.hasNext){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241916889|p00002|0
u241916889|p00002|0
codenet
Compile Error
444
v2_s888183095
s888183095
s888183095
p00002
p00002
u241916889
u241916889
1,464,395,461
2016-05-28T00:31:01
Main.java
public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n,m; String str; List<Integer> list = new LinkedList<Integer>(); while(scan.hasNext()){ n = scan.nextInt(); m = scan.nextInt(); str = String.valueOf(n+m); list.add(str.length()); } ...
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 Main.java:8: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241916889|p00002|0
u241916889|p00002|0
codenet
Compile Error
428
v2_s978705442
s978705442
s978705442
p00002
p00002
u248155947
u248155947
1,532,101,304
2018-07-20T15:41:44
Main.java
import java.util.Scanner; public class Main { public static void main(String a[]){ Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ int a = scanner.nextInt(); int b = scanner.nextInt(); int s = a+b; int c = 0; while(s!=0){ s = s/10; c++; } System.out.println(c); ...
Main.java:8: error: variable a is already defined in method main(String[]) int a = scanner.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u248155947|p00002|0
u248155947|p00002|0
codenet
Compile Error
328
v2_s680435613
s680435613
s680435613
p00002
p00002
u248155947
u248155947
1,532,101,621
2018-07-20T15:47:01
A.java
import java.util.Scanner; public class A { public static void main(String a[]){ Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ int a = scanner.nextInt(); int b = scanner.nextInt(); int s = a+b; int c = 0; while(s!=0){ s = s/10; c++; } System.out.println(c); } ...
A.java:7: error: variable a is already defined in method main(String[]) int a = scanner.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u248155947|p00002|0
u248155947|p00002|0
codenet
Compile Error
344
v2_s154717221
s154717221
s154717221
p00002
p00002
u248155947
u248155947
1,532,101,694
2018-07-20T15:48:14
Main.java
import java.util.Scanner; public class Main { public static void main(String a[]){ Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ int a = scanner.nextInt(); int b = scanner.nextInt(); int s = a+b; int c = 0; while(s!=0){ s = s/10; c++; } System.out.println(c); ...
Main.java:7: error: variable a is already defined in method main(String[]) int a = scanner.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u248155947|p00002|0
u248155947|p00002|0
codenet
Compile Error
347
v2_s255032147
s255032147
s255032147
p00002
p00002
u259749965
u259749965
1,343,789,325
2012-08-01T02:48:45
Main.java
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; class Main{ public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String read = br.readLine(); while (read.length() != 0) { ...
Main.java:17: error: cannot find symbol System.out.println(String.valueOf(a + b).length()); ^ symbol: variable b location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u259749965|p00002|0
u259749965|p00002|0
codenet
Compile Error
578
v2_s382969192
s382969192
s382969192
p00002
p00002
u276203229
u276203229
1,431,072,661
2015-05-08T08:11:01
Main.java
import java.io.*; import java.util.stream.Stream; class A { public static void main(String[] args) throws Exception { Stream.of(new BufferedReader(new InputStreamReader(System.in)).lines()).forEach(line -> { String[] input = line.split(" "); System.out.println(((String) ((int) input[0] + (int) input[1])).len...
Main.java:8: error: cannot find symbol String[] input = line.split(" "); ^ symbol: method split(String) location: variable line of type Stream<String> Main.java:9: error: incompatible types: String cannot be converted to int System.out.println(((String) ((int) input[0] + (int) input[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276203229|p00002|0
u276203229|p00002|0
codenet
Compile Error
339
v2_s485253908
s485253908
s485253908
p00002
p00002
u276203229
u276203229
1,431,072,810
2015-05-08T08:13:30
Main.java
import java.io.*; import static java.lang.Integer.parseInt; import static java.lang.String.valueOf; import java.util.stream.Stream; class A { public static void main(String[] args) throws Exception { Stream.of(new BufferedReader(new InputStreamReader(System.in)).lines()).forEach(line -> { String[] input = line....
Main.java:10: error: cannot find symbol String[] input = line.split(" "); ^ symbol: method split(String) location: variable line of type Stream<String> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276203229|p00002|0
u276203229|p00002|0
codenet
Compile Error
425
v2_s532459884
s532459884
s532459884
p00002
p00002
u276203229
u276203229
1,431,073,039
2015-05-08T08:17:19
Main.java
import java.io.*; import static java.lang.Integer.parseInt; import static java.lang.String.valueOf; import java.util.stream.Stream; class Main{ public static void main(String[] a){ try { Stream.of(new BufferedReader(new InputStreamReader(System.in)).lines()).forEach(line -> { String[] input = line.split(" "...
Main.java:11: error: cannot find symbol String[] input = line.split(" "); ^ symbol: method split(String) location: variable line of type Stream<String> Main.java:15: error: cannot find symbol ex.printSrackTrace(); ^ symbol: method printSrackTrace() location: variable ex ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276203229|p00002|0
u276203229|p00002|0
codenet
Compile Error
474
v2_s052218589
s052218589
s052218589
p00002
p00002
u285298145
u285298145
1,385,515,419
2013-11-27T01:23:39
Main.java
import java.lang.math; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner in = new Scanner(System.in); long a,b; a=in.nextInt(); b=in.nextInt(); System.out.println(ceil(log10((double)a+b))); } }
Main.java:1: error: cannot find symbol import java.lang.math; ^ symbol: class math location: package java.lang Main.java:6: error: variable a is already defined in method main(String[]) long a,b; ^ Main.java:9: error: cannot find symbol System.out.println(ceil(log10((double)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285298145|p00002|0
u285298145|p00002|0
codenet
Compile Error
264
v2_s365450689
s365450689
s365450689
p00002
p00002
u285298145
u285298145
1,385,515,544
2013-11-27T01:25:44
Main.java
import java.lang.math; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner in = new Scanner(System.in); long a,b; a=in.nextInt(); b=in.nextInt(); System.out.println(ceil(log10((double)a+b))); } }
Main.java:1: error: cannot find symbol import java.lang.math; ^ symbol: class math location: package java.lang Main.java:6: error: variable a is already defined in method main(String[]) long a,b; ^ Main.java:9: error: cannot find symbol System.out.println(ceil(log10((double)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285298145|p00002|0
u285298145|p00002|0
codenet
Compile Error
264
v2_s537676927
s537676927
s537676927
p00002
p00002
u285298145
u285298145
1,385,515,724
2013-11-27T01:28:44
Main.java
import java.lang.Math; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); long a,b; a=in.nextInt(); b=in.nextInt(); System.out.println(ceil(log10((double)a+b))); } }
Main.java:9: error: cannot find symbol System.out.println(ceil(log10((double)a+b))); ^ symbol: method log10(double) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285298145|p00002|0
u285298145|p00002|0
codenet
Compile Error
267
v2_s109169529
s109169529
s109169529
p00002
p00002
u285298145
u285298145
1,385,515,947
2013-11-27T01:32:27
Main.java
import java.lang.Math; import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); long a,b; a=in.nextInt(); b=in.nextInt(); System.out.println(ceil(log10((double)a+b))); } }
Main.java:9: error: cannot find symbol System.out.println(ceil(log10((double)a+b))); ^ symbol: method log10(double) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285298145|p00002|0
u285298145|p00002|0
codenet
Compile Error
267
v2_s083149742
s083149742
s083149742
p00002
p00002
u285401178
u285401178
1,456,153,977
2016-02-22T15:12:57
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int a = scan.nextInt(); int b = scan.nextInt(); int c = a + b; String d = "" + c; System.out.println(d.length()); } } }
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: 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
u285401178|p00002|0
u285401178|p00002|0
codenet
Compile Error
284
v2_s715578782
s715578782
s715578782
p00002
p00002
u336739654
u336739654
1,478,961,671
2016-11-12T14:41:11
Main.java
class Main { public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int sum; String str[]; while (!br.ready()) { try { str = br.readLine().split(" "); sum = Integer.parseInt(str[0]) + Integer.parseInt(str[1]); System.out...
Main.java:2: error: cannot find symbol public static void main(String[] a) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ sym...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u336739654|p00002|0
u336739654|p00002|0
codenet
Compile Error
434
v2_s695103456
s695103456
s695103456
p00002
p00002
u358879127
u358879127
1,279,009,286
2010-07-13T08:21:26
Main.java
import java.util.*; import java.lang.*; import java.math.*; class Main { Scanner sc = new Scanner(System.in); void run() { int x = sc.nextInt() + sc.nextInt(); int x = 100; int count = 0; do{ x /= 10; count++; } while ( x != 0); System.out.println(count); return; } public...
Main.java:14: error: variable x is already defined in method run() int x = 100; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358879127|p00002|0
u358879127|p00002|0
codenet
Compile Error
379
v2_s333965013
s333965013
s333965013
p00002
p00002
u387480299
u387480299
1,386,745,975
2013-12-11T07:12:55
Main.java
456789101112 #include<iostream>#include<cmath>using namespace std; int main(){ int a,b; while(cin>>a>>b){ a=log10(a+b)+1; cout<<a<<endl; } return 0;}
Main.java:1: error: class, interface, enum, or record expected 456789101112 ^ Main.java:3: error: illegal character: '#' #include<iostream>#include<cmath>using namespace std; int main(){ int a,b; while(cin>>a>>b){ a=log10(a+b)+1; cout<<a<<endl; } return 0;} ^ Main.java:3: error: illegal char...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387480299|p00002|0
u387480299|p00002|0
codenet
Compile Error
178
v2_s552928633
s552928633
s552928633
p00002
p00002
u388921143
u388921143
1,455,975,345
2016-02-20T13:35:45
Main.java
package sample; public class Main { public static void main(String[] args) { java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); { try { String s =in.readLine(); StringTokenizer st; while(s!=...
Main.java:10: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class Main Main.java:13: error: cannot find symbol st = new StringTokenizer(s); ^ symbol: class StringTokenizer location: cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u388921143|p00002|0
u388921143|p00002|0
codenet
Compile Error
759
v2_s196640622
s196640622
s196640622
p00002
p00002
u437327236
u437327236
1,477,583,418
2016-10-27T15:50:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1); ...
Main.java:33: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u437327236|p00002|0
u437327236|p00002|0
codenet
Compile Error
1,103
v2_s904604232
s904604232
s904604232
p00002
p00002
u437614372
u437614372
1,343,027,010
2012-07-23T07:03:30
Main.java
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int a,b,i; Scanner sc = new Scanner(System.in); while(sc.hasNext()){ a = sc.nextInt(); b = sc.nextInt(); a = a + b; for(i = 0;a > 0;i++){ a = a / 10; ...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u437614372|p00002|0
u437614372|p00002|0
codenet
Compile Error
385
v2_s386977212
s386977212
s386977212
p00002
p00002
u441981269
u441981269
1,318,674,690
2011-10-15T10:31:30
Main.java
public class Main { //ツ 0002 public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); for(;;) { String s = reader.readLine(); if (s == null) break; String[] sp = s.split(" "); int a = Integer.parseInt(sp[...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:7: error: cannot find symbol BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u441981269|p00002|0
u441981269|p00002|0
codenet
Compile Error
475
v2_s269935105
s269935105
s269935105
p00002
p00002
u451187291
u451187291
1,346,655,324
2012-09-03T06:55:24
Main.java
import java.util.Scanner; import java.Math.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(Sytem.in); int[] a,b,c; while(cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); c = a + b; for(int i=1; i<100; i++){ if(c/Math.pow(10,i) < 1){System.out.print...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
351
v2_s309431616
s309431616
s309431616
p00002
p00002
u451187291
u451187291
1,346,655,680
2012-09-03T07:01:20
Main.java
import java.util.Scanner; import java.Math.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(Sytem.in); int[] a,b,c; while(cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); c = a + b; int cnt = 0; for(int i=1; i<=20; i++){ if(c/Math.pow(10,i) < 1 &&...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
374
v2_s254992736
s254992736
s254992736
p00002
p00002
u451187291
u451187291
1,346,655,761
2012-09-03T07:02:41
Main.java
import java.util.Scanner; import java.Math.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(Sytem.in); int[] a,b,c; while(cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); c = a + b; int cnt = 0; for(int i=1; i<=20; i++){ if(c/Math.pow(10,i) < 1 &&...
Main.java:2: error: package java.Math does not exist import java.Math.*; ^ Main.java:8: error: cannot find symbol Scanner cin = new Scanner(Sytem.in); ^ symbol: variable Sytem location: class Main Main.java:11: error: incompatible types: int cannot be converted to int[] a ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
378
v2_s126314932
s126314932
s126314932
p00002
p00002
u451187291
u451187291
1,346,655,851
2012-09-03T07:04:11
Main.java
import java.util.Scanner; import java.Math.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int[] a,b,c; while(cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); c = a + b; int cnt = 0; for(int i=1; i<=20; i++){ if(c/Math.pow(10,i) < 1 &...
Main.java:2: error: package java.Math does not exist import java.Math.*; ^ Main.java:11: error: incompatible types: int cannot be converted to int[] a = cin.nextInt(); ^ Main.java:12: error: incompatible types: int cannot be converted to int[] b = cin.nextInt(); ^ Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
379
v2_s573634881
s573634881
s573634881
p00002
p00002
u451187291
u451187291
1,346,655,984
2012-09-03T07:06:24
Main.java
import java.util.Scanner; import java.lang.Math.*; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int[] a,b,c; while(cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); c = a + b; int cnt = 0; for(int i=1; i<=20; i++){ if(c/Math.pow(10,i) ...
Main.java:11: error: incompatible types: int cannot be converted to int[] a = cin.nextInt(); ^ Main.java:12: error: incompatible types: int cannot be converted to int[] b = cin.nextInt(); ^ Main.java:13: error: bad operand types for binary operator '+' c = a + b; ^ firs...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
384
v2_s009936843
s009936843
s009936843
p00002
p00002
u451187291
u451187291
1,346,657,145
2012-09-03T07:25:45
Main.java
import java.util.Scanner; import java.util.Array; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int N = cin.nextInt(); for(int i=1; i<=N; i++){ int[] len = new int[3]; for(int j=0; j<3; j++){ len[j] = cin.textInt();} Array.sort(len); if(len[0]*le...
Main.java:2: error: cannot find symbol import java.util.Array; ^ symbol: class Array location: package java.util Main.java:12: error: cannot find symbol for(int j=0; j<3; j++){ len[j] = cin.textInt();} ^ symbol: method textInt() location: variable cin ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00002|0
u451187291|p00002|0
codenet
Compile Error
429
v2_s990795159
s990795159
s990795159
p00002
p00002
u461341971
u461341971
1,483,798,098
2017-01-07T14:08:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static final int MAX = 200000; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str[] = new String[1]; ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461341971|p00002|0
u461341971|p00002|0
codenet
Compile Error
533
v2_s658971492
s658971492
s658971492
p00002
p00002
u468326387
u468326387
1,535,522,710
2018-08-29T06:05:10
Main.java
public class Main { public static void main(String[] args) { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int total = a + b; int count = 1; while (total == 0) { int total = total / 10; if (total > 0) { count++; ...
Main.java:8: error: variable total is already defined in method main(String[]) int total = total / 10; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u468326387|p00002|0
u468326387|p00002|0
codenet
Compile Error
387
v2_s959395199
s959395199
s959395199
p00002
p00002
u487029611
u487029611
1,481,088,589
2016-12-07T05:29:49
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { for (int i = 0; i < 3; i++) { int a = scanner.nextInt(); int b = scanner.nextInt(); int digitsOfA = 0; int digitsOfB = 0; if (a >= 0) { digitsOfA = Integer.valueOf(a).toString().length(); } if (b >= 0)...
Main.java:7: error: cannot find symbol int a = scanner.nextInt(); ^ symbol: variable scanner location: class Main Main.java:8: error: cannot find symbol int b = scanner.nextInt(); ^ symbol: variable scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487029611|p00002|0
u487029611|p00002|0
codenet
Compile Error
472
v2_s711924306
s711924306
s711924306
p00002
p00002
u487029611
u487029611
1,481,088,799
2016-12-07T05:33:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { for (int i = 0; i < 3; i++) { int a = scanner.nextInt(); int b = scanner.nextInt(); int digitsOfA = 0; int digitsOfB = 0; if (a >= 0) { ...
Main.java:7: error: cannot find symbol int a = scanner.nextInt(); ^ symbol: variable scanner location: class Main Main.java:8: error: cannot find symbol int b = scanner.nextInt(); ^ symbol: variable scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487029611|p00002|0
u487029611|p00002|0
codenet
Compile Error
612
v2_s267614752
s267614752
s267614752
p00002
p00002
u487029611
u487029611
1,481,090,195
2016-12-07T05:56:35
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int dataSet = Integer.parseInt(scanner.nextLine()); List<String[]> l = new ArrayList<>(); for (int i = 0; i < dataSet; i++) { String[] s = scanner.nextLine().split(" "); l.add(s); } for(in...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487029611|p00002|0
u487029611|p00002|0
codenet
Compile Error
614
v2_s248111497
s248111497
s248111497
p00002
p00002
u487029611
u487029611
1,481,090,230
2016-12-07T05:57:10
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int dataSet = Integer.parseInt(scanner.nextLine()); List<String[]> l = new ArrayList<>(); for (int i = 0; i < dataSet; i++) { String[] s = scanner.nextLine().split(" "); l.add(s); } for(in...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487029611|p00002|0
u487029611|p00002|0
codenet
Compile Error
614
v2_s505767391
s505767391
s505767391
p00002
p00002
u489809100
u489809100
1,430,817,022
2015-05-05T09:10:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b,c; a=s.nextInt; b=s.nextInt; c=a+b; c=lnght(c); System.out.println(c); } }
Main.java:8: error: cannot find symbol a=s.nextInt; ^ symbol: variable nextInt location: variable s of type Scanner Main.java:9: error: cannot find symbol b=s.nextInt; ^ symbol: variable nextInt location: variable s of type Scanner Main.java:11: error: cannot find symbol c=lnght(c); ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
207
v2_s989699871
s989699871
s989699871
p00002
p00002
u489809100
u489809100
1,430,817,038
2015-05-05T09:10:38
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b,c; a=s.nextInt(); b=s.nextInt(); c=a+b; c=lnght(c); System.out.println(c); } }
Main.java:11: error: cannot find symbol c=lnght(c); ^ symbol: method lnght(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
211
v2_s150023202
s150023202
s150023202
p00002
p00002
u489809100
u489809100
1,430,817,057
2015-05-05T09:10:57
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b,c; a=s.nextInt(); b=s.nextInt(); a=a+b; c=lnght(a); System.out.println(c); } }
Main.java:11: error: cannot find symbol c=lnght(a); ^ symbol: method lnght(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
211
v2_s653124287
s653124287
s653124287
p00002
p00002
u489809100
u489809100
1,430,817,467
2015-05-05T09:17:47
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b,c; a=s.nextInt(); b=s.nextInt(); a=a+b; String a=String.valueOf(intvalue) c=string.lnght(a); System.out.println(c); } }
Main.java:11: error: ';' expected String a=String.valueOf(intvalue) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
253
v2_s167720402
s167720402
s167720402
p00002
p00002
u489809100
u489809100
1,430,817,482
2015-05-05T09:18:02
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b,c; a=s.nextInt(); b=s.nextInt(); a=a+b; String a=String.valueOf(intvalue); c=string.lnght(a); System.out.println(c); } }
Main.java:11: error: variable a is already defined in method main(String[]) String a=String.valueOf(intvalue); ^ Main.java:11: error: cannot find symbol String a=String.valueOf(intvalue); ^ symbol: variable intvalue location: class Main Main.java:12: error: cannot find symbol c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
254
v2_s161355922
s161355922
s161355922
p00002
p00002
u489809100
u489809100
1,430,822,782
2015-05-05T10:46:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int???a,b; a=s.nextInt(); b=s.nextInt(); a=a+b; String c = String.valueOf(a); System.out.println(c.length()); } }
Main.java:5: error: not a statement int???a,b; ^ Main.java:5: error: ';' expected int???a,b; ^ Main.java:5: error: not a statement int???a,b; ^ Main.java:5: error: ';' expected int???a,b; ^ Main.java:5: error: not a statement int???a,b; ^ 5 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
232
v2_s885412986
s885412986
s885412986
p00002
p00002
u489809100
u489809100
1,430,823,428
2015-05-05T10:57:08
Main.java
while(sc.hasNext()){ import java.util.*; class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b; a=s.nextInt(); b=s.nextInt(); a=a+b; String c = String.valueOf(a); System.out.println(c.length()); } } }
Main.java:1: error: class, interface, enum, or record expected while(sc.hasNext()){ ^ Main.java:14: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
253
v2_s733996803
s733996803
s733996803
p00002
p00002
u489809100
u489809100
1,430,823,478
2015-05-05T10:57:58
Main.java
import java.util.*; class Main{ public static void main(String[] args){ while(sc.hasNext()){ Scanner s = new Scanner(System.in); int a,b; a=s.nextInt(); b=s.nextInt(); a=a+b; String c = String.valueOf(a); System.out.println(c.length()); } } }
Main.java:4: error: cannot find symbol while(sc.hasNext()){ ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
254
v2_s436141766
s436141766
s436141766
p00002
p00002
u489809100
u489809100
1,430,823,587
2015-05-05T10:59:47
Main.java
import java.util.*; while(sc.hasNext()){ class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a,b; a=s.nextInt(); b=s.nextInt(); a=a+b; String c = String.valueOf(a); System.out.println(c.length()); } } }
Main.java:2: error: class, interface, enum, or record expected while(sc.hasNext()){ ^ Main.java:14: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489809100|p00002|0
u489809100|p00002|0
codenet
Compile Error
253
v2_s733290423
s733290423
s733290423
p00002
p00002
u527873595
u527873595
1,529,634,250
2018-06-22T02:24:10
Main.java
class Main{ public static void main(String[] a){ int num1[] = new int[200]; int num2[] = new int[200]; int i = 0, j = 0; Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ num1[i] = Integer.parseInt(scanner.next()); num2[i] = Integer.parseInt(scanner.next()); i++; } for(j ...
Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527873595|p00002|0
u527873595|p00002|0
codenet
Compile Error
413
v2_s642838170
s642838170
s642838170
p00002
p00002
u527873595
u527873595
1,529,634,500
2018-06-22T02:28:20
Main.java
class Main{ public static void main(String[] a){ int num1[] = new int[200]; int num2[] = new int[200]; int i = 0; Scanner scanner = new Scanner(System.in); while(scanner.hasNext()){ num1[i] = Integer.parseInt(scanner.next()); num2[i] = Integer.parseInt(scanner.next()); System.out.println(num1[i] ...
Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527873595|p00002|0
u527873595|p00002|0
codenet
Compile Error
374
v2_s202711971
s202711971
s202711971
p00002
p00002
u529869306
u529869306
1,362,563,429
2013-03-06T09:50:29
Main.java
public class Main { public static void main(String[] args) { java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); { try { String s =in.readLine(); StringTokenizer st; while(s!=null) ...
Main.java:7: error: cannot find symbol StringTokenizer st; ^ symbol: class StringTokenizer location: class Main Main.java:10: error: cannot find symbol st = new StringTokenizer(s); ^ symbol: class StringTokenizer location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u529869306|p00002|0
u529869306|p00002|0
codenet
Compile Error
738
v2_s384031636
s384031636
s384031636
p00002
p00002
u529890106
u529890106
1,364,544,810
2013-03-29T08:13:30
Main.java
public static void main(String[] a) { ArrayList<Integer[]> inputs = new ArrayList<Integer[]>(); ArrayList<Integer> outputs = new ArrayList<Integer>(); String line; try { // int count=0; boolean flg = true; int count = 0; while (flg) { BufferedReader br = new BufferedReader(new I...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] a) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u529890106|p00002|0
u529890106|p00002|0
codenet
Compile Error
1,166
v2_s754771853
s754771853
s754771853
p00002
p00002
u530594982
u530594982
1,460,960,634
2016-04-18T06:23:54
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.commons.lang.StringUtils; class Main{ public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); S...
Main.java:4: error: package org.apache.commons.lang does not exist import org.apache.commons.lang.StringUtils; ^ Main.java:11: error: cannot find symbol while (StringUtils.isNotEmpty(line)) { ^ symbol: variable StringUtils location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u530594982|p00002|0
u530594982|p00002|0
codenet
Compile Error
628
v2_s248670610
s248670610
s248670610
p00002
p00002
u532635730
u532635730
1,431,426,812
2015-05-12T10:33:32
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try...
Main.java:16: error: cannot find symbol while ((s = br.readLine()) != null && list.size() <= 200) { ^ symbol: variable list location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532635730|p00002|1
u532635730|p00002|1
codenet
Compile Error
930
v2_s471717777
s471717777
s471717777
p00002
p00002
u532635730
u532635730
1,431,426,869
2015-05-12T10:34:29
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String s; while ((s =...
Main.java:14: error: cannot find symbol while ((s = br.readLine()) != null && list.size() <= 200) { ^ symbol: variable list location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532635730|p00002|1
u532635730|p00002|1
codenet
Compile Error
879
v2_s008948412
s008948412
s008948412
p00002
p00002
u537471461
u537471461
1,479,907,775
2016-11-23T13:29:35
Main.java
#include <iostream> #include <cmath> #include <limits> int main(void) { int32_t first = 0; int32_t second = 0; while( std::cin >> first ) { std::cin >> second; std::cout << static_cast<int32_t>(std::log10(first + second))+1 << std::endl; } return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cmath> ^ Main.java:3: error: illegal character: '#' #include <limits> ^ Main.java:8: error: unnamed classes are a preview feature and are disabled by default. int32_t second = 0; ^ (use --enable-pre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537471461|p00002|0
u537471461|p00002|0
codenet
Compile Error
266
v2_s469583251
s469583251
s469583251
p00002
p00002
u542408658
u542408658
1,535,126,729
2018-08-24T16:05:29
Main.java
import java.util.Scanner; public classMain{ public static void main(String[]args) { Scanner sc = new Scanner(System.in); while(true) { int a = sc.nextInt(); int b = sc.nextInt(); if(a==0 && b==0) break; int sum = a+b; int valLen = String.valueOf(sum).length(); System.out.println(valLen); } } ...
Main.java:3: error: class, interface, enum, or record expected public classMain{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[]args) { ^ (use --enable-preview to enable unnamed classes) Main.java:19: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u542408658|p00002|0
u542408658|p00002|0
codenet
Compile Error
323