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_s544314375 | s544314375 | s544314375 | p02382 | p02382 | u438493637 | u438493637 | 1,523,439,693 | 2018-04-11T09:41:33 | Main.java | 3
1 2 3
2 0 4
| Main.java:1: error: class, interface, enum, or record expected
3
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438493637|p02382|0 | u438493637|p02382|0 | codenet | Compile Error | 14 | |
v2_s490422592 | s490422592 | s490422592 | p02382 | p02382 | u438493637 | u438493637 | 1,523,440,692 | 2018-04-11T09:58:12 | Main.java | 5
1 2 3 4 5
5 0 7 9 2
18.0
8.366600265340756
6.603854497789253
5.0
| Main.java:1: error: class, interface, enum, or record expected
5
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438493637|p02382|0 | u438493637|p02382|0 | codenet | Compile Error | 68 | |
v2_s582525163 | s582525163 | s582525163 | p02382 | p02382 | u699160354 | u699160354 | 1,514,549,302 | 2017-12-29T12:08:22 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
double[] x = new double[n];
double[] y = new double[n];
String[] line = new String[n];
double dxyP1=0;
double dxyP2=0;
double dxyP3=0;
double dxyP=0;
... | Main.java:16: error: illegal start of expression
for(int i=0;i<n;i++)){
^
Main.java:21: error: illegal start of expression
for(int i=;i<n;i++){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02382|0 | u699160354|p02382|0 | codenet | Compile Error | 1,001 | |
v2_s677246736 | s677246736 | s677246736 | p02382 | p02382 | u699160354 | u699160354 | 1,514,549,350 | 2017-12-29T12:09:10 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
double[] x = new double[n];
double[] y = new double[n];
String[] line = new String[n];
double dxyP1=0;
double dxyP2=0;
double dxyP3=0;
double dxyP=0;
... | Main.java:16: error: illegal start of expression
for(int i=0;i<n;i++)){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02382|0 | u699160354|p02382|0 | codenet | Compile Error | 1,002 | |
v2_s746285391 | s746285391 | s746285391 | p02382 | p02382 | u699160354 | u699160354 | 1,514,550,651 | 2017-12-29T12:30:51 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());//line-1
double[] x = new double[n];
double[] y = new double[n];
String[] line = new String[n];
double dxyP1=0;
double dxyP2=0;
double dxyP3=0;
double ... | Main.java:28: error: ';' expected
dxyP3+=Math.abs(x[i]-y[i])*Math.abs(x[i]-y[i])*Math.abs(x[i]-y[i])1;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02382|0 | u699160354|p02382|0 | codenet | Compile Error | 1,124 | |
v2_s302542102 | s302542102 | s302542102 | p02382 | p02382 | u910402677 | u910402677 | 1,478,760,418 | 2016-11-10T06:46:58 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
double[] x = new double[n];
double[] y = new double[n];
double d1, sum2, d2, sum3, d3, d4;
for(int i = 0; i < n; i++){
x[i] = scan.nextDouble();
}
for... | Main.java:19: error: cannot find symbol
d1 += Math.abs(x[i] - y[i]);
^
symbol: variable i
location: class Main
Main.java:19: error: cannot find symbol
d1 += Math.abs(x[i] - y[i]);
^
symbol: variable i
location: class Main
Main.java:20: error: cannot find symb... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02382|0 | u910402677|p02382|0 | codenet | Compile Error | 707 | |
v2_s622896472 | s622896472 | s622896472 | p02382 | p02382 | u910402677 | u910402677 | 1,478,760,617 | 2016-11-10T06:50:17 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
double[] x = new double[n];
double[] y = new double[n];
double d1, sum2, d2, sum3, d3, d4;
for(int i = 0; i < n; i++){
x[i] = scan.nextDouble();
}
for... | Main.java:20: error: variable d1 might not have been initialized
d1 += Math.abs(x[i] - y[i]);
^
Main.java:21: error: variable sum2 might not have been initialized
sum2 += Math.pow((Math.abs(x[i] - y[i])), 2);
^
Main.java:22: error: variable sum3 might not have been initialized
sum3 += Math.pow((Math.abs(... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02382|0 | u910402677|p02382|0 | codenet | Compile Error | 747 | |
v2_s314670854 | s314670854 | s314670854 | p02382 | p02382 | u910402677 | u910402677 | 1,479,898,219 | 2016-11-23T10:50:19 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int n = scan.nextInt();
int[] x = new int[n];
int[] y = new int[n];
for(int i = 0; i < n; i++){
x[i] = scan.nextInt();
}
for(int i = 0; i < n; i++){
y[i] = sca... | Main.java:23: error: ')' or ',' expected
sum2 += Math.pow(Math.abs(x[i] - y[i], 2);
^
Main.java:24: error: ')' or ',' expected
sum3 += Math.pow(Math.abs(x[i] - y[i], 3);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02382|1 | u910402677|p02382|1 | codenet | Compile Error | 811 | |
v2_s840991300 | s840991300 | s840991300 | p02382 | p02382 | u918457647 | u918457647 | 1,453,227,613 | 2016-01-19T18:20:13 | Main.java | import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args){
sc=new Scanner(System.in);
int n=sc.nextInt();
int x[]=new int[n];
int y[]=new int[n];
for(int i=0;i<n;i++){
x[i]=sc.nextInt();
}
for(int i=0;i<n;i++){
y[i]=sc.nextInt();
}
Double d... | Main.java:17: error: variable d1 is already defined in method main(String[])
for(int i=0,d1=0,sum2=0,sum3=0,d4=0;i<n;i++){
^
Main.java:17: error: variable sum2 is already defined in method main(String[])
for(int i=0,d1=0,sum2=0,sum3=0,d4=0;i<n;i++){
^
Main.java:17: error: variable s... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u918457647|p02382|0 | u918457647|p02382|0 | codenet | Compile Error | 671 | |
v2_s096173925 | s096173925 | s096173925 | p02382 | p02382 | u928579315 | u928579315 | 1,515,086,564 | 2018-01-04T17:22:44 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int[] xArray = new int[num];
for(int i = 0; i < num; i++){
xArray[i] = sc.nextInt();
}
int[] yArray = new int... | Main.java:26: error: cannot find symbol
p[1] = Math.sqrt(p2);
^
symbol: variable p2
location: class Main
Main.java:27: error: cannot find symbol
p[2] = Math.cbrt(p3);
^
symbol: variable p3
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u928579315|p02382|0 | u928579315|p02382|0 | codenet | Compile Error | 885 | |
v2_s552246480 | s552246480 | s552246480 | p02382 | p02382 | u968994446 | u968994446 | 1,488,083,224 | 2017-02-26T04:27:04 | Main.java | public class Main{
private enum pType{
p1(1),
p2(2),
p3(3),
pInfinity(0);
private int p;
private pType(int p){
this.p = p;
}
private int getPType(){
return p;
}
}
public static void main(String[] args) throws IOException{
BufferedReader br = new Bu... | Main.java:17: error: cannot find symbol
public static void main(String[] args) throws IOException{
^
symbol: class IOException
location: class Main
Main.java:18: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u968994446|p02382|0 | u968994446|p02382|0 | codenet | Compile Error | 1,426 | |
v2_s108964510 | s108964510 | s108964510 | p02383 | p02383 | u097204849 | u097204849 | 1,515,145,970 | 2018-01-05T09:52:50 | Main.java | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str;
str = br.readLine();
String[] nums = str.split("\\s");
... | Main.java:16: error: non-static variable this cannot be referenced from a static context
Dice D = new Dice(temp[0],temp[5],temp[1],temp[3],temp[2],temp[4]);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u097204849|p02383|0 | u097204849|p02383|0 | codenet | Compile Error | 2,216 | |
v2_s194415005 | s194415005 | s194415005 | p02383 | p02383 | u097204849 | u097204849 | 1,515,146,077 | 2018-01-05T09:54:37 | Main.java | import java.io.*;
import java.util.*;
public class Main{
class Dice{
int top;
int bottom;
int S;
int W;
int E;
int N;
Dice(int a,int b, int c,int d,int e,int f){
this.top = a;
this.bottom = b;
this.S = c;
... | Main.java:71: error: non-static variable this cannot be referenced from a static context
Dice D = new Dice(temp[0],temp[5],temp[1],temp[3],temp[2],temp[4]);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u097204849|p02383|0 | u097204849|p02383|0 | codenet | Compile Error | 2,218 | |
v2_s750698047 | s750698047 | s750698047 | p02383 | p02383 | u126119552 | u126119552 | 1,462,951,223 | 2016-05-11T07:20:23 | Main.java | import java.io.*;
class Main{
public static void main(String args[])throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String[] str = buf.readLine().split(" ");
String direction = buf.readLine();
int[] num = new int[6];
for(int i=0; i<6; i++){
num[i] = Integer... | Main.java:22: error: invalid method declaration; return type required
public Saikoro(int[] num, String direction){
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u126119552|p02383|0 | u126119552|p02383|0 | codenet | Compile Error | 1,443 | |
v2_s867126100 | s867126100 | s867126100 | p02383 | p02383 | u162151793 | u162151793 | 1,508,635,913 | 2017-10-22T01:31:53 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args)throws Exception{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
int[] data = new int[line.length()];
for(int i = 0; i < ... | Main.java:10: error: cannot find symbol
int[] data = new int[line.length()];
^
symbol: method length()
location: variable line of type String[]
Main.java:12: error: cannot find symbol
data[i] = Interger.parseInt(line[i]);
^
symbol: variable Interger
location: cla... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02383|0 | u162151793|p02383|0 | codenet | Compile Error | 1,698 | |
v2_s099675874 | s099675874 | s099675874 | p02383 | p02383 | u179323374 | u179323374 | 1,523,425,815 | 2018-04-11T05:50:15 | Main.java | import java.util.*
fun main(args: Array<String>) {
val scan = Scanner(System."in")
val DICE: Int = 6
var dice: Array<Int?> = arrayOfNulls(DICE)
var dice2: Array<Int?> = arrayOfNulls(DICE)
var word: String = "A"
for (i in 0 until DICE) {
dice[i] = scan.nextInt()
}
var d... | Main.java:1: error: ';' expected
import java.util.*
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u179323374|p02383|1 | u179323374|p02383|1 | codenet | Compile Error | 1,247 | |
v2_s364983996 | s364983996 | s364983996 | p02383 | p02383 | u179323374 | u179323374 | 1,523,501,154 | 2018-04-12T02:45:54 | Main.java | import java.util.Scanner
fun main(args:Array<String>) {
val scan = Scanner(System.`in`)
val DICE = 6
var dice = IntArray(DICE)
var dice2 = IntArray(DICE)
for (i in 0 until DICE)
{
val number: Int = scan.nextInt()
dice[i] = number
}
val direction = scan.next()
... | Main.java:1: error: ';' expected
import java.util.Scanner
^
Main.java:4: error: illegal character: '`'
val scan = Scanner(System.`in`)
^
Main.java:4: error: illegal character: '`'
val scan = Scanner(System.`in`)
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u179323374|p02383|2 | u179323374|p02383|2 | codenet | Compile Error | 1,352 | |
v2_s102234142 | s102234142 | s102234142 | p02383 | p02383 | u203382477 | u203382477 | 1,526,986,064 | 2018-05-22T10:47:44 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
Dice dice=new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
String str=scan.next();
for(int i=0;i<str.length();i++) {
if(str.equals('... | Main.java:59: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u203382477|p02383|0 | u203382477|p02383|0 | codenet | Compile Error | 941 | |
v2_s840992247 | s840992247 | s840992247 | p02383 | p02383 | u203382477 | u203382477 | 1,526,994,344 | 2018-05-22T13:05:44 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
Dice dice=new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
String str=scan.next();
for(int i=0;i<str.length();i++) {
char a=str.cha... | Main.java:6: error: non-static variable this cannot be referenced from a static context
Dice dice=new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u203382477|p02383|1 | u203382477|p02383|0 | codenet | Compile Error | 999 | |
v2_s631784326 | s631784326 | s631784326 | p02383 | p02383 | u213503793 | u213503793 | 1,409,030,317 | 2014-08-26T05:18:37 | Main.java | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//BufferedRead... | Main.java:80: error: reached end of file while parsing
String getd1(){return this.top;}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213503793|p02383|0 | u213503793|p02383|0 | codenet | Compile Error | 1,480 | |
v2_s645162787 | s645162787 | s645162787 | p02383 | p02383 | u213503793 | u213503793 | 1,409,030,440 | 2014-08-26T05:20:40 | Main.java | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//BufferedRead... | Main.java:71: error: variable top might not have been initialized
this.top=top;
^
Main.java:76: error: variable bot might not have been initialized
this.bot=bot;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u213503793|p02383|0 | u213503793|p02383|0 | codenet | Compile Error | 1,452 | |
v2_s262503898 | s262503898 | s262503898 | p02383 | p02383 | u249262080 | u249262080 | 1,517,891,308 | 2018-02-06T04:28:28 | Main.java | import java.util.Scanner;
public class Main {
public class Dice {
int[] dice = new int[6];
/**
* サイコロを用意する
* @param nums
*/
public Dice(int[] nums) {
dice = nums;
}
/**
* サイコロの状態を確認
*/
public int[] checkSurface() {
return dice;
}
/**
* 入力された方向に移動
* @param order
*/
... | Main.java:122: error: cannot find symbol
Dice dice = new Dice1().new Dice(nums);
^
symbol: class Dice1
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u249262080|p02383|1 | u249262080|p02383|1 | codenet | Compile Error | 2,767 | |
v2_s366400119 | s366400119 | s366400119 | p02383 | p02383 | u260169299 | u260169299 | 1,546,038,349 | 2018-12-28T23:05:49 | Dice.java | import java.util.Scanner;
public class Dice {
public static void main(String[] args) {
Scanner f = new Scanner(System.in);
// fill in the dictionary with the initial value
int[] values = new int[6];
for(int i = 0; i < 6; i++){
values[i] = f.nextInt();
}
D... | Dice.java:21: error: duplicate class: Dice
class Dice {
^
Dice.java:11: error: constructor Dice in class Dice cannot be applied to given types;
Dice dice = new Dice(values);
^
required: no arguments
found: int[]
reason: actual and formal argument lists differ in length
Dice.java:16:... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u260169299|p02383|0 | u260169299|p02383|0 | codenet | Compile Error | 2,030 | |
v2_s677109765 | s677109765 | s677109765 | p02383 | p02383 | u260169299 | u260169299 | 1,546,038,421 | 2018-12-28T23:07:01 | Dice.java | import java.util.Scanner;
public class Dice {
public static void main(String[] args) {
Scanner f = new Scanner(System.in);
// fill in the dictionary with the initial value
int[] values = new int[6];
for(int i = 0; i < 6; i++){
values[i] = f.nextInt();
}
... | Dice.java:20: error: class Dice is already defined in package unnamed package
static class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u260169299|p02383|0 | u260169299|p02383|0 | codenet | Compile Error | 2,277 | |
v2_s576328844 | s576328844 | s576328844 | p02383 | p02383 | u277869133 | u277869133 | 1,485,672,419 | 2017-01-29T06:46:59 | Main.java |
import java.util.Scanner;
public class Main {
public static void main(String[]args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//
String[] str = sc.nextLine().split(" ");
//
String direction =sc.next();
//?????????????????°??????
int[] num = new int[6];
//????????????... | Main.java:22: error: non-static variable this cannot be referenced from a static context
Saikoro sk = new Saikoro(num, direction);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u277869133|p02383|0 | u277869133|p02383|0 | codenet | Compile Error | 1,373 | |
v2_s153951575 | s153951575 | s153951575 | p02383 | p02383 | u297209902 | u297209902 | 1,529,389,050 | 2018-06-19T06:17:30 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Dice {
private String[] dice;
private char[] move;
private String[] over;
public void setDice (String[] diceStr)
{
dice = new String[6];
for(int num = 0; num < diceStr.length; num++)
dice[num] = d... | Main.java:5: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u297209902|p02383|0 | u297209902|p02383|0 | codenet | Compile Error | 1,988 | |
v2_s835857057 | s835857057 | s835857057 | p02383 | p02383 | u297209902 | u297209902 | 1,529,389,131 | 2018-06-19T06:18:51 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main (String[] args) throws IOException
{
BufferedReader input = new BufferedReader (new InputStreamReader (System.in));
Dice dice = new Dice();
dice.setDice(input.readLine().sp... | Main.java:20: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u297209902|p02383|0 | u297209902|p02383|0 | codenet | Compile Error | 1,988 | |
v2_s195343913 | s195343913 | s195343913 | p02383 | p02383 | u330397888 | u330397888 | 1,485,235,205 | 2017-01-24T05:20:05 | Main.java | package test;
import java.util.Scanner;
public class Main{
public static void main(String args[]){
//sc??¨dice??????????????????????????????
Scanner sc = new Scanner(System.in);
Dice dice = new Dice(sc);
//????????????????????????
String command = sc.next();
//????????????char????????????
for(int i ... | Main.java:82: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u330397888|p02383|1 | u330397888|p02383|1 | codenet | Compile Error | 1,486 | |
v2_s388853939 | s388853939 | s388853939 | p02383 | p02383 | u371383254 | u371383254 | 1,463,649,083 | 2016-05-19T09:11:23 | Main.java | import java.util.Scanner;
public class Main {
Dice dice;
void run(){
Scanner s = new Scanner(System.in);
int[] num = new int[6];
for(int i = 0;i < num.length;i++){
num[i] = s.nextInt();
}
dice = new Dice(num);
String str = s.next();
for(int i = 0;i < str.length();i++){
dice.label = dice.roll(str.... | Main.java:4: error: cannot find symbol
Dice dice;
^
symbol: class Dice
location: class Main
Main.java:11: error: cannot find symbol
dice = new Dice(num);
^
symbol: class Dice
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u371383254|p02383|0 | u371383254|p02383|0 | codenet | Compile Error | 430 | |
v2_s505926929 | s505926929 | s505926929 | p02383 | p02383 | u371383254 | u371383254 | 1,463,649,113 | 2016-05-19T09:11:53 | Main.java | import java.util.Scanner;
public class Main {
Dice dice;
void run(){
Scanner s = new Scanner(System.in);
int[] num = new int[6];
for(int i = 0;i < num.length;i++){
num[i] = s.nextInt();
}
dice = new Dice(num);
String str = s.next();
for(int i = 0;i < str.length();i++){
dice.label = dice.roll(str.... | Main.java:23: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u371383254|p02383|0 | u371383254|p02383|0 | codenet | Compile Error | 1,711 | |
v2_s425996134 | s425996134 | s425996134 | p02383 | p02383 | u383671372 | u383671372 | 1,492,500,683 | 2017-04-18T07:31:23 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int[] dice1 = Dice.Diceget(line1);
String line2 = sc.nextLine();
for (int i = 0; i < line2.len... | Main.java:32: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u383671372|p02383|0 | u383671372|p02383|0 | codenet | Compile Error | 1,632 | |
v2_s733578760 | s733578760 | s733578760 | p02383 | p02383 | u411587399 | u411587399 | 1,524,407,686 | 2018-04-22T14:34:46 | Main.java |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Dice dice = new Dice();
int x1 = sc.nextInt();
int x2 = sc.nextInt();
int x3 = sc.nextInt();
int x4 = sc.nextInt();
int x5 = sc.nextInt();
int x6 = sc.nextInt();
String temp =... | Main.java:7: error: cannot find symbol
Dice dice = new Dice();
^
symbol: class Dice
location: class Main
Main.java:7: error: cannot find symbol
Dice dice = new Dice();
^
symbol: class Dice
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u411587399|p02383|0 | u411587399|p02383|0 | codenet | Compile Error | 683 | |
v2_s191376422 | s191376422 | s191376422 | p02383 | p02383 | u585725265 | u585725265 | 1,492,064,831 | 2017-04-13T06:27:11 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Dice dice = new Dice(sc);
sc.nextLine();
String[] lines = sc.nextLine().split("");
for(int i = 0;i < lines.length;i++) {
if(lines[i].equals("N")) {
dice.goNorth();
} else if... | Main.java:28: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u585725265|p02383|1 | u585725265|p02383|0 | codenet | Compile Error | 1,786 | |
v2_s974395338 | s974395338 | s974395338 | p02383 | p02383 | u697401148 | u697401148 | 1,525,357,011 | 2018-05-03T14:16:51 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
Dice dice = new Dice();
for(int i = 0; i < 6; i++){
dice.setNum(i, scanner.nextInt());
}
String command = scanner.next();
for... | Main.java:23: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u697401148|p02383|0 | u697401148|p02383|0 | codenet | Compile Error | 1,766 | |
v2_s712786369 | s712786369 | s712786369 | p02383 | p02383 | u699160354 | u699160354 | 1,514,553,505 | 2017-12-29T13:18:25 | Main.java | import java.util.*;
public class Main{
public static void Main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int[] num=new num[6];
for(int i=0;i<6;i++){
num[i]=Integer.parseInt(line[i]);
}
Dice dice = new Dice(num);
String str=sc.nextLine();
for(int ... | Main.java:34: error: <identifier> expected
Dice(int in1,in2,in3,in4,in5,in6){
^
Main.java:34: error: <identifier> expected
Dice(int in1,in2,in3,in4,in5,in6){
^
Main.java:34: error: <identifier> expected
Dice(int in1,in2,in3,in4,in5,in6){
^
Main.java:34: ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02383|0 | u699160354|p02383|0 | codenet | Compile Error | 1,499 | |
v2_s249993770 | s249993770 | s249993770 | p02383 | p02383 | u699160354 | u699160354 | 1,514,553,573 | 2017-12-29T13:19:33 | Main.java | import java.util.*;
public class Main{
public static void Main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int[] num=new num[6];
for(int i=0;i<6;i++){
num[i]=Integer.parseInt(line[i]);
}
Dice dice = new Dice(num);
String str=sc.nextLine();
for(int ... | Main.java:28: error: class Dice is public, should be declared in a file named Dice.java
public class Dice{
^
Main.java:7: error: cannot find symbol
int[] num=new num[6];
^
symbol: class num
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02383|0 | u699160354|p02383|0 | codenet | Compile Error | 1,290 | |
v2_s297344033 | s297344033 | s297344033 | p02383 | p02383 | u699160354 | u699160354 | 1,514,610,636 | 2017-12-30T05:10:36 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int num[] = new int[6];
for(int i=0;i<6;i++){
num[i]=Integer.parseInt(line[i]);
}
int q = Integer.parseInt(sc.nextLine());
Dice dice = new Dice(num);
... | Main.java:47: error: class, interface, enum, or record expected
Dice(int[] i){
^
Main.java:49: error: class, interface, enum, or record expected
lavel2=i[1];
^
Main.java:50: error: class, interface, enum, or record expected
lavel3=i[2];
^
Main.java:51: error: class, interface, enum, or record expected
lavel... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02383|1 | u699160354|p02383|1 | codenet | Compile Error | 1,733 | |
v2_s072388818 | s072388818 | s072388818 | p02383 | p02383 | u699160354 | u699160354 | 1,514,610,701 | 2017-12-30T05:11:41 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int num[] = new int[6];
for(int i=0;i<6;i++){
num[i]=Integer.parseInt(line[i]);
}
int q = Integer.parseInt(sc.nextLine());
Dice dice = new Dice(num);
... | Main.java:15: error: cannot find symbol
line= sc.nextLine.split(" ");
^
symbol: variable nextLine
location: variable sc of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02383|1 | u699160354|p02383|1 | codenet | Compile Error | 1,862 | |
v2_s175744072 | s175744072 | s175744072 | p02383 | p02383 | u706566315 | u706566315 | 1,483,530,183 | 2017-01-04T11:43:03 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line1 = reader.readLine();
String[] dice = line1.split(" ", -1);
int[] diceNum = new int[dice.length];
for (int i = 0; i < dic... | Main.java:15: error: cannot find symbol
Dice.insert(diceNum);
^
symbol: variable Dice
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u706566315|p02383|0 | u706566315|p02383|0 | codenet | Compile Error | 1,340 | |
v2_s485984988 | s485984988 | s485984988 | p02383 | p02383 | u706566315 | u706566315 | 1,483,530,214 | 2017-01-04T11:43:34 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line1 = reader.readLine();
String[] dice = line1.split(" ", -1);
int[] diceNum = new int[dice.length];
for (int i = 0; i < dic... | Main.java:15: error: cannot find symbol
Dice.insert(diceNum);
^
symbol: variable Dice
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u706566315|p02383|0 | u706566315|p02383|0 | codenet | Compile Error | 1,340 | |
v2_s190745412 | s190745412 | s190745412 | p02383 | p02383 | u734723169 | u734723169 | 1,530,451,960 | 2018-07-01T13:32:40 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] num = new int[6];
for (int i = 0; i < 6; i++) {
num[i] = sc.nextInt();
}
Dice dice = new Dice(num);
String str = sc.next();
dice.order(str);
System.out.println(dice.getFa... | Main.java:18: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02383|0 | u734723169|p02383|0 | codenet | Compile Error | 1,391 | |
v2_s646344714 | s646344714 | s646344714 | p02383 | p02383 | u734723169 | u734723169 | 1,530,544,105 | 2018-07-02T15:08:25 | Main.java | import java.util.Scanner;
public class Main {
private static int face[] = new int[6];
static void dice(int[] num) {
for (int i = 0; i < 6; i++) {
Ex01Dice1.face[i] = num[i];
}
}
static void order(String str) {
char[] order = str.toCharArray();
int tmp;
for (int i = 0; i < order.length; i++) {
sw... | Main.java:9: error: cannot find symbol
Ex01Dice1.face[i] = num[i];
^
symbol: variable Ex01Dice1
location: class Main
Main.java:51: error: cannot find symbol
return Ex01Dice1.face[0];
^
symbol: variable Ex01Dice1
location: class Main
Main.java:55: error: cannot find symbol
Ex01Dice1.face =... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02383|1 | u734723169|p02383|1 | codenet | Compile Error | 1,316 | |
v2_s123885167 | s123885167 | s123885167 | p02383 | p02383 | u734723169 | u734723169 | 1,530,547,054 | 2018-07-02T15:57:34 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] num = new int[6];
Dice dice = new Dice(num);
for (int i = 0; i < 6; i++) {
num[i] = sc.nextInt();
}
dice.setFace(num);
String str = sc.next();
dice.order(str);
System... | Main.java:20: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02383|1 | u734723169|p02383|1 | codenet | Compile Error | 1,496 | |
v2_s068296372 | s068296372 | s068296372 | p02383 | p02383 | u734723169 | u734723169 | 1,530,547,111 | 2018-07-02T15:58:31 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] num = new int[6];
Dice dice = new Dice(num);
for (int i = 0; i < 6; i++) {
num[i] = sc.nextInt();
}
dice.setFace(num);
String str = sc.next();
dice.order(str);
System... | Main.java:20: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u734723169|p02383|1 | u734723169|p02383|1 | codenet | Compile Error | 1,496 | |
v2_s018803662 | s018803662 | s018803662 | p02383 | p02383 | u746972160 | u746972160 | 1,503,677,112 | 2017-08-25T16:05:12 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int[] data = new int[line.length];
for (int i = 0; i < data.length; i++) {
data[i] = Integer.parseInt(line... | Main.java:26: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u746972160|p02383|0 | u746972160|p02383|0 | codenet | Compile Error | 1,657 | |
v2_s397320087 | s397320087 | s397320087 | p02383 | p02383 | u768801062 | u768801062 | 1,527,851,247 | 2018-06-01T11:07:27 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
whi... | Main.java:33: error: cannot find symbol
side[i] = Integer.parseInt(diceNumStr[i]);
^
symbol: variable diceNumStr
location: class Dice
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768801062|p02383|0 | u768801062|p02383|0 | codenet | Compile Error | 1,746 | |
v2_s913000681 | s913000681 | s913000681 | p02383 | p02383 | u782440722 | u782440722 | 1,468,483,137 | 2016-07-14T07:58:57 | Main.java | import java.util.Map;
import java.util.Scanner;
import d.Dice;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
Dice dice = new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
String str = scan.next();
for(int ... | Main.java:26: error: class, interface, enum, or record expected
package d;
^
Main.java:28: error: class, interface, enum, or record expected
import java.util.HashMap;
^
Main.java:29: error: class, interface, enum, or record expected
import java.util.Map;
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02383|0 | u782440722|p02383|0 | codenet | Compile Error | 2,577 | |
v2_s675540419 | s675540419 | s675540419 | p02383 | p02383 | u782440722 | u782440722 | 1,468,483,171 | 2016-07-14T07:59:31 | Main.java | package d;
import java.util.HashMap;
import java.util.Map;
public class Dice {
private int top;
private int front;
private int right;
private int left;
private int back;
private int bottom;
public Dice() {
// TODO ?????????????????????????????????????????????????????????
}
public Dice(int top, int front,... | Main.java:114: error: class, interface, enum, or record expected
import java.util.Map;
^
Main.java:115: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:117: error: class, interface, enum, or record expected
import d.Dice;
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02383|0 | u782440722|p02383|0 | codenet | Compile Error | 2,577 | |
v2_s392561085 | s392561085 | s392561085 | p02383 | p02383 | u782440722 | u782440722 | 1,468,483,187 | 2016-07-14T07:59:47 | Main.java | import java.util.Map;
import java.util.Scanner;
import d.Dice;
public class Main {
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
Dice dice = new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
String str = scan.next();
for(int ... | Main.java:4: error: package d does not exist
import d.Dice;
^
Main.java:10: error: cannot find symbol
Dice dice = new Dice(scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt(),scan.nextInt());
^
symbol: class Dice
location: class Main
Main.java:10: error: cannot find symbol
Dice d... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02383|0 | u782440722|p02383|0 | codenet | Compile Error | 499 | |
v2_s895870492 | s895870492 | s895870492 | p02383 | p02383 | u782440722 | u782440722 | 1,468,483,238 | 2016-07-14T08:00:38 | Main.java | package d;
import java.util.HashMap;
import java.util.Map;
public class Dice {
private int top;
private int front;
private int right;
private int left;
private int back;
private int bottom;
public Dice() {
// TODO ?????????????????????????????????????????????????????????
}
public Dice(int top, int front,... | Main.java:115: error: class, interface, enum, or record expected
import java.util.Map;
^
Main.java:116: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:118: error: class, interface, enum, or record expected
import d.Dice;
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02383|0 | u782440722|p02383|0 | codenet | Compile Error | 2,578 | |
v2_s088755186 | s088755186 | s088755186 | p02383 | p02383 | u782440722 | u782440722 | 1,468,483,593 | 2016-07-14T08:06:33 | Main.java | import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Dice {
private int top;
private int front;
private int right;
private int left;
private int back;
private int bottom;
public Dice() {
// TODO ?????????????????????????????????????????????????????????
}
public Dice(int ... | Main.java:6: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u782440722|p02383|0 | u782440722|p02383|0 | codenet | Compile Error | 2,526 | |
v2_s143222023 | s143222023 | s143222023 | p02383 | p02383 | u795412408 | u795412408 | 1,489,920,129 | 2017-03-19T10:42:09 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int ravel[] = new int[6];
for(int i = 0; i < 6; i++){
ravel[i] = scan.nextInt();
}
scan.nextLine();
String order = scan.nextLine();
scan.close();
Dice dice = new Dice(ravel)... | Main.java:18: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u795412408|p02383|0 | u795412408|p02383|0 | codenet | Compile Error | 1,243 | |
v2_s826636411 | s826636411 | s826636411 | p02383 | p02383 | u798010688 | u798010688 | 1,517,903,576 | 2018-02-06T07:52:56 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int[] input_num = new int[6];
int dice_face_num = 6;
String roll_str ="";
Scanner sc= new Scanner( System.in );
for ( int i = 0 ; i < dice_face_num ; i++ ) {
input_num[i] = sc.nextInt();
}
roll_str = sc.next()... | Main.java:33: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u798010688|p02383|0 | u798010688|p02383|0 | codenet | Compile Error | 1,863 | |
v2_s219450732 | s219450732 | s219450732 | p02383 | p02383 | u833039167 | u833039167 | 1,492,675,439 | 2017-04-20T08:03:59 | Main.java | import java.util.Scanner;
import java.io.*;
class Main {
public static void main(String[] args)throws IOException{
InputStreamReader in = new InputStreamReader(System.in);
BufferedReader read = new BufferedReader(in);
String number = read.readLine();
Stirng[] spli1 = number.split(... | Main.java:11: error: class expected
int [] dice = new int [spli1[].length];
^
Main.java:13: error: class expected
for(int num = 0; num < spli1[].length; num++){
^
Main.java:20: error: class expected
char [] command = new ch... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u833039167|p02383|0 | u833039167|p02383|0 | codenet | Compile Error | 3,779 | |
v2_s119328950 | s119328950 | s119328950 | p02383 | p02383 | u857414225 | u857414225 | 1,522,483,568 | 2018-03-31T08:06:08 | Main.java | #include <iostream>
#include <string>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
struct Cube
{
int f[6];
Cube(){}
void roll(int i,int j,int k,int l)
{
int t = f[i];
f[i] = f[j];
f[j] = f[k];
f[k] = f[l];
f[l] = t;
}
void roll_z() { ro... | Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:3: error: illegal character: '#'
#define rep(i,n) for(int i=0;i<n;i++)
^
Main.java:3: error: class, interface, enum, or record expected
#define rep(i,n) for(int i=0;i<n;i++)
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u857414225|p02383|0 | u857414225|p02383|0 | codenet | Compile Error | 770 | |
v2_s616531556 | s616531556 | s616531556 | p02383 | p02383 | u910402677 | u910402677 | 1,478,834,284 | 2016-11-11T03:18:04 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
int T = in[0];
int S = in[1];
int E = in[2];
int W = in[3];
int N = in[4];
int U = in[5];
String ... | Main.java:21: error: int cannot be dereferenced
if(dir.equals("S")){
^
Main.java:28: error: int cannot be dereferenced
if(dir.equals("E")){
^
Main.java:35: error: int cannot be dereferenced
if(dir.equals("N")){
^
Main.java:42: error: int cannot be dereferenced
if(dir.equals("W")){... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02383|0 | u910402677|p02383|0 | codenet | Compile Error | 809 | |
v2_s354420314 | s354420314 | s354420314 | p02383 | p02383 | u910402677 | u910402677 | 1,478,834,381 | 2016-11-11T03:19:41 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
int T = in[0];
int S = in[1];
int E = in[2];
int W = in[3];
int N = in[4];
int U = in[5];
String ... | Main.java:21: error: char cannot be dereferenced
if(dir.equals("S")){
^
Main.java:28: error: char cannot be dereferenced
if(dir.equals("E")){
^
Main.java:35: error: char cannot be dereferenced
if(dir.equals("N")){
^
Main.java:42: error: char cannot be dereferenced
if(dir.equals("W... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02383|0 | u910402677|p02383|0 | codenet | Compile Error | 811 | |
v2_s452750086 | s452750086 | s452750086 | p02383 | p02383 | u910402677 | u910402677 | 1,479,959,834 | 2016-11-24T03:57:14 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
static final int
TOP = 0, SOUTH = 1, EAST = 2,
WEST = 3, NORTH = 4, BOTTOM = 5;
public static void main(String[] args){
int[] d = new int[6];
for(int i = 0; i < 6; i++){
d[i] = scan.nextInt();
}
Strin... | Main.java:40: error: cannot find symbol
int work = d[TOP];
^
symbol: variable d
location: class Main
Main.java:41: error: cannot find symbol
d[TOP] = d[WEST];
^
symbol: variable d
location: class Main
Main.java:41: error: cannot find symbol
d[TOP] = d[WEST];
^
symbol: var... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02383|1 | u910402677|p02383|1 | codenet | Compile Error | 1,266 | |
v2_s040473233 | s040473233 | s040473233 | p02383 | p02383 | u910402677 | u910402677 | 1,479,960,905 | 2016-11-24T04:15:05 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int[] d = new int[6];
for(int i = 0; i < 6; i++){
d[i] = scan.nextInt();
}
Dice dice = new Dice(d);
String dirs = scan.next();
int len = dirs.length();
for(int... | Main.java:46: error: cannot find symbol
d_[i] = d[i];
^
symbol: variable d
location: class Dice
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02383|1 | u910402677|p02383|1 | codenet | Compile Error | 1,506 | |
v2_s179741497 | s179741497 | s179741497 | p02383 | p02383 | u928579315 | u928579315 | 1,515,089,350 | 2018-01-04T18:09:10 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int[] array = new int[6];
for(int i = 0; i < 6; i++){
array[i] = nextInt();
}
String str = sc.next();
for(int i = 0; i < str.length()... | Main.java:8: error: cannot find symbol
array[i] = nextInt();
^
symbol: method nextInt()
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u928579315|p02383|0 | u928579315|p02383|0 | codenet | Compile Error | 1,281 | |
v2_s470284891 | s470284891 | s470284891 | p02383 | p02383 | u932051656 | u932051656 | 1,494,477,454 | 2017-05-11T04:37:34 | Main.java | class Main
{
public static void main(String[] args) throws Exception
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] inputValue = br.readLine().split(" ");
String[] inputDirection = br.readLine().split("");
Dice dice = new Dice(inputValue);
for (String s : inputDirecti... | Main.java:6: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u932051656|p02383|0 | u932051656|p02383|0 | codenet | Compile Error | 1,719 | |
v2_s207702135 | s207702135 | s207702135 | p02383 | p02383 | u933808920 | u933808920 | 1,515,587,370 | 2018-01-10T12:29:30 | Main.java | import java.util.Scanner;
class Dice{
int Top;
int Bottom;
int N;
int S;
int W;
int E;
Dice (int Top, int Bottom, int N, int S, int W, int E){
Top = this.Top, Bottom = this.Bottom, N = this.N, S = this.S, W = this.W, E = this.E
}
public void turnN(){
int tmp = Top;
Top = S;
S = Bottom... | Main.java:11: error: ';' expected
Top = this.Top, Bottom = this.Bottom, N = this.N, S = this.S, W = this.W, E = this.E
^
Main.java:11: error: ';' expected
Top = this.Top, Bottom = this.Bottom, N = this.N, S = this.S, W = this.W, E = this.E
^
Main.java:11... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u933808920|p02383|0 | u933808920|p02383|0 | codenet | Compile Error | 1,285 | |
v2_s796416501 | s796416501 | s796416501 | p02383 | p02383 | u933808920 | u933808920 | 1,515,588,987 | 2018-01-10T12:56:27 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
Dice dice = new Dice(stdIn.nextInt() ,stdIn.nextInt() ,stdIn.nextInt() ,stdIn.nextInt() ,stdIn.nextInt() ,stdIn.nextInt());
String direction = stdIn.next();
for (int i = 0; i < direction.le... | Main.java:72: error: duplicate class: Dice
class Dice{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u933808920|p02383|0 | u933808920|p02383|0 | codenet | Compile Error | 1,888 | |
v2_s665815140 | s665815140 | s665815140 | p02383 | p02383 | u982119852 | u982119852 | 1,479,961,767 | 2016-11-24T04:29:27 | Main.java |
import java.util.Scanner;
class???main{
// declear
static final int DICEDESIGN = 6;
static final int TOP = 0; //?????¢ ex:1
static final int FRONT = 1;//??£??¢ ex:2
static final int RIGHT = 2;// ex:3 order:East
static final int LEFT = 3;// ex:4???order:West
static final int BACK = 4;//?£???¢ ex... | Main.java:4: error: <identifier> expected
class???main{
^
Main.java:17: error: invalid method declaration; return type required
public Dice1(){
^
Main.java:36: error: invalid method declaration; return type required
public Dice1(int[] diceNum) {
^
3 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u982119852|p02383|0 | u982119852|p02383|0 | codenet | Compile Error | 2,710 | |
v2_s295712005 | s295712005 | s295712005 | p02384 | p02384 | u121559572 | u121559572 | 1,487,888,735 | 2017-02-23T22:25:35 | Main.java | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int dice[] = new int[6];
for(int i=0; i<6; i++){
dice[i] = sc.nextInt();
}
int q = sc.nextInt();
for(i =0; i<q*2;... | Main.java:17: error: ']' expected
int men [i] = sc.nextInt();
^
Main.java:17: error: ';' expected
int men [i] = sc.nextInt();
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u121559572|p02384|0 | u121559572|p02384|0 | codenet | Compile Error | 1,237 | |
v2_s632503016 | s632503016 | s632503016 | p02384 | p02384 | u136457939 | u136457939 | 1,523,181,378 | 2018-04-08T09:56:18 | Main.java | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
Dice dice = new Dice(stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt(),stdIn.nextInt());
int a = stdIn.nextInt();
for(int i = 0; i < a... | Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:4: error: illegal ch... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u136457939|p02384|0 | u136457939|p02384|0 | codenet | Compile Error | 2,790 | |
v2_s332254261 | s332254261 | s332254261 | p02384 | p02384 | u162825649 | u162825649 | 1,517,983,411 | 2018-02-07T06:03:31 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Dice{
int top;
int bottom;
int S;
int W;
int E;
int N;
Dice(int a,int b, int c,int d,int e,int f){
this.top = a;
this.bottom = b;
this.S = c;
this.W = d;
this.E = e;
this.N = f;
}
public void Roll... | Main.java:81: error: illegal character: '\u3000'
public class Main?{
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162825649|p02384|0 | u162825649|p02384|0 | codenet | Compile Error | 1,912 | |
v2_s016561497 | s016561497 | s016561497 | p02384 | p02384 | u195892755 | u195892755 | 1,421,413,220 | 2015-01-16T13:00:20 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String[] data = in.readLine().split(" ");
int[] num = new int[6];... | Main.java:13: error: cannot find symbol
Dices dice = new Dices(num[0], num[1], num[2], num[3], num[4], num[5]);
^
symbol: class Dices
location: class Main
Main.java:13: error: cannot find symbol
Dices dice = new Dices(num[0], num[1], num[2], num[3], num[4], num[5]);
^
symbol: class Di... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u195892755|p02384|0 | u195892755|p02384|0 | codenet | Compile Error | 2,243 | |
v2_s963387101 | s963387101 | s963387101 | p02384 | p02384 | u233376535 | u233376535 | 1,492,585,520 | 2017-04-19T07:05:20 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] surface = br.readLine().split(" ");
String ordern = br.... | Main.java:132: error: array required, but String found
}else if( RollString[i].equals("N")){ //??????????????????
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u233376535|p02384|1 | u233376535|p02384|1 | codenet | Compile Error | 3,262 | |
v2_s076310771 | s076310771 | s076310771 | p02384 | p02384 | u233376535 | u233376535 | 1,492,585,541 | 2017-04-19T07:05:41 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] surface = br.readLine().split(" ");
String ordern = br.... | Main.java:132: error: array required, but String found
}else if( RollString[i].equals("N")){//??????????????????
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u233376535|p02384|1 | u233376535|p02384|1 | codenet | Compile Error | 3,261 | |
v2_s203549301 | s203549301 | s203549301 | p02384 | p02384 | u233376535 | u233376535 | 1,492,585,549 | 2017-04-19T07:05:49 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] surface = br.readLine().split(" ");
String ordern = br.... | Main.java:132: error: array required, but String found
}else if( RollString[i].equals("N")){//??????????????????
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u233376535|p02384|1 | u233376535|p02384|1 | codenet | Compile Error | 3,261 | |
v2_s541030813 | s541030813 | s541030813 | p02384 | p02384 | u249262080 | u249262080 | 1,517,813,195 | 2018-02-05T06:46:35 | Main.java | public class Main {
int[] dice = new int[6];
public DiceDebug(int[] nums, String order) {
dice = nums;
}
public void move(String order) {
for(Character s : order.toCharArray()) {
int buf;
switch(s){
case 'N':{
buf = dice[0];
dice[0] = dice[1];
... | Main.java:5: error: invalid method declaration; return type required
public DiceDebug(int[] nums, String order) {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u249262080|p02384|0 | u249262080|p02384|0 | codenet | Compile Error | 2,090 | |
v2_s606084157 | s606084157 | s606084157 | p02384 | p02384 | u249262080 | u249262080 | 1,517,813,236 | 2018-02-05T06:47:16 | Main.java | public class Main {
int[] dice = new int[6];
public Main(int[] nums, String order) {
dice = nums;
}
public void move(String order) {
for(Character s : order.toCharArray()) {
int buf;
switch(s){
case 'N':{
buf = dice[0];
dice[0] = dice[1];
... | Main.java:52: error: cannot find symbol
Random rnd = new Random();
^
symbol: class Random
location: class Main
Main.java:52: error: cannot find symbol
Random rnd = new Random();
^
symbol: class Random
location: class Main
Main.java:80: error: cannot find symbol
Scanner sc = new Sc... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u249262080|p02384|0 | u249262080|p02384|0 | codenet | Compile Error | 2,085 | |
v2_s035879642 | s035879642 | s035879642 | p02384 | p02384 | u313904058 | u313904058 | 1,523,209,376 | 2018-04-08T17:42:56 | Main.java | #include <iostream>
#include <string>
using namespace std;
class Dice {
private:
int *numbers;
public:
Dice(int *numbers) {
this->numbers = numbers;
}
int getCurrentNumber() {
return this->numbers[0];
}
void turn(char direction) {
switch (direction) {
case 'N'... | Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <string>
^
Main.java:6: error: illegal start of type
private:
^
Main.java:7: error: <identifier> expected
int *numbers;
^
Main.java:7: error: <identifier> expected
int *numbers;... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u313904058|p02384|0 | u313904058|p02384|0 | codenet | Compile Error | 2,157 | |
v2_s874553732 | s874553732 | s874553732 | p02384 | p02384 | u379645513 | u379645513 | 1,512,956,437 | 2017-12-11T01:40:37 | Main.java | #include <queue>
#include <vector>
#include <string>
#include <cassert>
#include <iostream>
#include <algorithm>
enum class Direction
{
North = 0,
East,
South,
West,
};
struct Number
{
Number(int t, int f, int r, int l, int b, int btm)
:top(t), front(f), right(r), left(l), back(b), botto... | Main.java:1: error: illegal character: '#'
#include <queue>
^
Main.java:2: error: illegal character: '#'
#include <vector>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:4: error: illegal character: '#'
#include <cassert>
^
Main.java:5: error: illegal character: '#'
#include <iostream>
^
Mai... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379645513|p02384|0 | u379645513|p02384|0 | codenet | Compile Error | 3,596 | |
v2_s181127127 | s181127127 | s181127127 | p02384 | p02384 | u379645513 | u379645513 | 1,513,223,128 | 2017-12-14T03:45:28 | Main.java | #include <queue>
#include <vector>
#include <string>
#include <cassert>
#include <iostream>
#include <algorithm>
enum class Direction
{
North = 0,
East,
South,
West,
};
struct Number
{
Number(int t, int f, int r, int l, int b, int btm)
:top(t), front(f), right(r), left(l), back(b), botto... | Main.java:1: error: illegal character: '#'
#include <queue>
^
Main.java:2: error: illegal character: '#'
#include <vector>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:4: error: illegal character: '#'
#include <cassert>
^
Main.java:5: error: illegal character: '#'
#include <iostream>
^
Mai... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u379645513|p02384|1 | u379645513|p02384|1 | codenet | Compile Error | 3,596 | |
v2_s087041617 | s087041617 | s087041617 | p02384 | p02384 | u383671372 | u383671372 | 1,492,503,648 | 2017-04-18T08:20:48 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int[] dice2 = Dice.Diceget(line1);
String line2 = sc.nextLine();
int q = Integer.parseInt(line2... | Main.java:46: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u383671372|p02384|0 | u383671372|p02384|0 | codenet | Compile Error | 1,827 | |
v2_s542608164 | s542608164 | s542608164 | p02384 | p02384 | u383671372 | u383671372 | 1,492,503,679 | 2017-04-18T08:21:19 | Main.java |
AIZU ONLINE JUDGE
PAGETOP
???????????????
??????????????°
???????????????
???????????????
?????????
?????°??¢??????
??????????¨????
??\??¬??? ??±?... | Main.java:2: error: class, interface, enum, or record expected
AIZU ONLINE JUDGE
^
Main.java:15: error: illegal character: '\u00b0'
???????????????
^
Main.java:158: error: illegal character: '\u00b0'
???????????????
^
Main.java:160: error: illegal character: '\u00a8'
???????????????
^
Main.... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u383671372|p02384|0 | u383671372|p02384|0 | codenet | Compile Error | 3,337 | |
v2_s110806430 | s110806430 | s110806430 | p02384 | p02384 | u383671372 | u383671372 | 1,492,503,714 | 2017-04-18T08:21:54 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
String line1 = sc.nextLine();
int[] dice2 = Dice.Diceget(line1);
String line2 = sc.nextLin... | Main.java:46: error: class Dice is public, should be declared in a file named Dice.java
public class Dice {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u383671372|p02384|0 | u383671372|p02384|0 | codenet | Compile Error | 2,414 | |
v2_s191066314 | s191066314 | s191066314 | p02384 | p02384 | u399951682 | u399951682 | 1,510,021,809 | 2017-11-07T02:30:09 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<Integer> list = new ArrayList<>();
int[] dice_number = new int[6];
for(int side_number = 0; side_number < 6; side_number++) {
dice_number[side_number] = in.nextInt();
... | Main.java:8: error: cannot find symbol
ArrayList<Integer> list = new ArrayList<>();
^
symbol: class ArrayList
location: class Main
Main.java:8: error: cannot find symbol
ArrayList<Integer> list = new ArrayList<>();
^
symbol: class ArrayList
location: class Main
2 errors... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u399951682|p02384|0 | u399951682|p02384|0 | codenet | Compile Error | 2,904 | |
v2_s000234941 | s000234941 | s000234941 | p02384 | p02384 | u438549511 | u438549511 | 1,484,360,448 | 2017-01-14T02:20:48 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();
Dice dice = new Dice(str);
str = ... | Main.java:11: error: cannot find symbol
Dice dice = new Dice(str);
^
symbol: class Dice
location: class Main
Main.java:11: error: cannot find symbol
Dice dice = new Dice(str);
^
symbol: class Dice
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u438549511|p02384|0 | u438549511|p02384|0 | codenet | Compile Error | 1,326 | |
v2_s880018539 | s880018539 | s880018539 | p02384 | p02384 | u544040886 | u544040886 | 1,527,571,659 | 2018-05-29T05:27:39 | Main.java | public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
class qube{
Scanner sc = new Scanner(System.in);
int [] face = new int[6],faces;
Integer i,dump=0;
Integer a,b,n;
int ec=0,nc=0;
qube(){
for(i=0;i<6;i++){
face[i]=sc.nextInt();
}
n = sc.nextInt();
faces = fa... | Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
^
(use --enable-preview to enable unnamed classes)
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u544040886|p02384|1 | u544040886|p02384|0 | codenet | Compile Error | 1,386 | |
v2_s185939939 | s185939939 | s185939939 | p02384 | p02384 | u584453648 | u584453648 | 1,478,679,788 | 2016-11-09T08:23:08 | Main.java |
class Main {
public static void main(String[] args){
Scanner s=new Scanner(System.in);
int a[]={s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt()};
int q=s.nextInt();
int qp[]=new int[2*q];
for(int i=0;i<2*q;i++){
qp[i]=s.nextInt();
}
s.close();
Dicelabel d=new Di... | Main.java:6: error: cannot find symbol
Scanner s=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: 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 | u584453648|p02384|0 | u584453648|p02384|0 | codenet | Compile Error | 1,643 | |
v2_s893622478 | s893622478 | s893622478 | p02384 | p02384 | u584453648 | u584453648 | 1,478,679,933 | 2016-11-09T08:25:33 | Main.java | class Main {
public static void main(String[] args){
Scanner s=new Scanner(System.in);
int a[]={s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt(),s.nextInt()};
int q=s.nextInt();
int qp[]=new int[2*q];
for(int i=0;i<2*q;i++){
qp[i]=s.nextInt();
}
s.close();
Dicelabel d=new Dicel... | Main.java:3: error: cannot find symbol
Scanner s=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner s=new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u584453648|p02384|0 | u584453648|p02384|0 | codenet | Compile Error | 1,640 | |
v2_s583863908 | s583863908 | s583863908 | p02384 | p02384 | u630795095 | u630795095 | 1,438,837,155 | 2015-08-06T04:59:15 | Main.java | mport java.util.ArrayList;
import java.util.Scanner;
public class Main {
private static int[] face = new int[6];
public static void action(char action){
int intTemp;
switch(action){
case 'W':
intTemp = face[0];
face[0] = face[2];
face[2] = face[5];
face[5] = face[3];
face[3] = intTemp;
brea... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.ArrayList;
^
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 | u630795095|p02384|0 | u630795095|p02384|0 | codenet | Compile Error | 2,134 | |
v2_s948709370 | s948709370 | s948709370 | p02384 | p02384 | u752206831 | u752206831 | 1,440,007,678 | 2015-08-19T18:07:58 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import copyDice.Dice;
public class Main {
public static void main(String[] args) throws IOException {
// TODO ?????????????????????????????????????????????
BufferedReader insBR = new BufferedReader(new InputStreamReader... | Main.java:41: error: illegal escape character
System.out.println("????????\????????\?????????????????????");
^
Main.java:41: error: illegal escape character
System.out.println("????????\????????\?????????????????????");
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u752206831|p02384|1 | u752206831|p02384|1 | codenet | Compile Error | 3,835 | |
v2_s560676392 | s560676392 | s560676392 | p02384 | p02384 | u787849418 | u787849418 | 1,453,341,348 | 2016-01-21T01:55:48 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
// ?????????????????????
Dise dise = new Dise();
// ?????¢?????°??????????????????
for(int i = 0; i < 6; i++) {
dise._... | Main.java:11: error: cannot find symbol
Dise dise = new Dise();
^
symbol: class Dise
location: class Main
Main.java:11: error: cannot find symbol
Dise dise = new Dise();
^
symbol: class Dise
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u787849418|p02384|1 | u787849418|p02384|1 | codenet | Compile Error | 3,138 | |
v2_s686974889 | s686974889 | s686974889 | p02384 | p02384 | u821119263 | u821119263 | 1,498,739,257 | 2017-06-29T12:27:37 | Main.java | mport java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] array = new int[6 + 1];
array[0] = 0;
for (int i = 1; i < array.length; i++) {
array[i] = scan.nextInt();
}
int q = scan.nextInt();
Dice dice = new Dice(array);
int p... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u821119263|p02384|0 | u821119263|p02384|0 | codenet | Compile Error | 2,600 | |
v2_s715870396 | s715870396 | s715870396 | p02384 | p02384 | u821119263 | u821119263 | 1,498,739,286 | 2017-06-29T12:28:06 | Main.java | mport java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] array = new int[6 + 1];
array[0] = 0;
for (int i = 1; i < array.length; i++) {
array[i] = scan.nextInt();
}
int q = scan.nextInt();
Dice dice = new Dice(array);
int p... | Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u821119263|p02384|0 | u821119263|p02384|0 | codenet | Compile Error | 2,600 | |
v2_s792524277 | s792524277 | s792524277 | p02384 | p02384 | u829397054 | u829397054 | 1,496,128,837 | 2017-05-30T07:20:37 | Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int front;
int upper;
String command = "W";
Scanner sc = null;
try {
sc = new Scanner(System.in);
//?????????????????????
String line = sc.nextLine();
Dice di = new Dice(line);
int[] dice = di.surface;... | Main.java:18: error: cannot find symbol
Dice di = new Dice(line);
^
symbol: class Dice
location: class Main
Main.java:18: error: cannot find symbol
Dice di = new Dice(line);
^
symbol: class Dice
location: class Main
Main.java:36: error: cannot find symbol
dice = Dice.dicerol... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u829397054|p02384|0 | u829397054|p02384|0 | codenet | Compile Error | 1,228 | |
v2_s361053309 | s361053309 | s361053309 | p02384 | p02384 | u910402677 | u910402677 | 1,478,844,260 | 2016-11-11T06:04:20 | Dice.java | import java.util.*;
public class Dice{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
int T = in[0];
int S = in[1];
int E = in[2];
int W = in[3];
int N = in[4];
int U = in[5];
int q ... | Dice.java:29: error: non-static method MoveEast() cannot be referenced from a static context
MoveEast();
^
Dice.java:32: error: non-static method MoveSouth() cannot be referenced from a static context
MoveSouth();
^
Dice.java:42: error: cannot find symbol
int a = T;
^
symbol: varia... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 956 | |
v2_s663399677 | s663399677 | s663399677 | p02384 | p02384 | u910402677 | u910402677 | 1,478,844,441 | 2016-11-11T06:07:21 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
int T = in[0];
int S = in[1];
int E = in[2];
int W = in[3];
int N = in[4];
int U = in[5];
int q ... | Main.java:42: error: cannot find symbol
int a = T;
^
symbol: variable T
location: class Main
Main.java:43: error: cannot find symbol
T = N;
^
symbol: variable T
location: class Main
Main.java:43: error: cannot find symbol
T = N;
^
symbol: variable N
location: class Main
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 984 | |
v2_s319603719 | s319603719 | s319603719 | p02384 | p02384 | u910402677 | u910402677 | 1,478,848,043 | 2016-11-11T07:07:23 | Main.java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
int T = in[0];
int S = in[1];
int E = in[2];
int W = in[3];
int N = in[4];
int U = in[5];
int q ... | Main.java:50: error: cannot find symbol
int a = T;
^
symbol: variable T
location: class Main
Main.java:51: error: cannot find symbol
T = N;
^
symbol: variable T
location: class Main
Main.java:51: error: cannot find symbol
T = N;
^
symbol: variable N
location: class Main
Main.ja... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 1,131 | |
v2_s770642331 | s770642331 | s770642331 | p02384 | p02384 | u910402677 | u910402677 | 1,478,849,879 | 2016-11-11T07:37:59 | Main.java | import java.util.*;
public class Main{
int T, S, E, W, N, U;
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
T = in[0];
S = in[1];
E = in[2];
W = in[3];
N = in[4];
U = in[5];
int q =... | Main.java:12: error: non-static variable T cannot be referenced from a static context
T = in[0];
^
Main.java:13: error: non-static variable S cannot be referenced from a static context
S = in[1];
^
Main.java:14: error: non-static variable E cannot be referenced from a static context
E = in[2];
^
Main.java:1... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 1,160 | |
v2_s135442664 | s135442664 | s135442664 | p02384 | p02384 | u910402677 | u910402677 | 1,478,849,929 | 2016-11-11T07:38:49 | Main.java | import java.util.*;
public class Main{
int T, S, E, W, N, U;
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] in = new int[6];
for(int i = 0; i < 6; i++){
in[i] = scan.nextInt();
}
T = in[0];
S = in[1];
E = in[2];
W = in[3];
N = in[4];
U = in[5];
int q =... | Main.java:12: error: non-static variable T cannot be referenced from a static context
T = in[0];
^
Main.java:13: error: non-static variable S cannot be referenced from a static context
S = in[1];
^
Main.java:14: error: non-static variable E cannot be referenced from a static context
E = in[2];
^
Main.java:1... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 1,160 | |
v2_s720690683 | s720690683 | s720690683 | p02384 | p02384 | u910402677 | u910402677 | 1,478,857,203 | 2016-11-11T09:40:03 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int[] d = new int[6];
for(int i = 0; i < 6; i++){
d[i] = scan.nextInt();
}
Dice dice = new Dice(d);
int q = scan.nextInt();
for(int i = 0; i < q; i++){
int n ... | Main.java:42: error: cannot find symbol
if(_d[TOP] != num){
^
symbol: variable TOP
location: class Dice
Main.java:67: error: cannot find symbol
int tmp = _d[TOP];
^
symbol: variable TOP
location: class Dice
Main.java:68: error: cannot find symbol
_d[TOP] = _d[NORTH];
^
sy... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|0 | u910402677|p02384|0 | codenet | Compile Error | 1,872 | |
v2_s428531576 | s428531576 | s428531576 | p02384 | p02384 | u910402677 | u910402677 | 1,479,964,689 | 2016-11-24T05:18:09 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
List<Integer> list = new ArrayList<Integer>();
int[] d = new int[6];
for(int i = 0; i < 6; i++){
d[i] = scan.nextInt();
}
Dice dice = new Dice(d);
int q = scan.n... | Main.java:62: error: cannot find symbol
this.rollRigtht();
^
symbol: method rollRigtht()
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02384|1 | u910402677|p02384|1 | codenet | Compile Error | 2,090 | |
v2_s646396730 | s646396730 | s646396730 | p02384 | p02384 | u918457647 | u918457647 | 1,453,305,902 | 2016-01-20T16:05:02 | Main.java | import java.util.Scanner;
public class Main {
public static Scanner sc;
public static void main(String[] args){
sc=new Scanner(System.in);
Dice2 dice=new Dice2();
for(int i=0;i<6;i++){
dice.set(sc.nextInt(),i);
}
int q=sc.nextInt();
for(int i=0;i<q;i++){
int u=sc.nextInt();
int f=sc.nextInt();
... | Main.java:69: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u918457647|p02384|0 | u918457647|p02384|0 | codenet | Compile Error | 1,298 | |
v2_s842979709 | s842979709 | s842979709 | p02384 | p02384 | u983680143 | u983680143 | 1,418,189,885 | 2014-12-10T05:38:05 | Main.java | package Lesson11B;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* Lesson11B サイコロを転がすシミュレーションを行うプログラム
*
* @author Internship
*
*/
public class Main{
// フィールド
// サイコロ
int[] intDice = new int[6];
// コンストラクタ
Lesson11B() {
}
// ... | Main.java:21: error: invalid method declaration; return type required
Lesson11B() {
^
Main.java:25: error: invalid method declaration; return type required
Lesson11B(String strLine) {
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u983680143|p02384|1 | u983680143|p02384|1 | codenet | Compile Error | 6,677 | |
v2_s699090384 | s699090384 | s699090384 | p02384 | p02384 | u983680143 | u983680143 | 1,418,190,595 | 2014-12-10T05:49:55 | Main.java | package Lesson11B;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* Lesson11B サイコロを転がすシミュレーションを行うプログラム
*
* @author Internship
*
*/
public class Main{
// フィールド
// サイコロ
int[] intDice = new int[6];
// コンストラクタ
Lesson11B() {
}
// ... | Main.java:21: error: invalid method declaration; return type required
Lesson11B() {
^
Main.java:25: error: invalid method declaration; return type required
Lesson11B(String strLine) {
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u983680143|p02384|1 | u983680143|p02384|1 | codenet | Compile Error | 6,677 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.