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_s140125041
s140125041
s140125041
p02840
p02840
u099910634
u099910634
1,575,861,879
2019-12-09T03:24:39
Main.java
// Java program to print distinct // subset sums of a given array. import java.io.*; import java.util.*; class GFG { // Uses Dynamic Programming to // find distinct subset sums static int printDistSum(int arr[], int n) { int sum = 0; for (int i = 0; i < n; i++) sum += arr[i]; // dp[i][j] wou...
Main.java:67: error: class, interface, enum, or record expected import java.io.*; ^ Main.java:68: error: class, interface, enum, or record expected import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u099910634|p02840|0
u099910634|p02840|0
codenet
Compile Error
2,686
v2_s958242986
s958242986
s958242986
p02840
p02840
u723790132
u723790132
1,575,862,609
2019-12-09T03:36:49
Main.java
import java.io.*; class Main { static int pairORSum(int arr[], int n) { int ans = 0; for (int i = 0; i < n; i++) for (int j = i + 1; j < n; j++) ans += arr[i] ^ arr[j]; return ans; } public static void main (String[] args) { Scanner s= new Scanner(System.in); for(int i = 0; i ...
Main.java:15: error: cannot find symbol Scanner s= new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:15: error: cannot find symbol Scanner s= new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:18: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723790132|p02840|0
u723790132|p02840|0
codenet
Compile Error
476
v2_s135638544
s135638544
s135638544
p02841
p02841
u078890023
u078890023
1,576,124,810
2019-12-12T04:26:50
Main.java
public class Main { public static void main(String[] args) { List<String> inputList = readInputList(); byte maxDayFlag = 0; int[] arr = readYearAndMonth(inputList.get(0)); Calendar cal = convertCalender(arr); if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_IND...
Main.java:18: error: cannot find symbol private List<String> readInputList() throws IOException { ^ symbol: class List location: class Main Main.java:18: error: cannot find symbol private List<String> readInputList() throws IOException { ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
1,526
v2_s417744331
s417744331
s417744331
p02841
p02841
u078890023
u078890023
1,576,124,882
2019-12-12T04:28:02
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { public static void main(String[] args) { List<String> inputList = readInputList(); byte maxDayFlag = 0;...
Main.java:12: error: non-static method readInputList() cannot be referenced from a static context List<String> inputList = readInputList(); ^ Main.java:16: error: non-static method readYearAndMonth(String) cannot be referenced from a static context int[] arr = readYearAn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
1,713
v2_s782248623
s782248623
s782248623
p02841
p02841
u078890023
u078890023
1,576,124,948
2019-12-12T04:29:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { public static void main(String[] args) { List<String> inputList = readInputList(); byte maxDayFlag = 0...
Main.java:19: error: cannot find symbol if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY]) ^ symbol: variable ARR_INDEX_DAY location: class Main Main.java:32: error: cannot find symbol for (int i = 0; i < MAX_IN...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
1,735
v2_s901121577
s901121577
s901121577
p02841
p02841
u078890023
u078890023
1,576,125,070
2019-12-12T04:31:10
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { private final int MAX_INPUT_LIMIT_COUNT = 2; private final int YEAR = 2019; private final int ARR_INDEX_MONTH ...
Main.java:26: error: non-static variable ARR_INDEX_DAY cannot be referenced from a static context if (cal.getActualMaximum(Calendar.DAY_OF_MONTH) == arr[ARR_INDEX_DAY]) ^ Main.java:39: error: non-static variable MAX_INPUT_LIMIT_COUNT cannot be refer...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
1,908
v2_s303361329
s303361329
s303361329
p02841
p02841
u078890023
u078890023
1,576,125,128
2019-12-12T04:32:08
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { private static final int MAX_INPUT_LIMIT_COUNT = 2; private static final int YEAR = 2019; private static fin...
Main.java:19: error: unreported exception IOException; must be caught or declared to be thrown List<String> inputList = readInputList(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
1,938
v2_s320009534
s320009534
s320009534
p02841
p02841
u078890023
u078890023
1,576,125,247
2019-12-12T04:34:07
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { private static final int MAX_INPUT_LIMIT_COUNT = 2; private static final int YEAR = 2019; private static fin...
Main.java:28: error: cannot find symbol int[] arr = readYearAndMonth(inputList.get(0)); ^ symbol: variable inputList location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
2,035
v2_s260257134
s260257134
s260257134
p02841
p02841
u078890023
u078890023
1,576,125,305
2019-12-12T04:35:05
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Calendar; import java.util.List; public class Main { private static final int MAX_INPUT_LIMIT_COUNT = 2; private static final int YEAR = 2019; private static fin...
Main.java:22: error: variable inputList is already defined in method main(String[]) List<String> inputList = readInputList(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078890023|p02841|0
u078890023|p02841|0
codenet
Compile Error
2,093
v2_s565013929
s565013929
s565013929
p02841
p02841
u093172826
u093172826
1,575,252,656
2019-12-02T02:10:56
Main.java
import java.util.* public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int M1=sc.nextInt(); int D1=sc.nextInt(); int M2=sc.nextInt(); int D2=sc.nextInt(); if(M1!=12){ if(M1+1==M2&&D2==1){ System.out.println("1"); }else if(M1+1!=M2&&D2!=1){ System.out.println("0"); } } if(M1==...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02841|0
u093172826|p02841|0
codenet
Compile Error
426
v2_s403316791
s403316791
s403316791
p02841
p02841
u156778176
u156778176
1,575,252,660
2019-12-02T02:11:00
Main.java
package Nov01.A; import jdk.internal.util.xml.impl.Input; import java.util.Scanner; /** * Created by pc on 2019/12/01. */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[][] Days= {{0,0},{0,0}}; for(int i = 0; i<2; i++){ Days[i][0] = sc.nextInt(); ...
Main.java:3: error: package jdk.internal.util.xml.impl is not visible import jdk.internal.util.xml.impl.Input; ^ (package jdk.internal.util.xml.impl is declared in module java.base, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u156778176|p02841|0
u156778176|p02841|0
codenet
Compile Error
484
v2_s346613106
s346613106
s346613106
p02841
p02841
u156778176
u156778176
1,575,252,757
2019-12-02T02:12:37
Main.java
package Nov01.A; import jdk.internal.util.xml.impl.Input; import java.util.Scanner; /** * Created by pc on 2019/12/01. */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[][] Days= {{0,0},{0,0}}; for(int i = 0; i<2; i++){ Days[i][0] = sc.nextInt(); ...
Main.java:3: error: package jdk.internal.util.xml.impl is not visible import jdk.internal.util.xml.impl.Input; ^ (package jdk.internal.util.xml.impl is declared in module java.base, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u156778176|p02841|0
u156778176|p02841|0
codenet
Compile Error
484
v2_s349883364
s349883364
s349883364
p02841
p02841
u440812556
u440812556
1,575,253,017
2019-12-02T02:16:57
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M1 = sc.nextInt(); int D1 = sc.nextInt(); int M2 = sc.nextInt(); int D2 = sc.nextInt(); if(D1 == 31 && D2 == 1){ if(M2 == M1+1){ System.out.println(1); ...
Main.java:28: error: 'else' without 'if' else{ ^ Main.java:32: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02841|0
u440812556|p02841|0
codenet
Compile Error
589
v2_s682776377
s682776377
s682776377
p02841
p02841
u464576495
u464576495
1,575,252,856
2019-12-02T02:14:16
Main.java
Scanner sc = new Scanner(System.in); int m1 = sc.nextInt(); int d1 = sc.nextInt(); int m2 = sc.nextInt(); int d2 = sc.nextInt(); sc.close(); if (m1 == m2){ System.out.println(0); } else { System.out.println(1); }
Main.java:1: 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:6: error: class, interface, enum, or record expected sc.close(); ^ Main.java:7: error: class, interface, enum, or record expe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464576495|p02841|0
u464576495|p02841|0
codenet
Compile Error
237
v2_s121255276
s121255276
s121255276
p02841
p02841
u464576495
u464576495
1,575,252,977
2019-12-02T02:16:17
Main.java
public static void main(String[] args){ Scanner sc = new Scanner(System.in); int m1 = sc.nextInt(); int d1 = sc.nextInt(); int m2 = sc.nextInt(); int d2 = sc.nextInt(); sc.close(); if (m1 == m2){ System.out.println(0); } else { System.out.println(1); } }
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
u464576495|p02841|0
u464576495|p02841|0
codenet
Compile Error
281
v2_s746360656
s746360656
s746360656
p02841
p02841
u487433273
u487433273
1,575,252,193
2019-12-02T02:03:13
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int M1 = sc.nextInt(); int N = sc.nextInt(); int M2 = sc.nextInt(); int N2 = sc.nextInt(); if (M1!= M2) System.out.println(0); else System.out.println(1); } } i...
Main.java:18: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:35: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02841|0
u487433273|p02841|0
codenet
Compile Error
648
v2_s125650144
s125650144
s125650144
p02841
p02841
u526646672
u526646672
1,578,284,004
2020-01-06T04:13:24
Main.java
import java.util.Scanner; String[][] month_and_day = { ['1', '31'], ['2', '28'], ['3', '31'], ['4', '30'], ['5', '31'], ['6', '30'], ['7', '31'], ['8', '31'], ['9', '30'], ['10', '31'], ['11', '30'], ['12', '31'] } public static Main { public static void main(String...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. String[][] month_and_day = { ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: illegal start of expression ['1', '31'], ^ Main.java:4: error: unclosed character literal ['1', '31'], ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
963
v2_s210137153
s210137153
s210137153
p02841
p02841
u526646672
u526646672
1,578,284,191
2020-01-06T04:16:31
Main.java
import java.util.Scanner; public static Main { public static void main(String[] args) { String[][] month_and_day = { ['1', '31'], ['2', '28'], ['3', '31'], ['4', '30'], ['5', '31'], ['6', '30'], ['7', '31'], ['8...
Main.java:3: error: class, interface, enum, or record expected public static Main { ^ Main.java:6: error: unclosed character literal ['1', '31'], ^ Main.java:6: error: unclosed character literal ['1', '31'], ^ Main.java:7: error: unclosed char...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
1,076
v2_s977016042
s977016042
s977016042
p02841
p02841
u526646672
u526646672
1,578,284,271
2020-01-06T04:17:51
Main.java
import java.util.Scanner; public static class Main { public static void main(String[] args) { String[][] month_and_day = { ['1', '31'], ['2', '28'], ['3', '31'], ['4', '30'], ['5', '31'], ['6', '30'], ['7', '31'], ...
Main.java:6: error: illegal start of expression ['1', '31'], ^ Main.java:6: error: unclosed character literal ['1', '31'], ^ Main.java:6: error: unclosed character literal ['1', '31'], ^ Main.java:7: error: unclosed character literal...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
1,082
v2_s023930675
s023930675
s023930675
p02841
p02841
u526646672
u526646672
1,578,284,481
2020-01-06T04:21:21
Main.java
import java.util.Scanner; public static class Main { public static void main(String[] args) { String[][] month_and_day = { {'1', '31'}, {'2', '28'}, {'3', '31'}, {'4', '30'}, {'5', '31'}, {'6', '30'}, {'7', '31'}, ...
Main.java:6: error: unclosed character literal {'1', '31'}, ^ Main.java:6: error: unclosed character literal {'1', '31'}, ^ Main.java:7: error: not a statement {'2', '28'}, ^ Main.java:7: error: ';' expected {'2', '28'},...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
1,082
v2_s046981196
s046981196
s046981196
p02841
p02841
u526646672
u526646672
1,578,284,680
2020-01-06T04:24:40
Main.java
import java.util.Scanner; public static class Main { public static void main(String[] args) { String[][] month_and_day = { {"1", "31"}, {"2", "28"}, {"3", "31"}, {"4", "30"}, {"5", "31"}, {"6", "30"}, {"7", "31"}, ...
Main.java:3: error: modifier static not allowed here public static class Main { ^ Main.java:26: error: incompatible types: char cannot be converted to String m1d1 = str.split(' '); ^ Main.java:29: error: incompatible types: char cannot be converted to String m2d2 =...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
1,082
v2_s622151490
s622151490
s622151490
p02841
p02841
u526646672
u526646672
1,578,284,753
2020-01-06T04:25:53
Main.java
import java.util.Scanner; public static class Main { public static int main(String[] args) { String[][] month_and_day = { {"1", "31"}, {"2", "28"}, {"3", "31"}, {"4", "30"}, {"5", "31"}, {"6", "30"}, {"7", "31"}, ...
Main.java:3: error: modifier static not allowed here public static class Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526646672|p02841|0
u526646672|p02841|0
codenet
Compile Error
1,081
v2_s582797925
s582797925
s582797925
p02841
p02841
u575992587
u575992587
1,575,253,914
2019-12-02T02:31:54
Main.java
import java.util.*; import java.util.Calendar; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力値を変数に代入 int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int day; // 文字列の入力  Calendar c = Calend...
Main.java:14: error: illegal character: '\u3000' ?Calendar c = Calendar.getInstance(); ^ Main.java:19: error: ';' expected System.out.println("1") ^ Main.java:23: error: ';' expected System.out.println("0") ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575992587|p02841|0
u575992587|p02841|0
codenet
Compile Error
610
v2_s292046276
s292046276
s292046276
p02841
p02841
u575992587
u575992587
1,575,254,038
2019-12-02T02:33:58
Main.java
import java.util.*; import java.util.Calendar; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力値を変数に代入 int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); System.out.println(a + b + c + d); // 文字列の入力 ...
Main.java:14: error: illegal character: '\u3000' ?Calendar calendar = Calendar.getInstance(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575992587|p02841|0
u575992587|p02841|0
codenet
Compile Error
662
v2_s316138609
s316138609
s316138609
p02841
p02841
u677036498
u677036498
1,576,545,465
2019-12-17T01:17:45
Main.java
public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int m1 = sc.nextInt(); int d1 = sc.nextInt(); int m2= sc.nextInt(); int d2 = sc.nextInt(); if(m1==m2) System.out.println("0"); else if(d2-d1<0) System.out.prin...
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
u677036498|p02841|0
u677036498|p02841|0
codenet
Compile Error
342
v2_s107694929
s107694929
s107694929
p02841
p02841
u746225658
u746225658
1,590,191,453
2020-05-22T23:50:53
Main.java
import java.util.* public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int m1=sc.nextInt(); int d1=sc.nextInt(); int m2=sc.nextInt(); int d2=sc.nextInt(); if(d2==1){ System.out.println("1"); }else{ System.out.p...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u746225658|p02841|0
u746225658|p02841|0
codenet
Compile Error
348
v2_s819714279
s819714279
s819714279
p02841
p02841
u796481713
u796481713
1,575,648,206
2019-12-06T16:03:26
Main.java
import java.util.Scanner; class Main{ public stsatic void main(String[] args){ Scanner sc = new Scanner(System.in); //入力を受け取る int M1 = sc.nextInt(); int D1 = sc.nextInt(); int M2 = sc.nextInt(); int D2 = sc.nextInt(); answer(M1,M2); public static vo...
Main.java:3: error: <identifier> expected public stsatic void main(String[] args){ ^ Main.java:14: error: illegal start of expression public static void answer(int A, int B){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u796481713|p02841|0
u796481713|p02841|0
codenet
Compile Error
503
v2_s694380512
s694380512
s694380512
p02841
p02841
u833333773
u833333773
1,577,397,612
2019-12-26T22:00:12
Main.java
Scanner sc = new Scanner(System.in); int n = sc.nextInt() System.println(n);
Main.java:1: 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:2: error: ';' expected int n = sc.nextInt() ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u833333773|p02841|0
u833333773|p02841|0
codenet
Compile Error
78
v2_s006908105
s006908105
s006908105
p02841
p02841
u946973499
u946973499
1,575,259,692
2019-12-02T04:08:12
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextDouble(); double data=0; for (int i = 1; i<=n; i++) { data = i*1.08; if((int)data==n){ System.out.println(i); System.exit(0); ...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int n = sc.nextDouble(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u946973499|p02841|0
u946973499|p02841|0
codenet
Compile Error
378
v2_s192558348
s192558348
s192558348
p02842
p02842
u093172826
u093172826
1,575,253,118
2019-12-02T02:18:38
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int X=N/1.08; int X1=X*1.08; if(X==X1){ System.out.println("X"); }else if(X!=X1){ System.out.println(":("); } } }
Main.java:6: error: incompatible types: possible lossy conversion from double to int int X=N/1.08; ^ Main.java:7: error: incompatible types: possible lossy conversion from double to int int X1=X*1.08; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
296
v2_s675722509
s675722509
s675722509
p02842
p02842
u093172826
u093172826
1,575,254,223
2019-12-02T02:37:03
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); double X=Math.floor(N/1.08); double XX=X*1.08; double XXX=Math.floor(XX); if(X==XXXX){ System.out.println("X"); }else if(X!=XXX){ System.out.prin...
Main.java:9: error: cannot find symbol if(X==XXXX){ ^ symbol: variable XXXX location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
343
v2_s321514605
s321514605
s321514605
p02842
p02842
u093172826
u093172826
1,575,255,935
2019-12-02T03:05:35
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double X; double X1; int N=sc.nextInt(); double X=Math.floor(N/1.08); double X1=Math.floor(X*1.08); if(N==X1){ System.out.println("X"); }else if(N!=X1){ System.o...
Main.java:8: error: variable X is already defined in method main(String[]) double X=Math.floor(N/1.08); ^ Main.java:9: error: variable X1 is already defined in method main(String[]) double X1=Math.floor(X*1.08); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
350
v2_s997620129
s997620129
s997620129
p02842
p02842
u093172826
u093172826
1,575,256,451
2019-12-02T03:14:11
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double P=1.08; double X; double X1; double N=sc.nextInt(); X=Math.floor(N/P); X1=Math.floor(X*P); if(N==X1){ System.out.println('X'); }else if(N!=X1){ Syst...
Main.java:14: error: unclosed character literal System.out.println(':('); ^ Main.java:14: error: unclosed character literal System.out.println(':('); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
354
v2_s940168602
s940168602
s940168602
p02842
p02842
u093172826
u093172826
1,575,257,367
2019-12-02T03:29:27
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double N=sc.nextInt(); int count=0; int X=N/1.08; //double XX=N/1.08; int XXX=X*1.08; // double XXXX=XX*1.08; if(X!=XXX){ count+=1; } if(count==1){ S...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int X=N/1.08; ^ Main.java:10: error: incompatible types: possible lossy conversion from double to int int XXX=X*1.08; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
413
v2_s602722658
s602722658
s602722658
p02842
p02842
u093172826
u093172826
1,575,257,409
2019-12-02T03:30:09
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double N=sc.nextInt(); int count=0; int X=N/(double)1.08; //double XX=N/1.08; int XXX=X*(double)1.08; // double XXXX=XX*1.08; if(X!=XXX){ count+=1; } if(co...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int X=N/(double)1.08; ^ Main.java:10: error: incompatible types: possible lossy conversion from double to int int XXX=X*(double)1.08; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
429
v2_s000505325
s000505325
s000505325
p02842
p02842
u093172826
u093172826
1,575,257,607
2019-12-02T03:33:27
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double X; double X1; double N=sc.nextInt(); X=N/1.08; X1=X*1.08; int X2=Math.floor(X); int X3=Math.floor(X1); if(N==X1){ System.out.println("X"); }else if(N!...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int X2=Math.floor(X); ^ Main.java:11: error: incompatible types: possible lossy conversion from double to int int X3=Math.floor(X1); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
370
v2_s852652724
s852652724
s852652724
p02842
p02842
u093172826
u093172826
1,575,259,113
2019-12-02T03:58:33
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int 1=0;i<=50000;i++){ double X=i*1.08; } if(N=(int)X){ System.out.println("N"); }else{ System.out.println(":("); } } }
Main.java:8: error: not a statement for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: ';' expected for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: not a statement for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: ')' expected for(int 1=0;i<=50000;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
313
v2_s777414226
s777414226
s777414226
p02842
p02842
u093172826
u093172826
1,575,259,156
2019-12-02T03:59:16
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int i=0;i<=50000;i++){ double X=i*1.08; } if(N=(int)X){ System.out.println("N"); }else{ System.out.println(":("); } } }
Main.java:11: error: cannot find symbol if(N=(int)X){ ^ symbol: variable X location: class Main Main.java:11: error: incompatible types: int cannot be converted to boolean if(N=(int)X){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
313
v2_s495282118
s495282118
s495282118
p02842
p02842
u093172826
u093172826
1,575,259,191
2019-12-02T03:59:51
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int 1=0;i<=50000;i++){ double X=i*1.08; } if(N==(int)X){ System.out.println("N"); }else{ System.out.println(":("); } } }
Main.java:8: error: not a statement for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: ';' expected for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: not a statement for(int 1=0;i<=50000;i++){ ^ Main.java:8: error: ')' expected for(int 1=0;i<=50000;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
314
v2_s681076677
s681076677
s681076677
p02842
p02842
u093172826
u093172826
1,575,259,227
2019-12-02T04:00:27
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int i=0;i<=50000;i++){ double X=i*1.08; } if(N==(int)X){ System.out.println("N"); }else{ System.out.println(":("); } } }
Main.java:11: error: cannot find symbol if(N==(int)X){ ^ symbol: variable X location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
314
v2_s736143146
s736143146
s736143146
p02842
p02842
u093172826
u093172826
1,575,259,256
2019-12-02T04:00:56
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int i=0;i<=50000;i++){ double X=i*1.08; } if(N==X){ System.out.println("N"); }else{ System.out.println(":("); } } }
Main.java:11: error: cannot find symbol if(N==X){ ^ symbol: variable X location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u093172826|p02842|0
u093172826|p02842|0
codenet
Compile Error
309
v2_s630249689
s630249689
s630249689
p02842
p02842
u161835833
u161835833
1,597,701,956
2020-08-17T22:05:56
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); double ans = Math.round(N/1.08); System.out.println(ans); if(Math.floor(ans*1.08)==N){ System.out.pr...
Main.java:9: error: cannot find symbol double ans = Math.round(N/1.08); ^ symbol: variable N location: class Main Main.java:12: error: cannot find symbol if(Math.floor(ans*1.08)==N){ ^ symbol: variable N location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u161835833|p02842|0
u161835833|p02842|0
codenet
Compile Error
417
v2_s269675863
s269675863
s269675863
p02842
p02842
u181039779
u181039779
1,575,252,895
2019-12-02T02:14:55
Main.java
import java.io.InputStream; import java.io.PrintWriter; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; import java.util.Set; import java.util.TreeSet; import static java.util.Comparator.*; public class Mai...
Main.java:54: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:55: error: class, interface, enum, or record expected import java.io.PrintWriter; ^ Main.java:56: error: class, interface, enum, or record expected import java.lang.reflect.Array; ^ Main.java:57: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u181039779|p02842|0
u181039779|p02842|0
codenet
Compile Error
2,528
v2_s331624641
s331624641
s331624641
p02842
p02842
u314087694
u314087694
1,575,253,853
2019-12-02T02:30:53
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int num=scan.nextInt(); int[] mon=new int[46298]; int i=0; for(i=0;i<46298;i++){ mon[i]=i*1.08; } i=0; int dif=0 for(i=0;i<46298;i++){ if(num==mon[i]){ System.out.println(i); break; ...
Main.java:15: error: ';' expected int dif=0 ^ Main.java:25: error: ';' expected System.out.println(":(") ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314087694|p02842|0
u314087694|p02842|0
codenet
Compile Error
407
v2_s270680663
s270680663
s270680663
p02842
p02842
u328307787
u328307787
1,575,252,877
2019-12-02T02:14:37
Main.java
import java.util.*; public class Main{ static int price(int cost){ float a = cost/1.08; int b = (int) a; if((b*1.08)==(float) cost){ return b; } else if(((b+1)*1.08) == (float) cost){ return b+1; } else return -1; } public static void main(String[] ...
Main.java:6: error: incompatible types: possible lossy conversion from double to float float a = cost/1.08; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u328307787|p02842|0
u328307787|p02842|0
codenet
Compile Error
518
v2_s550098467
s550098467
s550098467
p02842
p02842
u440812556
u440812556
1,575,256,504
2019-12-02T03:15:04
Main.java
import java.util.*; class Main { public class void main(String[] args) { Scanner sc = sc.Scanner(System.in); int i = sc.nextInt(); double a = i/1.08; int b = (int)a; if(b*1.08 == i){ System.out.println(b); } else if(b*1.08 != i){ System.out.println(":("); } } }
Main.java:5: error: <identifier> expected public class void main(String[] args) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02842|0
u440812556|p02842|0
codenet
Compile Error
315
v2_s350814418
s350814418
s350814418
p02842
p02842
u440812556
u440812556
1,575,256,573
2019-12-02T03:16:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = sc.Scanner(System.in); int i = sc.nextInt(); double a = i/1.08; int b = (int)a; if(b*1.08 == i){ System.out.println(b); } else if(b*1.08 != i){ System.out.println(":("); } } }
Main.java:7: error: cannot find symbol Scanner sc = sc.Scanner(System.in); ^ symbol: method Scanner(InputStream) location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02842|0
u440812556|p02842|0
codenet
Compile Error
316
v2_s673206009
s673206009
s673206009
p02842
p02842
u440812556
u440812556
1,575,257,765
2019-12-02T03:36:05
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = sc.nextInt(); double a = i/1.08; int b = (int)a; double c = a-b; if(c>= 0.5){ if((b+1)*1.08 == i){ System.out.println(b); } else{ System.out.p...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02842|0
u440812556|p02842|0
codenet
Compile Error
463
v2_s095582236
s095582236
s095582236
p02842
p02842
u440812556
u440812556
1,575,746,560
2019-12-07T19:22:40
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); double b = a/1.08; double c = (a+1)/1.08; int d = (int)c; if(d*1.08 == a){ System.out.println(e); } else{ System.out.println(":...
Main.java:15: error: cannot find symbol System.out.println(e); ^ symbol: variable e location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02842|1
u440812556|p02842|1
codenet
Compile Error
336
v2_s112372046
s112372046
s112372046
p02842
p02842
u487433273
u487433273
1,577,205,072
2019-12-24T16:31:12
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); boolean flg = false; int ans = 0; for(int i=1;i<46300;i++) { if(i*1.08==N) { ans=i; flg=true; break; } } if(flg) Syst...
Main.java:20: error: ';' expected else System.out.println(":(") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02842|1
u487433273|p02842|1
codenet
Compile Error
378
v2_s683333483
s683333483
s683333483
p02842
p02842
u498057428
u498057428
1,592,909,600
2020-06-23T10:53:20
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int x = Math.ceil(n / 1.08); if (Math.floor(x * 1.08) == n) { System.out.println(x); } else { ...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = Math.ceil(n / 1.08); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498057428|p02842|0
u498057428|p02842|0
codenet
Compile Error
369
v2_s405524262
s405524262
s405524262
p02842
p02842
u517233427
u517233427
1,575,254,861
2019-12-02T02:47:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // argumentの取得 Scanner s = new Scanner(System.in); double N = s.nextInt(); // 戻り値の返却 // N % 108だと値が変わって動かない。。後で調べる if ((N * 100 % 108) == 0) { System.out.println(N/1.08); } else ...
Main.java:30: error: unclosed character literal System.out.println(':('); ^ Main.java:30: error: unclosed character literal System.out.println(':('); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u517233427|p02842|0
u517233427|p02842|0
codenet
Compile Error
884
v2_s701862297
s701862297
s701862297
p02842
p02842
u575992587
u575992587
1,575,256,338
2019-12-02T03:12:18
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力値を変数に代入 double price_tax = sc.nextInt(); double tax_rate = 1.08; double price = price_tax/tax_rate; double price_ceil = Math.ceil(price); double price_tax_floo...
Main.java:13: error: cannot find symbol if(price_tax == price_tax_ceil){ ^ symbol: variable price_tax_ceil location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575992587|p02842|0
u575992587|p02842|0
codenet
Compile Error
574
v2_s213227504
s213227504
s213227504
p02842
p02842
u659156129
u659156129
1,596,810,852
2020-08-07T14:34:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = n/1.08; int check = 0; if(x*1.08==n){ check=1; System.out.println(x); break; }else if((x-1)*1....
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = n/1.08; ^ Main.java:12: error: break outside switch or loop break; ^ Main.java:16: error: break outside switch or loop break; ^ Main.java:20: error: break outside switch or l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02842|0
u659156129|p02842|0
codenet
Compile Error
563
v2_s233237764
s233237764
s233237764
p02842
p02842
u659156129
u659156129
1,596,810,911
2020-08-07T14:35:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = n/1.08; int check = 0; if(x*1.08==n){ check=1; System.out.println(x); }else if((x-1)*1.08==n){ ...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = n/1.08; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02842|0
u659156129|p02842|0
codenet
Compile Error
513
v2_s425448663
s425448663
s425448663
p02842
p02842
u659156129
u659156129
1,596,810,942
2020-08-07T14:35:42
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int x = (int)n/1.08; int check = 0; if(x*1.08==n){ check=1; System.out.println(x); }else if((x-1)*1.08==n){ ...
Main.java:7: error: incompatible types: possible lossy conversion from double to int int x = (int)n/1.08; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02842|0
u659156129|p02842|0
codenet
Compile Error
518
v2_s682348567
s682348567
s682348567
p02842
p02842
u659156129
u659156129
1,596,811,985
2020-08-07T14:53:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); double nn = n/1.08; int x = (int)nn; int check = 0; int check1 = x*1.08; int check2 = (x+1)*1.08; if(check1==n){ ...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int check1 = x*1.08; ^ Main.java:11: error: incompatible types: possible lossy conversion from double to int int check2 = (x+1)*1.08; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02842|0
u659156129|p02842|0
codenet
Compile Error
477
v2_s638163635
s638163635
s638163635
p02842
p02842
u659156129
u659156129
1,596,812,021
2020-08-07T14:53:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); double nn = n/1.08; int x = (int)nn; int check = 0; int check1 = (int)x*1.08; int check2 = (int)(x+1)*1.08; if(check1==...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int check1 = (int)x*1.08; ^ Main.java:11: error: incompatible types: possible lossy conversion from double to int int check2 = (int)(x+1)*1.08; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02842|0
u659156129|p02842|0
codenet
Compile Error
487
v2_s689998591
s689998591
s689998591
p02842
p02842
u756514276
u756514276
1,598,836,063
2020-08-31T01:07:43
Main.java
import java.io.BufferedReader import java.io.InputStreamReader import java.io.PrintWriter object Solve { private val br = BufferedReader(InputStreamReader(System.`in`)) private val out = PrintWriter(System.out) fun solve() { val n = br.readLine()!!.toInt() var ans = -1 for (i in 1..5000){ ...
Main.java:1: error: ';' expected import java.io.BufferedReader ^ Main.java:2: error: ';' expected import java.io.InputStreamReader ^ Main.java:3: error: ';' expected import java.io.PrintWriter ^ Main.java:7: error: illegal character:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u756514276|p02842|0
u756514276|p02842|0
codenet
Compile Error
491
v2_s170026595
s170026595
s170026595
p02842
p02842
u809433990
u809433990
1,575,253,995
2019-12-02T02:33:15
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n= scan.nextInt(); double c=n+0.5; int ans = n/1.08; if(n<ans*1.08&&ans*1.08<c)System.out.println(n/1.08); else System.out.println(":("); ...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int ans = n/1.08; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809433990|p02842|0
u809433990|p02842|0
codenet
Compile Error
349
v2_s602424784
s602424784
s602424784
p02842
p02842
u884731790
u884731790
1,575,499,257
2019-12-04T22:40:57
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); // 出力 double b = Math.ceil((double)a/1.08) if(Math.floor(b*1.08)==(double)a){ System.out.println(b); }else{ System.out.println(":("...
Main.java:8: error: ';' expected double b = Math.ceil((double)a/1.08) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u884731790|p02842|0
u884731790|p02842|0
codenet
Compile Error
351
v2_s839555843
s839555843
s839555843
p02842
p02842
u946973499
u946973499
1,575,259,704
2019-12-02T04:08:24
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int n = sc.nextDouble(); double data=0; for (int i = 1; i<=n; i++) { data = i*1.08; if((int)data==n){ System.out.println(i); System.exit(0); ...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int n = sc.nextDouble(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u946973499|p02842|0
u946973499|p02842|0
codenet
Compile Error
378
v2_s488472862
s488472862
s488472862
p02842
p02842
u997005069
u997005069
1,589,067,107
2020-05-09T23:31:47
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int notax = Math.round(N / 1.08); if(notax * 1.08 == N) { System.out.println(notax); } else { System.out.println(":("); } } }
Main.java:8: error: incompatible types: possible lossy conversion from long to int int notax = Math.round(N / 1.08); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02842|0
u997005069|p02842|0
codenet
Compile Error
310
v2_s149238320
s149238320
s149238320
p02842
p02842
u997005069
u997005069
1,589,067,223
2020-05-09T23:33:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int notax = (double)Math.round(N / 1.08); if(notax * 1.08 == N) { System.out.println(notax); } else { System.out.println(":("); } } }
Main.java:8: error: incompatible types: possible lossy conversion from double to int int notax = (double)Math.round(N / 1.08); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02842|0
u997005069|p02842|0
codenet
Compile Error
319
v2_s056219714
s056219714
s056219714
p02842
p02842
u997005069
u997005069
1,589,067,346
2020-05-09T23:35:46
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); notax = (int)Math.round(N / 1.08); if(notax * 1.08 == N) { System.out.println(notax); } else { System.out.println(":("); } } }
Main.java:8: error: cannot find symbol notax = (int)Math.round(N / 1.08); ^ symbol: variable notax location: class Main Main.java:9: error: cannot find symbol if(notax * 1.08 == N) { ^ symbol: variable notax location: class Main Main.java:10: error: cannot find symbol System.out.pri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02842|0
u997005069|p02842|0
codenet
Compile Error
312
v2_s095163031
s095163031
s095163031
p02842
p02842
u997005069
u997005069
1,589,068,040
2020-05-09T23:47:20
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int otherN N + 1; int noTax = (int)Math.round(N / 1.08); int othrNoTax = (int)Math.round(otherN / 1.08); int inTax = (int)Math.floor(noTax * 1.08); ...
Main.java:7: error: ';' expected int otherN N + 1; ^ Main.java:7: error: not a statement int otherN N + 1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02842|0
u997005069|p02842|0
codenet
Compile Error
558
v2_s314296500
s314296500
s314296500
p02842
p02842
u997005069
u997005069
1,589,068,065
2020-05-09T23:47:45
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int otherN = N + 1; int noTax = (int)Math.round(N / 1.08); int othrNoTax = (int)Math.round(otherN / 1.08); int inTax = (int)Math.floor(noTax * 1.08);...
Main.java:12: error: cannot find symbol int otherInTax = (int)Math.floor(otherNoTax * 1.08); ^ symbol: variable otherNoTax location: class Main Main.java:16: error: cannot find symbol System.out.println(otherNoTax); ^ symbol: variable oth...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p02842|0
u997005069|p02842|0
codenet
Compile Error
560
v2_s461765309
s461765309
s461765309
p02843
p02843
u122668079
u122668079
1,584,480,893
2020-03-17T21:34:53
Program.java
using System; public class Program{ public static void Main(){ var X = int.Parse(Console.ReadLine()); int va = 100; int vb = 101; int vc = 102; int vd = 103; int ve = 104; int vf = 105; // まず100未満の金額が出せる組み合わせを全探索する // 見つかった組み合わせに対し、合計金額が超えていないか確認 // 超えていなければ完了、超えていれば次のループ ...
Program.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Program.java:7: error: class expected var X = int.Parse(Console.ReadLine()); ^ Program.java:7: error: ';' expected var X = int.Parse(Consol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u122668079|p02843|0
u122668079|p02843|0
codenet
Compile Error
1,252
v2_s318587728
s318587728
s318587728
p02843
p02843
u240901574
u240901574
1,575,256,612
2019-12-02T03:16:52
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int res = 0; int for(int a=0; a<=1000; ++a){ for(int b=0; b<=1000; ++b){ for(int c=0; c<=50; ++c){ ...
Main.java:8: error: not a statement int ^ Main.java:8: error: ';' expected int ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u240901574|p02843|0
u240901574|p02843|0
codenet
Compile Error
743
v2_s008137907
s008137907
s008137907
p02843
p02843
u273816974
u273816974
1,575,253,088
2019-12-02T02:18:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = n / 100; int b = n - 100 * a; int c = a * 5; if ( b < c ){ System.out.println(1); else { ...
Main.java:13: error: 'else' without 'if' else { ^ Main.java:16: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02843|0
u273816974|p02843|0
codenet
Compile Error
353
v2_s161766435
s161766435
s161766435
p02843
p02843
u273816974
u273816974
1,575,253,118
2019-12-02T02:18:38
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = n / 100; int b = n - 100 * a; int c = a * 5; if ( b < c ){ System.out.println(1); } else { ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02843|0
u273816974|p02843|0
codenet
Compile Error
353
v2_s426062697
s426062697
s426062697
p02843
p02843
u440812556
u440812556
1,575,754,691
2019-12-07T21:38:11
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); for(int i=0; i<1000000; i++){ for(int j=0; j<100000; j++){ for(int k=0; k<100000; k++){ for(int l=0; l<100000; l++){ fo...
Main.java:17: error: unexpected type if(i*100 + j*101 + k*102 + l*103 + m*104 + n*105 = X){ ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02843|0
u440812556|p02843|0
codenet
Compile Error
746
v2_s143827967
s143827967
s143827967
p02843
p02843
u440812556
u440812556
1,575,755,978
2019-12-07T21:59:38
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); double c = X/100; int C = (int)c; for(int i=0; i<C; i++){ for(int j=0; j<C; j++){ for(int k=0; k<C; k++){ for(int l=0; l<C; l+...
Main.java:20: error: cannot find symbol System.out.pritnln(1); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02843|0
u440812556|p02843|0
codenet
Compile Error
741
v2_s750094743
s750094743
s750094743
p02843
p02843
u459100168
u459100168
1,600,657,233
2020-09-21T03:00:33
Main.java
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> P; int main() { int x; cin >> x; vector<bool> dp(x + 1); dp[0] = true; dp[100] = true; dp[101] = true; dp[102] = true; dp[103] = true; dp[104] = true; dp[105] = true; for(int i = 105; i <= x; i++){ dp[i] = dp[i ...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long int ll; ^ Main.java:4: error: class, interface, enum, or record expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459100168|p02843|1
u459100168|p02843|1
codenet
Compile Error
427
v2_s291649317
s291649317
s291649317
p02843
p02843
u518703962
u518703962
1,592,725,776
2020-06-21T07:49:36
Main.java
import java.util.Scanner; public class Main { private static final long x = (long) Math.pow(10, 18); public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = x / 100; for (int i = 0; i < y; i++) { System.out.println(z); if (z / 5 > 0) { z -= 5; ...
Main.java:13: error: cannot find symbol System.out.println(z); ^ symbol: variable z location: class Main Main.java:14: error: cannot find symbol if (z / 5 > 0) { ^ symbol: variable z location: class Main Main.java:15: error: cannot find symbol z -= 5; ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u518703962|p02843|1
u518703962|p02843|1
codenet
Compile Error
579
v2_s367352833
s367352833
s367352833
p02843
p02843
u659156129
u659156129
1,593,715,647
2020-07-02T18:47:27
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int check = 0; a = n/100; int b = n%100; if(a<b){ check = 1; } System.out.println(check); } }
Main.java:7: error: cannot find symbol a = n/100; ^ symbol: variable a location: class Main Main.java:9: error: cannot find symbol if(a<b){ ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02843|0
u659156129|p02843|0
codenet
Compile Error
269
v2_s236463727
s236463727
s236463727
p02843
p02843
u762019716
u762019716
1,589,244,094
2020-05-12T00:41:34
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int num = n / 100; int mod = n % 100; if (num * 5 < mod) { System.out.println(0); } else { System.out.println(1); } } }
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
u762019716|p02843|0
u762019716|p02843|0
codenet
Compile Error
279
v2_s644045905
s644045905
s644045905
p02843
p02843
u794927332
u794927332
1,575,682,151
2019-12-07T01:29:11
Main.java
import java.util.*; class main{ public static void main(String args[]){ FastScanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = n/100; int l = n-m*100; int ans if(m > 20){ System.out.print("1"); return; } if(l > 5*m){ ans = 0; }else{ ...
Main.java:9: error: ';' expected int ans ^ Main.java:32: error: ';' expected return truel ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794927332|p02843|0
u794927332|p02843|0
codenet
Compile Error
2,398
v2_s404352386
s404352386
s404352386
p02843
p02843
u794927332
u794927332
1,575,682,247
2019-12-07T01:30:47
Main.java
import java.util.*; class main{ public static void main(String args[]){ FastScanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = n/100; int l = n-m*100; int ans; if(m > 20){ System.out.print("1"); return; } if(l > 5*m){ ans = 0; }else{ ...
Main.java:26: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FastScanner Main.java:5: error: incompatible types: Scanner cannot be converted to FastScanner FastScanner sc = new Scanner(System.in); ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794927332|p02843|0
u794927332|p02843|0
codenet
Compile Error
2,399
v2_s333475196
s333475196
s333475196
p02844
p02844
u111285482
u111285482
1,592,166,783
2020-06-14T20:33:03
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.InputMismatchException; public class Main { public static void main(String[] args) { Task task = new Task(); task.solve(); } public static class Task { static final long MOD = (long) 1e9 + 7; public void solve() { Scan sc = new S...
Main.java:34: error: cannot find symbol Arrays.fill(d, 0); ^ symbol: variable Arrays location: class Task Main.java:40: error: cannot find symbol Arrays.fill(d, 0); ^ symbol: variable Arrays location: class Task 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u111285482|p02844|0
u111285482|p02844|0
codenet
Compile Error
3,104
v2_s717304045
s717304045
s717304045
p02844
p02844
u207845630
u207845630
1,586,188,184
2020-04-06T15:49:44
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String S = sc.next(); String buf = " "; int ans = 0; int a,b,c; boolean[] list = new boolean[1000]; Arrays.fill(list,false); for(char i = '0';i < '10';i++){ if(...
Main.java:12: error: unclosed character literal for(char i = '0';i < '10';i++){ ^ Main.java:12: error: unclosed character literal for(char i = '0';i < '10';i++){ ^ Main.java:12: error: ';' expected for(char i = '0';i < '10';i++){ ^ Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02844|0
u207845630|p02844|0
codenet
Compile Error
825
v2_s767566296
s767566296
s767566296
p02844
p02844
u440812556
u440812556
1,575,781,043
2019-12-08T04:57:23
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int S = sc.nextInt(); int count = 0; for(int i=0; i<10; i++){ for(int j=0; j<10; j++){ for(int k=0; k<10; k++){ int a = ijk; ...
Main.java:16: error: cannot find symbol int a = ijk; ^ symbol: variable ijk location: class Main Main.java:18: error: int cannot be dereferenced int bi = S.indexOf(i); ^ Main.java:19: error: int cannot be dereferenced int bj = S.in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02844|0
u440812556|p02844|0
codenet
Compile Error
750
v2_s506226559
s506226559
s506226559
p02844
p02844
u440812556
u440812556
1,575,782,037
2019-12-08T05:13:57
Main.java
class Main { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String S = br.readLine(); Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int count = 0; for(int i=0; i<10; i++){ ...
Main.java:3: error: cannot find symbol public static void main(String[] args)throws IOException ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol BufferedReader br = ^ symbol: class BufferedReader location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02844|0
u440812556|p02844|0
codenet
Compile Error
858
v2_s430624203
s430624203
s430624203
p02844
p02844
u458268106
u458268106
1,575,258,009
2019-12-02T03:40:09
Main.java
//繰り返し二乗法 repow(b,p)(b,p,modder) //ユークリッド互除法で最大公約数 gcd //gcdで最小公倍数 lcm //約数列挙divList(int) //約数列挙divSet(int) //素数判定iP(long)とtameshiwari(long) //二項係数クラスNCK ////NCK(max,modder) ////pre(max,modder) ////nCk(n,k) //BSA()()()(List<T>,T,int,int,Comparator<T>) //BSF()()()(List<T>,T,int,int,Comparator<T>) //BSL()()()(List<T>,T,i...
Main.java:754: error: cannot find symbol a[s.chatAt(i)-'0'][i]+=1; ^ symbol: method chatAt(int) location: variable s of type String Main.java:760: error: cannot find symbol sss.put(100*(s.charAt(i)-'0')+10*(s.charAt(j)-'0')+k); ^ symbol: method put(int) location: va...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02844|0
u458268106|p02844|0
codenet
Compile Error
19,213
v2_s128298871
s128298871
s128298871
p02844
p02844
u481526887
u481526887
1,575,257,389
2019-12-02T03:29:49
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); // sc.useDelimiter(""); char[] s = new char[N]; String S = sc.next(); s = S.toCharArray(); Set<String> set = new HashSet<String>(); ...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u481526887|p02844|0
u481526887|p02844|0
codenet
Compile Error
1,139
v2_s949855219
s949855219
s949855219
p02844
p02844
u791317953
u791317953
1,598,998,014
2020-09-01T22:06:54
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); char[] S=sc.next().toCharArray(); boolean hyaku=false; boolean juu=false; boolean iti=false; int result; for(int i=0; i<10; i++){ ...
Main.java:28: error: not a statement hyaku==false; ^ Main.java:29: error: not a statement juu==false; ^ Main.java:30: error: not a statement iti==false; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791317953|p02844|0
u791317953|p02844|0
codenet
Compile Error
1,044
v2_s297902897
s297902897
s297902897
p02844
p02844
u791317953
u791317953
1,598,998,061
2020-09-01T22:07:41
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); char[] S=sc.next().toCharArray(); boolean hyaku=false; boolean juu=false; boolean iti=false; int result; for(int i=0; i<10; i++){ ...
Main.java:26: error: variable result might not have been initialized result++; ^ Main.java:34: error: variable result might not have been initialized System.out.println(result); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791317953|p02844|0
u791317953|p02844|0
codenet
Compile Error
1,040
v2_s142054082
s142054082
s142054082
p02844
p02844
u858464419
u858464419
1,575,256,336
2019-12-02T03:12:16
Main.java
import java.util.stream.*; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder buf = new StringBuilder(); int N = sc.nextInt(); String S = sc.next(); List<String> list = new ArrayList<>(); ...
Main.java:10: error: cannot find symbol List<String> list = new ArrayList<>(); ^ symbol: class List location: class Main Main.java:10: error: cannot find symbol List<String> list = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858464419|p02844|0
u858464419|p02844|0
codenet
Compile Error
819
v2_s341827161
s341827161
s341827161
p02844
p02844
u979552932
u979552932
1,578,223,812
2020-01-05T11:30:12
Main.java
#!/usr/bin/perl use strict; use warnings; my $n = <STDIN>; my $s = <STDIN>; my $ans = 0; for (my $i=0; $i<10; $i++) { my $a = index($s, $i); next if $a<0 || $a>=length($s)-2; for (my $j=0; $j<10; $j++) { my $b = index(substr($s, $a+1), $j); next if $b<0 || $b>=length(substr($s, $a+1))-1;...
Main.java:1: error: illegal character: '#' #!/usr/bin/perl ^ Main.java:1: error: class, interface, enum, or record expected #!/usr/bin/perl ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. use warnings; ^ (use --enable-preview to enable unnamed classes) Main.java:6: error: il...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979552932|p02844|2
u979552932|p02844|2
codenet
Compile Error
549
v2_s327359354
s327359354
s327359354
p02847
p02847
u018679195
u018679195
1,579,685,516
2020-01-22T09:31:56
Main.java
public void getDay(String S){ // TODO code application logic here Scanner sc = new Scanner(System.in); S = sc.nextLine(); if (S.toUpperCase().equals("SUN")){ System.out.println("It is Sunday today, and seven days later, it will be Sunday again"); ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void getDay(String S){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02847|0
u018679195|p02847|0
codenet
Compile Error
1,283
v2_s483712379
s483712379
s483712379
p02847
p02847
u018773111
u018773111
1,593,083,235
2020-06-25T11:07:15
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); HashMap<String, String> h = new HashMap<String, String>(); h.put("SUN", "日曜日"); h.put("MON", "月曜日"); h.put("TUE", "火曜日"); h.put("WED", "水曜日"); h.pu...
Main.java:15: error: cannot find symbol System.out.println(get(s)); ^ symbol: method get(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02847|0
u018773111|p02847|0
codenet
Compile Error
467
v2_s030634260
s030634260
s030634260
p02847
p02847
u018773111
u018773111
1,593,083,655
2020-06-25T11:14:15
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String day[] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; System.out.println(7 - day.indexOf(s)); } }
Main.java:8: error: cannot find symbol System.out.println(7 - day.indexOf(s)); ^ symbol: method indexOf(String) location: variable day of type String[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02847|0
u018773111|p02847|0
codenet
Compile Error
268
v2_s123579162
s123579162
s123579162
p02847
p02847
u034057217
u034057217
1,575,329,840
2019-12-02T23:37:20
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String day = scanner.next(); switch(day) { case 'MON': System.out.println(6); break; case 'TUE': System.out.println(5); break; case 'WED': System.out.prin...
Main.java:8: error: unclosed character literal case 'MON': ^ Main.java:8: error: unclosed character literal case 'MON': ^ Main.java:9: error: illegal start of expression System.out.println(6); ^ Main.java:11: error: unclosed character literal case 'TUE': ^ Main.java:11...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u034057217|p02847|0
u034057217|p02847|0
codenet
Compile Error
601
v2_s103163551
s103163551
s103163551
p02847
p02847
u037740468
u037740468
1,575,495,927
2019-12-04T21:45:27
Main.java
import java.util.*; import java.lang.Math.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int X = sc.nextInt(); int N = 0; for(N = 0 ; A*N+B*intLength(N)<X ; N++){ } ...
Main.java:10: error: cannot find symbol for(N = 0 ; A*N+B*intLength(N)<X ; N++){ ^ symbol: method intLength(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037740468|p02847|0
u037740468|p02847|0
codenet
Compile Error
781
v2_s256693447
s256693447
s256693447
p02847
p02847
u052746401
u052746401
1,597,638,525
2020-08-17T04:28:45
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); switch(sc.next){ case "SUN": System.out.println(7); case "MON": System.out.println(6); case "TUE": ...
Main.java:7: error: cannot find symbol switch(sc.next){ ^ symbol: variable next location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052746401|p02847|0
u052746401|p02847|0
codenet
Compile Error
628
v2_s637846855
s637846855
s637846855
p02847
p02847
u071109588
u071109588
1,574,892,587
2019-11-27T22:09:47
Main.java
public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); if (s.equals("SUN")) { System.out.println("7"); } else if (s.equals("MON")) { System.out.println("6"); } else if (s.equals("TUE")) { System.out.prin...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u071109588|p02847|0
u071109588|p02847|0
codenet
Compile Error
599
v2_s286580441
s286580441
s286580441
p02847
p02847
u071109588
u071109588
1,574,893,036
2019-11-27T22:17:16
Main.java
public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String s = input.nextLine(); if (s.equals("SUN")) { System.out.println("7"); } else if (s.equals("MON")) { System.out.println("6"); } else if (s.equals("TUE")) { System.out.prin...
Main.java:3: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u071109588|p02847|0
u071109588|p02847|0
codenet
Compile Error
601
v2_s234120153
s234120153
s234120153
p02847
p02847
u088241798
u088241798
1,577,665,292
2019-12-30T00:21:32
Main.java
public class Main { public static void main(String[] args) { String[] weekdays = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; String S; int index = 0; for (int i = 0; i < weekdays.length; i++) { if (weekdays[i].equals(S)) { index = i; break; } } System.out.println(7 - index); } }
Main.java:8: error: variable S might not have been initialized if (weekdays[i].equals(S)) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088241798|p02847|0
u088241798|p02847|0
codenet
Compile Error
316
v2_s528175987
s528175987
s528175987
p02847
p02847
u089230684
u089230684
1,579,685,445
2020-01-22T09:30:45
Main.java
public static void main(String[] args) { // TODO code application logic here String S; Scanner sc = new Scanner(System.in); S = sc.nextLine(); if (S.toUpperCase().equals("SUN")){ System.out.println("It is Sunday today, and seven days later, it will be...
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
u089230684|p02847|1
u089230684|p02847|1
codenet
Compile Error
1,306
v2_s260726090
s260726090
s260726090
p02847
p02847
u089230684
u089230684
1,579,685,773
2020-01-22T09:36:13
Main.java
public void getDay(String S){ // Scanner sc = new Scanner(System.in); //S = sc.nextLine(); if (S.toUpperCase().equals("SUN")){ System.out.println("It is Sunday today, and seven days later, it will be Sunday again"); } else if (S.equals("MON")){ ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void getDay(String S){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02847|1
u089230684|p02847|1
codenet
Compile Error
1,228