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_s807310890 | s807310890 | s807310890 | p00094 | p00094 | u865272027 | u865272027 | 1,499,665,610 | 2017-07-10T05:46:50 | Main.java | import java.util.Scanner;
public class Main{
static Scanner sc = new java.util.Scanner(System.in);
public static void main(String[] args) {
while ( sc.hasNext() ){
double a = sc.nextInt();
double b = sc.nextInt();
double x = a * b ;
double S = x / 3.305785 ;
BigDecimal bix = new BigDe... | Main.java:18: error: cannot find symbol
BigDecimal bix = new BigDecimal (String.valueOf(S));
^
symbol: class BigDecimal
location: class Main
Main.java:18: error: cannot find symbol
BigDecimal bix = new BigDecimal (String.valueOf(S));
^
symbol: class BigDecimal
location: class Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u865272027|p00094|0 | u865272027|p00094|0 | codenet | Compile Error | 453 | |
v2_s900985821 | s900985821 | s900985821 | p00094 | p00094 | u865272027 | u865272027 | 1,499,665,697 | 2017-07-10T05:48:17 | Main.java | import java.util.Scanner;
public class Main{
static Scanner sc = new java.util.Scanner(System.in);
public static void main(String[] args) {
while ( sc.hasNext() ){
double a = sc.nextInt();
double b = sc.nextInt();
double x = a * b ;
double s = x / 3.305785 ;
BigDecimal bix = new BigDe... | Main.java:18: error: cannot find symbol
BigDecimal bix = new BigDecimal (String.valueOf(s));
^
symbol: class BigDecimal
location: class Main
Main.java:18: error: cannot find symbol
BigDecimal bix = new BigDecimal (String.valueOf(s));
^
symbol: class BigDecimal
location: class Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u865272027|p00094|0 | u865272027|p00094|0 | codenet | Compile Error | 453 | |
v2_s300966598 | s300966598 | s300966598 | p00094 | p00094 | u892831253 | u892831253 | 1,460,624,035 | 2016-04-14T08:53:55 | Main.java | import java.util.Scanner;
//Calculation of Area
public class Main {
void run(){
Scanner sc = new Scanner(System.in);
System.out.printf("%.8f\n", sc.nextInt()*sc.nextInt()/3.305785);
}
public static void main(String[] args) {
new AOJ0094().run();
}
} | Main.java:12: error: cannot find symbol
new AOJ0094().run();
^
symbol: class AOJ0094
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u892831253|p00094|0 | u892831253|p00094|0 | codenet | Compile Error | 263 | |
v2_s390426157 | s390426157 | s390426157 | p00094 | p00094 | u892831253 | u892831253 | 1,460,624,054 | 2016-04-14T08:54:14 | Main.java | import java.util.Scanner;
//Calculation of Area
public class Main {
void run(){
Scanner sc = new Scanner(System.in);
System.out.printf("%.8f\n", sc.nextInt()*sc.nextInt()/3.305785);
}
public static void main(String[] args) {
new Main.run();
}
} | Main.java:12: error: cannot find symbol
new Main.run();
^
symbol: class run
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u892831253|p00094|0 | u892831253|p00094|0 | codenet | Compile Error | 258 | |
v2_s349552092 | s349552092 | s349552092 | p00097 | p00097 | u230222450 | u230222450 | 1,437,320,574 | 2015-07-19T15:42:54 | Main.java | import import java.util.*;
public class Main {
public static void main(String[] args) {
int n,s,max,count;
count = 0;
n=9;
max=100;
s=200;
Scanner sc = new Scanner(System.in);
for(;;){
n = sc.nextInt();
s = sc.nextInt();
if(n==0&&s==0)break;
count = check(n,s,max);
Sy... | Main.java:1: error: <identifier> expected
import import java.util.*;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u230222450|p00097|1 | u230222450|p00097|1 | codenet | Compile Error | 627 | |
v2_s353872179 | s353872179 | s353872179 | p00097 | p00097 | u489809100 | u489809100 | 1,456,637,476 | 2016-02-28T05:31:16 | 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{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(isr);
String string;
long res[][] = ... | Main.java:25: error: incompatible types: possible lossy conversion from long to int
System.out.println(res[n][s]);
^
Main.java:25: error: incompatible types: possible lossy conversion from long to int
System.out.println(res[n][s]);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489809100|p00097|0 | u489809100|p00097|0 | codenet | Compile Error | 734 | |
v2_s122064743 | s122064743 | s122064743 | p00097 | p00097 | u720902416 | u720902416 | 1,436,952,528 | 2015-07-15T09:28:48 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String tes = null;
ArrayList<Integer> al = new ArrayList<Integer>();
ArrayList<Int... | Main.java:15: error: cannot find symbol
} catch (IOException e) {
^
symbol: class IOException
location: class Main
Main.java:33: error: cannot find symbol
} catch (IOException e) {
^
symbol: class IOException
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u720902416|p00097|0 | u720902416|p00097|0 | codenet | Compile Error | 3,004 | |
v2_s564470535 | s564470535 | s564470535 | p00097 | p00097 | u759934006 | u759934006 | 1,506,815,504 | 2017-09-30T23:51:44 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.Integer.parseInt;
/**
* Sum of Integers II
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.i... | Main.java:39: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p00097|5 | u759934006|p00097|4 | codenet | Compile Error | 855 | |
v2_s215655176 | s215655176 | s215655176 | p00097 | p00097 | u759934006 | u759934006 | 1,506,815,556 | 2017-09-30T23:52:36 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.Integer.parseInt;
/**
* Sum of Integers II
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.i... | Main.java:39: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p00097|5 | u759934006|p00097|4 | codenet | Compile Error | 855 | |
v2_s624741362 | s624741362 | s624741362 | p00097 | p00097 | u808579085 | u808579085 | 1,469,718,625 | 2016-07-28T15:10:25 | Main.java | public class Main {
public static void main(String[] args){
int[][] allData = new int[10][1001];
allData[0][0] = 1;
for (int iRang = 0; iRang <= 100; iRang++){
for (int iSum = 1000; iSum >= 0; iSum--){
for (int item = 9; item >= 1; item--){
if (iSum - iRang >... | Main.java:17: error: cannot find symbol
Scanner input = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:17: 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 | u808579085|p00097|1 | u808579085|p00097|1 | codenet | Compile Error | 736 | |
v2_s018360868 | s018360868 | s018360868 | p00097 | p00097 | u892831253 | u892831253 | 1,460,624,227 | 2016-04-14T08:57:07 | Main.java | import java.util.Scanner;
//Sum of Integers II
public class Main {
long[][][] dp;
long get(int rest, int x, int s){
if(rest==0 && s==0)return 1;
if(rest<0 || x<0 || s<0)return 0;
if(dp[rest][x][s]!=-1)return dp[rest][x][s];
long res = 0;
for(int nx=x;nx>=0;nx--)res+=get(rest-1, nx-1, s-nx);
return dp[... | Main.java:29: error: cannot find symbol
new AOJ0097().run();
^
symbol: class AOJ0097
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u892831253|p00097|0 | u892831253|p00097|0 | codenet | Compile Error | 707 | |
v2_s478538002 | s478538002 | s478538002 | p00099 | p00099 | u028376492 | u028376492 | 1,441,639,965 | 2015-09-07T15:32:45 | Main.java |
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = in.readLine().split(" ");
int n= Integer.parseInt(nq[0]);
int q= Integer.parseInt(nq[1]);
String[] av;
int a;
in... | Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws java.io.IOException {
^
(use --enable-preview to enable unnamed classes)
Main.java:60: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,027 | |
v2_s645032779 | s645032779 | s645032779 | p00099 | p00099 | u028376492 | u028376492 | 1,441,640,010 | 2015-09-07T15:33:30 | Main.java |
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = in.readLine().split(" ");
int n= Integer.parseInt(nq[0]);
int q= Integer.parseInt(nq[1]);
String[] av;
int a;
in... | Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws java.io.IOException {
^
(use --enable-preview to enable unnamed classes)
Main.java:50: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 804 | |
v2_s857546701 | s857546701 | s857546701 | p00099 | p00099 | u028376492 | u028376492 | 1,441,640,046 | 2015-09-07T15:34:06 | Main.java |
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = in.readLine().split(" ");
int n= Integer.parseInt(nq[0]);
int q= Integer.parseInt(nq[1]);
String[] av;
int a;
in... | Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) throws java.io.IOException {
^
(use --enable-preview to enable unnamed classes)
Main.java:42: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 678 | |
v2_s820261520 | s820261520 | s820261520 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,059 | 2015-09-07T15:50:59 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq... | Main.java:66: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,218 | |
v2_s937385001 | s937385001 | s937385001 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,211 | 2015-09-07T15:53:31 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq... | Main.java:66: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,220 | |
v2_s042051047 | s042051047 | s042051047 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,843 | 2015-09-07T16:04:03 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:71: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,292 | |
v2_s883422082 | s883422082 | s883422082 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,865 | 2015-09-07T16:04:25 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:64: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,179 | |
v2_s224320730 | s224320730 | s224320730 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,869 | 2015-09-07T16:04:29 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:64: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,162 | |
v2_s616542218 | s616542218 | s616542218 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,882 | 2015-09-07T16:04:42 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:63: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 1,105 | |
v2_s310341846 | s310341846 | s310341846 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,896 | 2015-09-07T16:04:56 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:41: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 722 | |
v2_s820941388 | s820941388 | s820941388 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,912 | 2015-09-07T16:05:12 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:34: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 581 | |
v2_s288560882 | s288560882 | s288560882 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,917 | 2015-09-07T16:05:17 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] nq = ... | Main.java:30: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 508 | |
v2_s403928881 | s403928881 | s403928881 | p00099 | p00099 | u028376492 | u028376492 | 1,441,641,932 | 2015-09-07T16:05:32 | Main.java |
//Surf Smelt Fishing Contest II
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws java.io.IOException {
String[] av;
int a;
int v;
int top=1;
int second=1;
int count=0;
} | Main.java:24: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u028376492|p00099|0 | u028376492|p00099|0 | codenet | Compile Error | 301 | |
v2_s592071974 | s592071974 | s592071974 | p00099 | p00099 | u759934006 | u759934006 | 1,475,506,141 | 2016-10-03T14:49:01 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
/**
* Surf Smelt Fishing Contest II
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader b... | Main.java:18: error: cannot find symbol
P0099 main = new P0099();
^
symbol: class P0099
location: class Main
Main.java:18: error: cannot find symbol
P0099 main = new P0099();
^
symbol: class P0099
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p00099|3 | u759934006|p00099|3 | codenet | Compile Error | 1,610 | |
v2_s338725974 | s338725974 | s338725974 | p00100 | p00100 | u032662562 | u032662562 | 1,468,460,684 | 2016-07-14T01:44:44 | Main.java | import java.util.Scanner;
import java.util.HashMap;
import java.util.Comparator;
import java.util.Arrays;
class Record
{
int id;
int uriage;
int jyun;
Record(int id, int uriage, int jyun)
{
this.id = id;
this.uriage = uriage;
this.jyun = jyun;
}
int getId()
{
return this.id;
... | Main.java:48: error: cannot find symbol
Cmp rc = new Cmp();
^
symbol: class Cmp
location: class Main
Main.java:48: error: cannot find symbol
Cmp rc = new Cmp();
^
symbol: class Cmp
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u032662562|p00100|0 | u032662562|p00100|0 | codenet | Compile Error | 1,604 | |
v2_s111464552 | s111464552 | s111464552 | p00100 | p00100 | u059750550 | u059750550 | 1,499,154,075 | 2017-07-04T07:41:15 | Main.java | import Control.Monad
import Control.Applicative
import Data.List
main :: IO ()
main = do
n <- readLn :: IO Int
if n == 0
then return ()
else do
ns <- getData n
let ans = solve ns
if null ans then putStrLn "NA"
else mapM_ print ans
main
getData :: Int -> IO [((Int, Int),... | Main.java:1: error: ';' expected
import Control.Monad
^
Main.java:2: error: ';' expected
import Control.Applicative
^
Main.java:3: error: ';' expected
import Data.List
^
Main.java:29: error: illegal character: '\'
$ sortBy (\(x,_) (x2,_) -> compar... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u059750550|p00100|0 | u059750550|p00100|0 | codenet | Compile Error | 928 | |
v2_s562437415 | s562437415 | s562437415 | p00100 | p00100 | u072001822 | u072001822 | 1,487,967,911 | 2017-02-24T20:25:11 | Main.java | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
for(; ;)
{
int n = scanner.nextInt();
if(n == 0)
{
break;
}
class Data
{
int e;
long sum;
boolean is_view;
}
Data[] data = new Data[n];... | Main.java:65: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u072001822|p00100|0 | u072001822|p00100|0 | codenet | Compile Error | 1,016 | |
v2_s858382877 | s858382877 | s858382877 | p00100 | p00100 | u079870052 | u079870052 | 1,451,022,158 | 2015-12-25T05:42:38 | Main.java | # include <iostream>
# include <cstring>
int n;
int a[3];
int x[4001];
int main() {
while (1) {
std::cin >> n;
if (n == 0)
break;
int count = 0;
std::memset(x, 0, sizeof(x));
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 3; ++j)
std::cin >> a[j];
x[a[0]] += a[1] * a[2];
}
for (int i = ... | Main.java:1: error: illegal character: '#'
# include <iostream>
^
Main.java:2: error: illegal character: '#'
# include <cstring>
^
Main.java:5: error: class, interface, enum, or record expected
int a[3];
^
Main.java:6: error: class, interface, enum, or record expected
int x[4001];
^
Main.java:10: error: not a statement... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u079870052|p00100|0 | u079870052|p00100|0 | codenet | Compile Error | 488 | |
v2_s602709430 | s602709430 | s602709430 | p00100 | p00100 | u491334076 | u491334076 | 1,499,136,637 | 2017-07-04T02:50:37 | Main.java | import java.util.HashMap;
import java.util.Scanner;
public class Main {
private Scanner sc;
public static void main(String[] args) {
new Main();
}
public Main() {
sc = new Scanner(System.in);
int lines = Integer.parseInt(sc.nextLine());
while (lines != 0) {
HashMap<String, Integer> nico = new Has... | Main.java:42: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u491334076|p00100|0 | u491334076|p00100|0 | codenet | Compile Error | 939 | |
v2_s549739349 | s549739349 | s549739349 | p00100 | p00100 | u609246174 | u609246174 | 1,472,802,865 | 2016-09-02T07:54:25 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n;
int b;
int t;
int s;
int gaku=0;
int flag=0;
int ban=0;
int count=0;
for(;flag!=9;){
n=sc.nextInt();
int AA[]=new int[n];
for(int i=0;i<n;i++){
b=sc.nextInt();
t=sc.nextInt();
s=sc.... | Main.java:45: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u609246174|p00100|0 | u609246174|p00100|0 | codenet | Compile Error | 590 | |
v2_s054704911 | s054704911 | s054704911 | p00100 | p00100 | u609246174 | u609246174 | 1,472,803,477 | 2016-09-02T08:04:37 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n;
int b;
int t;
int s;
int gaku=0;
int flag=0;
int ban=0;
int count=0;
for(;flag!=9;){
n=sc.nextInt();
for(int i=0;i<n;i++){
b=sc.nextInt();
t=sc.nextInt();
s=sc.nextInt();
if(ban=... | Main.java:42: error: cannot find symbol
System.out.prinln("NA");
^
symbol: method prinln(String)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u609246174|p00100|0 | u609246174|p00100|0 | codenet | Compile Error | 569 | |
v2_s314814717 | s314814717 | s314814717 | p00100 | p00100 | u609246174 | u609246174 | 1,472,803,528 | 2016-09-02T08:05:28 | Main.java | import java.util.Scanner;
class ?????????{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n;
int b;
int t;
int s;
int gaku=0;
int flag=0;
int ban=0;
int count=0;
for(;flag!=9;){
n=sc.nextInt();
for(int i=0;i<n;i++){
b=sc.nextInt();
t=sc.nextInt();
s=sc.nextInt();
if... | Main.java:2: error: <identifier> expected
class ?????????{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u609246174|p00100|0 | u609246174|p00100|0 | codenet | Compile Error | 575 | |
v2_s351962168 | s351962168 | s351962168 | p00100 | p00100 | u609246174 | u609246174 | 1,472,804,641 | 2016-09-02T08:24:01 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n;
int b;
int t;
int s;
int gaku=0;
int flag=0;
int ban=0;
int count=0;
for(;flag!=9;){
n=sc.nextInt();
for(int i=0;i<n;i++){
b=sc.nextInt();
t=sc.nextInt();
s=sc.nextInt();
if(ban=... | Main.java:46: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u609246174|p00100|0 | u609246174|p00100|0 | codenet | Compile Error | 577 | |
v2_s948324807 | s948324807 | s948324807 | p00100 | p00100 | u696166817 | u696166817 | 1,411,654,616 | 2014-09-25T14:16:56 | Main.java | # Edit: 2014/09/25
# Lang: Python3
# Time: 0.xxs
#
if __name__ == "__main__":
while True:
d = {}
n = int(input())
if not n:
break # exit at n=0
for i in range(n):
s, p, m = map(int, input().strip("\n").split(" "))
# s:社員番号, p:価格, m:販売戸数
... | Main.java:1: error: illegal character: '#'
# Edit: 2014/09/25
^
Main.java:1: error: class, interface, enum, or record expected
# Edit: 2014/09/25
^
Main.java:2: error: illegal character: '#'
# Lang: Python3
^
Main.java:3: error: illegal character: '#'
# Time: 0.xxs
^
Main.java:4: error: illegal character: '#'
#
^... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u696166817|p00100|0 | u696166817|p00100|0 | codenet | Compile Error | 657 | |
v2_s739984765 | s739984765 | s739984765 | p00100 | p00100 | u745519209 | u745519209 | 1,349,178,330 | 2012-10-02T11:45:30 | Main.java | public class Main
{
public static void main(String[] args) throws IOException
{
int overCount = 0;
BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
int n, count;
int[] emp;
emp = new int[4000];
clearAry(emp);
... | Main.java:4: error: cannot find symbol
public static void main(String[] args) throws IOException
^
symbol: class IOException
location: class Main
Main.java:51: error: cannot find symbol
public static int strRead() throws IOException
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745519209|p00100|0 | u745519209|p00100|0 | codenet | Compile Error | 1,566 | |
v2_s478892018 | s478892018 | s478892018 | p00100 | p00100 | u745519209 | u745519209 | 1,349,179,184 | 2012-10-02T11:59:44 | Main.java | import java.io.*;
public class Main
{
public static void main(String[] args)
{
int overCount = 0;
BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
int n, count;
int[] emp;
emp = new int[4001];
clearAry(emp);
while ( (coun... | Main.java:23: error: unreported exception IOException; must be caught or declared to be thrown
String str = bReader.readLine();
^
Main.java:56: error: unreported exception IOException; must be caught or declared to be thrown
return Int... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745519209|p00100|0 | u745519209|p00100|0 | codenet | Compile Error | 1,740 | |
v2_s191255054 | s191255054 | s191255054 | p00100 | p00100 | u745519209 | u745519209 | 1,349,879,012 | 2012-10-10T14:23:32 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import sun.java2d.Disposer;
public class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader bReader = new BufferedReader(new... | Main.java:7: error: package sun.java2d is not visible
import sun.java2d.Disposer;
^
(package sun.java2d is declared in module java.desktop, which does not export it)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u745519209|p00100|1 | u745519209|p00100|1 | codenet | Compile Error | 2,036 | |
v2_s154615398 | s154615398 | s154615398 | p00100 | p00100 | u747594996 | u747594996 | 1,434,245,125 | 2015-06-14T01:25:25 | Main.java | {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
List<Integer> list = new ArrayList<Integer>();
while(true)
{
int n = sc.nextInt();
int count = 0;
//一つも社員番号が出力されなかった場合に(T)が実行されます.
if ( n == 0 ) bre... | Main.java:1: error: class, interface, enum, or record expected
{
^
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:38: error: class, interface, enum, or reco... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u747594996|p00100|1 | u747594996|p00100|1 | codenet | Compile Error | 876 | |
v2_s687163022 | s687163022 | s687163022 | p00100 | p00100 | u764432488 | u764432488 | 1,395,194,491 | 2014-03-19T02:01:31 | Main.java | package test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = null;
try{
br = new Buff... | Main.java:59: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u764432488|p00100|1 | u764432488|p00100|1 | codenet | Compile Error | 1,354 | |
v2_s456925328 | s456925328 | s456925328 | p00100 | p00100 | u774210788 | u774210788 | 1,462,099,152 | 2016-05-01T10:39:12 | AOJ100.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main {
private long sales;
boolean isAchieved;
Salesman(long price, long goodsnum){
addSales(price,goodsnum);
}
void addSales(long price, long number) {
this.sales += price * number;
... | AOJ100.java:9: error: invalid method declaration; return type required
Salesman(long price, long goodsnum){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774210788|p00100|0 | u774210788|p00100|0 | codenet | Compile Error | 2,487 | |
v2_s073909815 | s073909815 | s073909815 | p00100 | p00100 | u858664023 | u858664023 | 1,470,537,775 | 2016-08-07T02:42:55 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
??
class Salesman {
????????private long sales;
????????boolean isAchieved;
??
????????Salesman(long price, long goodsnum){
????????????????this.sales += price * goodsnum;
????????????????this.isAchieved = this.sales >= 1000000;
??????... | Main.java:4: error: class, interface, enum, or record expected
??
^
Main.java:6: error: illegal start of type
????????private long sales;
^
Main.java:7: error: illegal start of type
????????boolean isAchieved;
^
Main.java:8: error: illegal start of type
??
^
Main.java:10: error: illegal start of expression
????????????... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u858664023|p00100|2 | u858664023|p00100|2 | codenet | Compile Error | 2,790 | |
v2_s629363181 | s629363181 | s629363181 | p00100 | p00100 | u858664023 | u858664023 | 1,470,537,821 | 2016-08-07T02:43:41 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
??
class Salesman {
????????private long sales;
????????boolean isAchieved;
??
????????Salesman(long price, long goodsnum){
????????????????this.sales += price * goodsnum;
????????????????this.isAchieved = this.sales >= 1000000;
??????... | Main.java:4: error: class, interface, enum, or record expected
??
^
Main.java:6: error: illegal start of type
????????private long sales;
^
Main.java:7: error: illegal start of type
????????boolean isAchieved;
^
Main.java:8: error: illegal start of type
??
^
Main.java:10: error: illegal start of expression
????????????... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u858664023|p00100|2 | u858664023|p00100|2 | codenet | Compile Error | 2,790 | |
v2_s673724890 | s673724890 | s673724890 | p00100 | p00100 | u907626292 | u907626292 | 1,337,827,093 | 2012-05-24T02:38:13 | Main.java | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args)
throws java.io.IOException{
Scanner scan = new Scanner(System.in);
long [] syatiku = new String[4000];
boolean flag =true;
while(flag){
int n= scan.nextInt();
if(n==0)... | Main.java:8: error: incompatible types: String[] cannot be converted to long[]
long [] syatiku = new String[4000];
^
Main.java:19: error: incompatible types: possible lossy conversion from long to int
if(syatiku[i]>max){max = syatiku[max]; number =i;}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u907626292|p00100|0 | u907626292|p00100|0 | codenet | Compile Error | 590 | |
v2_s433846020 | s433846020 | s433846020 | p00100 | p00100 | u907626292 | u907626292 | 1,337,827,138 | 2012-05-24T02:38:58 | Main.java | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args)
throws java.io.IOException{
Scanner scan = new Scanner(System.in);
long [] syatiku = new long[4000];
boolean flag =true;
while(flag){
int n= scan.nextInt();
if(n==0){f... | Main.java:19: error: incompatible types: possible lossy conversion from long to int
if(syatiku[i]>max){max = syatiku[max]; number =i;}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u907626292|p00100|0 | u907626292|p00100|0 | codenet | Compile Error | 588 | |
v2_s398918881 | s398918881 | s398918881 | p00100 | p00100 | u907626292 | u907626292 | 1,337,827,201 | 2012-05-24T02:40:01 | Main.java | import java.io.*;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args)
throws java.io.IOException{
Scanner scan = new Scanner(System.in);
long [] syatiku = new long[4000];
boolean flag =true;
while(flag){
int n= scan.nextInt();
if(n==0){f... | Main.java:19: error: incompatible types: possible lossy conversion from long to int
if(syatiku[i]>max){max = syatiku[max]; number =i;}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u907626292|p00100|0 | u907626292|p00100|0 | codenet | Compile Error | 589 | |
v2_s275040550 | s275040550 | s275040550 | p00101 | p00101 | u088290348 | u088290348 | 1,397,786,931 | 2014-04-18T02:08:51 | AOJMain.java | import java.util.Scanner;
public class AOJMain {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();sc.nextLine();
while(n--!=0)System.out.println(sc.nextLine());
str = str.replaceAll("Hoshino", "Hoshina");
System.out.println(s... | AOJMain.java:9: error: cannot find symbol
str = str.replaceAll("Hoshino", "Hoshina");
^
symbol: variable str
location: class AOJMain
AOJMain.java:9: error: cannot find symbol
str = str.replaceAll("Hoshino", "Hoshina");
^
symbol: var... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u088290348|p00101|0 | u088290348|p00101|0 | codenet | Compile Error | 329 | |
v2_s936650733 | s936650733 | s936650733 | p00101 | p00101 | u088290348 | u088290348 | 1,397,787,337 | 2014-04-18T02:15:37 | AOJMain.java | import java.util.Scanner;
public class AOJMain {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();sc.nextLine();
while(n--!=0)System.out.println(sc.nextLine());
sc = sc.replaceAll("Hoshino", "Hoshina");
System.out.println(sc)... | AOJMain.java:9: error: cannot find symbol
sc = sc.replaceAll("Hoshino", "Hoshina");
^
symbol: method replaceAll(String,String)
location: variable sc of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u088290348|p00101|0 | u088290348|p00101|0 | codenet | Compile Error | 326 | |
v2_s311152584 | s311152584 | s311152584 | p00101 | p00101 | u194854904 | u194854904 | 1,413,431,013 | 2014-10-16T03:43:33 | AOJ0101.java | public class AOJ0101 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();sc.nextLine();
while(t--!=0)System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
}
} | AOJ0101.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
AOJ0101.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00101|0 | u194854904|p00101|0 | codenet | Compile Error | 227 | |
v2_s169667857 | s169667857 | s169667857 | p00101 | p00101 | u194854904 | u194854904 | 1,413,431,101 | 2014-10-16T03:45:01 | AOJ0101.java | public class AOJ0101 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();sc.nextLine();
while(t--!=0)
System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
}
} | AOJ0101.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
AOJ0101.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00101|0 | u194854904|p00101|0 | codenet | Compile Error | 247 | |
v2_s187890162 | s187890162 | s187890162 | p00101 | p00101 | u194854904 | u194854904 | 1,413,431,334 | 2014-10-16T03:48:54 | AOJ0101.java | public class AOJ0101 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
sc.nextLine();
while(t--!=0)
System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
}
} | AOJ0101.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
AOJ0101.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class AOJ0101
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00101|0 | u194854904|p00101|0 | codenet | Compile Error | 233 | |
v2_s775995467 | s775995467 | s775995467 | p00101 | p00101 | u194854904 | u194854904 | 1,413,431,497 | 2014-10-16T03:51:37 | main.java | public class main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
sc.nextLine();
while(t--!=0)
System.out.println(sc.nextLine().replace("Hoshino", "Hoshina"));
}
} | main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class main
main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00101|0 | u194854904|p00101|0 | codenet | Compile Error | 231 | |
v2_s803003951 | s803003951 | s803003951 | p00101 | p00101 | u282393599 | u282393599 | 1,408,208,282 | 2014-08-16T16:58:02 | Main.java | public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String number = br.readLine();
int n = Integer.parseInt(number);
for(int i=0; i<n; i++){
String str = br.readLine();
String[] output = str.split(" ", 0);
int j=0;
f... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException{
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u282393599|p00101|0 | u282393599|p00101|0 | codenet | Compile Error | 671 | |
v2_s816288374 | s816288374 | s816288374 | p00101 | p00101 | u282393599 | u282393599 | 1,408,208,316 | 2014-08-16T16:58:36 | Main.java | import java.io.*;
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String number = br.readLine();
int n = Integer.parseInt(number);
for(int i=0; i<n; i++){
String str = br.readLine();
String[] output = str.split(" ", 0... | Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]) throws IOException{
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u282393599|p00101|0 | u282393599|p00101|0 | codenet | Compile Error | 690 | |
v2_s419925578 | s419925578 | s419925578 | p00101 | p00101 | u282393599 | u282393599 | 1,408,208,496 | 2014-08-16T17:01:36 | Main.java | import java.io.*;
public class Main {
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String number = br.readLine();
int n = Integer.parseInt(number);
for(int i=0; i<n; i++){
String str = br.readLine();
String[] output... | Main.java:30: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u282393599|p00101|0 | u282393599|p00101|0 | codenet | Compile Error | 713 | |
v2_s837016115 | s837016115 | s837016115 | p00101 | p00101 | u574548096 | u574548096 | 1,320,935,652 | 2011-11-10T14:34:12 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args){
try{
BufferedReader b=new BufferedReader(new InputStreamReader(System.in));
int i=Integer.parseInt(b.readLine());
StringBuffer[] str=new StringBuffer[i];
String[] s;
for(int j=0;j<i;j++){
str[j]=new StringBuffer();
s... | Main.java:22: error: incompatible types: unexpected return value
return 0;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u574548096|p00101|0 | u574548096|p00101|0 | codenet | Compile Error | 637 | |
v2_s221287646 | s221287646 | s221287646 | p00101 | p00101 | u834962510 | u834962510 | 1,327,114,298 | 2012-01-21T02:51:38 | AizuPR.java | import java.io.*;
public class AizuPR {
public satic void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
int N = Integer.parseInt(input.nextLine());
for(int i = 0; i < N; i++) {
String s = input.nextLine().replaceAll("Hoshino", Hoshina");
... | AizuPR.java:4: error: <identifier> expected
public satic void main(String[] args) throws Exception {
^
AizuPR.java:10: error: unclosed string literal
String s = input.nextLine().replaceAll("Hoshino", Hoshina");
^
2 erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834962510|p00101|0 | u834962510|p00101|0 | codenet | Compile Error | 367 | |
v2_s019220404 | s019220404 | s019220404 | p00101 | p00101 | u862003818 | u862003818 | 1,396,912,881 | 2014-04-07T23:21:21 | Main.java | public class Main {
public static void main(String args[]) throws Exception {
BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
String line;
for(int i=0; i<Integer.parseInt(bn.readLine()); i++){
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
line = br.... | Main.java:3: error: cannot find symbol
BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:3: error: cannot find symbol
BufferedReader bn = new BufferedReader(new InputStreamReader(System.in));
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u862003818|p00101|0 | u862003818|p00101|0 | codenet | Compile Error | 539 | |
v2_s532603906 | s532603906 | s532603906 | p00101 | p00101 | u871149799 | u871149799 | 1,415,000,023 | 2014-11-03T07:33:43 | Main.java | mport java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(br.readLine());
for(int i = 0; i < n... | Main.java:1: error: class, interface, enum, or record expected
mport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.IOException;
^
Main.java:3: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u871149799|p00101|0 | u871149799|p00101|0 | codenet | Compile Error | 444 | |
v2_s509922820 | s509922820 | s509922820 | p00101 | p00101 | u984847173 | u984847173 | 1,484,769,574 | 2017-01-18T19:59:34 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
ArrayList<String> array = new ArrayList<String>();
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i = 0; i <= n; i++){
String str = in.nextLine();
String str2 = str.replaceAll("Hoshino", "Hoshina");
array.... | Main.java:16: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u984847173|p00101|0 | u984847173|p00101|0 | codenet | Compile Error | 401 | |
v2_s033663878 | s033663878 | s033663878 | p00102 | p00102 | u213849509 | u213849509 | 1,423,969,607 | 2015-02-15T03:06:47 | Main.java |
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (true) {
int n = scanner.nextInt();
if (n == 0)
break;
int[][] num = new int[n + 1][n + 1];
for (int i = 0; i < n + 1; i++) {
for (int j = 0; j < n + 1; j++) {
if (i != n && j != n... | Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner scanner = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213849509|p00102|0 | u213849509|p00102|0 | codenet | Compile Error | 597 | |
v2_s050974115 | s050974115 | s050974115 | p00102 | p00102 | u358879127 | u358879127 | 1,319,705,342 | 2011-10-27T08:49:02 | Main.java | import java.util.*;
public class Main {
Scanner sc = new Scanner)System.in;
void run() {
while (true) {
int n = sc.nextInt();
if (n == 0) break;
int[][] mat = new int[n+1][n+1];
for (int i=0;i<n;i++) for (int j=0;j<n;j++) {
mat[i][j] = sc.nextInt();
mat[i][n] = mat[i][j];
mat[n][j] = mat[i]... | Main.java:4: error: '(' or '[' expected
Scanner sc = new Scanner)System.in;
^
Main.java:4: error: <identifier> expected
Scanner sc = new Scanner)System.in;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u358879127|p00102|0 | u358879127|p00102|0 | codenet | Compile Error | 531 | |
v2_s783206661 | s783206661 | s783206661 | p00102 | p00102 | u400458488 | u400458488 | 1,483,031,960 | 2016-12-29T17:19:20 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[][] array = new int[n + 1][n + 1];
for(int i = 0; i < n; i++){
for(int j = 0; j < n; j++){
array[i][j] = scan... | Main.java:19: error: cannot find symbol
jsum += array[i][j];
^
symbol: variable jsum
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u400458488|p00102|0 | u400458488|p00102|0 | codenet | Compile Error | 919 | |
v2_s791752040 | s791752040 | s791752040 | p00102 | p00102 | u594816808 | u594816808 | 1,527,212,846 | 2018-05-25T01:47:26 | Main.java | public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
while (sc.hasNext()) {
int n = Integer.parseInt(sc.nextLine());
calcMat(n);
}
}
private static void calcMat(int n) {
int[][] mt = new int[n + 1][n + 1];
for (int i = 0; i < n; i++) {
Strin... | Main.java:3: error: cannot find symbol
static Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
static 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 | u594816808|p00102|0 | u594816808|p00102|0 | codenet | Compile Error | 737 | |
v2_s287261746 | s287261746 | s287261746 | p00102 | p00102 | u952169663 | u952169663 | 1,337,562,333 | 2012-05-21T01:05:33 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import sun.security.krb5.KdcComm;
import sun.tools.jar.resources.jar;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
... | Main.java:7: error: package sun.security.krb5 is not visible
import sun.security.krb5.KdcComm;
^
(package sun.security.krb5 is declared in module java.security.jgss, which does not export it to the unnamed module)
Main.java:8: error: package sun.tools.jar.resources is not visible
import sun.tools.j... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u952169663|p00102|0 | u952169663|p00102|0 | codenet | Compile Error | 1,459 | |
v2_s427096674 | s427096674 | s427096674 | p00103 | p00103 | u088290348 | u088290348 | 1,384,095,495 | 2013-11-10T14:58:15 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t--=0){
int runner = 0;
int point = 0;
int out = 0;
while(out < 3){
String c = sc.next();
if(c.equals("HIT")){
if(runner<3)runner++;
... | Main.java:9: error: unexpected type
while(t--=0){
^
required: variable
found: value
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u088290348|p00103|0 | u088290348|p00103|0 | codenet | Compile Error | 497 | |
v2_s897020244 | s897020244 | s897020244 | p00103 | p00103 | u119930104 | u119930104 | 1,479,008,831 | 2016-11-13T03:47:11 | Main.java | import java.util.Scanner;
public class Main {
private byte[] runner;
private static final int OUT_COUNT_FOR_CHANGE = 3;
enum EVENT {HIT, HOMERUN, OUT};
private byte out;
private int scoreOfInning;
public Main {
this.runner = new byte[3];
this.out = 0;
this.scoreOfInning = 0;
}
public boolean action... | Main.java:11: error: <identifier> expected
public Main {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u119930104|p00103|0 | u119930104|p00103|0 | codenet | Compile Error | 1,577 | |
v2_s528961374 | s528961374 | s528961374 | p00103 | p00103 | u194854904 | u194854904 | 1,416,379,726 | 2014-11-19T06:48:46 | Main.java | #include<iostream>
#include<string>
using namespace std;
int main() {
int e;
cin >> e;
for(int i=0;i<e;i++){
int o=0,r=0,c=0;
while(1){
string str;
if(o==3) break;
cin >> str;
if(str=="HIT"){
if(r==3) c++,r--;
r++;
}
els... | Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<string>
^
Main.java:6: error: illegal character: '\u3000'
???int e;
^
Main.java:6: error: illegal character: '\u3000'
???int e;
^
Main.java:6: error: illegal character: '\u3000'
???int e;
^
Main.java:7... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00103|1 | u194854904|p00103|1 | codenet | Compile Error | 757 | |
v2_s553207167 | s553207167 | s553207167 | p00103 | p00103 | u194854904 | u194854904 | 1,416,459,689 | 2014-11-20T05:01:29 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int p,r,a;
int n = sc.nextInt();
for(int i=0; i<n; i++){
a=0;r=0;p=0;
while(a<3){
String t = sc.next();
if(t.equal("HIT")){
r++;
if(r>3) {r--;p++;}
} else... | Main.java:18: error: ';' expected
r=0:
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00103|2 | u194854904|p00103|2 | codenet | Compile Error | 434 | |
v2_s946927652 | s946927652 | s946927652 | p00103 | p00103 | u194854904 | u194854904 | 1,416,459,751 | 2014-11-20T05:02:31 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int p,r,a;
int n = sc.nextInt();
for(int i=0; i<n; i++){
a=0;r=0;p=0;
while(a<3){
String t = sc.next();
if(t.equal("HIT")){
r++;
if(r>3) {r--;p++;}
} else... | Main.java:11: error: cannot find symbol
if(t.equal("HIT")){
^
symbol: method equal(String)
location: variable t of type String
Main.java:14: error: cannot find symbol
} else if(t.equal("OUT")){
^
symbol: method equal(String)
location: variable t of type String
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u194854904|p00103|2 | u194854904|p00103|2 | codenet | Compile Error | 434 | |
v2_s761784722 | s761784722 | s761784722 | p00103 | p00103 | u210135636 | u210135636 | 1,508,338,897 | 2017-10-18T15:01:37 | Main.java | import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class Main {
private static List<String> base = new ArrayList<String>();
private static int score = 0;
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(ne... | Main.java:80: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u210135636|p00103|0 | u210135636|p00103|0 | codenet | Compile Error | 1,613 | |
v2_s278497944 | s278497944 | s278497944 | p00103 | p00103 | u210135636 | u210135636 | 1,508,343,039 | 2017-10-18T16:10:39 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
int out = 0;
int runner = 0;
int score = 0;
... | Main.java:54: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u210135636|p00103|0 | u210135636|p00103|0 | codenet | Compile Error | 1,300 | |
v2_s892915335 | s892915335 | s892915335 | p00103 | p00103 | u210135636 | u210135636 | 1,508,345,281 | 2017-10-18T16:48:01 | Main.java | import java.io.*;
import java.util.*;
public class Main {
// private static List<String> base = new ArrayList<String>();
// private static int score = 0;
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new In... | Main.java:65: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u210135636|p00103|0 | u210135636|p00103|0 | codenet | Compile Error | 1,475 | |
v2_s550114383 | s550114383 | s550114383 | p00103 | p00103 | u471771519 | u471771519 | 1,463,996,506 | 2016-05-23T09:41:46 | Main.java | #include <iostream>
int main(int argc, const char * argv[]) {
int k;
int out = 0;
int hit = 0;
int numrun = 0;
int pointa = 0;
int pointb = 0;
int ining = 0;
std::cin >> ining;
int i = 1;
while(i < ining + 1){
std::string judge;
std::cin >> judge;
... | Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
#include <iostream>
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: illegal start of type
int main(int argc, const char * argv[]) {
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u471771519|p00103|0 | u471771519|p00103|0 | codenet | Compile Error | 844 | |
v2_s518996814 | s518996814 | s518996814 | p00103 | p00103 | u736256485 | u736256485 | 1,490,518,856 | 2017-03-26T09:00:56 | Main.java | import java.io.*;
public class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int count_out = 0, inning;
int baseflag = 0;
String str = "";
String binary = "";
inning = s.nextInt();
int[] score = new int[inning];
while(count_out < inning * 3){
... | Main.java:5: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u736256485|p00103|0 | u736256485|p00103|0 | codenet | Compile Error | 1,749 | |
v2_s270827167 | s270827167 | s270827167 | p00103 | p00103 | u736256485 | u736256485 | 1,490,518,946 | 2017-03-26T09:02:26 | BaseballSimulation.java | import java.io.*;
public class BaseballSimulation{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int count_out = 0, inning;
int baseflag = 0;
String str = "";
String binary = "";
inning = s.nextInt();
int[] score = new int[inning];
while(count_out < in... | BaseballSimulation.java:5: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class BaseballSimulation
BaseballSimulation.java:5: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u736256485|p00103|0 | u736256485|p00103|0 | codenet | Compile Error | 1,235 | |
v2_s731049004 | s731049004 | s731049004 | p00103 | p00103 | u736256485 | u736256485 | 1,490,519,015 | 2017-03-26T09:03:35 | BaseballSimulation.java | import java.util.Scanner;
public class BaseballSimulation{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
int count_out = 0, inning;
int baseflag = 0;
String str = "";
String binary = "";
inning = s.nextInt();
int[] score = new int[inning];
while(count_... | BaseballSimulation.java:18: error: cannot find symbol
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class BaseballSimulation
BaseballSimulation.java:18: error: cannot find symbol
BufferedReader bf = new BufferedReader(new... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u736256485|p00103|0 | u736256485|p00103|0 | codenet | Compile Error | 1,243 | |
v2_s150078985 | s150078985 | s150078985 | p00103 | p00103 | u821106706 | u821106706 | 1,510,854,403 | 2017-11-16T17:46:43 | 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));
????????????????int field = 0;
????????????????long scoreCount = ... | Main.java:4: error: class, interface, enum, or record expected
??
^
Main.java:6: error: illegal start of type
????????public static void main(String[] args) {
^
Main.java:7: error: illegal start of expression
????????????????BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
Main.java:7: error:... | compile_error | 4 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u821106706|p00103|0 | u821106706|p00103|0 | codenet | Compile Error | 2,020 | |
v2_s580209468 | s580209468 | s580209468 | p00103 | p00103 | u821106706 | u821106706 | 1,510,885,810 | 2017-11-17T02:30:10 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<Integ... | Main.java:15: error: ')' or ',' expected
int gameNumber = Integer.parseInt(Objects.requireNonNull(br.readLine());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u821106706|p00103|1 | u821106706|p00103|1 | codenet | Compile Error | 1,198 | |
v2_s069270891 | s069270891 | s069270891 | p00103 | p00103 | u821106706 | u821106706 | 1,510,886,798 | 2017-11-17T02:46:38 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<Integ... | Main.java:15: error: ')' or ',' expected
int gameNumber = Integer.parseInt(Objects.requireNonNull(br.readLine());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u821106706|p00103|1 | u821106706|p00103|1 | codenet | Compile Error | 1,174 | |
v2_s361640939 | s361640939 | s361640939 | p00103 | p00103 | u825684692 | u825684692 | 1,293,960,962 | 2011-01-02T09:36:02 | Main.java | import java.util.*;
public class Main {
public static void main(String[] a){
Scanner s = new Scanner(System.in);int n=Integer.valueOf(s.next());for(;n-->0;){for(int h=0,o=0;o<3;){switch(s.next().charAt(1)) {case'I':h++;if((h&3)==0)h|=3;break;case'O':h+=(((h&3)+1)<<2);h&=~3;break;default:o++;}System.out.println(h>>2)}}}... | Main.java:4: error: ';' expected
Scanner s = new Scanner(System.in);int n=Integer.valueOf(s.next());for(;n-->0;){for(int h=0,o=0;o<3;){switch(s.next().charAt(1)) {case'I':h++;if((h&3)==0)h|=3;break;case'O':h+=(((h&3)+1)<<2);h&=~3;break;default:o++;}System.out.println(h>>2)}}}}
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u825684692|p00103|0 | u825684692|p00103|0 | codenet | Compile Error | 321 | |
v2_s904770811 | s904770811 | s904770811 | p00104 | p00104 | u435518193 | u435518193 | 1,362,955,895 | 2013-03-10T22:51:35 | Main.java | import java.util.*;
public class Main {
int w,h;
int[][] map;
int[][] cost;
int ansx, ansy;
public void loop(int y, int x, int d){
if(map[y][x]==0){
System.out.println(x + " " + y);
return;
}
cost[y][x] = 1;
if(d==1){
if(cost[y-1][x]==1){
System.out.println("LOOP");
return;
}els... | Main.java:51: error: cannot find symbol
AOJ_0104 A = new AOJ_0104();
^
symbol: class AOJ_0104
location: class Main
Main.java:51: error: cannot find symbol
AOJ_0104 A = new AOJ_0104();
^
symbol: class AOJ_0104
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u435518193|p00104|0 | u435518193|p00104|0 | codenet | Compile Error | 1,442 | |
v2_s120305090 | s120305090 | s120305090 | p00104 | p00104 | u460456614 | u460456614 | 1,455,614,691 | 2016-02-16T09:24:51 | Main.java | process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
main(chunk.trim());
});
function main(chunk){
var lines = chunk.split("\n");
for(var n=0;n<lines.length-1;){
var H = Number(lines[n].split(" ")[0]);
var W = Number(lines[n].split(" ")[1]);
... | Main.java:1: error: class, interface, enum, or record expected
process.stdin.resume();
^
Main.java:2: error: class, interface, enum, or record expected
process.stdin.setEncoding('utf8');
^
Main.java:2: error: unclosed character literal
process.stdin.setEncoding('utf8');
^
Main.java:2: error: u... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u460456614|p00104|0 | u460456614|p00104|0 | codenet | Compile Error | 949 | |
v2_s244346067 | s244346067 | s244346067 | p00104 | p00104 | u834962510 | u834962510 | 1,328,147,369 | 2012-02-02T01:49:29 | Main.java | import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
new MagicTiles().solve();
}
public void solve() {
Scanner input = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int H, W;
char[][] maze = new char[101][101];
whil... | Main.java:6: error: cannot find symbol
new MagicTiles().solve();
^
symbol: class MagicTiles
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u834962510|p00104|0 | u834962510|p00104|0 | codenet | Compile Error | 1,108 | |
v2_s938354353 | s938354353 | s938354353 | p00104 | p00104 | u871149799 | u871149799 | 1,416,820,800 | 2014-11-24T09:20:00 | Main.java | t H,W;
Scanner sc = new Scanner(System.in);
while(true){
H = sc.nextInt();
W = sc.nextInt();
if(H == 0 || W == 0){
break;
}
char [][] array = new char[H][W];
sc.nextLine();
for(int i = 0; i < H; i++){
String line = sc.nextLine();
for(int j = 0; j < W; j++){
array[i][j] = line.c... | Main.java:1: error: class, interface, enum, or record expected
t H,W;
^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
wh... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u871149799|p00104|0 | u871149799|p00104|0 | codenet | Compile Error | 810 | |
v2_s801129820 | s801129820 | s801129820 | p00105 | p00105 | u031194354 | u031194354 | 1,475,023,630 | 2016-09-28T00:47:10 | Main.java | import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Map<String, List<Integer>> ref = ne... | Main.java:40: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u031194354|p00105|0 | u031194354|p00105|0 | codenet | Compile Error | 946 | |
v2_s137790317 | s137790317 | s137790317 | p00105 | p00105 | u722267370 | u722267370 | 1,421,998,865 | 2015-01-23T07:41:05 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class Main {
private BufferedReader in = new BufferedReader(new InputStreamReader(
System.in));
public static voi... | Main.java:15: error: cannot find symbol
BookIndex wordcount = new BookIndex();
^
symbol: class BookIndex
location: class Main
Main.java:15: error: cannot find symbol
BookIndex wordcount = new BookIndex();
^
symbol: class BookIndex
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u722267370|p00105|0 | u722267370|p00105|0 | codenet | Compile Error | 1,883 | |
v2_s107314691 | s107314691 | s107314691 | p00105 | p00105 | u722267370 | u722267370 | 1,421,999,081 | 2015-01-23T07:44:41 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
public class Main {
private BufferedReader in = new BufferedReader(new InputStreamReader(
System.in));
public static voi... | Main.java:47: error: cannot find symbol
Collections.sort(list);
^
symbol: variable Collections
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u722267370|p00105|0 | u722267370|p00105|0 | codenet | Compile Error | 1,902 | |
v2_s332494128 | s332494128 | s332494128 | p00106 | p00106 | u760351030 | u760351030 | 1,437,890,256 | 2015-07-26T05:57:36 | Main.java | mport java.util.Arrays;
import java.util.Scanner;
public class Main {
MyScanner sc = new MyScanner();
Scanner sc2 = new Scanner(System.in);
long start = System.currentTimeMillis();
long fin = System.currentTimeMillis();
final int MOD = 1000000007;
int[] dx = { 1, 0, 0, -1 };
int[] dy = { 0, 1, -1, 0 };
void r... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Arrays;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u760351030|p00106|1 | u760351030|p00106|1 | codenet | Compile Error | 3,486 | |
v2_s823214829 | s823214829 | s823214829 | p00107 | p00107 | u663419588 | u663419588 | 1,338,872,953 | 2012-06-05T05:09:13 | Main.java | import java.util.*;
public class Main
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int[] x = new int[3];
for(int i = 0; i < 3; i++){
x[i] = stdIn.nextInt();
}
while( x[0] != 0 || x[1] != 0 || x[2] != 0 ){
for(int i = 0; i < 3; i++){
int max = i;
for(int j ... | Main.java:3: error: '{' expected
public class Main
^
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:39: error: class, interface, enum, or record... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u663419588|p00107|0 | u663419588|p00107|0 | codenet | Compile Error | 804 | |
v2_s642310949 | s642310949 | s642310949 | p00107 | p00107 | u778333573 | u778333573 | 1,522,198,262 | 2018-03-28T00:51:02 | Main.java | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(true){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a==0&&ab==0&&c==0) break... | Main.java:10: error: cannot find symbol
if(a==0&&ab==0&&c==0) break;
^
symbol: variable ab
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u778333573|p00107|0 | u778333573|p00107|0 | codenet | Compile Error | 624 | |
v2_s065560610 | s065560610 | s065560610 | p00108 | p00108 | u213849509 | u213849509 | 1,423,987,474 | 2015-02-15T08:04:34 | Main.java | 10
4 5 1 1 4 5 12 3 5 4
0 | Main.java:1: error: class, interface, enum, or record expected
10
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213849509|p00108|0 | u213849509|p00108|0 | codenet | Compile Error | 25 | |
v2_s263478025 | s263478025 | s263478025 | p00108 | p00108 | u778333573 | u778333573 | 1,524,030,894 | 2018-04-18T05:54:54 | Main.java | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int array[];
while(truez){
int n = sc.nextInt();
if(n == 0)break;
array = new int[n];
for(int i = 0; i < n; i++)array[i] = sc.... | Main.java:8: error: cannot find symbol
while(truez){
^
symbol: variable truez
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u778333573|p00108|0 | u778333573|p00108|0 | codenet | Compile Error | 1,096 | |
v2_s528842065 | s528842065 | s528842065 | p00109 | p00109 | u137027976 | u137027976 | 1,402,161,339 | 2014-06-07T17:15:39 | Main.java | TERM_N = 0
TERM_OP_PM = 1
TERM_OP_MD = 2
TERM_OP_SIGN = 3
TERM_LB = 4
TERM_RB = 5
TERM_END = 6
def lex_analyze(str)
expr = []
come_sign = true
for t in str.scan(/\d+|[\+\-\*\/\(\)=]/)
case t
when '+', '-'
if come_sign
expr.push [TERM_OP_SIGN, t]
else
expr.push [TERM_OP_PM... | Main.java:1: error: class, interface, enum, or record expected
TERM_N = 0
^
Main.java:14: error: illegal character: '\'
for t in str.scan(/\d+|[\+\-\*\/\(\)=]/)
^
Main.java:14: error: illegal character: '\'
for t in str.scan(/\d+|[\+\-\*\/\(\)=]/)
^
Main.java:14: erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u137027976|p00109|0 | u137027976|p00109|0 | codenet | Compile Error | 2,339 | |
v2_s320054462 | s320054462 | s320054462 | p00109 | p00109 | u300645821 | u300645821 | 1,291,737,803 | 2010-12-07T16:03:23 | Main.java | import javax.script.*;
class Main{
public static void main(String[]z){
ScriptEngineManager factory = new ScriptEngineManager();
ScriptEngine engine = factory.getEngineByName("JavaScript");
engine.eval("println('Hello JavaScript from Java.')");
}
} | Main.java:7: error: unreported exception ScriptException; must be caught or declared to be thrown
engine.eval("println('Hello JavaScript from Java.')");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u300645821|p00109|0 | u300645821|p00109|0 | codenet | Compile Error | 290 | |
v2_s248209127 | s248209127 | s248209127 | p00109 | p00109 | u489809100 | u489809100 | 1,453,908,417 | 2016-01-27T15:26:57 | Main.java | def calc(array):
while not len(array) == 1:
if '*' in array:
x = array.index('*')
array[x + 1] = str(int(array[x - 1]) * int(array[x + 1]))
del array[x - 1:x + 1]
continue
if '/' in array:
x = array.index('/')
array[x + 1] = str(int(array[x - 1]) / int(array[x + 1]))
del array[x - 1:x + 1]
... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
def calc(array):
^
(use --enable-preview to enable unnamed classes)
Main.java:1: error: <identifier> expected
def calc(array):
^
Main.java:1: error: ';' expected
def calc(array):
^
Main.java:5: error: c... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u489809100|p00109|0 | u489809100|p00109|0 | codenet | Compile Error | 874 | |
v2_s585135031 | s585135031 | s585135031 | p00109 | p00109 | u759934006 | u759934006 | 1,470,889,779 | 2016-08-11T04:29:39 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Deque;
import static java.lang.Integer.parseInt;
/**
* Smart Calculator
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br ... | Main.java:33: error: illegal start of expression
while (stack.peek() == '*' || stack.peek() == '/')){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u759934006|p00109|0 | u759934006|p00109|0 | codenet | Compile Error | 1,965 | |
v2_s985141824 | s985141824 | s985141824 | p00109 | p00109 | u798339835 | u798339835 | 1,401,010,011 | 2014-05-25T09:26:51 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String args[] ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int line=Integer.parseInt(br.readLine);
Main calc=new Main();
for(int n=0;n<line;n++){
St... | Main.java:7: error: cannot find symbol
int line=Integer.parseInt(br.readLine);
^
symbol: variable readLine
location: variable br of type BufferedReader
Main.java:23: error: cannot find symbol
ArrayList<String> num=new ArrayList<String>();
^
symbol: class ArrayList
locatio... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798339835|p00109|0 | u798339835|p00109|0 | codenet | Compile Error | 5,314 | |
v2_s758768808 | s758768808 | s758768808 | p00109 | p00109 | u798339835 | u798339835 | 1,401,010,061 | 2014-05-25T09:27:41 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String args[] ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int line=Integer.parseInt(br.readLine());
Main calc=new Main();
... | Main.java:155: error: incompatible types: double cannot be converted to Integer
return doCalc1(expr.substring(6))/180*Math.PI;
^
Main.java:158: error: incompatible types: double cannot be converted to Integer
return Math.sin(doCalc1(expr.substring(3)));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798339835|p00109|0 | u798339835|p00109|0 | codenet | Compile Error | 5,344 | |
v2_s634664300 | s634664300 | s634664300 | p00109 | p00109 | u935042117 | u935042117 | 1,530,522,981 | 2018-07-02T09:16:21 | Calc.java | import java.util.Scanner;
import java.util.function.IntBinaryOperator;
public class Calc {
static int lastIndexOf(String e, char ch) {
int nest = 0;
for(int i = e.length()-1; i > 0 ; i--) {
char c = e.charAt(i);
if(c == ‘(’) {
nest++;
}
... | Calc.java:10: error: illegal character: '\u2018'
if(c == ?(?) {
^
Calc.java:10: error: illegal character: '\u2019'
if(c == ?(?) {
^
Calc.java:13: error: illegal character: '\u2018'
if(c == ?)?) {
^
Calc.java:13: error: ill... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u935042117|p00109|0 | u935042117|p00109|0 | codenet | Compile Error | 1,593 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.