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_s794743399 | s794743399 | s794743399 | p02933 | p02933 | u683530136 | u683530136 | 1,566,176,766 | 2019-08-19T01:06:06 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
String b = sc.nextString();
if (a < 3200){
Systemout.println("red");
} else{
Systemout.println("b");
}
}
} | Main.java:7: error: cannot find symbol
String b = sc.nextString();
^
symbol: method nextString()
location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
Systemout.println("red");
^
symbol: variable Systemout
location: class Main
Main.java:11: error: cannot fin... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 284 | |
v2_s303543112 | s303543112 | s303543112 | p02933 | p02933 | u683530136 | u683530136 | 1,566,176,878 | 2019-08-19T01:07:58 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
String b = sc.nextString();
if (a < 3200){
System.out.println("red");
} else{
System.out.println("b");
}
}
}
| Main.java:7: error: cannot find symbol
String b = sc.nextString();
^
symbol: method nextString()
location: variable sc of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 287 | |
v2_s162507726 | s162507726 | s162507726 | p02933 | p02933 | u683530136 | u683530136 | 1,566,178,281 | 2019-08-19T01:31:21 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int b;
double result = 0.0;
for (int i = 0; i < a; i++){
b = sc.nextInt();
int sum=sum+1.0/Math.sqrt(b);
}
}
}
| Main.java:11: error: incompatible types: possible lossy conversion from double to int
int sum=sum+1.0/Math.sqrt(b);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 306 | |
v2_s872457694 | s872457694 | s872457694 | p02933 | p02933 | u683530136 | u683530136 | 1,566,180,808 | 2019-08-19T02:13:28 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextIn... | Main.java:14: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
Main.java:15: error: cannot find symbol
result = list(0);
^
symbol: method list(int)
location: class Main
Main.java:18: error: cannot find symbol
result ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 518 | |
v2_s400391035 | s400391035 | s400391035 | p02933 | p02933 | u683530136 | u683530136 | 1,566,180,899 | 2019-08-19T02:14:59 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextIn... | Main.java:14: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
Main.java:15: error: cannot find symbol
result = list(0);
^
symbol: method list(int)
location: class Main
Main.java:18: error: cannot find symbol
result ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 520 | |
v2_s862110277 | s862110277 | s862110277 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,032 | 2019-08-19T02:17:12 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextInt())... | Main.java:8: error: unexpected type
ArrayList<int> list = new ArrayList<>();
^
required: reference
found: int
Main.java:13: error: cannot find symbol
Colletions cl = new Colletions();
^
symbol: class Colletions
location: class Main
Main.java:13: error: cannot find symbol... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 541 | |
v2_s135899891 | s135899891 | s135899891 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,111 | 2019-08-19T02:18:31 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextIn... | Main.java:13: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
Main.java:14: error: array required, but ArrayList<Integer> found
result = list[0];
^
Main.java:17: error: array required, but ArrayList<Integer> found
res... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 513 | |
v2_s943715584 | s943715584 | s943715584 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,161 | 2019-08-19T02:19:21 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextIn... | Main.java:14: error: illegal start of expression
result = list<0>;
^
Main.java:17: error: illegal start of expression
result = (result + list<i>)/2.0;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 513 | |
v2_s555010610 | s555010610 | s555010610 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,317 | 2019-08-19T02:21:57 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextInt())... | Main.java:14: error: illegal start of expression
result = list<0>;
^
Main.java:17: error: illegal start of expression
result = (result + list<i>)/2.0;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 510 | |
v2_s237878156 | s237878156 | s237878156 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,445 | 2019-08-19T02:24:05 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
for (int i = 0; i < a; i++){
list.add(sc.nextInt())... | Main.java:14: error: illegal start of expression
result = list<0>;
^
Main.java:17: error: illegal start of expression
result = (result + list<s>)/2.0;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 510 | |
v2_s493080047 | s493080047 | s493080047 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,576 | 2019-08-19T02:26:16 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.ad... | Main.java:17: error: illegal start of expression
result = list<0>;
^
Main.java:20: error: illegal start of expression
result = (result + list<s>)/2.0;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 535 | |
v2_s988337262 | s988337262 | s988337262 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,668 | 2019-08-19T02:27:48 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.ad... | Main.java:8: error: unexpected type
ArrayList<int> list = new ArrayList<>();
^
required: reference
found: int
Main.java:16: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
Main.java:20: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 543 | |
v2_s014254404 | s014254404 | s014254404 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,689 | 2019-08-19T02:28:09 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.ad... | Main.java:8: error: unexpected type
ArrayList<int> list = new ArrayList<>();
^
required: reference
found: int
Main.java:16: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 543 | |
v2_s897187972 | s897187972 | s897187972 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,718 | 2019-08-19T02:28:38 | Main.java | import java.util.*;
import java.util.Collections;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
lis... | Main.java:16: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 547 | |
v2_s872610760 | s872610760 | s872610760 | p02933 | p02933 | u683530136 | u683530136 | 1,566,181,820 | 2019-08-19T02:30:20 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:15: error: cannot find symbol
Colletions.sort(list);
^
symbol: variable Colletions
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 517 | |
v2_s851442495 | s851442495 | s851442495 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,081 | 2019-08-19T02:34:41 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:15: error: no suitable method found for sort(ArrayList<Integer>)
Arrays.sort(list);
^
method Arrays.sort(int[]) is not applicable
(argument mismatch; ArrayList<Integer> cannot be converted to int[])
method Arrays.sort(long[]) is not applicable
(argument mismatch; ArrayLis... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 513 | |
v2_s631814476 | s631814476 | s631814476 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,157 | 2019-08-19T02:35:57 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<int> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:7: error: unexpected type
ArrayList<int> list = new ArrayList<>();
^
required: reference
found: int
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 509 | |
v2_s070258933 | s070258933 | s070258933 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,190 | 2019-08-19T02:36:30 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
ArrayList<Integer> list = new ArrayList<>();
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:15: error: cannot find symbol
list1 = Arrays.sort(list);
^
symbol: variable list1
location: class Main
Main.java:15: error: no suitable method found for sort(ArrayList<Integer>)
list1 = Arrays.sort(list);
^
method Arrays.sort(int[]) is not applicable
(argu... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 521 | |
v2_s372083663 | s372083663 | s372083663 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,301 | 2019-08-19T02:38:21 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int list[];
list = new int[a];
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:13: error: cannot find symbol
list.add(sc.nextInt());
^
symbol: method add(int)
location: variable list of type int[]
Main.java:16: error: cannot find symbol
list1 = Arrays.sort(list);
^
symbol: variable list1
location: class Main
Main.java:17: error: cannot find sy... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 513 | |
v2_s943774298 | s943774298 | s943774298 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,321 | 2019-08-19T02:38:41 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int list[];
list = new int[a];
double result = 0;
int i;
for (i = 0; i < a; i++){
list.add(sc.nextInt());
}
... | Main.java:13: error: cannot find symbol
list.add(sc.nextInt());
^
symbol: method add(int)
location: variable list of type int[]
Main.java:16: error: incompatible types: void cannot be converted to int[]
list = Arrays.sort(list);
^
Main.java:17: error: cannot find ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 512 | |
v2_s290420915 | s290420915 | s290420915 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,361 | 2019-08-19T02:39:21 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int list[];
list = new int[a];
double result = 0;
int i;
for (i = 0; i < a; i++){
list(i) = (sc.nextInt());
}
... | Main.java:13: error: cannot find symbol
list(i) = (sc.nextInt());
^
symbol: method list(int)
location: class Main
Main.java:16: error: incompatible types: void cannot be converted to int[]
list = Arrays.sort(list);
^
Main.java:17: error: cannot find symbol
resul... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 514 | |
v2_s356184621 | s356184621 | s356184621 | p02933 | p02933 | u683530136 | u683530136 | 1,566,182,392 | 2019-08-19T02:39:52 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int list[];
list = new int[a];
double result = 0;
int i;
for (i = 0; i < a; i++){
list(i) = (sc.nextInt());
}
... | Main.java:13: error: cannot find symbol
list(i) = (sc.nextInt());
^
symbol: method list(int)
location: class Main
Main.java:17: error: cannot find symbol
result = list.get(0);
^
symbol: method get(int)
location: variable list of type int[]
Main.java:20: error: cannot... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02933|0 | u683530136|p02933|0 | codenet | Compile Error | 507 | |
v2_s734733144 | s734733144 | s734733144 | p02933 | p02933 | u688693217 | u688693217 | 1,566,510,970 | 2019-08-22T21:56:10 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long L = Long.parseLong(sc.next());
long R = Long.parseLong(sc.next());
long count = 0L;
for(long x = L; x <= R; x++){
long xBinaryString = Long.toBinaryString(... | Main.java:11: error: ';' expected
long xBinaryString = Long.toBinaryString(x).length()
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u688693217|p02933|1 | u688693217|p02933|1 | codenet | Compile Error | 608 | |
v2_s429948493 | s429948493 | s429948493 | p02933 | p02933 | u717880434 | u717880434 | 1,566,988,157 | 2019-08-28T10:29:17 | Main.java | import java.util.Scanner;
public class Main{
public static void main( String args[]) {
Scanner sc = new Scanner(System.in);
String s ;
int n = sc.nextInt();
s = sc.nextLine().toLowerCase();
if(n<3200 && n>=2800)
System.out.println("red");
else if(n >3200 && n<5000)
System.out.pri... | Main.java:15: error: break outside switch or loop
break ;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u717880434|p02933|0 | u717880434|p02933|0 | codenet | Compile Error | 359 | |
v2_s657589534 | s657589534 | s657589534 | p02933 | p02933 | u717880434 | u717880434 | 1,566,989,123 | 2019-08-28T10:45:23 | Main.java | import java.util.Scanner;
public class Main{
public static void main( String args[]) {
Scanner sc = new Scanner(System.in);
String s ;
int n = sc.nextInt();
s = sc.nextLine();
int x = s.length();
if(n<3200 && n>=2800)
System.out.println("red");
else
System.out.println(s);
}
}
... | Main.java:19: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u717880434|p02933|0 | u717880434|p02933|0 | codenet | Compile Error | 337 | |
v2_s406633032 | s406633032 | s406633032 | p02933 | p02933 | u722302265 | u722302265 | 1,566,177,096 | 2019-08-19T01:11:36 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
// 文字の入力
String s = sc.next();
if(a >= 3200){
System.out.println(s);
}else{
System.out.println('red');
}
}
} | Main.java:13: error: unclosed character literal
System.out.println('red');
^
Main.java:13: error: unclosed character literal
System.out.println('red');
^
Main.java:13: error: not a statement
System.out.println('red');
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u722302265|p02933|0 | u722302265|p02933|0 | codenet | Compile Error | 334 | |
v2_s706872191 | s706872191 | s706872191 | p02933 | p02933 | u729617972 | u729617972 | 1,566,361,440 | 2019-08-21T04:24:00 | Main.java | import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200){
System.out.println(s);
}else{
System.out.println("red");
}
} | Main.java:16: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u729617972|p02933|0 | u729617972|p02933|0 | codenet | Compile Error | 291 | |
v2_s095097153 | s095097153 | s095097153 | p02933 | p02933 | u750120744 | u750120744 | 1,567,057,451 | 2019-08-29T05:44:11 | Main.java | import java.util.Scanner;
class main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
int s = next();
if(a >= 3200) {
System.out.println(s);
} else {
System.out.println("red");
}
} | Main.java:14: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u750120744|p02933|0 | u750120744|p02933|0 | codenet | Compile Error | 316 | |
v2_s093683861 | s093683861 | s093683861 | p02933 | p02933 | u750120744 | u750120744 | 1,567,057,548 | 2019-08-29T05:45:48 | Main.java | import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int a = Integer.parseInt(sc.next());
int s = next();
if (a >= 3200) {
System.out.println(s);
} else {
System.out.println("red");
}
}
} | Main.java:6: error: cannot find symbol
int s = next();
^
symbol: method next()
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u750120744|p02933|0 | u750120744|p02933|0 | codenet | Compile Error | 291 | |
v2_s215599107 | s215599107 | s215599107 | p02933 | p02933 | u760238629 | u760238629 | 1,566,176,591 | 2019-08-19T01:03:11 | Main.java | import java.util.*;
public class Main{}
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a < 3200){
System.out.println("red");
}else{
System.out.println(s);
}
}
} | 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:14: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u760238629|p02933|0 | u760238629|p02933|0 | codenet | Compile Error | 289 | |
v2_s696872888 | s696872888 | s696872888 | p02933 | p02933 | u760718569 | u760718569 | 1,573,195,093 | 2019-11-08T06:38:13 | Main.java | import java.util.Scanner;
import java.util.Arrays;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int[] b = new int[a];
for(int i = 0;i < b.length;i++){
b[i] = sc.nextInt();
}
Arrays.sort(b);
double c = (double)(b... | Main.java:14: error: cannot find symbol
c = (double)(tmp + b[j]) / 2;
^
symbol: variable tmp
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u760718569|p02933|0 | u760718569|p02933|0 | codenet | Compile Error | 450 | |
v2_s583892821 | s583892821 | s583892821 | p02933 | p02933 | u796481713 | u796481713 | 1,572,357,760 | 2019-10-29T14:02:40 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(judge(a);){
System.out.println(s);
}else{
System.out.println("red");
}
}
public boolean judge(int number){
... | Main.java:8: error: ')' expected
if(judge(a);){
^
Main.java:8: error: illegal start of expression
if(judge(a);){
^
Main.java:10: error: 'else' without 'if'
}else{
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u796481713|p02933|0 | u796481713|p02933|0 | codenet | Compile Error | 352 | |
v2_s292938889 | s292938889 | s292938889 | p02933 | p02933 | u800067314 | u800067314 | 1,568,752,198 | 2019-09-17T20:29:58 | Main.java | import java.util.*;
public class Main{
public static void main (String[] args){
Sccaner sc = new Sccaner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200){
s = "red";
}
System.out.println(s)
}
} | Main.java:14: error: ';' expected
System.out.println(s)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u800067314|p02933|0 | u800067314|p02933|0 | codenet | Compile Error | 256 | |
v2_s583568815 | s583568815 | s583568815 | p02933 | p02933 | u800067314 | u800067314 | 1,568,752,222 | 2019-09-17T20:30:22 | Main.java | import java.util.*;
public class Main{
public static void main (String[] args){
Sccaner sc = new Sccaner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200){
s = "red";
}
System.out.println(s);
}
} | Main.java:5: error: cannot find symbol
Sccaner sc = new Sccaner(System.in);
^
symbol: class Sccaner
location: class Main
Main.java:5: error: cannot find symbol
Sccaner sc = new Sccaner(System.in);
^
symbol: class Sccaner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u800067314|p02933|0 | u800067314|p02933|0 | codenet | Compile Error | 258 | |
v2_s383469247 | s383469247 | s383469247 | p02933 | p02933 | u800067314 | u800067314 | 1,568,752,259 | 2019-09-17T20:30:59 | Main.java | import java.util.*;
public class Main{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200){
s = "red";
}
System.out.println(s)
}
} | Main.java:14: error: ';' expected
System.out.println(s)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u800067314|p02933|0 | u800067314|p02933|0 | codenet | Compile Error | 257 | |
v2_s415511835 | s415511835 | s415511835 | p02933 | p02933 | u800067314 | u800067314 | 1,568,752,287 | 2019-09-17T20:31:27 | Main.java | import java.util.*;
public class Main{
public static void main (String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200){
s = "red";
}
System.out.println(s);
} | Main.java:15: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u800067314|p02933|0 | u800067314|p02933|0 | codenet | Compile Error | 256 | |
v2_s074595504 | s074595504 | s074595504 | p02933 | p02933 | u804197006 | u804197006 | 1,571,010,589 | 2019-10-13T23:49:49 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
if(a.equals(3200 <= a)){
System.out.println("s");
}else{
System.out.println("red");
}
}
}
| Main.java:6: error: int cannot be dereferenced
if(a.equals(3200 <= a)){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 263 | |
v2_s819807091 | s819807091 | s819807091 | p02933 | p02933 | u804197006 | u804197006 | 1,571,010,638 | 2019-10-13T23:50:38 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
string a = scanner.nextInt();
if(a.equals(3200 <= a)){
System.out.println("s");
}else{
System.out.println("red");
}
}
} | Main.java:5: error: cannot find symbol
string a = scanner.nextInt();
^
symbol: class string
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 265 | |
v2_s006574177 | s006574177 | s006574177 | p02933 | p02933 | u804197006 | u804197006 | 1,571,010,662 | 2019-10-13T23:51:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String a = scanner.nextInt();
if(a.equals(3200 <= a)){
System.out.println("s");
}else{
System.out.println("red");
}
}
}
| Main.java:5: error: incompatible types: int cannot be converted to String
String a = scanner.nextInt();
^
Main.java:6: error: bad operand types for binary operator '<='
if(a.equals(3200 <= a)){
^
first type: int
second type: String
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 266 | |
v2_s633021568 | s633021568 | s633021568 | p02933 | p02933 | u804197006 | u804197006 | 1,571,010,699 | 2019-10-13T23:51:39 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String a = scanner.nextLine();
if(a.equals(3200 <= a)){
System.out.println("s");
}else{
System.out.println("red");
}
}
}
| Main.java:6: error: bad operand types for binary operator '<='
if(a.equals(3200 <= a)){
^
first type: int
second type: String
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 267 | |
v2_s331912771 | s331912771 | s331912771 | p02933 | p02933 | u804197006 | u804197006 | 1,571,010,768 | 2019-10-13T23:52:48 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
if(a.equals(3200 <= a)){
System.out.println("s");
}else{
System.out.println("red");
}
}
}
| Main.java:6: error: int cannot be dereferenced
if(a.equals(3200 <= a)){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 263 | |
v2_s989511627 | s989511627 | s989511627 | p02933 | p02933 | u804197006 | u804197006 | 1,571,011,213 | 2019-10-14T00:00:13 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String s = scanner.nextLine();
if(a >= 3200){
System.out.println(s);
}else if(a < 3200){
System.out.println('red');
}
}
} | Main.java:10: error: unclosed character literal
System.out.println('red');
^
Main.java:10: error: unclosed character literal
System.out.println('red');
^
Main.java:10: error: not a statement
System.out.println('red');
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 293 | |
v2_s619249982 | s619249982 | s619249982 | p02933 | p02933 | u804197006 | u804197006 | 1,571,011,262 | 2019-10-14T00:01:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String s;
if(a >= 3200){
System.out.println(s);
}else if(a <= 3200){
System.out.println("red");
}
}
} | Main.java:8: error: variable s might not have been initialized
System.out.println(s);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 273 | |
v2_s568787293 | s568787293 | s568787293 | p02933 | p02933 | u804197006 | u804197006 | 1,571,011,301 | 2019-10-14T00:01:41 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
String S;
if(a >= 3200){
System.out.println(S);
}else if(a <= 3200){
System.out.println("red");
}
}
} | Main.java:8: error: variable S might not have been initialized
System.out.println(S);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u804197006|p02933|0 | u804197006|p02933|0 | codenet | Compile Error | 273 | |
v2_s490192684 | s490192684 | s490192684 | p02933 | p02933 | u806768852 | u806768852 | 1,587,047,073 | 2020-04-16T14:24:33 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s = sc.next();
if(a<3200){
System.out.println("red");
}else{
System.out.println(s);
}
}
}
| Main.java:7: error: cannot find symbol
if(a<3200){
^
symbol: variable a
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u806768852|p02933|0 | u806768852|p02933|0 | codenet | Compile Error | 275 | |
v2_s491614137 | s491614137 | s491614137 | p02933 | p02933 | u816631826 | u816631826 | 1,570,673,384 | 2019-10-10T02:09:44 | Main.java | #include <iostream>
#include <cstdio>
using namespace std;
char s[1000000];
int arr;
int main(){
scanf("%d%s",&arr,&s);
if(arr>=3200){
printf("%s",&s);
}else{
printf("red");
}
return 0;
} | Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:4: error: class, interface, enum, or record expected
char s[1000000];
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int arr;
^
(use --ena... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u816631826|p02933|2 | u816631826|p02933|2 | codenet | Compile Error | 196 | |
v2_s502283782 | s502283782 | s502283782 | p02933 | p02933 | u818640918 | u818640918 | 1,566,176,533 | 2019-08-19T01:02:13 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
int a = sc.nextInt();
String s = sc.next();
if(a>=3200){
System.out.println(s);
}else{
System.out.println("red");
}
}
}
| Main.java:4: error: cannot find symbol
int a = sc.nextInt();
^
symbol: variable sc
location: class Main
Main.java:5: error: cannot find symbol
String s = sc.next();
^
symbol: variable sc
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u818640918|p02933|0 | u818640918|p02933|0 | codenet | Compile Error | 194 | |
v2_s675439114 | s675439114 | s675439114 | p02933 | p02933 | u818640918 | u818640918 | 1,566,176,618 | 2019-08-19T01:03:38 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in());
int a = sc.nextInt();
String s = sc.next();
if(a>=3200){
System.out.println(s);
}else{
System.out.println("red");
}
}} | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in());
^
symbol: method in()
location: class System
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u818640918|p02933|0 | u818640918|p02933|0 | codenet | Compile Error | 231 | |
v2_s559193477 | s559193477 | s559193477 | p02933 | p02933 | u829246976 | u829246976 | 1,575,656,837 | 2019-12-06T18:27:17 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc next();
if(a < 3200){
System.out.println(s);
}else{
System.out.println("red");
}
} ... | Main.java:7: error: ';' expected
String s = sc next();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u829246976|p02933|0 | u829246976|p02933|0 | codenet | Compile Error | 322 | |
v2_s619787500 | s619787500 | s619787500 | p02933 | p02933 | u850830779 | u850830779 | 1,593,553,641 | 2020-06-30T21:47:21 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int s = sc.next();
if(a >= 3200){
System.out.println(s);
} else {
... | Main.java:8: error: incompatible types: String cannot be converted to int
int s = sc.next();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u850830779|p02933|0 | u850830779|p02933|0 | codenet | Compile Error | 369 | |
v2_s923083887 | s923083887 | s923083887 | p02933 | p02933 | u859897687 | u859897687 | 1,566,580,784 | 2019-08-23T17:19:44 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
scanner stdin = new Scanner(System.in);
int a = stdin.nextInt();
String s = stdin.next();
if(a >= 3200){
System.out.println(s);
}
else{
System.out.println("red");
}
}
}
| Main.java:4: error: cannot find symbol
scanner stdin = new Scanner(System.in);
^
symbol: class scanner
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u859897687|p02933|0 | u859897687|p02933|0 | codenet | Compile Error | 287 | |
v2_s116928110 | s116928110 | s116928110 | p02933 | p02933 | u863370423 | u863370423 | 1,567,113,435 | 2019-08-29T21:17:15 | Main.java |
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = input.nextInt();
String s = input.next();
if(a > 3200)
{
System.out.println(s);
System.out.println("a="+a+" is not less ... | Main.java:6: error: cannot find symbol
Scanner input = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find symbol
Scanner input = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u863370423|p02933|1 | u863370423|p02933|1 | codenet | Compile Error | 569 | |
v2_s050706378 | s050706378 | s050706378 | p02933 | p02933 | u863370423 | u863370423 | 1,570,673,261 | 2019-10-10T02:07:41 | Main.java | #include <iostream>
#include <cstdio>
#include <string>
using namespace std;
string s;
int arr;
int main(){
scanf("%d",&arr);
cin>>s;
if(arr>=3200){
cout <<s<<endl;
}else{
cout <<"red"<<endl;
}
return 0;
} | Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <cstdio>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
string s;
^
(use --enable-preview to ena... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u863370423|p02933|2 | u863370423|p02933|2 | codenet | Compile Error | 216 | |
v2_s684239239 | s684239239 | s684239239 | p02933 | p02933 | u866258281 | u866258281 | 1,566,500,122 | 2019-08-22T18:55:22 | Main.java | String out;
try (Scanner scan = new Scanner(System.in)) {
String input1 = scan.nextLine();
String input2 = scan.nextLine();
int num = Integer.valueOf(input1);
if (num >= 3200) out = input2;
else out = "red";
} catch (Exception e) {
}
System.out.println(out); | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String out;
^
(use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
try (Scanner scan = new Scanner(System.in)) {
^
Main.java:6: error: class, interface, enum, or record exp... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u866258281|p02933|0 | u866258281|p02933|0 | codenet | Compile Error | 268 | |
v2_s782178830 | s782178830 | s782178830 | p02933 | p02933 | u866258281 | u866258281 | 1,566,500,347 | 2019-08-22T18:59:07 | Main.java | String out = "red";
try (Scanner scan = new Scanner(System.in)) {
int num = scan.nextInt();
if (num >= 3200) out = scan.nextLine();
} catch (Exception e) {
}
System.out.println(out); | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String out = "red";
^
(use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
try (Scanner scan = new Scanner(System.in)) {
^
Main.java:4: error: class, interface, enum, or re... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u866258281|p02933|0 | u866258281|p02933|0 | codenet | Compile Error | 186 | |
v2_s347652797 | s347652797 | s347652797 | p02933 | p02933 | u866258281 | u866258281 | 1,566,500,418 | 2019-08-22T19:00:18 | Main.java | public class Main {
public static void main(String... args) {
String out = "red";
try (Scanner scan = new Scanner(System.in)) {
int num = scan.nextInt();
if (num >= 3200) out = scan.nextLine();
} catch (Exception e) {}
System.out.println(out);
}
} | Main.java:4: error: cannot find symbol
try (Scanner scan = new Scanner(System.in)) {
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
try (Scanner scan = new Scanner(System.in)) {
^
symbol: class Scanner
location: class Main
2 e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u866258281|p02933|0 | u866258281|p02933|0 | codenet | Compile Error | 279 | |
v2_s570165424 | s570165424 | s570165424 | p02933 | p02933 | u866258281 | u866258281 | 1,566,502,207 | 2019-08-22T19:30:07 | Main.java | import java.util.Scanner;
public class Main {
Scanner scan = new Scanner(System.in);
int in1 = scan.nextInt();
System.out.println(in1 >= 3200 ? scan.next() : "red");
} | Main.java:5: error: <identifier> expected
System.out.println(in1 >= 3200 ? scan.next() : "red");
^
Main.java:5: error: <identifier> expected
System.out.println(in1 >= 3200 ? scan.next() : "red");
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u866258281|p02933|0 | u866258281|p02933|0 | codenet | Compile Error | 173 | |
v2_s577084036 | s577084036 | s577084036 | p02933 | p02933 | u868996139 | u868996139 | 1,567,715,080 | 2019-09-05T20:24:40 | Main.java | Class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.nextLine();
if(a>3200) System.out.println("red");
else System.out.println(s);
}
} | Main.java:1: error: class, interface, enum, or record expected
Class Main{
^
Main.java:2: 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:10: error: class, interface, enum, ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u868996139|p02933|0 | u868996139|p02933|0 | codenet | Compile Error | 235 | |
v2_s429390297 | s429390297 | s429390297 | p02933 | p02933 | u868996139 | u868996139 | 1,567,715,183 | 2019-09-05T20:26:23 | Main.java | class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.nextLine();
if(a>3200) System.out.println("red");
else System.out.println(s);
}
}
| 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 | u868996139|p02933|0 | u868996139|p02933|0 | codenet | Compile Error | 236 | |
v2_s016625056 | s016625056 | s016625056 | p02933 | p02933 | u874282093 | u874282093 | 1,566,592,978 | 2019-08-23T20:42:58 | Main.java | import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
String t = sc.next();
int mod = s.length();
long ans = 0;
TreeSet<Integer>[] index = new TreeSet[26];
for (int i = 0; i < 26; i++) {
index[i]... | Main.java:42: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u874282093|p02933|0 | u874282093|p02933|0 | codenet | Compile Error | 1,023 | |
v2_s276697734 | s276697734 | s276697734 | p02933 | p02933 | u874282093 | u874282093 | 1,566,593,168 | 2019-08-23T20:46:08 | Main.java | #include<iostream>
using namespace std;
int main(){
int a;
string s;
cin >> a >> s;
if(a>=3200) cout << s << endl;
else cout << "red" << endl;
} | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
^
Main.java:8: error: not a statement
cin >> a >> s;
^
Main.java:9: error: not a statement
if(a>=3200) cout << s << endl;
^
Mai... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u874282093|p02933|0 | u874282093|p02933|0 | codenet | Compile Error | 160 | |
v2_s967199718 | s967199718 | s967199718 | p02933 | p02933 | u878825127 | u878825127 | 1,566,204,303 | 2019-08-19T08:45:03 | Main.java | class Test{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.nextLine();
if(a>=3200){
System.out.println(s);
}
else{
System.out.println('red');
}
}
} | Main.java:12: error: unclosed character literal
System.out.println('red');
^
Main.java:12: error: unclosed character literal
System.out.println('red');
^
Main.java:12: error: not a statement
System.out.println('red');
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u878825127|p02933|0 | u878825127|p02933|0 | codenet | Compile Error | 306 | |
v2_s806311375 | s806311375 | s806311375 | p02933 | p02933 | u878825127 | u878825127 | 1,566,204,350 | 2019-08-19T08:45:50 | Main.java | class Test{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.nextLine();
if(a>=3200){
System.out.println(s);
}
else{
System.out.println("red");
}
}
}
| Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Test
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Test
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u878825127|p02933|0 | u878825127|p02933|0 | codenet | Compile Error | 307 | |
v2_s137291616 | s137291616 | s137291616 | p02933 | p02933 | u878825127 | u878825127 | 1,566,205,056 | 2019-08-19T08:57:36 | Main.java | import java.util.*;
import java.io.*;
class Test{
public static void main(String [] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
String s = br.readLine();
if(a<3200){
System.out.println(... | Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
int a = Integer.parseInt(br.readLine());
^
Main.java:12: error: unreported exception IOException; must be caught or declared to be thrown
String s = br.readLine();
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u878825127|p02933|0 | u878825127|p02933|0 | codenet | Compile Error | 404 | |
v2_s768515980 | s768515980 | s768515980 | p02933 | p02933 | u881485485 | u881485485 | 1,566,599,294 | 2019-08-23T22:28:14 | Main.java | java.util.*;
class solution {
public static void main(String[] args){
Sacnner sc = new Scanner(System.in);
int a= sc.nextInt();
if(a>3200 && a<3200)
System.out.println("red");
if(a==3200)
System.out.println("pink");
}
} | Main.java:1: error: class, interface, enum, or record expected
java.util.*;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u881485485|p02933|0 | u881485485|p02933|0 | codenet | Compile Error | 275 | |
v2_s539522898 | s539522898 | s539522898 | p02933 | p02933 | u881485485 | u881485485 | 1,566,599,400 | 2019-08-23T22:30:00 | Main.java |
import java.util.*;
import java.lang.*;
import java.io.*;
class solution {
public static void main(String[] args){
Sacnner sc = new Scanner(System.in);
int a= sc.nextInt();
if(a>3200 && a<3200)
System.out.println("red");
if(a==3200)
System.out.println("pink");
}
... | Main.java:9: error: cannot find symbol
Sacnner sc = new Scanner(System.in);
^
symbol: class Sacnner
location: class solution
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u881485485|p02933|0 | u881485485|p02933|0 | codenet | Compile Error | 322 | |
v2_s928912728 | s928912728 | s928912728 | p02933 | p02933 | u881485485 | u881485485 | 1,566,599,700 | 2019-08-23T22:35:00 | Main.java | import java.util.*;
import java.lang.*;
import java.io.*;
class solution {
public static void main(String[] args){
Sacnner sc = new Scanner(System.in);
int a= sc.nextInt();
String s = sc.next();
if(a<3200)
System.out.println("re... | Main.java:8: error: cannot find symbol
Sacnner sc = new Scanner(System.in);
^
symbol: class Sacnner
location: class solution
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u881485485|p02933|0 | u881485485|p02933|0 | codenet | Compile Error | 394 | |
v2_s507408029 | s507408029 | s507408029 | p02933 | p02933 | u893878126 | u893878126 | 1,566,522,864 | 2019-08-23T01:14:24 | Main.java | if (a < 3200) {
System.out.println("red");
} else {
System.out.println(a);
System.out.println("pink");
} | Main.java:1: error: class, interface, enum, or record expected
if (a < 3200) {
^
Main.java:3: error: class, interface, enum, or record expected
} else {
^
Main.java:5: error: class, interface, enum, or record expected
System.out.println("pink");
^
Main.java:6: error: class, interface, enum, or record expected
}
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u893878126|p02933|0 | u893878126|p02933|0 | codenet | Compile Error | 111 | |
v2_s382558449 | s382558449 | s382558449 | p02933 | p02933 | u893878126 | u893878126 | 1,566,523,079 | 2019-08-23T01:17:59 | Main.java | public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
String s = scan.next();
if (a < 3200) {
System.out.println("red");
} else {
System.out.println(a);
System.out.println("pink");
}
} | 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 | u893878126|p02933|0 | u893878126|p02933|0 | codenet | Compile Error | 262 | |
v2_s704501304 | s704501304 | s704501304 | p02933 | p02933 | u893878126 | u893878126 | 1,566,523,441 | 2019-08-23T01:24:01 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = scan.nextInt();
String s = scan.next();
if (a < 3200) {
System.out.println("red");
} else {
System.out.println(a);
System.out.println("pink");
}
}
} | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find s... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u893878126|p02933|0 | u893878126|p02933|0 | codenet | Compile Error | 311 | |
v2_s898766275 | s898766275 | s898766275 | p02933 | p02933 | u934782869 | u934782869 | 1,592,779,411 | 2020-06-21T22:43:31 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
String s = sc.next();
if(a >= 3200) System.out.println(s);
else System.out.println("red");
}
} | 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 | u934782869|p02933|0 | u934782869|p02933|0 | codenet | Compile Error | 262 | |
v2_s755682525 | s755682525 | s755682525 | p02933 | p02933 | u990037841 | u990037841 | 1,585,772,860 | 2020-04-01T20:27:40 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
string s = sc.next();
if(a >= 3200){
System.out.println(s);
} else {
System.out.println("red");
}... | Main.java:8: error: cannot find symbol
string s = sc.next();
^
symbol: class string
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u990037841|p02933|0 | u990037841|p02933|0 | codenet | Compile Error | 328 | |
v2_s456367187 | s456367187 | s456367187 | p02934 | p02934 | u006883624 | u006883624 | 1,566,177,423 | 2019-08-19T01:17:03 | Main.java | n=int(input())
a=[int(v) for v in input().split(' ')]
sum =0
for v in a:
sum+=1/v
print("%f",1/sum)
| Main.java:1: error: class, interface, enum, or record expected
n=int(input())
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u006883624|p02934|0 | u006883624|p02934|0 | codenet | Compile Error | 104 | |
v2_s936229103 | s936229103 | s936229103 | p02934 | p02934 | u010824282 | u010824282 | 1,566,246,219 | 2019-08-19T20:23:39 | Main.java | import static org.junit.jupiter.api.Assertions.assertEquals;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.junit.jupiter.api.Test;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in))... | Main.java:1: error: package org.junit.jupiter.api does not exist
import static org.junit.jupiter.api.Assertions.assertEquals;
^
Main.java:1: error: static import only from classes and interfaces
import static org.junit.jupiter.api.Assertions.assertEquals;
^
Main.java:8: error: package... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u010824282|p02934|1 | u010824282|p02934|0 | codenet | Compile Error | 1,671 | |
v2_s683153019 | s683153019 | s683153019 | p02934 | p02934 | u033645522 | u033645522 | 1,568,142,060 | 2019-09-10T19:01:00 | Main.java | import jav.util.*;
class Main{
public static void main(String args[]){
Scanner sc =new Scanner(System.in);
int n= sc.nextInt();
int a[]= new int[n];
double sum=0;
for(int i=0;i<n;i++){
a[i]=sc.nextInt();
sum+=1/a[i];
}
System.out.println(1/sum);
}
}
| Main.java:1: error: package jav.util does not exist
import jav.util.*;
^
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);
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u033645522|p02934|0 | u033645522|p02934|0 | codenet | Compile Error | 298 | |
v2_s515639600 | s515639600 | s515639600 | p02934 | p02934 | u060569392 | u060569392 | 1,569,614,639 | 2019-09-27T20:03:59 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a[] = new int[n];
for(int i=0; i<n; i++) {
a[i]=sc.nextInt();
}
... | Main.java:19: error: ';' expected
System.out.println( (double) 1 / answer )
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u060569392|p02934|0 | u060569392|p02934|0 | codenet | Compile Error | 500 | |
v2_s779750513 | s779750513 | s779750513 | p02934 | p02934 | u140978645 | u140978645 | 1,566,846,815 | 2019-08-26T19:13:35 | Main.java | import java.io.*;
import java.util.*;
import java.lang.*;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
double S=0 ;
double[] A = new double[N];
for(int i = 0;i<N;i++){
A[i] = scan.nextDouble();
A[i] =1/A[i];
... | Main.java:19: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u140978645|p02934|0 | u140978645|p02934|0 | codenet | Compile Error | 371 | |
v2_s324174147 | s324174147 | s324174147 | p02934 | p02934 | u140978645 | u140978645 | 1,566,846,942 | 2019-08-26T19:15:42 | Main.java | import java.io.*;
import java.util.*;
import java.lang.*;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
double S = 0 ;
double[] A = new double[N];
for(int i = 0;i<N;i++){
A[i] = scan.nextDouble();
A[i] =1/A[i];
... | Main.java:17: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u140978645|p02934|0 | u140978645|p02934|0 | codenet | Compile Error | 369 | |
v2_s182201179 | s182201179 | s182201179 | p02934 | p02934 | u185607903 | u185607903 | 1,592,522,935 | 2020-06-18T23:28:55 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[]args){
Scanner scan = new Scanner(System.in);
int c = scan.nextInt();
double ans = 0;
for(int i=0;i<c;c++){
double t = scan.nextInt();
ans += 1.0/t;
}
System.out.println(1.0/t);
}
} | Main.java:13: error: cannot find symbol
System.out.println(1.0/t);
^
symbol: variable t
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u185607903|p02934|0 | u185607903|p02934|0 | codenet | Compile Error | 308 | |
v2_s005919263 | s005919263 | s005919263 | p02934 | p02934 | u185607903 | u185607903 | 1,592,523,275 | 2020-06-18T23:34:35 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[]args){
Scanner scan = new Scanner(System.in);
double ans = 0;
for(int i=0;i<c;i++){
double t = (double) scan.nextInt();
ans += 1.0/t;
}
System.out.println(1.0/ans);
}
} | Main.java:8: error: cannot find symbol
for(int i=0;i<c;i++){
^
symbol: variable c
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u185607903|p02934|0 | u185607903|p02934|0 | codenet | Compile Error | 288 | |
v2_s351444444 | s351444444 | s351444444 | p02934 | p02934 | u196501792 | u196501792 | 1,566,177,673 | 2019-08-19T01:21:13 | Main.java | import java.util.*;
import java.io.*;
public class Main
{
public static void main(String[] args)throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int size = Integer.parseInt(br.readLine);
int[] arr = new int[size];
double sum=0.0;
StringTo... | Main.java:9: error: cannot find symbol
int size = Integer.parseInt(br.readLine);
^
symbol: variable readLine
location: variable br of type BufferedReader
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u196501792|p02934|0 | u196501792|p02934|0 | codenet | Compile Error | 665 | |
v2_s283853228 | s283853228 | s283853228 | p02934 | p02934 | u250483945 | u250483945 | 1,568,996,650 | 2019-09-20T16:24:10 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long[] a = new long[n];
for(int i = 0; i < n; i++){
a[i] = sc.nextLong();
}
long deno = 1;
for(long in: a) deno = lcm(in, deno);
long num = 0
for(long in: a) num += ... | Main.java:14: error: ';' expected
long num = 0
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u250483945|p02934|0 | u250483945|p02934|0 | codenet | Compile Error | 598 | |
v2_s858752692 | s858752692 | s858752692 | p02934 | p02934 | u276492340 | u276492340 | 1,566,491,062 | 2019-08-22T16:24:22 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int A = sc.nextInt();
int[] a = new int[A];
int smax = 1000;
int imax = Collections.max(a);
int ans;
for(int i = 0; i <a.length; i++){
ans = imax / (N +... | Main.java:18: error: <identifier> expected
System.out.print(ans);
^
Main.java:18: error: <identifier> expected
System.out.print(ans);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u276492340|p02934|0 | u276492340|p02934|0 | codenet | Compile Error | 363 | |
v2_s192117017 | s192117017 | s192117017 | p02934 | p02934 | u276492340 | u276492340 | 1,566,491,553 | 2019-08-22T16:32:33 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double A = 0;
for(int i = 0; i <N; i++){
A += N.nextDouble();
}
}
System.out.print(1/A);
}
| Main.java:13: error: <identifier> expected
System.out.print(1/A);
^
Main.java:13: error: illegal start of type
System.out.print(1/A);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u276492340|p02934|0 | u276492340|p02934|0 | codenet | Compile Error | 252 | |
v2_s017819812 | s017819812 | s017819812 | p02934 | p02934 | u276492340 | u276492340 | 1,566,491,718 | 2019-08-22T16:35:18 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
double A = 0;
for(int i = 0; i <N; i++){
A+=1/N.nextDouble();
}
}
System.out.print(1/A);
}
| Main.java:13: error: <identifier> expected
System.out.print(1/A);
^
Main.java:13: error: illegal start of type
System.out.print(1/A);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u276492340|p02934|0 | u276492340|p02934|0 | codenet | Compile Error | 254 | |
v2_s430818111 | s430818111 | s430818111 | p02934 | p02934 | u276492340 | u276492340 | 1,566,491,913 | 2019-08-22T16:38:33 | 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();
double A = 0;
for(int i = 0; i <N; i++){
A += 1/sc.nextDouble();
}
}
System.out.print(1/A);
}
| Main.java:13: error: <identifier> expected
System.out.print(1/A);
^
Main.java:13: error: illegal start of type
System.out.print(1/A);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u276492340|p02934|0 | u276492340|p02934|0 | codenet | Compile Error | 263 | |
v2_s475706047 | s475706047 | s475706047 | p02934 | p02934 | u356331749 | u356331749 | 1,567,370,147 | 2019-09-01T20:35:47 | Main.java | import java.util.*;
import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st;
int n = Integer.parseInt(st.nextToken());
st = new StringTokenizer(br.readLine());
int a[... | Main.java:9: error: variable st might not have been initialized
int n = Integer.parseInt(st.nextToken());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u356331749|p02934|0 | u356331749|p02934|0 | codenet | Compile Error | 809 | |
v2_s403265655 | s403265655 | s403265655 | p02934 | p02934 | u480938688 | u480938688 | 1,566,180,456 | 2019-08-19T02:07:36 | Main.java | import java.util.*;
public class Main {
public static void main (String[]args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int cnt = 0;
List <Integer> AList = new ArrayList<Integer>();
// 入力数に従って標準入力
while (... | Main.java:19: error: cannot find symbol
Alist.add(A);
^
symbol: variable Alist
location: class Main
Main.java:25: error: unexpected type
List <double> DList = new ArrayList<double>();
^
required: reference
found: double
Main.java:25: error: unexpected type... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u480938688|p02934|0 | u480938688|p02934|0 | codenet | Compile Error | 982 | |
v2_s929438608 | s929438608 | s929438608 | p02934 | p02934 | u480938688 | u480938688 | 1,566,182,450 | 2019-08-19T02:40:50 | Main.java |
ソースコード
Copy
Copy
import java.util.*;
public class Main {
public static void main (String[]args){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int cnt = 0;
List <Integer> AList = new ArrayList<Integer>();
// 入力数に... | Main.java:2: error: class, interface, enum, or record expected
??????
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u480938688|p02934|0 | u480938688|p02934|0 | codenet | Compile Error | 1,052 | |
v2_s109869652 | s109869652 | s109869652 | p02934 | p02934 | u505216017 | u505216017 | 1,567,320,461 | 2019-09-01T06:47:41 | Main.java | import java.util*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int N = scan.nextInt();
double A = 0;
double B = 1;
for (int i=0;i<N;i++){
double n = scan.nextDouble();
A+=n;
B*=n;
}
System.out.println(B/A);
}
} | Main.java:1: error: ';' expected
import java.util*;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u505216017|p02934|0 | u505216017|p02934|0 | codenet | Compile Error | 314 | |
v2_s062822788 | s062822788 | s062822788 | p02934 | p02934 | u517779586 | u517779586 | 1,566,602,912 | 2019-08-23T23:28:32 | Main.java | class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
double num = 0;
for(int i = 0; i < a;i++) {
int b = sc.nextInt();
num += 1 /b;
}
num = 1.0 / num;
System.out.println(num);
}
}
| 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 | u517779586|p02934|0 | u517779586|p02934|0 | codenet | Compile Error | 276 | |
v2_s910461697 | s910461697 | s910461697 | p02934 | p02934 | u628934833 | u628934833 | 1,566,876,268 | 2019-08-27T03:24:28 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int N = Integer.parseInt(br.readLine());
i... | Main.java:16: error: cannot find symbol
save = save*v/gcd(save,v);
^
symbol: method gcd(int,int)
location: class Main
Main.java:21: error: cannot find symbol
for (int j=0; i<N ; j++) {
^
symbol: variable i
location: class Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u628934833|p02934|0 | u628934833|p02934|0 | codenet | Compile Error | 953 | |
v2_s926676786 | s926676786 | s926676786 | p02934 | p02934 | u628934833 | u628934833 | 1,566,876,424 | 2019-08-27T03:27:04 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int N = Integer.parseInt(br.readLine());
i... | Main.java:22: error: cannot find symbol
donomi += save/box[j];
^
symbol: variable donomi
location: class Main
Main.java:32: error: cannot find symbol
System.out.println(result);
^
symbol: variable result
location: class Main
Main.java:36: error:... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u628934833|p02934|0 | u628934833|p02934|0 | codenet | Compile Error | 1,169 | |
v2_s943909317 | s943909317 | s943909317 | p02934 | p02934 | u628934833 | u628934833 | 1,566,876,568 | 2019-08-27T03:29:28 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
public class Main {
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int N = Integer.parseInt(... | Main.java:33: error: cannot find symbol
System.out.println(result);
^
symbol: variable result
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u628934833|p02934|0 | u628934833|p02934|0 | codenet | Compile Error | 1,196 | |
v2_s813270004 | s813270004 | s813270004 | p02934 | p02934 | u628934833 | u628934833 | 1,566,876,627 | 2019-08-27T03:30:27 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
public class Main {
public static void main(String args[]){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
float result;
try {
int... | Main.java:34: error: variable result might not have been initialized
System.out.println(result);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u628934833|p02934|0 | u628934833|p02934|0 | codenet | Compile Error | 1,214 | |
v2_s078970563 | s078970563 | s078970563 | p02934 | p02934 | u633565318 | u633565318 | 1,568,539,280 | 2019-09-15T09:21:20 | Main.java | 2
10 30 | Main.java:1: error: class, interface, enum, or record expected
2
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u633565318|p02934|0 | u633565318|p02934|0 | codenet | Compile Error | 7 | |
v2_s399363359 | s399363359 | s399363359 | p02934 | p02934 | u683530136 | u683530136 | 1,566,178,246 | 2019-08-19T01:30:46 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int b;
double result = 0.0;
for (i = 0; i < a; i++){
b = sc.nextInt();
sum=sum+1.0/Math.sqrt(b);
}
}
}
| Main.java:9: error: cannot find symbol
for (i = 0; i < a; i++){
^
symbol: variable i
location: class Main
Main.java:9: error: cannot find symbol
for (i = 0; i < a; i++){
^
symbol: variable i
location: class Main
Main.java:9: error: cannot find symbol
for (i = 0; i < a; i++){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u683530136|p02934|0 | u683530136|p02934|0 | codenet | Compile Error | 298 | |
v2_s912768645 | s912768645 | s912768645 | p02934 | p02934 | u689082549 | u689082549 | 1,566,177,242 | 2019-08-19T01:14:02 | Main.java | import java.io.*;
import java.util.StringTokenizer;
public final class Main{
public static void main(String[] args){
FastScanner stdIn = new FastScanner(System.in);
long n = stdIn.nextInt();
long[] a = new long[(int)n];
for(int i=0; i<(int)n; i++){
a[i] = stdIn.... | Main.java:23: error: ')' or ',' expected
System.out.println(((double)up/down);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u689082549|p02934|0 | u689082549|p02934|0 | codenet | Compile Error | 1,660 | |
v2_s159648635 | s159648635 | s159648635 | p02934 | p02934 | u708776962 | u708776962 | 1,566,509,147 | 2019-08-22T21:25:47 | Main.java | import java.util.*;
import java.io.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
float sum = 0.0;
for(int i=0;i<n;i++){
float x = sc.nextFloat();
sum += (1/x);
... | Main.java:8: error: incompatible types: possible lossy conversion from double to float
float sum = 0.0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u708776962|p02934|0 | u708776962|p02934|0 | codenet | Compile Error | 379 | |
v2_s492061559 | s492061559 | s492061559 | p02934 | p02934 | u760718569 | u760718569 | 1,573,193,870 | 2019-11-08T06:17:50 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int[] b = new int[b];
double c = 0;
for(int i = 0;i < b.length;i++){
b[i] = sc.nextInt();
}
for(int j = 0;j < b.length;j++){
c += 1 ... | Main.java:6: error: incompatible types: int[] cannot be converted to int
int[] b = new int[b];
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u760718569|p02934|0 | u760718569|p02934|0 | codenet | Compile Error | 384 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.