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_s595134270 | s595134270 | s595134270 | p02705 | p02705 | u387608414 | u387608414 | 1,587,344,754 | 2020-04-20T01:05:54 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.text.DecimalFormat;
public class Main {
public static void main(String[] args) throws IOException {
FastReader in = new FastReader(System.in);
StringBuilder sb = new StringBuilder();
DecimalFormat df=new DecimalFormat("0.0... | Main.java:7: error: cannot find symbol
FastReader in = new FastReader(System.in);
^
symbol: class FastReader
location: class Main
Main.java:7: error: cannot find symbol
FastReader in = new FastReader(System.in);
^
symbol: class FastReader
location: class M... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u387608414|p02705|0 | u387608414|p02705|0 | codenet | Compile Error | 441 | |
v2_s152485129 | s152485129 | s152485129 | p02705 | p02705 | u407795516 | u407795516 | 1,588,210,740 | 2020-04-30T01:39:00 | Main.java | import java.util.Scanner;
class main{
public static void main(String[] args){
Scanner scanner = scanner(System.in);
int R = scanner.nextInt;
double X = 3.14159265*R;
System.out.println(X);
}
} | Main.java:6: error: cannot find symbol
Scanner scanner = scanner(System.in);
^
symbol: method scanner(InputStream)
location: class main
Main.java:7: error: cannot find symbol
int R = scanner.nextInt;
^
symbol: variable nextInt
location: variable scanner of ty... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u407795516|p02705|0 | u407795516|p02705|0 | codenet | Compile Error | 218 | |
v2_s415041019 | s415041019 | s415041019 | p02705 | p02705 | u407795516 | u407795516 | 1,588,210,836 | 2020-04-30T01:40:36 | Main.java | import java.util.Scanner;
class main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int R = scanner.nextInt;
double X = 3.14159265*R;
System.out.println(X);
}
}
| Main.java:7: error: cannot find symbol
int R = scanner.nextInt;
^
symbol: variable nextInt
location: variable scanner of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u407795516|p02705|0 | u407795516|p02705|0 | codenet | Compile Error | 223 | |
v2_s351337425 | s351337425 | s351337425 | p02705 | p02705 | u418807893 | u418807893 | 1,587,831,728 | 2020-04-25T16:22:08 | Solution.java |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int radius = sc.nextInt(... | Solution.java:19: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418807893|p02705|0 | u418807893|p02705|0 | codenet | Compile Error | 381 | |
v2_s773139021 | s773139021 | s773139021 | p02705 | p02705 | u418807893 | u418807893 | 1,587,831,808 | 2020-04-25T16:23:28 | Solution.java | //keshavs first usaco solve :)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
Scanner sc = new Scanner(new File("mix... | Solution.java:15: error: cannot find symbol
System.our.println(r*Math.PI*2);
^
symbol: variable our
location: class System
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418807893|p02705|0 | u418807893|p02705|0 | codenet | Compile Error | 409 | |
v2_s124538287 | s124538287 | s124538287 | p02705 | p02705 | u418807893 | u418807893 | 1,587,831,900 | 2020-04-25T16:25:00 | Solution.java | //keshavs first usaco solve :)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution.java {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
Scanner sc = new Scanner(Syst... | Solution.java:8: error: '{' expected
public class Solution.java {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418807893|p02705|0 | u418807893|p02705|0 | codenet | Compile Error | 405 | |
v2_s918460578 | s918460578 | s918460578 | p02705 | p02705 | u418807893 | u418807893 | 1,587,831,983 | 2020-04-25T16:26:23 | Solution.java | //keshavs first usaco solve :)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Solution.java {
public static void main(String[] args) throws FileNotFoundException {
// TODO Auto-generated method stub
Scanner sc = new Scanner(Syst... | Solution.java:8: error: '{' expected
public class Solution.java {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418807893|p02705|0 | u418807893|p02705|0 | codenet | Compile Error | 405 | |
v2_s963141482 | s963141482 | s963141482 | p02705 | p02705 | u425518363 | u425518363 | 1,588,214,891 | 2020-04-30T02:48:11 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in):
double R = sc.nextInt();
double l = 2*R*3.14;
System.out.println(l);
}
} | Main.java:4: error: ';' expected
Scanner sc = new Scanner(System.in):
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u425518363|p02705|0 | u425518363|p02705|0 | codenet | Compile Error | 256 | |
v2_s605429870 | s605429870 | s605429870 | p02705 | p02705 | u427649652 | u427649652 | 1,594,607,503 | 2020-07-13T02:31:43 | Main.java | public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double r = scan.nextInt();
System.out.println(r*2*3.14);
}
} | Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u427649652|p02705|0 | u427649652|p02705|0 | codenet | Compile Error | 167 | |
v2_s645538353 | s645538353 | s645538353 | p02705 | p02705 | u433339980 | u433339980 | 1,587,493,826 | 2020-04-21T18:30:26 | circle.java | #import java.util.*;
public static class circle
{
public static void main(String args[])
{
Scanner sc= new Scanner(System.in);
int r = sc.nextInt();
System.out.println(r*r*3.14);
}
} | circle.java:1: error: illegal character: '#'
#import java.util.*;
^
circle.java:1: error: class, interface, enum, or record expected
#import java.util.*;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u433339980|p02705|0 | u433339980|p02705|0 | codenet | Compile Error | 182 | |
v2_s189646725 | s189646725 | s189646725 | p02705 | p02705 | u462253630 | u462253630 | 1,587,344,899 | 2020-04-20T01:08:19 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double r = sc.next();
System.out.println(2 * r * 3.141592);
}
}
| Main.java:6: error: incompatible types: String cannot be converted to double
double r = sc.next();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u462253630|p02705|0 | u462253630|p02705|0 | codenet | Compile Error | 238 | |
v2_s948008136 | s948008136 | s948008136 | p02705 | p02705 | u478378139 | u478378139 | 1,587,948,530 | 2020-04-27T00:48:50 | Main.java | import java.util.Scanner;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
double c =Math.PI*2*i;
System.out.println(c);
}
| Main.java:5: 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 | u478378139|p02705|0 | u478378139|p02705|0 | codenet | Compile Error | 219 | |
v2_s084395010 | s084395010 | s084395010 | p02705 | p02705 | u482226328 | u482226328 | 1,587,344,822 | 2020-04-20T01:07:02 | Main.java |
}
return comb[k];
}
long repeatedCombination(int n, int k) {
return combination(n + k - 1, k);
}
}
private static class ModularCombination {
private final long fact[];
private final long mod;
private final Modular modular;
public ModularCombination(int size, long m... | Main.java:2: error: class, interface, enum, or record expected
}
^
Main.java:4: error: class, interface, enum, or record expected
}
^
Main.java:8: error: class, interface, enum, or record expected
}
^
Main.java:147: error: class, interface, enum, or record expected
}
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u482226328|p02705|0 | u482226328|p02705|0 | codenet | Compile Error | 3,148 | |
v2_s272067283 | s272067283 | s272067283 | p02705 | p02705 | u486466217 | u486466217 | 1,587,344,587 | 2020-04-20T01:03:07 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// スペース区切りの整数の入力
int b = sc.nextInt();
System.out.println(b*2*math.PI);
}
} | Main.java:7: error: cannot find symbol
System.out.println(b*2*math.PI);
^
symbol: variable math
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u486466217|p02705|0 | u486466217|p02705|0 | codenet | Compile Error | 232 | |
v2_s312796207 | s312796207 | s312796207 | p02705 | p02705 | u496290914 | u496290914 | 1,587,433,569 | 2020-04-21T01:46:09 | Main.java | import java.util.Scanner;
class Sample3_2 {
public static void main(String[] args ) {
Scanner scn = new Scanner(System.in);
int num = sc.nextInt();
System.out.println(num * num * 3.14);
}
} | Main.java:6: error: cannot find symbol
int num = sc.nextInt();
^
symbol: variable sc
location: class Sample3_2
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u496290914|p02705|0 | u496290914|p02705|0 | codenet | Compile Error | 203 | |
v2_s779050885 | s779050885 | s779050885 | p02705 | p02705 | u539465520 | u539465520 | 1,587,672,525 | 2020-04-23T20:08:45 | Main.java | public class Main {
public static void main(String[] args) throws Exception {
System.out.println("Hello Java");
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
scan.close();
System.out.println( num * 2 * Math.PI);
}
} | Main.java:4: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u539465520|p02705|0 | u539465520|p02705|0 | codenet | Compile Error | 270 | |
v2_s375844253 | s375844253 | s375844253 | p02705 | p02705 | u551325550 | u551325550 | 1,588,732,378 | 2020-05-06T02:32:58 | Main.java | import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
System.out.pritnln(2*r*3.14);
}
}
| Main.java:6: error: cannot find symbol
System.out.pritnln(2*r*3.14);
^
symbol: method pritnln(double)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u551325550|p02705|0 | u551325550|p02705|0 | codenet | Compile Error | 210 | |
v2_s945354481 | s945354481 | s945354481 | p02705 | p02705 | u566706292 | u566706292 | 1,587,348,582 | 2020-04-20T02:09:42 | Main.java | class InputReader {
BufferedReader buf;
StringTokenizer tok;
public InputReader() {
buf = new BufferedReader(new InputStreamReader(System.in));
// try {
// Path currentRelativePath = Paths.get("");
// String s = currentRelativePath.toAbsolutePath().toString();
// ... | Main.java:2: error: cannot find symbol
BufferedReader buf;
^
symbol: class BufferedReader
location: class InputReader
Main.java:3: error: cannot find symbol
StringTokenizer tok;
^
symbol: class StringTokenizer
location: class InputReader
Main.java:46: error: cannot find symbol
public Big... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u566706292|p02705|0 | u566706292|p02705|0 | codenet | Compile Error | 1,697 | |
v2_s171382153 | s171382153 | s171382153 | p02705 | p02705 | u566706292 | u566706292 | 1,587,348,659 | 2020-04-20T02:10:59 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.StringTokenizer;
class InputReader {
BufferedReader buf;
StringTokenizer tok;
public InputReader() {
buf =... | Main.java:68: error: cannot find symbol
out.println(2 * Math.pi * n);
^
symbol: variable pi
location: class Math
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u566706292|p02705|0 | u566706292|p02705|0 | codenet | Compile Error | 1,915 | |
v2_s305113059 | s305113059 | s305113059 | p02705 | p02705 | u570687304 | u570687304 | 1,587,445,035 | 2020-04-21T04:57:15 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
float p = 3/1415926535897932384626433832795;
System.out.println(2*n*p);
scanner.close();}} | Main.java:6: error: integer number too large
float p = 3/1415926535897932384626433832795;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u570687304|p02705|0 | u570687304|p02705|0 | codenet | Compile Error | 255 | |
v2_s201170115 | s201170115 | s201170115 | p02705 | p02705 | u575246950 | u575246950 | 1,587,586,640 | 2020-04-22T20:17:20 | Main.java | impot java.uti.Scanner;
class A {
public static void main(String args[]) {
Scanner in = new Scanner(System.in);
int r = in.nextInt();
double ans;
ans = Math.PI * r * r;
System.out.println(ans);
}
} | Main.java:1: error: class, interface, enum, or record expected
impot java.uti.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u575246950|p02705|0 | u575246950|p02705|0 | codenet | Compile Error | 218 | |
v2_s144806399 | s144806399 | s144806399 | p02705 | p02705 | u575514036 | u575514036 | 1,587,495,935 | 2020-04-21T19:05:35 | Main.java | package common;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
double R;
double area;
Scanner scanner = new Scanner(System.in);
System.out.println("半径 ");
R = scanner.nextDouble();
area = R * 3.14 * 2;
System.out.println("周長 " + area);
}
| Main.java:17: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u575514036|p02705|0 | u575514036|p02705|0 | codenet | Compile Error | 313 | |
v2_s194154957 | s194154957 | s194154957 | p02705 | p02705 | u590926526 | u590926526 | 1,587,948,995 | 2020-04-27T00:56:35 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public static void main(String[] args){
try {
BufferedReader bfreader = new BufferedReader(new InputStreamReader(System.in));
String input = bfreader.readLine();
int radius = In... | Main.java:6: 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 | u590926526|p02705|0 | u590926526|p02705|0 | codenet | Compile Error | 505 | |
v2_s125572122 | s125572122 | s125572122 | p02705 | p02705 | u591778105 | u591778105 | 1,587,344,726 | 2020-04-20T01:05:26 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(Math.PI*R*R);
}
} | Main.java:6: error: cannot find symbol
System.out.println(Math.PI*R*R);
^
symbol: variable R
location: class Main
Main.java:6: error: cannot find symbol
System.out.println(Math.PI*R*R);
^
symbol: variable R
location: class M... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u591778105|p02705|0 | u591778105|p02705|0 | codenet | Compile Error | 188 | |
v2_s625364470 | s625364470 | s625364470 | p02705 | p02705 | u599968009 | u599968009 | 1,587,344,871 | 2020-04-20T01:07:51 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
System.out.println(r*Math.PI);
}
} | Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u599968009|p02705|0 | u599968009|p02705|0 | codenet | Compile Error | 173 | |
v2_s245838212 | s245838212 | s245838212 | p02705 | p02705 | u603599566 | u603599566 | 1,587,344,987 | 2020-04-20T01:09:47 | Main.java | int R = 0;
int sum = 0;
Scanner scan = new Scanner(System.in);
R = scan.nextInt();
sum = R * 2 * 3.141592;
System.out.println(sum);
scan.close();
| Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int R = 0;
^
(use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
R = scan.nextInt();
^
Main.java:5: error: class, interface, enum, or record expected
sum = R *... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u603599566|p02705|0 | u603599566|p02705|0 | codenet | Compile Error | 162 | |
v2_s454739755 | s454739755 | s454739755 | p02705 | p02705 | u603599566 | u603599566 | 1,587,345,045 | 2020-04-20T01:10:45 | InputSample.java | import java.util.Scanner;
public class InputSample {
public static void main(String[] args) {
int R = 0;
int sum = 0;
Scanner scan = new Scanner(System.in);
R = scan.nextInt();
sum = R * 2 * 3.141592;
System.out.println(sum);
scan.close();
}
} | InputSample.java:9: error: incompatible types: possible lossy conversion from double to int
sum = R * 2 * 3.141592;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u603599566|p02705|0 | u603599566|p02705|0 | codenet | Compile Error | 309 | |
v2_s913820688 | s913820688 | s913820688 | p02705 | p02705 | u603599566 | u603599566 | 1,587,345,128 | 2020-04-20T01:12:08 | Main.java | import java.util.Scanner;
public static void main(String[] args) {
int R = 0;
int sum = 0;
Scanner scan = new Scanner(System.in);
R = scan.nextInt();
sum = R * 2 * 3.141592;
System.out.println(sum);
scan.close();
}
| Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u603599566|p02705|0 | u603599566|p02705|0 | codenet | Compile Error | 281 | |
v2_s723994841 | s723994841 | s723994841 | p02705 | p02705 | u603599566 | u603599566 | 1,587,346,376 | 2020-04-20T01:32:56 | testA.java | import java.util.Scanner;
public class testA {
public static void main(String[] args) {
int R = 0;
int sum = 0;
Scanner scan = new Scanner(System.in);
R = scan.nextInt();
sum = R * 2 * 3.141592;
System.out.println(sum);
scan.close();
}
} | testA.java:9: error: incompatible types: possible lossy conversion from double to int
sum = R * 2 * 3.141592;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u603599566|p02705|0 | u603599566|p02705|0 | codenet | Compile Error | 303 | |
v2_s711133293 | s711133293 | s711133293 | p02705 | p02705 | u655325849 | u655325849 | 1,587,568,784 | 2020-04-22T15:19:44 | Main.java |
public class Main {
public static void main(String[] args) {
// write your code here
int R;
double L;
L=R*2*3.14;
System.out.println(L);
}
}
| Main.java:17: error: variable R might not have been initialized
L=R*2*3.14;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u655325849|p02705|0 | u655325849|p02705|0 | codenet | Compile Error | 205 | |
v2_s965281739 | s965281739 | s965281739 | p02705 | p02705 | u655325849 | u655325849 | 1,587,568,867 | 2020-04-22T15:21:07 | Main.java |
public class Main {
public static void main(String[] args) {
// write your code here
int R;
double L;
L=R*2*3.14;
System.out.println(L);
}
}
| Main.java:14: error: variable R might not have been initialized
L=R*2*3.14;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u655325849|p02705|0 | u655325849|p02705|0 | codenet | Compile Error | 200 | |
v2_s969992659 | s969992659 | s969992659 | p02705 | p02705 | u656198287 | u656198287 | 1,587,770,127 | 2020-04-24T23:15:27 | CirclePond.java | public class CirclePond {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scanner = new Scanner(System.in);
int r = scanner.nextInt();
int pi = 314159;
System.out.println((double)(2*r*pi) / 100000);
}
} | CirclePond.java:5: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class CirclePond
CirclePond.java:5: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class CirclePond
2 ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u656198287|p02705|0 | u656198287|p02705|0 | codenet | Compile Error | 259 | |
v2_s870778711 | s870778711 | s870778711 | p02705 | p02705 | u657818166 | u657818166 | 1,587,344,949 | 2020-04-20T01:09:09 | Main.java | class Main{
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println(2 * Integer.parseInt(bf.readLine()) * Math.PI);
}
} | Main.java:2: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class Main
Main.java:3: error: cannot find symbol
BufferedReader bf = new BufferedReader(new InputStreamReader(System.i... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657818166|p02705|0 | u657818166|p02705|0 | codenet | Compile Error | 238 | |
v2_s079594957 | s079594957 | s079594957 | p02705 | p02705 | u657818166 | u657818166 | 1,587,345,008 | 2020-04-20T01:10:08 | 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 bf = new BufferedReader(new InputStreamReader(System.in));
System.out.println(2 * Double.parseInt(bf.readLine()) * Math.PI... | Main.java:7: error: cannot find symbol
System.out.println(2 * Double.parseInt(bf.readLine()) * Math.PI);
^
symbol: method parseInt(String)
location: class Double
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u657818166|p02705|0 | u657818166|p02705|0 | codenet | Compile Error | 330 | |
v2_s335024831 | s335024831 | s335024831 | p02705 | p02705 | u664427626 | u664427626 | 1,587,497,969 | 2020-04-21T19:39:29 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner v = new Scanner(System.in);
int x = v.nextInt();
System.out.print(obseg(x));
}
public static int obseg(int x){
return 2*3.1415*x
}
} | Main.java:9: error: ';' expected
return 2*3.1415*x
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u664427626|p02705|0 | u664427626|p02705|0 | codenet | Compile Error | 255 | |
v2_s784423848 | s784423848 | s784423848 | p02705 | p02705 | u664427626 | u664427626 | 1,587,497,999 | 2020-04-21T19:39:59 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner v = new Scanner(System.in);
int x = v.nextInt();
System.out.print(obseg(x));
}
public static int obseg(int x){
return 2*3.1415*x;
}
}
| Main.java:9: error: incompatible types: possible lossy conversion from double to int
return 2*3.1415*x;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u664427626|p02705|0 | u664427626|p02705|0 | codenet | Compile Error | 255 | |
v2_s966125615 | s966125615 | s966125615 | p02705 | p02705 | u679888753 | u679888753 | 1,587,344,695 | 2020-04-20T01:04:55 | Sample.java | public class Sample {
/**
* @param args
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
// int b = sc.nextInt();
// String s = sc.next();
// if ((a * b) % 2 == 0)
// System.out.println("Even");
// else
/... | Sample.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Sample
Sample.java:7: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Sample
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u679888753|p02705|0 | u679888753|p02705|0 | codenet | Compile Error | 414 | |
v2_s340947211 | s340947211 | s340947211 | p02705 | p02705 | u680663416 | u680663416 | 1,587,345,278 | 2020-04-20T01:14:38 | CodeForces.java | public class CodeForces
{
public static void main(final String args[]) {
final Scanner s = new Scanner(System.in);
int r=s.nextInt();
double ans=3.14159265;
ans=ans*2.0;
System.out.println(ans*r);
}
} | CodeForces.java:4: error: cannot find symbol
final Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class CodeForces
CodeForces.java:4: error: cannot find symbol
final Scanner s = new Scanner(System.in);
^
symbol: class Scanner
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u680663416|p02705|0 | u680663416|p02705|0 | codenet | Compile Error | 249 | |
v2_s610321344 | s610321344 | s610321344 | p02705 | p02705 | u700932550 | u700932550 | 1,587,344,819 | 2020-04-20T01:06:59 | Main.java | import java.util.*;
class circlepond{
public static void main(String args[]){
Scanner in = new Scanner(System.in);
int r = in.nextInt();
System.out.println(2*3.14.r);
}
} | Main.java:6: error: double cannot be dereferenced
System.out.println(2*3.14.r);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u700932550|p02705|0 | u700932550|p02705|0 | codenet | Compile Error | 182 | |
v2_s546264623 | s546264623 | s546264623 | p02705 | p02705 | u710255953 | u710255953 | 1,588,234,764 | 2020-04-30T08:19:24 | A.java | import java.util.*;
public class A{
public static void main(string[] args){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
int r = 2*3.14*t;
System.out.println(r);
}}
| A.java:3: error: cannot find symbol
public static void main(string[] args){
^
symbol: class string
location: class A
A.java:6: error: incompatible types: possible lossy conversion from double to int
int r = 2*3.14*t;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u710255953|p02705|0 | u710255953|p02705|0 | codenet | Compile Error | 204 | |
v2_s213947759 | s213947759 | s213947759 | p02705 | p02705 | u726168593 | u726168593 | 1,587,714,554 | 2020-04-24T07:49:14 | Main.java | import java.io.*;
import java.util.*;
import java.lang.Math;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
System.out.println(+Math.PI*2*r)
}
} | Main.java:8: error: ';' expected
System.out.println(+Math.PI*2*r)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u726168593|p02705|0 | u726168593|p02705|0 | codenet | Compile Error | 237 | |
v2_s600824448 | s600824448 | s600824448 | p02705 | p02705 | u728468951 | u728468951 | 1,587,346,798 | 2020-04-20T01:39:58 | Main.java | public class Main {
2. public static void main(String[] args) {
3. int value = Integer.parseInt(readLine(255));
4. System.out.printf("%f",(2*Math.PI*value));
5. }
6.
7. public static String readLine(int maxLen){
8. int[] holder = new int[maxLen];
9. int counter =0, reader =1;
10. ... | Main.java:2: error: illegal start of type
2. public static void main(String[] args) {
^
Main.java:3: error: not a statement
3. int value = Integer.parseInt(readLine(255));
^
Main.java:3: error: ';' expected
3. int value = Integer.parseInt(readLine(255));
^
Main.java:4: error: not a statement
4. ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u728468951|p02705|0 | u728468951|p02705|0 | codenet | Compile Error | 742 | |
v2_s714230542 | s714230542 | s714230542 | p02705 | p02705 | u740989413 | u740989413 | 1,587,345,013 | 2020-04-20T01:10:13 | Circumference.java | import java.util.Scanner;
public class Circumference{
public static void main (String[] args) {
float R ;
System.out.println(2*pi*R);
}
} | Circumference.java:5: error: cannot find symbol
System.out.println(2*pi*R);
^
symbol: variable pi
location: class Circumference
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u740989413|p02705|0 | u740989413|p02705|0 | codenet | Compile Error | 137 | |
v2_s450153383 | s450153383 | s450153383 | p02705 | p02705 | u740989413 | u740989413 | 1,587,345,369 | 2020-04-20T01:16:09 | Circumference.java | import java.util.Scanner;
public class Circumference{
public satic void main(String[]args){
float R;
double circum;
Scanner scan = new Scanner(System.in);
System.out.println("Enter radius of the circle :");
R = scan.nextFloat();
circum = 2 * 3.14 * R;
System.out.println("\n Circumference of circle = " + circum... | Circumference.java:3: error: <identifier> expected
public satic void main(String[]args){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u740989413|p02705|0 | u740989413|p02705|0 | codenet | Compile Error | 327 | |
v2_s155815295 | s155815295 | s155815295 | p02705 | p02705 | u740989413 | u740989413 | 1,587,346,465 | 2020-04-20T01:34:25 | Circumference.java | import java.util.Scanner;
public class Circumference{
public static void main (String args[]);
Scanner sc = new Scanner (System.in);
int R = sc.nextInt();
Circumference = 2 * pi * R;
System.out.println (Circumference of circle);
}
}
| Circumference.java:6: error: <identifier> expected
Circumference = 2 * pi * R;
^
Circumference.java:7: error: <identifier> expected
System.out.println (Circumference of circle);
^
Circumference.java:7: error: ',', ')', or '[' expected
System.out.println (Circumference of circle);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u740989413|p02705|0 | u740989413|p02705|0 | codenet | Compile Error | 234 | |
v2_s951432554 | s951432554 | s951432554 | p02705 | p02705 | u748656314 | u748656314 | 1,587,350,874 | 2020-04-20T02:47:54 | Main.java | function main(input){
var R;
R = MATH.PI*input;
return R;
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
function main(input){
^
(use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
function main(input){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u748656314|p02705|0 | u748656314|p02705|0 | codenet | Compile Error | 66 | |
v2_s820998265 | s820998265 | s820998265 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,203 | 2020-04-21T16:40:03 | Main.java | return (r*3.14*2) | Main.java:1: error: class, interface, enum, or record expected
return (r*3.14*2)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 17 | |
v2_s440541006 | s440541006 | s440541006 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,277 | 2020-04-21T16:41:17 | Main.java | import java.util.*;
public class Main {// Main
public static void main(String[] args){
return(r*6.28)
}
} | Main.java:4: error: ';' expected
return(r*6.28)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 121 | |
v2_s160469448 | s160469448 | s160469448 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,316 | 2020-04-21T16:41:56 | Main.java | import java.util.*;
public class Main {// Main
public static void main(String[] args){
return (r*6.28);
}
} | Main.java:4: error: incompatible types: unexpected return value
return (r*6.28);
^
Main.java:4: error: cannot find symbol
return (r*6.28);
^
symbol: variable r
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 123 | |
v2_s640234562 | s640234562 | s640234562 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,581 | 2020-04-21T16:46:21 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
int a = input.nextInt();
return (a*6.28);
}
} | Main.java:7: error: incompatible types: unexpected return value
return (a*6.28);
^
Main.java:7: error: incompatible types: double cannot be converted to void
return (a*6.28);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 224 | |
v2_s776315760 | s776315760 | s776315760 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,618 | 2020-04-21T16:46:58 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
double a = input.nextInt();
return (a*6.28);
}
} | Main.java:7: error: incompatible types: unexpected return value
return (a*6.28);
^
Main.java:7: error: incompatible types: double cannot be converted to void
return (a*6.28);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 227 | |
v2_s026485458 | s026485458 | s026485458 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,658 | 2020-04-21T16:47:38 | Main.java | import java.util.Scanner;
class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
double a = input.nextInt();
a= a*6.28;
return (a);
}
} | Main.java:8: error: incompatible types: unexpected return value
return (a);
^
Main.java:8: error: incompatible types: double cannot be converted to void
return (a);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 239 | |
v2_s620737206 | s620737206 | s620737206 | p02705 | p02705 | u751604002 | u751604002 | 1,587,487,954 | 2020-04-21T16:52:34 | Main.java | import java.util.Scanner;
class Main {
public double Solution(double R) {
double a = R*6.28;
System.out.println(a);
}
} | Main.java:6: error: missing return statement
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u751604002|p02705|0 | u751604002|p02705|0 | codenet | Compile Error | 139 | |
v2_s567060726 | s567060726 | s567060726 | p02705 | p02705 | u753092134 | u753092134 | 1,587,347,169 | 2020-04-20T01:46:09 | Main.java | import java.util.*;
public class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
System.out.println(t*6.28318530717958623200)
}
}
| Main.java:7: error: ';' expected
System.out.println(t*6.28318530717958623200)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u753092134|p02705|0 | u753092134|p02705|0 | codenet | Compile Error | 218 | |
v2_s357797444 | s357797444 | s357797444 | p02705 | p02705 | u755665813 | u755665813 | 1,587,344,852 | 2020-04-20T01:07:32 | Main.java | public main(){
double R = 3;
double e = 3.1415;
double Answer = 2*e*R;
System.out.plintln(Answer);
} | Main.java:1: error: class, interface, enum, or record expected
public main(){
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
double e = 3.1415;
^
(use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
Syste... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u755665813|p02705|0 | u755665813|p02705|0 | codenet | Compile Error | 108 | |
v2_s415012016 | s415012016 | s415012016 | p02705 | p02705 | u755665813 | u755665813 | 1,587,345,322 | 2020-04-20T01:15:22 | Main.java | public void main(){
double R = 3;
double e = 3.1415;
double Answer = 2*e*R;
System.out.plintln(Answer);
} | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public void main(){
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u755665813|p02705|0 | u755665813|p02705|0 | codenet | Compile Error | 113 | |
v2_s673482967 | s673482967 | s673482967 | p02705 | p02705 | u756321407 | u756321407 | 1,587,345,625 | 2020-04-20T01:20:25 | Solution.java | import java.util.*;
public class Solution {
/**
* @param args the command line arguments
* @throws IOException
*/
static Scanner s=new Scanner(System.in);
public static void main(String[] args) throws IOException {
{
double r=s.nextDouble();
System.out.println("the circumference = "+ 2*3.14*r);
... | Solution.java:9: error: cannot find symbol
public static void main(String[] args) throws IOException {
^
symbol: class IOException
location: class Solution
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756321407|p02705|0 | u756321407|p02705|0 | codenet | Compile Error | 340 | |
v2_s343165931 | s343165931 | s343165931 | p02705 | p02705 | u756321407 | u756321407 | 1,587,345,761 | 2020-04-20T01:22:41 | Main.java | �������4�N��Rivision/Revision��java/lang/Object�s�Ljava/util/Scanner;�<clinit>�()V�Code��java/util/Scanner �
���java/lang/System���in�Ljava/io/InputStream;
�
����<init>�(Ljava/io/InputStream;)V �����LineNumberTable�LocalVariableTable
�����this�LRivision/Revisi... | Main.java:1: error: illegal character: '\ufffd'
???????4?N??Rivision/Revision??java/lang/Object?s?Ljava/util/Scanner;?<clinit>?()V?Code??java/util/Scanner ?
^
Main.java:1: error: illegal character: '\ufffd'
???????4?N??Rivision/Revision??java/lang/Object?s?Ljava/util/Scanner;?<clinit... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756321407|p02705|0 | u756321407|p02705|0 | codenet | Compile Error | 1,713 | |
v2_s097039140 | s097039140 | s097039140 | p02705 | p02705 | u756321407 | u756321407 | 1,587,345,914 | 2020-04-20T01:25:14 | Revision.java | package Rivision;
import java.util.Scanner;
public class Revision {
static Scanner s=new Scanner(System.in);
public static void main(String[] args) throws IOException {{
double r=s.nextDouble();
System.out.println("the circumference = "+ 2*3.14*r);
}
}
}
| Revision.java:6: error: cannot find symbol
public static void main(String[] args) throws IOException {{
^
symbol: class IOException
location: class Revision
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u756321407|p02705|0 | u756321407|p02705|0 | codenet | Compile Error | 268 | |
v2_s386203973 | s386203973 | s386203973 | p02705 | p02705 | u764902390 | u764902390 | 1,587,345,237 | 2020-04-20T01:13:57 | Main.java | import java.util.*;
import java.lang.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int R = scan.nextint();
System.out.println(2*Math.PI*R);
}
} | Main.java:8: error: cannot find symbol
int R = scan.nextint();
^
symbol: method nextint()
location: variable scan of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u764902390|p02705|0 | u764902390|p02705|0 | codenet | Compile Error | 215 | |
v2_s167934988 | s167934988 | s167934988 | p02705 | p02705 | u769291367 | u769291367 | 1,597,182,399 | 2020-08-11T21:46:39 | Main.java | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
int result = 2 * 3.141592653589793238 * R;
System.out.println(result);
}
} | Main.java:8: error: incompatible types: possible lossy conversion from double to int
int result = 2 * 3.141592653589793238 * R;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u769291367|p02705|0 | u769291367|p02705|0 | codenet | Compile Error | 242 | |
v2_s647080415 | s647080415 | s647080415 | p02705 | p02705 | u786936640 | u786936640 | 1,587,345,192 | 2020-04-20T01:13:12 | Main.java | public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double radius = scan.nextInt();
double result = 2 * 3.14 * radius;
System.out.println(result);
}
} | Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u786936640|p02705|0 | u786936640|p02705|0 | codenet | Compile Error | 247 | |
v2_s029809579 | s029809579 | s029809579 | p02705 | p02705 | u825262731 | u825262731 | 1,587,344,771 | 2020-04-20T01:06:11 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scannner sc = new Scanner(System.in);
int r = sc.nextInt();
System.out.println(2*Math.PI*r);
}
} | Main.java:4: error: cannot find symbol
Scannner sc = new Scanner(System.in);
^
symbol: class Scannner
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02705|0 | u825262731|p02705|0 | codenet | Compile Error | 191 | |
v2_s349147233 | s349147233 | s349147233 | p02705 | p02705 | u825262731 | u825262731 | 1,587,344,869 | 2020-04-20T01:07:49 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scannner sc = new Scanner(System.in);
int r = sc.nextInt();
System.out.println(2*Math.PI*r);
}
} | Main.java:4: error: cannot find symbol
Scannner sc = new Scanner(System.in);
^
symbol: class Scannner
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825262731|p02705|0 | u825262731|p02705|0 | codenet | Compile Error | 191 | |
v2_s117426812 | s117426812 | s117426812 | p02705 | p02705 | u833781695 | u833781695 | 1,587,345,091 | 2020-04-20T01:11:31 | Main.java | import java.util.Scanner;
public class Main.extension {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int radius = scan.nextInt();
System.out.println(2*Math.PI*radius);
}
}
| Main.java:4: error: '{' expected
public class Main.extension {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u833781695|p02705|0 | u833781695|p02705|0 | codenet | Compile Error | 231 | |
v2_s706009306 | s706009306 | s706009306 | p02705 | p02705 | u836207173 | u836207173 | 1,587,345,389 | 2020-04-20T01:16:29 | Main.java | import math
radius = float(input())
circumference = 2 * math.pi * radius
print("%.2f" % (circumference))
| Main.java:1: error: '.' expected
import math
^
Main.java:2: error: ';' expected
radius = float(input())
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u836207173|p02705|0 | u836207173|p02705|0 | codenet | Compile Error | 105 | |
v2_s520580597 | s520580597 | s520580597 | p02705 | p02705 | u837113610 | u837113610 | 1,594,566,442 | 2020-07-12T15:07:22 | 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 {
try (BufferedReader br = new BufferedReader(
new InputStreamReader(System.in))) {
int in = Integer.parseInt(br.readLine());
System.o... | Main.java:13: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u837113610|p02705|0 | u837113610|p02705|0 | codenet | Compile Error | 357 | |
v2_s377696911 | s377696911 | s377696911 | p02705 | p02705 | u860874998 | u860874998 | 1,589,564,274 | 2020-05-15T17:37:54 | Main.java | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
System.out.println(2*Math.PI*R);
}
}
} | Main.java:14: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02705|1 | u860874998|p02705|1 | codenet | Compile Error | 201 | |
v2_s485143363 | s485143363 | s485143363 | p02705 | p02705 | u860874998 | u860874998 | 1,589,594,091 | 2020-05-16T01:54:51 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int R = sc.nextInt();
System.out.println(2*3.14*R);
}
}
| Main.java:5: error: cannot find symbol
int R = sc.nextInt();
^
symbol: variable sc
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u860874998|p02705|2 | u860874998|p02705|2 | codenet | Compile Error | 208 | |
v2_s223534221 | s223534221 | s223534221 | p02705 | p02705 | u864411830 | u864411830 | 1,587,347,356 | 2020-04-20T01:49:16 | Main.java | import java.util.Scanner;
public class Main
{
publiv static void main(String Args[])
{
Scanner sc=new Scanner (System.in);
int n=sc.nextInt();
double c=Math.PI*n;
System.out.println(c);
}
} | Main.java:4: error: <identifier> expected
publiv static void main(String Args[])
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u864411830|p02705|0 | u864411830|p02705|0 | codenet | Compile Error | 233 | |
v2_s043299738 | s043299738 | s043299738 | p02705 | p02705 | u868996139 | u868996139 | 1,587,346,911 | 2020-04-20T01:41:51 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int r = scan.nextInt();
double n = r*2*3.14;
println(n);
}
}
| Main.java:8: error: cannot find symbol
println(n);
^
symbol: method println(double)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u868996139|p02705|0 | u868996139|p02705|0 | codenet | Compile Error | 199 | |
v2_s562749071 | s562749071 | s562749071 | p02705 | p02705 | u870915337 | u870915337 | 1,587,345,214 | 2020-04-20T01:13:34 | Main.java | import java.util.*;
public class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
//int b = sc.nextInt();
//int c = sc.nextInt();
//String s = sc.next();
/* if(N%2 != 0){
for(int i = 1; i <= N; i++){
... | Main.java:24: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u870915337|p02705|0 | u870915337|p02705|0 | codenet | Compile Error | 600 | |
v2_s283509480 | s283509480 | s283509480 | p02705 | p02705 | u872271866 | u872271866 | 1,587,345,214 | 2020-04-20T01:13:34 | Main.java | ort java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(2*a*Math.PI);
}
} | Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u872271866|p02705|0 | u872271866|p02705|0 | codenet | Compile Error | 179 | |
v2_s827610110 | s827610110 | s827610110 | p02705 | p02705 | u872474958 | u872474958 | 1,587,345,108 | 2020-04-20T01:11:48 | Main.java |
import java.util.Scanner;
public class Main{
public static void main(String[]args){
Scanner sc= new Scanner(System.in);
int R =sc.nextInt();
double ans =2*R*3.14;
System.out.println(and);
}
} | Main.java:10: error: cannot find symbol
System.out.println(and);
^
symbol: variable and
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u872474958|p02705|0 | u872474958|p02705|0 | codenet | Compile Error | 195 | |
v2_s154347366 | s154347366 | s154347366 | p02705 | p02705 | u882344378 | u882344378 | 1,587,345,838 | 2020-04-20T01:23:58 | Main.java | import java.util.*;
private class Solution {
public static void main(String []args) {
Scanner sc = new Scanner (System.in);
int r= sc.nextInt();
double res=2*Math.PI*r;
System.out.println(res);
}
} | Main.java:2: error: modifier private not allowed here
private class Solution {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u882344378|p02705|0 | u882344378|p02705|0 | codenet | Compile Error | 201 | |
v2_s510181525 | s510181525 | s510181525 | p02705 | p02705 | u911271369 | u911271369 | 1,587,430,623 | 2020-04-21T00:57:03 | A163.java | import java.util.*;
public class A163 {
Scanner sc=new Scanner(System.in);
double h=sc.nextDouble();
double r=h*2*3.14;
System.out.print(r);
}
| A163.java:9: error: <identifier> expected
System.out.print(r);
^
A163.java:9: error: <identifier> expected
System.out.print(r);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u911271369|p02705|0 | u911271369|p02705|0 | codenet | Compile Error | 154 | |
v2_s195737735 | s195737735 | s195737735 | p02705 | p02705 | u915876571 | u915876571 | 1,587,345,468 | 2020-04-20T01:17:48 | Main.java | import java.util.*;
import java.io.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
double pi=3.14;
double rad;
rad=sc.nextDouble();
double cir;
cir=2*pi*rad;
System.out.println("%.2f", cir);
}
} | Main.java:13: error: no suitable method found for println(String,double)
System.out.println("%.2f", cir);
^
method PrintStream.println() is not applicable
(actual and formal argument lists differ in length)
method PrintStream.println(boolean) is not applicable
(actual and formal ar... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u915876571|p02705|0 | u915876571|p02705|0 | codenet | Compile Error | 280 | |
v2_s614994654 | s614994654 | s614994654 | p02705 | p02705 | u935077873 | u935077873 | 1,591,210,889 | 2020-06-03T19:01:29 | Main.java | public class Main {
public static void main(String[] args) {
FastScanner fsc = new FastScanner();
int Radius = fsc.nextInt();
int Diameter = Radius * 2;
//Math.PIは円周率定数
double anser = Diameter * Math.PI;
System.out.println(anser);
}
}
| Main.java:4: error: cannot find symbol
FastScanner fsc = new FastScanner();
^
symbol: class FastScanner
location: class Main
Main.java:4: error: cannot find symbol
FastScanner fsc = new FastScanner();
^
symbol: class FastScanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u935077873|p02705|0 | u935077873|p02705|0 | codenet | Compile Error | 273 | |
v2_s852404195 | s852404195 | s852404195 | p02705 | p02705 | u970711361 | u970711361 | 1,587,828,281 | 2020-04-25T15:24:41 | Test.java | public class Test{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
String str = scan.nextLine();
int r = Integer.parseInt(str);
double ans = 2 * r * 3.14;
System.out.println(ans);
}
} | Test.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Test
Test.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Test
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u970711361|p02705|0 | u970711361|p02705|0 | codenet | Compile Error | 231 | |
v2_s969142585 | s969142585 | s969142585 | p02706 | p02706 | u009245552 | u009245552 | 1,587,345,405 | 2020-04-20T01:16:45 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int holiday = sc.nextInt();
int homework = sc.nextInt();
int days = 0;
for (int i = 0; i < homework; i++) {
days += sc.nextInt();
}
sc.close();
if (holiday < days) {
Sys... | Main.java:20: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u009245552|p02706|0 | u009245552|p02706|0 | codenet | Compile Error | 394 | |
v2_s903062329 | s903062329 | s903062329 | p02706 | p02706 | u076303440 | u076303440 | 1,587,346,754 | 2020-04-20T01:39:14 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scn = new Scanner(System.in);
int N,M = INteger.valueOf((scn.nextLine()).split(" "));
int[] Am = new int[M];
Am = INteger.valueOf((scn.nextLine()).split(" "));
int sum = 0;
in... | Main.java:5: error: cannot find symbol
int N,M = INteger.valueOf((scn.nextLine()).split(" "));
^
symbol: variable INteger
location: class Main
Main.java:7: error: cannot find symbol
Am = INteger.valueOf((scn.nextLine()).split(" "));
^
symbol: variable INteger
l... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u076303440|p02706|0 | u076303440|p02706|0 | codenet | Compile Error | 544 | |
v2_s990493428 | s990493428 | s990493428 | p02706 | p02706 | u076303440 | u076303440 | 1,587,347,154 | 2020-04-20T01:45:54 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scn = new Scanner(System.in);
String[] NM = (scn.nextLine()).split(" ");
int N = Integer.valueOf(NM[0]);
int M = Integer.valueOf(NM[1]);
String[] Am = (scn.nextLine()).split(" ");
... | Main.java:21: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u076303440|p02706|0 | u076303440|p02706|0 | codenet | Compile Error | 588 | |
v2_s864663628 | s864663628 | s864663628 | p02706 | p02706 | u077954961 | u077954961 | 1,587,389,553 | 2020-04-20T13:32: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();
int M = sc.nextInt();
int sum = 0;
for(int i = 0; i < M; i++){
int A = sc.nextInt();
sum += A;
}
int freeDays = N - sum;
if... | Main.java:18: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u077954961|p02706|0 | u077954961|p02706|0 | codenet | Compile Error | 405 | |
v2_s020811048 | s020811048 | s020811048 | p02706 | p02706 | u143487969 | u143487969 | 1,587,345,389 | 2020-04-20T01:16:29 | Main.java | import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String h[]=sc.nextLine().split(" ");
String hh[]=sc.nextLine().split(" ");
int s=0;
int a=Integer.parseInt(h[0]);
for(int i=0;i<hh.length;i++)
{s+=Integer.parseInt(hh[i]);
if(s>a){flag=... | Main.java:13: error: cannot find symbol
if(s>a){flag=1;break;}
^
symbol: variable flag
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u143487969|p02706|0 | u143487969|p02706|0 | codenet | Compile Error | 372 | |
v2_s013486848 | s013486848 | s013486848 | p02706 | p02706 | u156692730 | u156692730 | 1,587,345,999 | 2020-04-20T01:26:39 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[] a = new int[m];
for(int i = 0; i < m; i ++) {
a[i] = scan.nextInt();
}
int sum = 0;
for(int i = 0; i < a.length; i++) {
sum += a[i];
... | Main.java:16: error: incompatible types: unexpected return value
return -1;
^
Main.java:18: error: incompatible types: unexpected return value
return n - sum;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u156692730|p02706|0 | u156692730|p02706|0 | codenet | Compile Error | 391 | |
v2_s294471350 | s294471350 | s294471350 | p02706 | p02706 | u156692730 | u156692730 | 1,587,346,215 | 2020-04-20T01:30:15 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int m = scan.nextInt();
int[] a = new int[m];
for(int i = 0; i < m; i ++) {
a[i] = scan.nextInt();
}
int sum = 0;
for(int i = 0; i < a.length; i++) {
sum += a[i];
... | Main.java:16: error: incompatible types: unexpected return value
return -1;
^
Main.java:18: error: incompatible types: unexpected return value
return n-sum;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u156692730|p02706|0 | u156692730|p02706|0 | codenet | Compile Error | 380 | |
v2_s878055829 | s878055829 | s878055829 | p02706 | p02706 | u168185645 | u168185645 | 1,587,525,445 | 2020-04-22T03:17:25 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int day;
int N = s.nextInt();
int M = s.nextInt();
int[] A = new int[M];
for(int i = 0; i < M; i++) {
A[i] = s.nextInt();
day = M - A[i];
}
if(day >= 0){
... | Main.java:14: error: variable day might not have been initialized
if(day >= 0){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u168185645|p02706|0 | u168185645|p02706|0 | codenet | Compile Error | 406 | |
v2_s237982181 | s237982181 | s237982181 | p02706 | p02706 | u207845630 | u207845630 | 1,587,345,077 | 2020-04-20T01:11:17 | Main.java | import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long N = sc.nextInt();
int M = sc.nextInt();
long buf = 0;
for(int i = 0;i < M;i++){
long += = sc.nextLong();
}
System.out.println(N - buf);
}
} | Main.java:9: error: not a statement
long += = sc.nextLong();
^
Main.java:9: error: ';' expected
long += = sc.nextLong();
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u207845630|p02706|0 | u207845630|p02706|0 | codenet | Compile Error | 279 | |
v2_s648608223 | s648608223 | s648608223 | p02706 | p02706 | u212992037 | u212992037 | 1,587,345,743 | 2020-04-20T01:22:23 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main
{
public static void main(String[] Arguments) throws IOException
{
BufferedReader BR = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer ST = new Str... | Main.java:14: error: ')' or ',' expected
System.out.println((homeworkDays <= N) N - homeworkDays : -1);
^
Main.java:14: error: not a statement
System.out.println((homeworkDays <= N) N - homeworkDays : -1);
^
Main.java:14: error: ';' ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u212992037|p02706|0 | u212992037|p02706|0 | codenet | Compile Error | 633 | |
v2_s458113307 | s458113307 | s458113307 | p02706 | p02706 | u263194660 | u263194660 | 1,587,345,142 | 2020-04-20T01:12:22 | Main.java | class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N= scan.nextInt();
int M = scan.nextInt();
for(int i=0;i<M;i++){
N-=scan.nextInt();
}
if(N<0){
System.out.println(-1);
... | Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner scan = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 e... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u263194660|p02706|0 | u263194660|p02706|0 | codenet | Compile Error | 415 | |
v2_s379269865 | s379269865 | s379269865 | p02706 | p02706 | u268467094 | u268467094 | 1,587,771,942 | 2020-04-24T23:45:42 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int[] a = new int[m];
for(int i = 0; i < m; i++)
a[i] = sc.nextInt();
int ans = n;
... | Main.java:22: error: package Syst4em does not exist
Syst4em.out.println(ans);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u268467094|p02706|0 | u268467094|p02706|0 | codenet | Compile Error | 505 | |
v2_s003852709 | s003852709 | s003852709 | p02706 | p02706 | u278180039 | u278180039 | 1,587,438,771 | 2020-04-21T03:12:51 | Main.java | import java.util.Scanner;
/**
* Write a description of class Homework here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Main
{
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int vacation = sc.nextInt();
... | Main.java:25: error: cannot find symbol
if(assign > vacation) {
^
symbol: variable assign
location: class Main
Main.java:28: error: cannot find symbol
System.out.println(vacation - assign);
^
symbol: variable assign
location: class Mai... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u278180039|p02706|0 | u278180039|p02706|0 | codenet | Compile Error | 696 | |
v2_s390343218 | s390343218 | s390343218 | p02706 | p02706 | u285734280 | u285734280 | 1,595,886,811 | 2020-07-27T21:53:31 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N =sc.nextInt();
int M = sc.nextInt();
int total = 0;
for(int i = 0;i < M;i++) {
int x = sc.nextInt();
total += x;
}
total = N - total;
if(total < -1) {
System.out.println... | Main.java:17: error: cannot find symbol
System.oyut.println(total);
^
symbol: variable oyut
location: class System
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u285734280|p02706|0 | u285734280|p02706|0 | codenet | Compile Error | 377 | |
v2_s841380716 | s841380716 | s841380716 | p02706 | p02706 | u293989573 | u293989573 | 1,587,345,042 | 2020-04-20T01:10:42 | Test.java | using System;
using System.Linq;
public class Test
{
public static void Main()
{
// your code goes here
var hoi = Console.ReadLine().Split().Select(nyan => int.Parse(nyan)).ToArray(); //この呪文覚えたい
int n = hoi[0];
int m = hoi[1];
var a = Console.ReadLine().Split().Select(nyaan => int.Parse(nyaan)).ToArr... | Test.java:1: error: unnamed classes are a preview feature and are disabled by default.
using System;
^
(use --enable-preview to enable unnamed classes)
Test.java:2: error: class, interface, enum, or record expected
using System.Linq;
^
Test.java:10: error: illegal start of expression
var hoi = Console.ReadLine().Sp... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u293989573|p02706|0 | u293989573|p02706|0 | codenet | Compile Error | 538 | |
v2_s396823008 | s396823008 | s396823008 | p02706 | p02706 | u348797507 | u348797507 | 1,587,346,317 | 2020-04-20T01:31:57 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int day = sc.nextInt();
int work_count = sc.nextInt();
int homework [] = new int[work_count];
for (int i = 0; i < work_count; i++) {
homework[i] = sc.nextInt();
}
int sum = ... | Main.java:20: error: ';' expected
sum += homework[i]
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u348797507|p02706|0 | u348797507|p02706|0 | codenet | Compile Error | 500 | |
v2_s337096948 | s337096948 | s337096948 | p02706 | p02706 | u392769697 | u392769697 | 1,593,103,799 | 2020-06-25T16:49:59 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
long n=s.nextLong();
long m=s.nextLong();
long []a=new int[m];
long sum=0;
for(long i=0;i<m;i++)
{
a[i]=s.next... | Main.java:11: error: incompatible types: possible lossy conversion from long to int
long []a=new int[m];
^
Main.java:11: error: incompatible types: int[] cannot be converted to long[]
long []a=new int[m];
^
Main.java:15: error: incompatible types: possible lossy convers... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392769697|p02706|0 | u392769697|p02706|0 | codenet | Compile Error | 530 | |
v2_s775726525 | s775726525 | s775726525 | p02706 | p02706 | u392769697 | u392769697 | 1,593,103,843 | 2020-06-25T16:50:43 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
long n=s.nextLong();
long m=s.nextLong();
long []a=new long[m];
long sum=0;
for(long i=0;i<m;i++)
{
a[i]=s.nex... | Main.java:11: error: incompatible types: possible lossy conversion from long to int
long []a=new long[m];
^
Main.java:15: error: incompatible types: possible lossy conversion from long to int
a[i]=s.nextLong();
^
Main.java:16: error: incompatible types: possible lossy convers... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392769697|p02706|0 | u392769697|p02706|0 | codenet | Compile Error | 531 | |
v2_s153202517 | s153202517 | s153202517 | p02706 | p02706 | u392769697 | u392769697 | 1,593,103,937 | 2020-06-25T16:52:17 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
long n=s.nextLong();
long m=s.nextLong();
long []a=new long[(int)m+1];
long sum=0;
for(long i=0;i<m;i++)
{
a[i... | Main.java:15: error: incompatible types: possible lossy conversion from long to int
a[i]=s.nextLong();
^
Main.java:16: error: incompatible types: possible lossy conversion from long to int
sum+=a[i];
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392769697|p02706|0 | u392769697|p02706|0 | codenet | Compile Error | 538 | |
v2_s953252259 | s953252259 | s953252259 | p02706 | p02706 | u392769697 | u392769697 | 1,593,104,102 | 2020-06-25T16:55:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner s = new Scanner(System.in);
int n=s.nextInt();
int m=s.nextInt();
int []a=new int[m];
int sum=0;
for(long i=0;i<m;i++)
{
a[i]=s.nextInt();... | Main.java:15: error: incompatible types: possible lossy conversion from long to int
a[i]=s.nextInt();
^
Main.java:16: error: incompatible types: possible lossy conversion from long to int
sum+=a[i];
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392769697|p02706|0 | u392769697|p02706|0 | codenet | Compile Error | 523 | |
v2_s228745540 | s228745540 | s228745540 | p02706 | p02706 | u392769697 | u392769697 | 1,593,104,308 | 2020-06-25T16:58:28 | Main.java | import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner sc = new Scanner (System.in);
int n = sc.nextInt(); int m = sc.nextInt(); int s = 0;
int[] a = new int[m];
while (m-- > 0) {
a[m] = sc.nextInt();
s+=arr[m];
}
int v = n-s;
System.out.println(v >= 0 ? vacat... | Main.java:10: error: cannot find symbol
s+=arr[m];
^
symbol: variable arr
location: class Main
Main.java:13: error: cannot find symbol
System.out.println(v >= 0 ? vacation : "-1");
^
symbol: variable vacation
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u392769697|p02706|0 | u392769697|p02706|0 | codenet | Compile Error | 337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.