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_s004409341
s004409341
s004409341
p03264
p03264
u206985821
u206985821
1,537,358,091
2018-09-19T11:54:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); if(k % 2 == 0) { System.out.println(Math.pow(k/2, 2)); } else { System.out.println((k/2)*(k+1)/2); } }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u206985821|p03264|0
u206985821|p03264|0
codenet
Compile Error
267
v2_s090026721
s090026721
s090026721
p03264
p03264
u317333738
u317333738
1,574,283,055
2019-11-20T20:50:55
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); if (k % 2 == 0) { System.out.println((k / 2) * (k / 2)); } else { int kMinus = k - 1; System.out.println((kMinus / 2) * (kMinus / 2 + 1...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p03264|0
u317333738|p03264|0
codenet
Compile Error
329
v2_s702723713
s702723713
s702723713
p03264
p03264
u317333738
u317333738
1,574,283,098
2019-11-20T20:51:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int kMinus = k - 1; if (k % 2 == 0) { System.out.println((k / 2) * (k / 2)); } else { System.out.println((kMinus / 2) * (kMinus / 2 + 1))...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p03264|0
u317333738|p03264|0
codenet
Compile Error
327
v2_s923385266
s923385266
s923385266
p03264
p03264
u324881146
u324881146
1,583,201,816
2020-03-03T02:16:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); if(k%2==0) { System.out.println((k/2)*(k/2)); }else { System.out.println((k/2+1)*(k/2)); } sc.close(); } }
Main.java:3: error: illegal character: '\u3000' public class?Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p03264|0
u324881146|p03264|0
codenet
Compile Error
276
v2_s442387924
s442387924
s442387924
p03264
p03264
u369712616
u369712616
1,584,262,470
2020-03-15T08:54:30
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); if(n % 2 == 0){ System.out.println(n * n / 4); }else{ System.out.println((n + 1) * (n - 1) / 4); } } }
Main.java:7: error: cannot find symbol if(n % 2 == 0){ ^ symbol: variable n location: class Main Main.java:8: error: cannot find symbol System.out.println(n * n / 4); ^ symbol: variable n location: class Main Main.java:8: error: cannot find symbol System.out.p...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p03264|0
u369712616|p03264|0
codenet
Compile Error
307
v2_s990807696
s990807696
s990807696
p03264
p03264
u375901682
u375901682
1,536,210,890
2018-09-06T05:14:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] vals = sc.nextLine().split(" "); double N = getInt(vals[0]); double K = getInt(vals[1]); long count1 = 0; long count2 = 0; for(long...
Main.java:14: error: illegal character: '\u3000' if (i % 2 ==?1 && i % K == 2/K) count2++; ^ Main.java:14: error: not a statement if (i % 2 ==?1 && i % K == 2/K) count2++; ^ Main.java:14: error: ';' expected if (i % 2 ==?1 &...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u375901682|p03264|1
u375901682|p03264|1
codenet
Compile Error
713
v2_s066248756
s066248756
s066248756
p03264
p03264
u389831705
u389831705
1,535,850,381
2018-09-02T01:06:21
Main.java
public class Main implements Runnable { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { new Thread(null, new Main(), "", 128 * 1024 * 1024).start(); } public void run() { int k = sc.nextInt(); int ans = 0; for (int i = 1; i ...
Main.java:3: error: cannot find symbol private static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol private static Scanner sc = new Scanner(System.in); ^ symbol: class Scan...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u389831705|p03264|0
u389831705|p03264|0
codenet
Compile Error
457
v2_s542670744
s542670744
s542670744
p03264
p03264
u483156389
u483156389
1,535,852,612
2018-09-02T01:43:32
InputSample.java
import java.util.Scanner; public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); double num = new double(num); double sum = num/2; double x = Math.ceil(sum); double y = Math.floor(sum); ...
InputSample.java:7: error: '[' expected double num = new double(num); ^ InputSample.java:7: error: ']' expected double num = new double(num); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
402
v2_s598845782
s598845782
s598845782
p03264
p03264
u483156389
u483156389
1,535,852,674
2018-09-02T01:44:34
InputSample.java
import java.util.Scanner; public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); double num = double(num); double sum = num/2; double x = Math.ceil(sum); double y = Math.floor(sum); ...
InputSample.java:7: error: '.class' expected double num = double(num); ^ InputSample.java:7: error: not a statement double num = double(num); ^ InputSample.java:7: error: ';' expected double num = double(num); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
398
v2_s314503933
s314503933
s314503933
p03264
p03264
u483156389
u483156389
1,535,852,724
2018-09-02T01:45:24
InputSample.java
import java.util.Scanner; public class InputSample { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); double a = new double(num); double sum = a/2; double x = Math.ceil(sum); double y = Math.floor(sum); ...
InputSample.java:7: error: '[' expected double a = new double(num); ^ InputSample.java:7: error: ']' expected double a = new double(num); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
398
v2_s752999560
s752999560
s752999560
p03264
p03264
u483156389
u483156389
1,535,853,077
2018-09-02T01:51:17
Main.java
import java.util.Scanner; public class { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); double a = (num); double sum = a/2; double x = Math.ceil(sum); double y = Math.floor(sum); double z = x * y; ...
Main.java:3: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
377
v2_s117822399
s117822399
s117822399
p03264
p03264
u483156389
u483156389
1,535,853,215
2018-09-02T01:53:35
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); double a = (num); double sum = a/2; double x = Math.ceil(sum); double y = Math.floor(sum); double z = x * y; System.ou...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
359
v2_s020638901
s020638901
s020638901
p03264
p03264
u483156389
u483156389
1,535,853,967
2018-09-02T02:06:07
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(); double a = int num; double sum = a/2; double x = Math.ceil(sum); double y = Math.floor(sum); double z = x * y...
Main.java:6: error: '.class' expected double a = int num; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
383
v2_s725106521
s725106521
s725106521
p03264
p03264
u483156389
u483156389
1,535,853,999
2018-09-02T02:06:39
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(); double a = double (num); double sum = a/2; double x = Math.ceil(sum); double y = Math.floor(sum); double z = ...
Main.java:6: error: '.class' expected double a = double (num); ^ Main.java:6: error: not a statement double a = double (num); ^ Main.java:6: error: ';' expected double a = double (num); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
388
v2_s349981997
s349981997
s349981997
p03264
p03264
u483156389
u483156389
1,535,854,359
2018-09-02T02:12:39
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(); double a = (num); double b = a/2; int x = Math.ceil(b); int y = Math.floor(b); int z = x * y; System....
Main.java:8: error: incompatible types: possible lossy conversion from double to int int x = Math.ceil(b); ^ Main.java:9: error: incompatible types: possible lossy conversion from double to int int y = Math.floor(b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|0
u483156389|p03264|0
codenet
Compile Error
363
v2_s048244607
s048244607
s048244607
p03264
p03264
u483156389
u483156389
1,535,899,040
2018-09-02T14:37:20
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 a = num/2; int x = num%2 int c = a + x * x System.out.println(c); scan.close(); } }
Main.java:7: error: ';' expected int x = num%2 ^ Main.java:8: error: ';' expected int c = a + x * x ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|1
u483156389|p03264|1
codenet
Compile Error
303
v2_s942145053
s942145053
s942145053
p03264
p03264
u483156389
u483156389
1,535,899,468
2018-09-02T14:44:28
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(); System.out.println(num/2 + num%2)* num/2; scan.close(); } }
Main.java:6: error: not a statement System.out.println(num/2 + num%2)* num/2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|1
u483156389|p03264|1
codenet
Compile Error
251
v2_s316712362
s316712362
s316712362
p03264
p03264
u483156389
u483156389
1,535,899,699
2018-09-02T14:48:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int a = (x%2 + x/2) * x/2); System.out.println(a) scan.close(); } }
Main.java:6: error: ';' expected int a = (x%2 + x/2) * x/2); ^ Main.java:7: error: ';' expected System.out.println(a) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|1
u483156389|p03264|1
codenet
Compile Error
265
v2_s168673182
s168673182
s168673182
p03264
p03264
u483156389
u483156389
1,535,899,818
2018-09-02T14:50:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int a = ( x % 2 + x / 2 ) * x / 2 ); System.out.println(a); scan.close(); } }
Main.java:6: error: ';' expected int a = ( x % 2 + x / 2 ) * x / 2 ); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|1
u483156389|p03264|1
codenet
Compile Error
275
v2_s898368315
s898368315
s898368315
p03264
p03264
u483156389
u483156389
1,535,899,896
2018-09-02T14:51:36
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int a = (x/2+x%2)*x/2); System.out.println(a); scan.close(); } }
Main.java:6: error: ';' expected int a = (x/2+x%2)*x/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u483156389|p03264|1
u483156389|p03264|1
codenet
Compile Error
262
v2_s577377601
s577377601
s577377601
p03264
p03264
u484062444
u484062444
1,535,851,039
2018-09-02T01:17:19
a.java
import java.util.*; public class a { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); // 出力 System.out.println((a-1)/2)*((a+1)/2); } }
a.java:8: error: not a statement System.out.println((a-1)/2)*((a+1)/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u484062444|p03264|0
u484062444|p03264|0
codenet
Compile Error
219
v2_s287621744
s287621744
s287621744
p03264
p03264
u485622539
u485622539
1,535,865,055
2018-09-02T05:10:55
Main.java
public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int k = reader.nextInt(); System.out.printf("%d\n",(k/2)*((k+1/2))); } }
Main.java:4: error: cannot find symbol Scanner reader = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner reader = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485622539|p03264|0
u485622539|p03264|0
codenet
Compile Error
202
v2_s851367740
s851367740
s851367740
p03264
p03264
u485622539
u485622539
1,535,865,421
2018-09-02T05:17:01
Main.java
import java.util.* public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int k = reader.nextInt(); if (k%2!=0){ System.out.printf("%d\n",(k/2)*((k+1/2)));} else{ System.out.printf("%d\n",(k/2)*(k/2);} } } }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:10: error: ')' or ',' expected System.out.printf("%d\n",(k/2)*(k/2);} ^ Main.java:14: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485622539|p03264|0
u485622539|p03264|0
codenet
Compile Error
314
v2_s738680691
s738680691
s738680691
p03264
p03264
u485622539
u485622539
1,535,865,453
2018-09-02T05:17:33
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int k = reader.nextInt(); if (k%2!=0){ System.out.printf("%d\n",(k/2)*((k+1/2)));} else{ System.out.printf("%d\n",(k/2)*(k/2);} } } }
Main.java:10: error: ')' or ',' expected System.out.printf("%d\n",(k/2)*(k/2);} ^ Main.java:14: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485622539|p03264|0
u485622539|p03264|0
codenet
Compile Error
315
v2_s134672895
s134672895
s134672895
p03264
p03264
u485622539
u485622539
1,535,865,840
2018-09-02T05:24:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner reader = new Scanner(System.in); int k = reader.nextInt(); if (k%2!=0){ System.out.printf("%d\n",((k/2)*(k+1)/2));} else{ System.out.printf("%d\n",((k/2)*(k/2)));} } } }
Main.java:14: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485622539|p03264|0
u485622539|p03264|0
codenet
Compile Error
318
v2_s294512000
s294512000
s294512000
p03264
p03264
u522636435
u522636435
1,583,556,188
2020-03-07T04:43:08
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); sc.close(); int k2 = k / 2; System.out.println(k2 * (k - k2)); } }
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
u522636435|p03264|0
u522636435|p03264|0
codenet
Compile Error
243
v2_s052719760
s052719760
s052719760
p03264
p03264
u547167033
u547167033
1,561,509,420
2019-06-26T00:37:00
Main.java
import java util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = (int) k/2; if(x == k)System.out.println(k*k/4); else System.out.println((k-1)*(k+1)/4); sc.close(); } }
Main.java:1: error: '.' expected import java util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03264|0
u547167033|p03264|0
codenet
Compile Error
287
v2_s327684980
s327684980
s327684980
p03264
p03264
u547167033
u547167033
1,561,509,674
2019-06-26T00:41:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = (int) k/2; int y = x*2 if(y == k)System.out.println(k*k/4); else System.out.println((k-1)*(k+1)/4); sc.close(); } }
Main.java:7: error: ';' expected int y = x*2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03264|0
u547167033|p03264|0
codenet
Compile Error
306
v2_s081869871
s081869871
s081869871
p03264
p03264
u575858003
u575858003
1,536,446,204
2018-09-08T22:36:44
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); // input K int K = sc.nextInt(); int odd = 0; int even = 0; if(K%2 == 1){ odd = K/2 + 1; even = K/2; } el...
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
u575858003|p03264|0
u575858003|p03264|0
codenet
Compile Error
429
v2_s439815867
s439815867
s439815867
p03264
p03264
u593940758
u593940758
1,536,233,314
2018-09-06T11:28:34
Main.java
public class Main{ public static void main(String[] args) { new Main().run(); } private void run() { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int res; if (K % 2 == 0) { res = (K/2)*(K/2); } else { res = (K/2+1)*(K/2);...
Main.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: 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
u593940758|p03264|0
u593940758|p03264|0
codenet
Compile Error
371
v2_s133545291
s133545291
s133545291
p03264
p03264
u603380205
u603380205
1,535,850,415
2018-09-02T01:06:55
pair.java
public class pair { public static void main(String[] args) { Scanner in = new Scanner(System.in); int k = in.nextInt(); double pair = Math.ceil(k / 2) * Math.ceil((k - 1) / 2); System.out.println((int)pair); } }
pair.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class pair pair.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class pair 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u603380205|p03264|0
u603380205|p03264|0
codenet
Compile Error
230
v2_s293017163
s293017163
s293017163
p03264
p03264
u603380205
u603380205
1,535,850,624
2018-09-02T01:10:24
pair.java
public class pair { public static void main(String[] args) { Scanner in = new Scanner(System.in); double k = in.nextInt(); double pair = Math.ceil(k / 2) * Math.ceil((k - 1) / 2); System.out.println((int)pair); } }
pair.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class pair pair.java:5: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class pair 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u603380205|p03264|0
u603380205|p03264|0
codenet
Compile Error
233
v2_s328582618
s328582618
s328582618
p03264
p03264
u626353997
u626353997
1,564,098,994
2019-07-25T23:56:34
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); System.out.prrintln(k/2*(k+1)/2); } }
Main.java:7: error: cannot find symbol System.out.prrintln(k/2*(k+1)/2); ^ symbol: method prrintln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03264|0
u626353997|p03264|0
codenet
Compile Error
201
v2_s579333905
s579333905
s579333905
p03264
p03264
u692164164
u692164164
1,535,851,988
2018-09-02T01:33:08
Main.java
public class Main { public static void main(String... a) { int k = Integer.parseInt(a); int nOdd = k / 2 + k % 2; int nEven = k / 2; System.out.print(nOdd * nEven); } }
Main.java:3: error: incompatible types: String[] cannot be converted to String int k = Integer.parseInt(a); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u692164164|p03264|0
u692164164|p03264|0
codenet
Compile Error
189
v2_s531210429
s531210429
s531210429
p03264
p03264
u752146501
u752146501
1,538,328,810
2018-09-30T17:33:30
Main.java
// abc108a.cpp #include <iostream> #include <algorithm> using namespace std; int main() { int k; cin >> k; int odd = k/2; int even = k/2; if (k%2 != 0) { odd++; } cout << odd*even << endl; }
Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <algorithm> ^ Main.java:9: error: not a statement cin >> k; ^ Main.java:16: error: not a statement cout << odd*even << endl; ^ Main.java:6: error: unnamed classes are...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03264|0
u752146501|p03264|0
codenet
Compile Error
234
v2_s840744587
s840744587
s840744587
p03264
p03264
u913309375
u913309375
1,535,911,250
2018-09-02T18:00:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int count = 0; int K = sc.nextInt(); for(int i = 2;i <= K; i = i + 2){ fot(int j = 1;j <= K; j = j + 2){ count++ } } } }
Main.java:9: error: '.class' expected fot(int j = 1;j <= K; j = j + 2){ ^ Main.java:9: error: not a statement fot(int j = 1;j <= K; j = j + 2){ ^ Main.java:9: error: ';' expected fot(int j = 1;j <= K; j = j + 2){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913309375|p03264|0
u913309375|p03264|0
codenet
Compile Error
313
v2_s542327838
s542327838
s542327838
p03264
p03264
u913309375
u913309375
1,535,922,960
2018-09-02T21:16:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int count = 0; int K = sc.nextInt(); for(int i = 2;i <= K; i = i + 2){ fot(int j = 1;j <= K; j = j + 2){ count++; } } } }
Main.java:9: error: '.class' expected fot(int j = 1;j <= K; j = j + 2){ ^ Main.java:9: error: not a statement fot(int j = 1;j <= K; j = j + 2){ ^ Main.java:9: error: ';' expected fot(int j = 1;j <= K; j = j + 2){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913309375|p03264|1
u913309375|p03264|0
codenet
Compile Error
314
v2_s035628889
s035628889
s035628889
p03264
p03264
u913309375
u913309375
1,539,538,482
2018-10-14T17:34:42
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int xone = sc.nextInt(); // スペース区切りの整数の入力 int yone = sc.nextInt(); int xtwo = sc.nextInt(); int ytwo = sc.nextInt(); // 文字列の入力 //String s = sc.next(); // 出力 int naga...
Main.java:15: error: package system does not exist system.out.print(xtwo + nagasa); ^ Main.java:16: error: package system does not exist system.out.print(ytwo); ^ Main.java:17: error: package system does not exist system.out.print(xone + nagasa); ^ Main.java:18: error: package system does ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913309375|p03264|3
u913309375|p03264|1
codenet
Compile Error
526
v2_s945324171
s945324171
s945324171
p03264
p03264
u922853348
u922853348
1,535,855,837
2018-09-02T02:37:17
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Comparator; import java.util.StringTokenizer; class Main{ static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new...
Main.java:59: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922853348|p03264|0
u922853348|p03264|0
codenet
Compile Error
1,140
v2_s117224289
s117224289
s117224289
p03264
p03264
u979591106
u979591106
1,535,935,847
2018-09-03T00:50:47
Main.java
public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); //偶数を選ぶ個数= 偶数の個数 int eve = k/2 //奇数を選ぶ個数= 奇数の個数 //kが奇数の時 //kが偶数の時 if (k%2==0){ int odd = k/2; } else { int odd = k/2 - 1; } System.out.p...
Main.java:6: error: ';' expected int eve = k/2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979591106|p03264|0
u979591106|p03264|0
codenet
Compile Error
411
v2_s494668223
s494668223
s494668223
p03264
p03264
u979591106
u979591106
1,535,935,923
2018-09-03T00:52:03
Main.java
public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); //偶数を選ぶ個数= 偶数の個数 int eve = k/2; //奇数を選ぶ個数= 奇数の個数 //kが奇数の時 //kが偶数の時 if (k%2==0){ int odd = k/2; } else { int odd = k/2 - 1; } System.out....
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot fin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979591106|p03264|0
u979591106|p03264|0
codenet
Compile Error
412
v2_s925491991
s925491991
s925491991
p03265
p03265
u014501672
u014501672
1,594,523,634
2020-07-12T03:13:54
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] input = {0,0,0,0}; for (int i = 0; i < input.length;i++) { input[i] = scan.nextInt(); // x_1,y_1,x_2,y_2 } scan.close(); int[][] position = {{0,0},{0,0},{0,0},{0,0}}; ...
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
u014501672|p03265|0
u014501672|p03265|0
codenet
Compile Error
1,362
v2_s360791654
s360791654
s360791654
p03265
p03265
u014501672
u014501672
1,594,523,704
2020-07-12T03:15:04
Main.java
class abc108_b { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] input = {0,0,0,0}; for (int i = 0; i < input.length;i++) { input[i] = scan.nextInt(); // x_1,y_1,x_2,y_2 } scan.close(); int[][] position = {{0,0},{0,0}...
Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class abc108_b Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class abc108_b 2 e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u014501672|p03265|0
u014501672|p03265|0
codenet
Compile Error
1,386
v2_s351367058
s351367058
s351367058
p03265
p03265
u241090452
u241090452
1,588,699,312
2020-05-05T17:21:52
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int x = c-a; int y = d-b; System.out.println(c-...
Main.java:12: error: bad operand types for binary operator '-' System.out.println(c-y+" "+d+x+" "+a-y+" "+b+x); ^ first type: String second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p03265|0
u241090452|p03265|0
codenet
Compile Error
368
v2_s410736901
s410736901
s410736901
p03265
p03265
u458268106
u458268106
1,572,826,356
2019-11-04T00:12:36
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int x1=sc.nextInt(); int y1=sc.nextInt(); int x2=sc.nextInt(); int y2=sc.nextInt(); int dx=x2-x1; int dy=y2-y1 int x3=x2-dy; int y3=y2+dx; int x4=x3-dx; int y4=y3-dy;...
Main.java:11: error: ';' expected int dy=y2-y1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p03265|1
u458268106|p03265|1
codenet
Compile Error
376
v2_s510568592
s510568592
s510568592
p03265
p03265
u476635134
u476635134
1,594,259,105
2020-07-09T01:45:05
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x1= sc.nextInt(); int y1= sc.nextInt(); int x2=sc.nextInt(); int y2 =sc.nextInt(); for (int x3=-200;x3<=200;x3++) { for (int y3=-200;y3<=200;y3++) { if ((y2-y1)*(y2-y1)+(x2-x1)*(x2-x1)==(y2-y3)*(y2...
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
u476635134|p03265|1
u476635134|p03265|1
codenet
Compile Error
1,220
v2_s921364942
s921364942
s921364942
p03265
p03265
u476635134
u476635134
1,594,259,288
2020-07-09T01:48:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x1= sc.nextInt(); int y1= sc.nextInt(); int x2=sc.nextInt(); int y2 =sc.nextInt(); for (int x3=-200;x3<=200;x3++) { for (int y3=-200;y3<=200;y3++) { if ((y2-y1)*(y2-y1)+(...
Main.java:47: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u476635134|p03265|1
u476635134|p03265|1
codenet
Compile Error
1,242
v2_s636642003
s636642003
s636642003
p03265
p03265
u622400537
u622400537
1,553,965,678
2019-03-30T17:07:58
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x1=sc.nextInt(); int x2=sc.nextInt(); int y1=sc.nextInt(); int y2=sc.nextInt(); int x3,y3,x4,y4; int x=x2-x1; int y=y2-y1; ...
Main.java:13: error: variable x4 might not have been initialized x3=x4+x; ^ Main.java:15: error: variable y4 might not have been initialized y3=y4+y; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u622400537|p03265|0
u622400537|p03265|0
codenet
Compile Error
460
v2_s256143668
s256143668
s256143668
p03265
p03265
u913309375
u913309375
1,539,538,521
2018-10-14T17:35:21
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int xone = sc.nextInt(); // スペース区切りの整数の入力 int yone = sc.nextInt(); int xtwo = sc.nextInt(); int ytwo = sc.nextInt(); // 文字列の入力 //String s = sc.next(); // 出力 ...
Main.java:15: error: package system does not exist system.out.print(xtwo + nagasa); ^ Main.java:16: error: package system does not exist system.out.print(ytwo); ^ Main.java:17: error: package system does not exist system.out.print(xone + nagasa); ^ Main.java:18: error: package system does ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913309375|p03265|0
u913309375|p03265|0
codenet
Compile Error
534
v2_s598663883
s598663883
s598663883
p03266
p03266
u006449883
u006449883
1,537,267,128
2018-09-18T10:38:48
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int ans = 0; int ans = n / k; if(k % 2 == 0) { int b = n / (k / 2); int c = b - ans...
Main.java:10: error: variable ans is already defined in method main(String[]) int ans = n / k; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006449883|p03266|0
u006449883|p03266|0
codenet
Compile Error
395
v2_s279788752
s279788752
s279788752
p03266
p03266
u310899706
u310899706
1,535,852,604
2018-09-02T01:43:24
Main.java
public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int count =0; boolean f1,f2,f3; for(int a = 1;a<=n;a++) { for(int b=1;b<=n;b++) { for(int c=1;c<=n;c++) { f1 = (a+b)%k==0; f2 = (b+c)%k==0; ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u310899706|p03266|0
u310899706|p03266|0
codenet
Compile Error
430
v2_s382945843
s382945843
s382945843
p03266
p03266
u375901682
u375901682
1,536,210,918
2018-09-06T05:15:18
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] vals = sc.nextLine().split(" "); double N = getInt(vals[0]); double K = getInt(vals[1]); long count1 = 0; long count2 = 0; for(long...
Main.java:14: error: illegal character: '\u3000' if (i % 2 ==?1 && i % K == 2/K) count2++; ^ Main.java:14: error: not a statement if (i % 2 ==?1 && i % K == 2/K) count2++; ^ Main.java:14: error: ';' expected if (i % 2 ==?1 &...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u375901682|p03266|0
u375901682|p03266|0
codenet
Compile Error
713
v2_s680881570
s680881570
s680881570
p03266
p03266
u380806353
u380806353
1,535,853,534
2018-09-02T01:58:54
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int count = 0; int count2=0,count3=0; for(int a=1;a<=n;a++) { for(int b=a;b<=n;b++) { if((a+b)%k != 0) { ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u380806353|p03266|0
u380806353|p03266|0
codenet
Compile Error
583
v2_s252789481
s252789481
s252789481
p03266
p03266
u659605532
u659605532
1,535,854,310
2018-09-02T02:11:50
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int count = 0; for (int a=1;a<=N;a++) { int ax = a%K; int bs = K - ax; for (int b=bs;b<=N;b+=K) { int bx = b%K; int cs1 = K - bx; for (int c=c...
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
u659605532|p03266|0
u659605532|p03266|0
codenet
Compile Error
432
v2_s868759551
s868759551
s868759551
p03266
p03266
u659605532
u659605532
1,535,860,578
2018-09-02T03:56:18
Main2.java
public class Main2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int s = N / K; long count = 0; if (K/2 <= N) { if (K%2==1) { count = (long)s*(long)s*(long)s; } else { if (N%K==0) { count = (long)s*(long)s...
Main2.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main2 Main2.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main2 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659605532|p03266|0
u659605532|p03266|0
codenet
Compile Error
477
v2_s099782198
s099782198
s099782198
p03266
p03266
u659605532
u659605532
1,535,860,604
2018-09-02T03:56:44
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int s = N / K; long count = 0; if (K/2 <= N) { if (K%2==1) { count = (long)s*(long)s*(long)s; } else { if (N%K==0) { count = (long)s*(long)s*...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659605532|p03266|0
u659605532|p03266|0
codenet
Compile Error
850
v2_s101347180
s101347180
s101347180
p03266
p03266
u659605532
u659605532
1,535,861,866
2018-09-02T04:17:46
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); /* int cnt = 0; for (int a=1;a<=N;a++) { for (int b=1;b<=N;b++) { for (int c=1;c<=N;c++) { if ((a+b)%K==0){ if ((a+c)%K...
Main.java:62: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659605532|p03266|0
u659605532|p03266|0
codenet
Compile Error
1,024
v2_s288643159
s288643159
s288643159
p03266
p03266
u684839413
u684839413
1,535,866,132
2018-09-02T05:28:52
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long t = 0; long ans = 0; if (k % 2 == 0) { t = n / k; ans += (t * t * t); t = ((n*2) / k +1)/2; a...
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) Main.java:20: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u684839413|p03266|0
u684839413|p03266|0
codenet
Compile Error
463
v2_s542624220
s542624220
s542624220
p03266
p03266
u753946386
u753946386
1,549,143,655
2019-02-02T21:40:55
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = Integer.parseInt(scan.next()); int K = Integer.parseInt(scan.next()); long count = 0; if (K % 2 == 1) { for (int i = 1; i <= N; i++) { if (i % K == 0) { count++; } } count=count*...
Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u753946386|p03266|0
u753946386|p03266|0
codenet
Compile Error
610
v2_s377650334
s377650334
s377650334
p03266
p03266
u925940521
u925940521
1,554,246,727
2019-04-02T23:12:07
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); // a % K = b % K = c % K == 0 or A % K = b % K = c % K = (K / 2) のみ long cand1 = N / K; long cand2 = 0; if (K % 2 == ...
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:14: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u925940521|p03266|0
u925940521|p03266|0
codenet
Compile Error
488
v2_s414447090
s414447090
s414447090
p03268
p03268
u166214841
u166214841
1,544,725,558
2018-12-13T18:25:58
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner Xu=new Scanner(System.in); long N=Xu.nextInt(); long k=Xu.nextInt(); Xu.close(); long num=0; long[] a = new long[100000]; int r=N%k; for(int i=1;i<=k;i++) { a[i]=N/k; } for(int i=1;i<=r;i++...
Main.java:10: error: incompatible types: possible lossy conversion from long to int int r=N%k; ^ Main.java:16: error: incompatible types: possible lossy conversion from long to int num+=a[k]*a[k]*a[k]; ^ Main.java:16: error: incompatible types: possible lossy conversion from long to int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u166214841|p03268|1
u166214841|p03268|1
codenet
Compile Error
446
v2_s370136716
s370136716
s370136716
p03268
p03268
u593180859
u593180859
1,557,246,061
2019-05-07T16:21:01
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N,K; N = sc.nextLong(); K = sc.nextLong(); int a,b; a = N / K; long ans; ans = a * a * a; if(K % 2L == 0L){ b = (N + K/2L) / K; ans += b * b * b; } ...
Main.java:7: error: incompatible types: possible lossy conversion from long to int N = sc.nextLong(); ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int K = sc.nextLong(); ^ Main.java:14: error: incompatible types: possible lossy conversion...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593180859|p03268|0
u593180859|p03268|0
codenet
Compile Error
445
v2_s163340993
s163340993
s163340993
p03268
p03268
u665637816
u665637816
1,537,851,880
2018-09-25T05:04:40
findTriplet.java
public class findTriplet{ public static void main(String []args){ Scanner input =new Scanner(System.in); int N = input.nextInt(); int K = input.nextInt(); int count=0; for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ for(int l=1;l<=N;l++){ if((i+j) % K == 0 && (i+l) % K ...
findTriplet.java:4: error: cannot find symbol Scanner input =new Scanner(System.in); ^ symbol: class Scanner location: class findTriplet findTriplet.java:4: error: cannot find symbol Scanner input =new Scanner(System.in); ^ symbol: class Scanner location: class findTriplet...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u665637816|p03268|0
u665637816|p03268|0
codenet
Compile Error
468
v2_s812070825
s812070825
s812070825
p03268
p03268
u665637816
u665637816
1,537,852,085
2018-09-25T05:08:05
Main.java
import java.util.*; import java.util.Scanner; class findTriplet{ public static void main(String []args){ Scanner input =new Scanner(System.in); int N = input.nextInt(); int K = input.nextInt(); int count=0; for(int i=1;i<=N;i++){ for(int j=1;j<=N;j++){ for(int l=1;l<=N;l++){ ...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u665637816|p03268|0
u665637816|p03268|0
codenet
Compile Error
502
v2_s142709966
s142709966
s142709966
p03269
p03269
u485601469
u485601469
1,535,868,560
2018-09-02T06:09:20
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.List; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOExceptio...
Main.java:177: error: reached end of file while parsing return res * sgn; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485601469|p03269|1
u485601469|p03269|0
codenet
Compile Error
4,675
v2_s254935833
s254935833
s254935833
p03270
p03270
u313111801
u313111801
1,535,884,062
2018-09-02T10:27:42
Main.java
class Main{ public static void main(String[] args){ new Main().run(); } final long MOD = 998244353; long[] fac = new long[4001]; long[] ifac = new long[4001]; long[] inv = new long[4001]; long[] pow2 = new long[4001]; { fac[0] = fac[1] = ifac[0] = ifac[1] = inv[0] = inv...
Main.java:42: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:42: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:57: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p03270|0
u313111801|p03270|0
codenet
Compile Error
1,663
v2_s814742253
s814742253
s814742253
p03270
p03270
u485601469
u485601469
1,535,922,038
2018-09-02T21:00:38
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.io.BufferedWriter; import java.io.Writer; import java.io.OutputStreamWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.Input...
Main.java:193: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485601469|p03270|0
u485601469|p03270|0
codenet
Compile Error
5,653
v2_s908226883
s908226883
s908226883
p03272
p03272
u211877514
u211877514
1,535,247,530
2018-08-26T01:38:50
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(); int i = scan.nextInt(); int result = 0; if(i==1) result = 1; else result = (N-i)+1; System.out.println(result); } }
Main.java:2: error: '{' expected public class Main ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) ^ (use --enable-preview to enable unnamed classes) Main.java:15: error: class, interface, enum, or record ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211877514|p03272|0
u211877514|p03272|0
codenet
Compile Error
288
v2_s919606175
s919606175
s919606175
p03272
p03272
u222822036
u222822036
1,598,640,322
2020-08-28T18:45:22
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:72: error: cannot find symbol ArrayList<Integer> one = nextintArray(); ^ symbol: method nextintArray() location: class Main Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03272|0
u222822036|p03272|0
codenet
Compile Error
2,953
v2_s625333336
s625333336
s625333336
p03272
p03272
u293582495
u293582495
1,535,245,574
2018-08-26T01:06:14
Sample_problem.java
import java.util.Arrays; import java.util.Scanner; public class Sample_problem { public static void main(String args[]) { Scanner input = new Scanner(System.in); int n = input.nextInt(); int k = input.nextInt(); System.out.print(N-k+1); }}
Sample_problem.java:10: error: cannot find symbol System.out.print(N-k+1); ^ symbol: variable N location: class Sample_problem 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293582495|p03272|0
u293582495|p03272|0
codenet
Compile Error
281
v2_s516672934
s516672934
s516672934
p03272
p03272
u293582495
u293582495
1,535,245,651
2018-08-26T01:07:31
Sample_problem.java
package sample_problem; import java.util.Arrays; import java.util.Scanner; public class Sample_problem { public static void main(String args[]) { Scanner input = new Scanner(System.in); int n = input.nextInt(); int k = input.nextInt(); System.out.print(N-k+1); } }
Sample_problem.java:11: error: cannot find symbol System.out.print(N-k+1); ^ symbol: variable N location: class Sample_problem 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293582495|p03272|0
u293582495|p03272|0
codenet
Compile Error
306
v2_s587273437
s587273437
s587273437
p03272
p03272
u293582495
u293582495
1,535,245,858
2018-08-26T01:10:58
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner input = new Scanner(System.in); int n = input.nextInt(); int k = input.nextInt(); System.out.print(N-k+1); }}
Main.java:11: error: cannot find symbol System.out.print(N-k+1); ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u293582495|p03272|0
u293582495|p03272|0
codenet
Compile Error
272
v2_s898814550
s898814550
s898814550
p03272
p03272
u323959092
u323959092
1,535,658,663
2018-08-30T19:51:03
Main.java
#include <stdio.h> int main() { int N, i; scanf_s("%d %d", &N, &i); printf("%d", N - i + 1); return 0; }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:6: error: class, interface, enum, or record expected scanf_s("%d %d", &N, &i); ^ Main.java:7: error: class, interface, enum, or record expected printf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u323959092|p03272|0
u323959092|p03272|0
codenet
Compile Error
109
v2_s026059854
s026059854
s026059854
p03272
p03272
u367107084
u367107084
1,535,245,423
2018-08-26T01:03:43
Main.java
import java.util.Scanner; import org.apache.commons.lang3.builder.EqualsBuilder; class Main { @SuppressWarnings("resource") public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int i = scanner.nextInt(); System.out.println(n - i + 1); } @Override ...
Main.java:3: error: package org.apache.commons.lang3.builder does not exist import org.apache.commons.lang3.builder.EqualsBuilder; ^ Main.java:17: error: cannot find symbol return EqualsBuilder.reflectionEquals(this, obj); ^ symbol: variable EqualsBuilder location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u367107084|p03272|0
u367107084|p03272|0
codenet
Compile Error
414
v2_s710038998
s710038998
s710038998
p03272
p03272
u380806353
u380806353
1,535,296,481
2018-08-26T15:14: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(); int i = sc.nextInt(); System.out.println(n-i+1); 
 } 
 }
Main.java:2: error: illegal character: '\u2028' ? ^ Main.java:4: error: illegal character: '\u2028' ? ^ Main.java:11: error: illegal character: '\u2028' ? ^ Main.java:13: error: illegal character: '\u2028' ? ^ Main.java:15: error: reached end of file while parsing 5 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u380806353|p03272|0
u380806353|p03272|0
codenet
Compile Error
216
v2_s041493817
s041493817
s041493817
p03272
p03272
u380806353
u380806353
1,535,296,776
2018-08-26T15:19:36
Main.java
import java.util.Scanner; import java.io.IOException;
 public class Main { 
 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i = sc.nextInt(); System.out.println(n-i+1); 
 } 
 }
Main.java:2: error: illegal character: '\u2028' import java.io.IOException;? ^ Main.java:4: error: illegal character: '\u2028' ? ^ Main.java:11: error: illegal character: '\u2028' ? ^ Main.java:13: error: illegal character: '\u2028' ? ^ Main.java:15: error: reached end of file while parsing 5...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u380806353|p03272|0
u380806353|p03272|0
codenet
Compile Error
243
v2_s338487694
s338487694
s338487694
p03272
p03272
u380806353
u380806353
1,535,296,836
2018-08-26T15:20:36
Main.java
import java.util.Scanner; import java.io.IOException;
 public class Main { 
 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i = sc.nextInt(); System.out.println(n-i+1); 
 } 
 }
Main.java:2: error: illegal character: '\u2028' import java.io.IOException;? ^ Main.java:4: error: illegal character: '\u2028' ? ^ Main.java:11: error: illegal character: '\u2028' ? ^ Main.java:13: error: illegal character: '\u2028' ? ^ Main.java:15: error: reached end of file while parsing 5...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u380806353|p03272|0
u380806353|p03272|0
codenet
Compile Error
243
v2_s617885971
s617885971
s617885971
p03272
p03272
u380806353
u380806353
1,535,296,980
2018-08-26T15:23:00
Main.java
import java.util.Scanner; import java.io.IOException;
 public class Main { 
 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i = sc.nextInt(); System.out.println(n-i+1); 
 } 
 }
Main.java:2: error: illegal character: '\u2028' import java.io.IOException;? ^ Main.java:4: error: illegal character: '\u2028' ? ^ Main.java:11: error: illegal character: '\u2028' ? ^ Main.java:13: error: illegal character: '\u2028' ? ^ Main.java:15: error: reached end of file while parsing 5...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u380806353|p03272|0
u380806353|p03272|0
codenet
Compile Error
243
v2_s601057147
s601057147
s601057147
p03272
p03272
u474492589
u474492589
1,566,401,353
2019-08-21T15:29:13
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long K = sc.nextLong(); long[] x = new int[N]; for(int i = 0; i < N; i++){ x[i] = sc.nextlong(); } sc.cl...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[] x = new int[N]; ^ Main.java:9: error: incompatible types: int[] cannot be converted to long[] long[] x = new int[N]; ^ Main.java:11: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03272|0
u474492589|p03272|0
codenet
Compile Error
1,568
v2_s082781477
s082781477
s082781477
p03272
p03272
u521486211
u521486211
1,545,278,721
2018-12-20T04:05:21
Main.java
public void main(String args[]){ system.plintline(args[0]-args[1]+1); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void main(String args[]){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521486211|p03272|0
u521486211|p03272|0
codenet
Compile Error
72
v2_s782178431
s782178431
s782178431
p03272
p03272
u522636435
u522636435
1,597,032,934
2020-08-10T04:15:34
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i = sc.nextInt(); sc.close(); System.out.println(n + 1 - i); } }
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
u522636435|p03272|0
u522636435|p03272|0
codenet
Compile Error
245
v2_s831337728
s831337728
s831337728
p03272
p03272
u597436499
u597436499
1,535,334,158
2018-08-27T01:42:38
Main.java
import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); n = sc.nextInt(); i = sc.nextInt(); System.out.println(n-i+1); ...
Main.java:10: error: cannot find symbol n = sc.nextInt(); ^ symbol: variable n location: class Main Main.java:11: error: cannot find symbol i = sc.nextInt(); ^ symbol: variable i location: class Main Main.java:12: error: cannot find symbol System.out.println(n-i+1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u597436499|p03272|0
u597436499|p03272|0
codenet
Compile Error
3,579
v2_s758806770
s758806770
s758806770
p03272
p03272
u651496869
u651496869
1,535,826,815
2018-09-01T18:33:35
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 i = sc.nextInt(); if(1 > n || n > 100) { n = sc.nextInt(); } if(1 > i || i > n) { i = sc.nextInt(); ...
Main.java:1: error: ';' expected import java.util.* ^ Main.java:3: error: '{' expected public class Main() { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u651496869|p03272|0
u651496869|p03272|0
codenet
Compile Error
384
v2_s070081161
s070081161
s070081161
p03272
p03272
u651496869
u651496869
1,535,826,870
2018-09-01T18:34:30
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 i = sc.nextInt(); if(1 > n || n > 100) { n = sc.nextInt(); } if(1 > i || i > n) { i = sc.nextInt(); ...
Main.java:3: error: '{' expected public class Main() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u651496869|p03272|0
u651496869|p03272|0
codenet
Compile Error
386
v2_s693629568
s693629568
s693629568
p03272
p03272
u651496869
u651496869
1,535,827,028
2018-09-01T18:37:08
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 i = sc.nextInt(); if(1 > n || n > 100) { n = sc.nextInt(); } if(1 > i || i > n) { i = sc.nextInt();...
Main.java:3: error: '{' expected public class Main() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u651496869|p03272|0
u651496869|p03272|0
codenet
Compile Error
387
v2_s921104483
s921104483
s921104483
p03272
p03272
u651496869
u651496869
1,535,827,285
2018-09-01T18:41:25
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 i = sc.nextInt(); boolean check = false; while(check) { if(1 <= n && n <= 100 && 1 <= i && i <= n) { check = true...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u651496869|p03272|0
u651496869|p03272|0
codenet
Compile Error
470
v2_s467224569
s467224569
s467224569
p03272
p03272
u651496869
u651496869
1,536,296,080
2018-09-07T04:54:40
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 k = sc.nextInt(); int[] box = new int[n]; for (int i = 0; i < n; i++) { box[i] = sc.nextInt(); } int m...
Main.java:15: error: ';' expected int diff = Math.abs(box[i] - box[i+k-1]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u651496869|p03272|1
u651496869|p03272|1
codenet
Compile Error
607
v2_s667952865
s667952865
s667952865
p03272
p03272
u659156129
u659156129
1,595,274,758
2020-07-20T19:52:38
Main.java
import java.util.*; public class Main { public static void main(String[] args)throws Exeption{ Scanner scn = new Scanner(System.in); int h = scn.nextInt(); int w = scn.nextInt(); char[][] a = new char[h][w]; for(int i=0; i<h; ++i){ String str = scn.next(); for(int j=0; j<w...
Main.java:3: error: cannot find symbol public static void main(String[] args)throws Exeption{ ^ symbol: class Exeption location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03272|0
u659156129|p03272|0
codenet
Compile Error
1,148
v2_s679902693
s679902693
s679902693
p03272
p03272
u680734821
u680734821
1,535,487,547
2018-08-28T20:19:07
Main.java
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s = new String(in.readLine()); String[] field = s.split(" ", 0); Integer allTrain = new Integer(field[...
Main.java:9: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal Integer allTrain = new Integer(field[0]); ^ Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal Integer frontTrain = new Int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u680734821|p03272|0
u680734821|p03272|0
codenet
Compile Error
609
v2_s376085930
s376085930
s376085930
p03272
p03272
u742776718
u742776718
1,535,245,365
2018-08-26T01:02:45
Main.java
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { try (PrintWriter out = new PrintWriter(System.out); Scanner sc = new Scanner(System.in);) { Task task = new Task(); ...
Main.java:17: error: cannot find symbol int a = nint(sc)+1; ^ symbol: variable sc location: class Main Main.java:18: error: cannot find symbol int b = nint(sc); ^ symbol: variable sc location: class Main Main.java:20: error: cannot find symbol out.print(a-b); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u742776718|p03272|0
u742776718|p03272|0
codenet
Compile Error
2,216
v2_s273948667
s273948667
s273948667
p03272
p03272
u752146501
u752146501
1,553,124,966
2019-03-20T23:36:06
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.io.Closeable; import java.util.Comparator; import java.util.NoSuchElementException; import java.io.InputStream; /**...
Main.java:54: error: > or ',' expected for (int i = startIndex; i + K < xs.size() && startIndex =< zeroIndex; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03272|0
u752146501|p03272|0
codenet
Compile Error
4,389
v2_s731622244
s731622244
s731622244
p03272
p03272
u761747665
u761747665
1,535,249,573
2018-08-26T02:12:53
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner input = new Scanner(System.in); int n = input.nextInt(); int j = input.nextInt(); System.out.printf(n-j+1); } }
Main.java:7: error: no suitable method found for printf(int) System.out.printf(n-j+1); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (argument m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u761747665|p03272|0
u761747665|p03272|0
codenet
Compile Error
211
v2_s920963443
s920963443
s920963443
p03272
p03272
u772563415
u772563415
1,542,133,195
2018-11-13T18:19:55
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(sc.nextInt()-sc.nextInt()+1); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u772563415|p03272|0
u772563415|p03272|0
codenet
Compile Error
156
v2_s425469561
s425469561
s425469561
p03272
p03272
u800780376
u800780376
1,555,351,987
2019-04-15T18:13:07
Main.java
public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] abc = br.readLine().split(" "); int a = Integer.parseInt(abc[0]); int b = Integer.parseInt(abc[1]); System.out.println(a-b+1); } }
Main.java:2: error: cannot find symbol public static void main(String[] args)throws IOException{ ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u800780376|p03272|0
u800780376|p03272|0
codenet
Compile Error
305
v2_s687927476
s687927476
s687927476
p03272
p03272
u803314854
u803314854
1,535,245,260
2018-08-26T01:01:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // 自分の得意な言語で // Let's チャレンジ!! Scanner sc = new Scanner(System.in); int line = sc.nextLine(); int line2 = sc.nextLine(); System.out.println((line+1)-line2); } }
Main.java:10: error: incompatible types: String cannot be converted to int int line = sc.nextLine(); ^ Main.java:11: error: incompatible types: String cannot be converted to int int line2 = sc.nextLine(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03272|0
u803314854|p03272|0
codenet
Compile Error
329
v2_s012313857
s012313857
s012313857
p03272
p03272
u827923574
u827923574
1,559,253,291
2019-05-30T21:54:51
Main.java
import java.util.Scanner; public class Main() { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int i = scanner.nextInt(); System.out.println(N - i + 1); } }
Main.java:3: error: '{' expected public class Main() { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827923574|p03272|0
u827923574|p03272|0
codenet
Compile Error
239
v2_s410595784
s410595784
s410595784
p03272
p03272
u862553306
u862553306
1,565,139,521
2019-08-07T00:58:41
main.java
public class main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.extInt(); int i = sc.nextInt(); System.out.println(N + (i - 1); } }
main.java:10: error: ')' or ',' expected System.out.println(N + (i - 1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u862553306|p03272|0
u862553306|p03272|0
codenet
Compile Error
190
v2_s520303458
s520303458
s520303458
p03272
p03272
u927105328
u927105328
1,554,380,275
2019-04-04T12:17:55
Main.java
import.java.util.* public class Main(){ public static void main(String[] args){ Scanner sc = Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println(a-b+1); }}
Main.java:1: error: <identifier> expected import.java.util.* ^ Main.java:1: error: ';' expected import.java.util.* ^ Main.java:3: error: '{' expected public class Main(){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u927105328|p03272|0
u927105328|p03272|0
codenet
Compile Error
218
v2_s579698363
s579698363
s579698363
p03272
p03272
u938987929
u938987929
1,535,245,405
2018-08-26T01:03:25
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner stdIn = new Scanner(System.in); int N = stdIn.nextInt();z int i = stdIn.nextInt(); System.out.println(N-i+1); } }
Main.java:6: error: not a statement int N = stdIn.nextInt();z ^ Main.java:6: error: ';' expected int N = stdIn.nextInt();z ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u938987929|p03272|0
u938987929|p03272|0
codenet
Compile Error
261
v2_s321367762
s321367762
s321367762
p03273
p03273
u101079650
u101079650
1,576,761,735
2019-12-19T13:22:15
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int y = scan.nextInt(); String[] square = new String[x]; for (int i = 0; i < square.length; i++) { square[i] = scan.next(); } boolean[] r...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u101079650|p03273|1
u101079650|p03273|1
codenet
Compile Error
754