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_s082341203
s082341203
s082341203
p03029
p03029
u794280735
u794280735
1,558,918,912
2019-05-27T01:01:52
Main.java
import java.util.Scanner; import java.util.InputMismatchException; class Main { public static void main(String args[]) { int x=0 ,y=0; int[][] z; Scanner scanner = new Scanner(System.in); x = scanner.nextInt(); y = scanner.nextInt(); scanner.close(); int sum = 3*x+y; ...
Main.java:13: error: ')' or ',' expected System.out.println((int)(sum/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u794280735|p03029|0
u794280735|p03029|0
codenet
Compile Error
361
v2_s375679594
s375679594
s375679594
p03029
p03029
u801831585
u801831585
1,559,482,941
2019-06-02T13:42:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner teclado = new Scanner(System.in); int M = teclado.nextInt(); int P = teclado.nextInt(); int Q = ((M * 3) + P) / 2; System.out.println((int); teclado.close(); } }
Main.java:9: error: illegal start of expression System.out.println((int); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u801831585|p03029|0
u801831585|p03029|0
codenet
Compile Error
307
v2_s033853701
s033853701
s033853701
p03029
p03029
u908040250
u908040250
1,558,919,195
2019-05-27T01:06:35
pie.java
#import java.util.*; public class pie { public void main(String args[]) { Scanner Sc=new Scanner(System.in); int t=Sc.nextInt(); int n=Sc.nextInt(); int a=t*3+n; System.out.println(a/2); } }
pie.java:1: error: illegal character: '#' #import java.util.*; ^ pie.java:1: error: class, interface, enum, or record expected #import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u908040250|p03029|0
u908040250|p03029|0
codenet
Compile Error
216
v2_s850900697
s850900697
s850900697
p03029
p03029
u997005069
u997005069
1,592,882,288
2020-06-23T03:18:08
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A=sc.nextInt(), P=sc.nextInt(), T=3*A + P; System.out.println(T/2);p } }
Main.java:7: error: not a statement System.out.println(T/2);p ^ Main.java:7: error: ';' expected System.out.println(T/2);p ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997005069|p03029|0
u997005069|p03029|0
codenet
Compile Error
211
v2_s106952430
s106952430
s106952430
p03030
p03030
u008695540
u008695540
1,567,365,192
2019-09-01T19:13:12
Guidebook.java
import java.util.*; class Main{ private int id ; private String name ; private int score ; Restraunt(int id,String name,int score){ this.id = id; this.name = name; this.score = score; } public int idget(){ return this.id; } public String nameget(){ return this.name; } public int...
Guidebook.java:7: error: invalid method declaration; return type required Restraunt(int id,String name,int score){ ^ Guidebook.java:52: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03030|0
u008695540|p03030|0
codenet
Compile Error
1,288
v2_s014728700
s014728700
s014728700
p03030
p03030
u008695540
u008695540
1,567,365,225
2019-09-01T19:13:45
Main.java
import java.util.*; class Restraunt{ private int id ; private String name ; private int score ; Restraunt(int id,String name,int score){ this.id = id; this.name = name; this.score = score; } public int idget(){ return this.id; } public String nameget(){ return this.name; } publi...
Main.java:52: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03030|0
u008695540|p03030|0
codenet
Compile Error
1,288
v2_s891016002
s891016002
s891016002
p03030
p03030
u011054699
u011054699
1,570,376,206
2019-10-06T15:36:46
Main.java
t java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int[] num = new int[n+1]; String[] s = new String[n+1]; int[] p = new int[n+1]; for(int i=0; i<n; i++) { num[i] = i+1; s[i] = sc.next(); p[i] = s...
Main.java:1: error: class, interface, enum, or record expected t java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011054699|p03030|0
u011054699|p03030|0
codenet
Compile Error
1,080
v2_s022987882
s022987882
s022987882
p03030
p03030
u057942294
u057942294
1,559,060,400
2019-05-28T16:20:00
Main.java
import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); List<Restau...
Main.java:36: error: class Restaurant is public, should be declared in a file named Restaurant.java public class Restaurant { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u057942294|p03030|1
u057942294|p03030|1
codenet
Compile Error
1,420
v2_s226338244
s226338244
s226338244
p03030
p03030
u208733542
u208733542
1,559,872,670
2019-06-07T01:57:50
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { new Main().go(); } PrintWriter out; Reader in; BufferedReader br; Main() throws IOException { try { //br = new BufferedReader( new FileReader("in...
Main.java:71: error: ';' expected int score ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208733542|p03030|0
u208733542|p03030|0
codenet
Compile Error
9,369
v2_s847178530
s847178530
s847178530
p03030
p03030
u217010036
u217010036
1,559,096,408
2019-05-29T02:20:08
Main.java
import java.io.*; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { new ABC128B2().run(); } private void run() { try(BufferedReader in = new BufferedReader(...
Main.java:10: error: cannot find symbol new ABC128B2().run(); ^ symbol: class ABC128B2 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217010036|p03030|1
u217010036|p03030|1
codenet
Compile Error
1,113
v2_s757600462
s757600462
s757600462
p03030
p03030
u218740431
u218740431
1,588,728,331
2020-05-06T01:25:31
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 [] in = new int [a]; String [] str = new String [a]; for(int i=0;i<a;i++){str[i] = sc.next(); in[i] = sc.nextInt(); ...
Main.java:12: error: bad operand types for binary operator '>' if(str[i]>str[j]||(str[i].equals(str[j])&&in[i]<in[j])){ans++;}} ^ first type: String second type: String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03030|0
u218740431|p03030|0
codenet
Compile Error
542
v2_s776717635
s776717635
s776717635
p03030
p03030
u218740431
u218740431
1,588,731,576
2020-05-06T02:19:36
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 [] in = new int [n]; String [] str = new String [n]; int [] ans = new int [n]; for(int i=0;i<n;i++){str[i] = sc.next(); ...
Main.java:17: error: cannot find symbol b[ans]=i+1; ^ symbol: variable b location: class Main Main.java:17: error: incompatible types: int[] cannot be converted to int b[ans]=i+1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03030|0
u218740431|p03030|0
codenet
Compile Error
875
v2_s472572704
s472572704
s472572704
p03030
p03030
u284795785
u284795785
1,580,245,966
2020-01-28T21:12:46
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); String[] s=new String[n]; for(int c=0;c<n;c++){ s[c]=sc.next()+","+(1000-sc.nextInt())+","+(c+1); } Arrays.sort(s); for(String s1:s) ...
Main.java:15: error: variable declaration not allowed here String ans=s1.split(",")[2]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p03030|0
u284795785|p03030|0
codenet
Compile Error
388
v2_s328913684
s328913684
s328913684
p03030
p03030
u332478078
u332478078
1,596,054,426
2020-07-29T20:27:06
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); Main m = new Main(sc); m.show(m.solve()); sc.close(); } ...
Main.java:62: error: class MainRestaurant is public, should be declared in a file named MainRestaurant.java public class MainRestaurant implements Comparable<MainRestaurant>{ ^ Main.java:33: error: cannot find symbol private List<Main9Restaurant> solve() { ^ symbol: class Main9Restaurant...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u332478078|p03030|0
u332478078|p03030|0
codenet
Compile Error
1,972
v2_s815848314
s815848314
s815848314
p03030
p03030
u332478078
u332478078
1,596,054,595
2020-07-29T20:29:55
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); Main m = new Main(sc); m.show(m.solve()); sc.close(); } ...
Main.java:62: error: class MainRestaurant is public, should be declared in a file named MainRestaurant.java public class MainRestaurant implements Comparable<MainRestaurant>{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u332478078|p03030|0
u332478078|p03030|0
codenet
Compile Error
1,970
v2_s767481210
s767481210
s767481210
p03030
p03030
u347452770
u347452770
1,564,870,393
2019-08-03T22:13:13
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[] list = new String[n]; for(int i = 0; i < n; i ++){ String restaurant = sc.next(); int score = sc.nextInt(); list[i...
Main.java:11: error: cannot find symbol list[i] = restaurant + "_" + (110 - point) + "_" + (i + 1); ^ symbol: variable point location: class Main Main.java:15: error: incompatible types: String cannot be converted to int int ans = s.split("_")[2];...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03030|0
u347452770|p03030|0
codenet
Compile Error
528
v2_s409029682
s409029682
s409029682
p03030
p03030
u347452770
u347452770
1,564,870,430
2019-08-03T22:13:50
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[] list = new String[n]; for(int i = 0; i < n; i ++){ String restaurant = sc.next(); int score = sc.nextInt(); list[...
Main.java:11: error: cannot find symbol list[i] = restaurant + "_" + (110 - point) + "_" + (i + 1); ^ symbol: variable point location: class Main Main.java:15: error: cannot find symbol int ans = s.split("_").get[2]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03030|0
u347452770|p03030|0
codenet
Compile Error
533
v2_s661563574
s661563574
s661563574
p03030
p03030
u347452770
u347452770
1,564,870,491
2019-08-03T22:14: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(); String[] list = new String[n]; for(int i = 0; i < n; i ++){ String restaurant = sc.next(); int score = sc.nextInt(); list[...
Main.java:11: error: cannot find symbol list[i] = restaurant + "_" + (110 - point) + "_" + (i + 1); ^ symbol: variable point location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p03030|0
u347452770|p03030|0
codenet
Compile Error
532
v2_s962319524
s962319524
s962319524
p03030
p03030
u413139122
u413139122
1,559,681,891
2019-06-04T20:58:11
Main.java
import java.util.*; public class Main(){ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); HashMap<String, int> hashmap = new HashMap<String, int>(); ArrayList <String> cities = new ArrayList<>(); for (int i = 0; i < n; i++){ String...
Main.java:2: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413139122|p03030|0
u413139122|p03030|0
codenet
Compile Error
610
v2_s070936295
s070936295
s070936295
p03030
p03030
u445036147
u445036147
1,559,437,043
2019-06-02T00: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(); List<Restrant> rests = new ArrayList<>(); for(int =0;i<N;i++){ String town = sc.next(); int num = sc.nextInt(); rests[i] = new Restrant(town,num,i+1); ...
Main.java:7: error: not a statement for(int =0;i<N;i++){ ^ Main.java:7: error: ';' expected for(int =0;i<N;i++){ ^ Main.java:7: error: illegal start of expression for(int =0;i<N;i++){ ^ Main.java:7: error: not a statement for(int =0;i<N;i++){ ^ Main.java:7:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445036147|p03030|0
u445036147|p03030|0
codenet
Compile Error
799
v2_s310924779
s310924779
s310924779
p03030
p03030
u451455964
u451455964
1,559,361,174
2019-06-01T03:52:54
Main.java
[j417862@ecc-ext1 B]$ emacs GuideBook.java -nw [j417862@ecc-ext1 B]$ emacs GuideBook.java -nw File Edit Options Buffers Tools Java Help import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.io.PrintWriter; import java.util.Random; class Main { public static void m...
Main.java:1: error: class, interface, enum, or record expected [j417862@ecc-ext1 B]$ emacs GuideBook.java -nw ^ Main.java:1: error: class, interface, enum, or record expected [j417862@ecc-ext1 B]$ emacs GuideBook.java -nw ^ Main.java:2: error: class, interface, enum, or record expected [j417862@ecc-ext1 B]$...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451455964|p03030|0
u451455964|p03030|0
codenet
Compile Error
2,556
v2_s523676310
s523676310
s523676310
p03030
p03030
u459100168
u459100168
1,599,397,709
2020-09-06T13:08:29
Main.java
import java.util.*; public class Main{ void solve(){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); Restaurant[] r = new Restaurant[n]; for(int i = 0; i < n; i++){ r[i] = new Restaurant(scan.next(), scan.nextInt(), i + 1); } Arrays.sort(r...
Main.java:23: error: not a statement this.place = place;v ^ Main.java:23: error: ';' expected this.place = place;v ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459100168|p03030|0
u459100168|p03030|0
codenet
Compile Error
1,126
v2_s353890131
s353890131
s353890131
p03030
p03030
u474492589
u474492589
1,565,270,647
2019-08-08T13:24:07
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[] list = new String[N]; for(int i = 0; i < n; i++) { String city = sc.next(); int point = sc.nextInt(); ...
Main.java:9: error: cannot find symbol for(int i = 0; i < n; i++) { ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03030|0
u474492589|p03030|0
codenet
Compile Error
555
v2_s269100616
s269100616
s269100616
p03030
p03030
u492989229
u492989229
1,576,685,194
2019-12-18T16:06:34
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { static class Restaurant implements Comparable<Restaurant> { public int id; public String city; public int rating; public Restaurant(int id, String city, int rating) { this.id = id; this.city = city; this.rating...
Main.java:24: error: not a statement else (rating > r.rating) ^ Main.java:24: error: ';' expected else (rating > r.rating) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492989229|p03030|1
u492989229|p03030|1
codenet
Compile Error
1,025
v2_s957906597
s957906597
s957906597
p03030
p03030
u501986863
u501986863
1,558,929,504
2019-05-27T03:58:24
Main.java
import java.io.IOException; import java.io.*; import java.util.*; class Main { static class Res implements { String name; int score; int index; Res(int i,String x, int g) { index = i; name = x; score = g; } } public static void main(String[] args) { // TODO Auto-generated method stub ...
Main.java:9: error: illegal start of type { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u501986863|p03030|1
u501986863|p03030|0
codenet
Compile Error
2,706
v2_s779225874
s779225874
s779225874
p03030
p03030
u547167033
u547167033
1,567,355,114
2019-09-01T16:25:14
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[] info = new String[n]; for(int i = 0;i < n;iL++){ info[i] = sc.next()+"_"+(1100-sc.nextInt())+"_"+(i+1); } Arrays.sort(info); ...
Main.java:7: error: cannot find symbol for(int i = 0;i < n;iL++){ ^ symbol: variable iL location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03030|0
u547167033|p03030|0
codenet
Compile Error
436
v2_s507715069
s507715069
s507715069
p03030
p03030
u626353997
u626353997
1,566,708,254
2019-08-25T04:44:14
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String[] info = new String[n]; for(int i = 0;i < n;i++){ info[i] = sc.next() + "_" + (1100 - sc.nextInt()) + "_" +(i+1); } ...
Main.java:14: error: cannot find symbol String[] s = ans[i].split("_"); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03030|0
u626353997|p03030|0
codenet
Compile Error
473
v2_s174001145
s174001145
s174001145
p03030
p03030
u650591877
u650591877
1,564,699,168
2019-08-01T22:39:28
Main.java
import java.util.Map; import java.util.Scanner; import java.util.TreeMap; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<String, Integer> data = new TreeMap<>(); for (int i = 0; i < n; i++) { String city = sc.next(); int point = sc.n...
Main.java:14: error: method value in class String cannot be applied to given types; String cal = String.value(Math.abs(100 - point)); ^ required: no arguments found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650591877|p03030|3
u650591877|p03030|2
codenet
Compile Error
528
v2_s191785613
s191785613
s191785613
p03030
p03030
u675503966
u675503966
1,562,989,068
2019-07-13T03:37:48
Main.java
#[allow(unused_imports)] use std::cmp::*; #[allow(unused_imports)] use std::collections::*; use std::io::{Write, BufWriter}; // https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8 macro_rules! input { ($($r:tt)*) => { let stdin = std::io::stdin(); let mut bytes = std::io::Read::bytes(std::io::BufRea...
Main.java:1: error: illegal character: '#' #[allow(unused_imports)] ^ Main.java:1: error: class, interface, enum, or record expected #[allow(unused_imports)] ^ Main.java:3: error: illegal character: '#' #[allow(unused_imports)] ^ Main.java:3: error: class, interface, enum, or record expected #[allow(unused_imports)] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03030|2
u675503966|p03030|2
codenet
Compile Error
2,293
v2_s139480709
s139480709
s139480709
p03030
p03030
u730925390
u730925390
1,558,924,192
2019-05-27T02:29:52
Main.java
import java.util.Scanner; public class Main{ class city{ String name; int sc; int id; } public static void main(String[] args){ Scannar sc = new Scanner(System.in); int N,i,j; N = sc.nextInt(); city[] C = new city[N]; int temp; for(i=0;i<N;i++){ C[i].name = sc.nextLine();...
Main.java:43: error: reached end of file while parsing System.out.println(C[i].id + "\n"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03030|0
u730925390|p03030|0
codenet
Compile Error
1,010
v2_s376263886
s376263886
s376263886
p03030
p03030
u730925390
u730925390
1,558,924,219
2019-05-27T02:30:19
Main.java
import java.util.Scanner; public class Main{ class city{ String name; int sc; int id; } public static void main(String[] args){ Scannar sc = new Scanner(System.in); int N,i,j; N = sc.nextInt(); city[] C = new city[N]; int temp; for(i=0;i<N;i++){ C[i].name = sc.nextLine();...
Main.java:9: error: cannot find symbol Scannar sc = new Scanner(System.in); ^ symbol: class Scannar location: class Main Main.java:21: error: variable j is already defined in method main(String[]) for (int j = i + 1; j < N; j++) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03030|0
u730925390|p03030|0
codenet
Compile Error
1,012
v2_s033635629
s033635629
s033635629
p03030
p03030
u730925390
u730925390
1,558,924,259
2019-05-27T02:30:59
Main.java
import java.util.Scanner; public class Main{ class city{ String name; int sc; int id; } public static void main(String[] args){ Scannar sc = new Scanner(System.in); int N,i,j; N = sc.nextInt(); city[] C = new city[N]; int temp; for(i=0;i<N;i++){ C[i].name = sc.nextLine();...
Main.java:9: error: cannot find symbol Scannar sc = new Scanner(System.in); ^ symbol: class Scannar location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03030|0
u730925390|p03030|0
codenet
Compile Error
1,009
v2_s709756954
s709756954
s709756954
p03030
p03030
u730925390
u730925390
1,558,924,368
2019-05-27T02:32:48
Main.java
import java.util.Scanner; public class Main{ public class city{ String name; int sc; int id; } public static void main(String[] args){ Scannar sc = new Scanner(System.in); int N,i,j; N = sc.nextInt(); city[] C = new city[N]; int temp; for(i=0;i<N;i++){ C[i].name = sc.nextL...
Main.java:9: error: cannot find symbol Scannar sc = new Scanner(System.in); ^ symbol: class Scannar location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03030|0
u730925390|p03030|0
codenet
Compile Error
1,015
v2_s411892418
s411892418
s411892418
p03030
p03030
u837357096
u837357096
1,572,739,841
2019-11-03T00:10:41
Main.java
import java.util.Scanner; class Rest { public String s; public int p; public int index; public Rest left; public Rest right; public Rest(String s, int p, int i) { this.s = s; this.p = p; this.index = i; this.left = this.right = null; } public void show() { if(this.left != null) { r.left.show();...
Main.java:18: error: package r does not exist r.left.show(); ^ Main.java:20: error: cannot find symbol System.out.println(r.index); ^ symbol: variable r location: class Rest Main.java:21: error: cannot find symbol if(r.right != null) { ^ symbol: variable r location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u837357096|p03030|1
u837357096|p03030|1
codenet
Compile Error
1,773
v2_s165394690
s165394690
s165394690
p03030
p03030
u837357096
u837357096
1,572,739,879
2019-11-03T00:11:19
Main.java
import java.util.Scanner; class Rest { public String s; public int p; public int index; public Rest left; public Rest right; public Rest(String s, int p, int i) { this.s = s; this.p = p; this.index = i; this.left = this.right = null; } public void show() { if(this.left != null) { this.left.show...
Main.java:20: error: cannot find symbol System.out.println(r.index); ^ symbol: variable r location: class Rest 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u837357096|p03030|1
u837357096|p03030|1
codenet
Compile Error
1,782
v2_s784173925
s784173925
s784173925
p03030
p03030
u958210291
u958210291
1,558,922,118
2019-05-27T01:55:18
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<String,Integer> map = HashMap<>(); for(int i = 0; i < n; i++){ map.put(sc.next(),sc.nextInt()); } Collections.sort(ma...
Main.java:8: error: illegal start of expression Map<String,Integer> map = HashMap<>(); ^ Main.java:8: error: -> expected Map<String,Integer> map = HashMap<>(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p03030|0
u958210291|p03030|0
codenet
Compile Error
405
v2_s010005073
s010005073
s010005073
p03030
p03030
u958210291
u958210291
1,558,923,630
2019-05-27T02:20:30
Main.java
import java.util.*; class B128{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<String, Integer> m = new TreeMap<String, Integer>(); for(int i = 0; i < n; i++){ m.put(sc.next(),sc.nextInt()); } Ite...
Main.java:14: error: cannot find symbol Iterator<String> it = m.keySet().Iterator(); ^ symbol: method Iterator() location: interface Set<String> Main.java:17: error: cannot find symbol System.out.println(Treemap.get(key)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958210291|p03030|0
u958210291|p03030|0
codenet
Compile Error
495
v2_s875913600
s875913600
s875913600
p03030
p03030
u958788330
u958788330
1,559,156,578
2019-05-29T19:02:58
Main.java
import java.util.*; class Restaurant{ int id; String name; int point; Restaurant(int i, String s, int p){ id = i; name = s; point = p; } @Override public int compare(Restaurant r1, Restaurant r2) { int n; n = -r1.name.compare(r2.name); if (n == 0) n = (r1.point < r2.point) ? -1...
Main.java:31: error: ';' expected Restaurant re(i+1, s,p); ^ Main.java:31: error: not a statement Restaurant re(i+1, s,p); ^ Main.java:31: error: ';' expected Restaurant re(i+1, s,p); ^ Main.java:31: error: not a statement Restaurant...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958788330|p03030|0
u958788330|p03030|0
codenet
Compile Error
822
v2_s856411627
s856411627
s856411627
p03030
p03030
u958788330
u958788330
1,559,156,628
2019-05-29T19:03:48
Main.java
import java.util.*; class Restaurant{ int id; String name; int point; Restaurant(int i, String s, int p){ id = i; name = s; point = p; } @Override public int compare(Restaurant r1, Restaurant r2) { int n; n = -r1.name.compare(r2.name); if (n == 0) n = (r1.point < r2.point) ? -...
Main.java:13: error: method does not override or implement a method from a supertype @Override ^ Main.java:16: error: cannot find symbol n = -r1.name.compare(r2.name); ^ symbol: method compare(String) location: variable name of type String Main.java:34: error: no suitable method found fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958788330|p03030|0
u958788330|p03030|0
codenet
Compile Error
841
v2_s702516345
s702516345
s702516345
p03030
p03030
u958788330
u958788330
1,559,156,715
2019-05-29T19:05:15
Main.java
import java.util.*; class Restaurant{ int id; String name; int point; Restaurant(int i, String s, int p){ id = i; name = s; point = p; } @Override public int compare(Restaurant r1, Restaurant r2) { int n; n = -r1.name.compareTo(r2.name); if (n == 0) n = (r1.point < r2.point) ?...
Main.java:13: error: method does not override or implement a method from a supertype @Override ^ Main.java:34: error: no suitable method found for sort(ArrayList<Restaurant>) Collections.sort(r); ^ method Collections.<T#1>sort(List<T#1>) is not applicable (inference variable T#1 has inc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958788330|p03030|0
u958788330|p03030|0
codenet
Compile Error
843
v2_s153857898
s153857898
s153857898
p03030
p03030
u960802024
u960802024
1,558,922,153
2019-05-27T01:55:53
B.java
import java.io.BufferedReader; import java.io.InputStreamReader; public class B { public static void main(String[] args) throws Exception { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); char alphabet[] = {'a','b','c','d','e'...
B.java:32: error: illegal start of statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960802024|p03030|0
u960802024|p03030|0
codenet
Compile Error
1,121
v2_s973463164
s973463164
s973463164
p03030
p03030
u960802024
u960802024
1,558,922,171
2019-05-27T01:56:11
Main.java
ss
Main.java:1: error: reached end of file while parsing ss ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960802024|p03030|0
u960802024|p03030|0
codenet
Compile Error
2
v2_s895071336
s895071336
s895071336
p03031
p03031
u008695540
u008695540
1,576,644,108
2019-12-18T04:41:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt();//スイッチ int m = sc.nextInt();//電球 int[] ak = new int[m];//電球に繋がっているスイッチの個数 int[][] sw = new int[m][n];//電球mに接続しているスイッチの情報 int[] ju = new int[m]; //電球に繋がっている...
Main.java:57: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03031|0
u008695540|p03031|0
codenet
Compile Error
1,611
v2_s658285901
s658285901
s658285901
p03031
p03031
u136427605
u136427605
1,558,976,168
2019-05-27T16:56:08
Main.java
import java.util.*; public class Main { static boolean[] bits; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); boolean[][] input=new boolean[m][n]; bits=new boolean[n]; int[] p=new int[m]; ...
Main.java:30: error: variable k is already defined in method main(String[]) for(int k=0;k<n;k++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136427605|p03031|0
u136427605|p03031|0
codenet
Compile Error
1,179
v2_s345757815
s345757815
s345757815
p03031
p03031
u198693633
u198693633
1,565,565,434
2019-08-11T23:17:14
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner file = new Scanner(System.in); int n = file.nextInt(); int m = file.nextInt(); int[][] a = new int[m][]; for (int i = 0; i < m; i++) { int k = file.nextInt(); a[i] = new int[k]; ...
Main.java:23: error: bad operand types for binary operator '&' if (j & i > 0) c[(int) (Math.log(j) / Math.log(2))] = 1; ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u198693633|p03031|0
u198693633|p03031|0
codenet
Compile Error
976
v2_s909254870
s909254870
s909254870
p03031
p03031
u207845630
u207845630
1,586,738,588
2020-04-13T00:43: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 M = sc.nextInt(); Set<Integer>[] s = new Set<Integer>[M]; int[] p = new int[M]; int ans = 0; int i,j,k; for(i = 0;i < M;i++){ int k = sc.nextInt(); s[i] = ...
Main.java:7: error: generic array creation Set<Integer>[] s = new Set<Integer>[M]; ^ Main.java:12: error: variable k is already defined in method main(String[]) int k = sc.nextInt(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p03031|0
u207845630|p03031|0
codenet
Compile Error
793
v2_s250775373
s250775373
s250775373
p03031
p03031
u249433240
u249433240
1,594,050,783
2020-07-06T15:53:03
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); int[] k = new int[m]; int[][] s = new int[m][]; int[] p = new int[m]; for(int i=0;i<m;i++){ k[i] = I...
Main.java:26: error: illegal start of expression if((i>>s[j][l]) & 1)==1){ ^ Main.java:26: error: ';' expected if((i>>s[j][l]) & 1)==1){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u249433240|p03031|2
u249433240|p03031|2
codenet
Compile Error
890
v2_s421087209
s421087209
s421087209
p03031
p03031
u264547643
u264547643
1,573,783,432
2019-11-15T02:03:52
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.io.InputStream; /** * Built using CHel...
Main.java:41: error: array required, but ArrayList<Integer> found for (int j = 0; j < a[i].size(); j++) { ^ Main.java:44: error: array required, but int found if (count % 2 != p[i]) { ^ Main.java:59: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264547643|p03031|0
u264547643|p03031|0
codenet
Compile Error
2,908
v2_s235967630
s235967630
s235967630
p03031
p03031
u284795785
u284795785
1,581,107,803
2020-02-07T20:36:43
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int[][] s=new int[m][n]; int k=0; for(int c=0;c<m;c++){ k=sc.nextInt(); for(int d=0;d<k;d++){ s[c][d]=sc.nextInt(); ...
Main.java:23: error: illegal start of expression for(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p03031|0
u284795785|p03031|0
codenet
Compile Error
548
v2_s234701224
s234701224
s234701224
p03031
p03031
u331757937
u331757937
1,558,923,017
2019-05-27T02:10:17
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.StringReader; import java.util.ArrayList; import java.util.StringTokenizer; public class Main implements Runnable { public static void main(String[] a...
Main.java:42: error: cannot find symbol ArrayList<MyClass> lists = new ArrayList<>();; ^ symbol: class MyClass location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u331757937|p03031|0
u331757937|p03031|0
codenet
Compile Error
4,027
v2_s540997427
s540997427
s540997427
p03031
p03031
u370696069
u370696069
1,560,554,710
2019-06-14T23:25:10
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int M = scanner.nextInt(); List<Integer> S = new ArrayList<Integer>(); //各電球のスイッチの個数 for(int i...
Main.java:23: error: illegal start of expression if() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u370696069|p03031|0
u370696069|p03031|0
codenet
Compile Error
694
v2_s934724404
s934724404
s934724404
p03031
p03031
u730925390
u730925390
1,558,921,950
2019-05-27T01:52:30
Main.java
import java.util.Scanner; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N,M,i,j,t; N = sc.nextInt(); M = sc.nextInt(); int count = 0; int[] p = new int[M]; int[] k = new int[M]; for(i=0;i<M;i++){ k[i] = sc.nextInt(); int[] s = new in...
Main.java:23: error: ';' expected count++: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03031|0
u730925390|p03031|0
codenet
Compile Error
601
v2_s603504714
s603504714
s603504714
p03031
p03031
u730925390
u730925390
1,558,921,994
2019-05-27T01:53:14
Main.java
import java.util.Scanner; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N,M,i,j,t; N = sc.nextInt(); M = sc.nextInt(); int count = 0; int[] p = new int[M]; int[] k = new int[M]; for(i=0;i<M;i++){ k[i] = sc.nextInt(); int[] s = new in...
Main.java:22: error: cannot find symbol if((s[j]%2)==(p[i]%2)) ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03031|0
u730925390|p03031|0
codenet
Compile Error
602
v2_s373907147
s373907147
s373907147
p03031
p03031
u730925390
u730925390
1,558,922,118
2019-05-27T01:55:18
Main.java
import java.util.Scanner; public class Main{ public static void main(){ Scanner sc = new Scanner(System.in); int N,M,i,j,t; N = sc.nextInt(); M = sc.nextInt(); int count = 0; int[] p = new int[M]; int[] k = new int[M]; for(i=0;i<M;i++){ k[i] = sc.nextInt(); int[] s = new in...
Main.java:21: error: cannot find symbol for(j=0;j<s.length();j++){ ^ symbol: variable s location: class Main Main.java:22: error: cannot find symbol if((s[j]%2)==(p[i]%2)) ^ symbol: variable s location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u730925390|p03031|0
u730925390|p03031|0
codenet
Compile Error
608
v2_s962059388
s962059388
s962059388
p03031
p03031
u841299958
u841299958
1,587,930,593
2020-04-26T19:49:53
Main.java
import java.util.*; import java.io.*; import java.math.*; import java.util.Collections; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] k = new int[M]; int[] s = new int[M]; ...
Main.java:48: error: reached end of file while parsing oza ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u841299958|p03031|0
u841299958|p03031|0
codenet
Compile Error
1,120
v2_s244522918
s244522918
s244522918
p03031
p03031
u849975039
u849975039
1,594,299,277
2020-07-09T12:54:37
FullSearch.java
public class FullSearch { public static void main(String[] args) { solve2(); } static void solve2() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[][] ks = new int[m][n]; for (int i = 0; i < m; i++) { int k = sc.nextInt(); for (int j = 0; j < k; j++) { ...
FullSearch.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class FullSearch FullSearch.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class FullSearch 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u849975039|p03031|1
u849975039|p03031|1
codenet
Compile Error
886
v2_s668396916
s668396916
s668396916
p03031
p03031
u849975039
u849975039
1,594,299,339
2020-07-09T12:55:39
Main.java
public class Main { public static void main(String[] args) { solve2(); } static void solve2() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[][] ks = new int[m][n]; for (int i = 0; i < m; i++) { int k = sc.nextInt(); for (int j = 0; j < k; j++) { ks[i...
Main.java:8: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: 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
u849975039|p03031|1
u849975039|p03031|1
codenet
Compile Error
882
v2_s868518189
s868518189
s868518189
p03032
p03032
u018679195
u018679195
1,583,725,765
2020-03-09T03:49:25
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); LinkedList<Integer> deque = new LinkedList<>(); for (int i = 0; i < n; ++i) { deque.addLast(scanner.nextInt()); } int ret = findMaxSequence(deq...
Main.java:19: error: cannot find symbol public static int findMaxSequence(LinkedList<Integer> deque, int k) { ^ symbol: class LinkedList location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03032|1
u018679195|p03032|1
codenet
Compile Error
1,295
v2_s142020603
s142020603
s142020603
p03032
p03032
u198062737
u198062737
1,558,977,857
2019-05-27T17:24:17
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] V = new int[N]; for(int i = 0; i < N; i++){ V[i] = sc.nex...
Main.java:28: error: 'else' without 'if' else{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u198062737|p03032|0
u198062737|p03032|0
codenet
Compile Error
1,196
v2_s816106790
s816106790
s816106790
p03032
p03032
u357635195
u357635195
1,587,006,964
2020-04-16T03:16:04
Main.java
import java.util.ArrayList; import java.util.Collections; 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 K = Integer.parseInt(sc.next()); long[] v = new long[N]; for (int i = 0; i < N; i++...
Main.java:26: error: incompatible types: long cannot be converted to Integer alist.add(v[i]); ^ Main.java:35: error: incompatible types: long cannot be converted to Integer blist.add(v[i]); ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u357635195|p03032|0
u357635195|p03032|0
codenet
Compile Error
1,114
v2_s594718663
s594718663
s594718663
p03032
p03032
u411637381
u411637381
1,559,353,875
2019-06-01T01:51:15
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { Solve s= new Solve(); s.solve(); } } class Solve{ public void solve() { Scanner sc = new Scanner(System.in) ; int N = sc.nextInt(); int K ...
Main.java:70: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:71: error: class, interface, enum, or record expected import java.util.Collections; ^ Main.java:72: error: class, interface, enum, or record expected import java.util.Scanner; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u411637381|p03032|1
u411637381|p03032|1
codenet
Compile Error
2,079
v2_s326245687
s326245687
s326245687
p03032
p03032
u587721314
u587721314
1,565,139,144
2019-08-07T00:52:24
Main.java
vimport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; public class Main { // AtCoder Beginner Contest 082 // https://atcoder.jp/contests/abc082/tasks final static int M...
Main.java:1: error: class, interface, enum, or record expected vimport java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:4: error: class, in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p03032|0
u587721314|p03032|0
codenet
Compile Error
4,084
v2_s676667958
s676667958
s676667958
p03032
p03032
u653981267
u653981267
1,558,924,606
2019-05-27T02:36: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(); int k = sc.nextInt(); long[] v = new long[n]; for(int i = 0; i < n; i++) { v[i] = sc.nextLong(); } long[][] left = new long[n + 1][n + 1]; ...
Main.java:54: error: illegal start of type for(int i = 0; i <= Math.min(n, k); i++) { ^ Main.java:54: error: <identifier> expected for(int i = 0; i <= Math.min(n, k); i++) { ^ Main.java:54: error: <identifier> expected for(int i = 0; i <= Math.min(n, k); i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03032|0
u653981267|p03032|0
codenet
Compile Error
1,959
v2_s592455122
s592455122
s592455122
p03032
p03032
u653981267
u653981267
1,558,924,691
2019-05-27T02:38:11
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(); long[] v = new long[n]; for(int i = 0; i < n; i++) { v[i] = sc.nextLong(); } long[][] left = new long[n + 1][n + 1]; ...
Main.java:54: error: illegal start of type for(int i = 0; i <= (int)Math.min(n, k); i++) { ^ Main.java:54: error: <identifier> expected for(int i = 0; i <= (int)Math.min(n, k); i++) { ^ Main.java:54: error: <identifier> expected for(int i = 0; i <= (int)Math.min(n, k); i++) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03032|0
u653981267|p03032|0
codenet
Compile Error
1,974
v2_s540780538
s540780538
s540780538
p03032
p03032
u653981267
u653981267
1,558,930,099
2019-05-27T04:08:19
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(); long[] v = sc.nextLong(); for(int i = 0; i < n; i++) { v[i] = sc.nextLong(); } long ans = 0; for(int a = 0; a <= Math...
Main.java:8: error: incompatible types: long cannot be converted to long[] long[] v = sc.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03032|0
u653981267|p03032|0
codenet
Compile Error
924
v2_s125926656
s125926656
s125926656
p03032
p03032
u982773337
u982773337
1,558,923,129
2019-05-27T02:12:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { private static Scanner sc; public static void main(String[] args) { Main instance = new Main(); sc = instance.new Scanner(); instance.solve(); } ...
Main.java:31: error: reached end of file while parsing for (int i = 1; i < n; i++) { ^ Main.java:15: error: 'try' without 'catch', 'finally' or resource declarations try { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982773337|p03032|0
u982773337|p03032|0
codenet
Compile Error
850
v2_s205458598
s205458598
s205458598
p03033
p03033
u235169423
u235169423
1,592,222,675
2020-06-15T12:04:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Main2 main = new Main2(); main.run(); } class Ev implements Comparable<Ev>{ int x; int time; int kind; public Ev(int x, int time, int kind) { this.x=x; this.time=time; this.kind=kind; } @Override public i...
Main.java:6: error: cannot find symbol Main2 main = new Main2(); ^ symbol: class Main2 location: class Main Main.java:6: error: cannot find symbol Main2 main = new Main2(); ^ symbol: class Main2 location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u235169423|p03033|1
u235169423|p03033|1
codenet
Compile Error
1,392
v2_s115884839
s115884839
s115884839
p03033
p03033
u584924463
u584924463
1,559,036,829
2019-05-28T09:47:09
Main.java
import java.util.*; public class Main { static class Pair implements Comparable<Pair>{ int d =0; int idx =0; Pair(int x , int y){ this.d = x; this.idx = y; } @Override public int compareTo(Pair o) { return this.d-o.d; } ...
Main.java:96: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p03033|1
u584924463|p03033|1
codenet
Compile Error
2,801
v2_s058798473
s058798473
s058798473
p03033
p03033
u814026219
u814026219
1,559,011,842
2019-05-28T02:50:42
Main.java
import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.TreeSet; public final class Main { static final FastScanner sc = new FastScanner(System.in); static PrintWriter writer = new PrintWriter(System.out); public static void main(String[] args) { int N = sc.nextInt(); int ...
Main.java:170: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814026219|p03033|1
u814026219|p03033|1
codenet
Compile Error
3,411
v2_s406728812
s406728812
s406728812
p03033
p03033
u881359256
u881359256
1,578,134,354
2020-01-04T10:39:14
Main.java
til.*; import java.io.*; public class Main { static int mod = (int) 1e9 + 7; public static void main(String[] args) { FastScanner fs = new FastScanner(System.in); int N = fs.nextInt(), Q = fs.nextInt(); int stop[][] = new int[N][3]; for(int i=0;i<N;i++) { int s = fs.nextInt(), t = fs.nextInt(), x = fs.ne...
Main.java:1: error: class, interface, enum, or record expected til.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881359256|p03033|0
u881359256|p03033|0
codenet
Compile Error
2,280
v2_s102269862
s102269862
s102269862
p03035
p03035
u008695540
u008695540
1,567,400,430
2019-09-02T05:00:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); if(a<13){ b = b/2; }else if(a<5){ b = 0; } System.out.println(b); } }
Main.java:5: error: incompatible types: int cannot be converted to Scanner Scanner sc = sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008695540|p03035|0
u008695540|p03035|0
codenet
Compile Error
266
v2_s703993332
s703993332
s703993332
p03035
p03035
u010415482
u010415482
1,584,845,027
2020-03-22T02:43:47
Main.java
#include <iostream> using namespace std; int main(void){ int A,B; cin >> A; cin >> B; if(A < 5){ cout << 0; }else if(A < 12){ cout << B / 2; }else{ cout << B; } }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:5: error: not a statement cin >> A; ^ Main.java:6: error: not a statement cin >> B; ^ Main.java:8: error: not a statement ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u010415482|p03035|0
u010415482|p03035|0
codenet
Compile Error
221
v2_s175482532
s175482532
s175482532
p03035
p03035
u011054699
u011054699
1,559,875,012
2019-06-07T02:36:52
Main.java
public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int fee = 0; if(A<=5) { fee = 0; }if(6<=A && A<=12) { fee = B/2; }if(13<=A) { fee = B; } System.out.println(fee); } }...
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: 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
u011054699|p03035|0
u011054699|p03035|0
codenet
Compile Error
351
v2_s808832292
s808832292
s808832292
p03035
p03035
u018679195
u018679195
1,596,625,991
2020-08-05T11:13:11
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a==13)cout<<b<<endl; else if(a<=5)cout<<0<<endl; else cout<<b/2; return 0; }
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:8: error: not a statement cin>>a>>b; ^ Main.java:9: error: not a statement if(a==13)cout<<b<<endl; ^ Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03035|0
u018679195|p03035|0
codenet
Compile Error
191
v2_s302843619
s302843619
s302843619
p03035
p03035
u024824950
u024824950
1,558,832,558
2019-05-26T01:02:38
Main.java
import java.util.*; import static java.lang.Math.*; public class Main{ public static void main(String[] args){ int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int ans = 0; if(a>=13){ ans = b; }else if(a>=6){ ans = b/2; ...
Main.java:6: error: cannot find symbol int n = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:8: error: cannot find symbol int b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03035|0
u024824950|p03035|0
codenet
Compile Error
392
v2_s561406956
s561406956
s561406956
p03035
p03035
u024824950
u024824950
1,558,832,616
2019-05-26T01:03:36
Main.java
import java.util.*; import static java.lang.Math.*; public class Main{ public static void main(String[] args){ int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int ans = 0; if(a>=13){ ans = b; }else if(a>=6){ ans = b/2; ...
Main.java:6: error: cannot find symbol int n = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:8: error: cannot find symbol int b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03035|0
u024824950|p03035|0
codenet
Compile Error
392
v2_s712800359
s712800359
s712800359
p03035
p03035
u024824950
u024824950
1,558,832,675
2019-05-26T01:04:35
Main.java
import java.util.*; import jdk.nashorn.internal.parser.Scanner; import static java.lang.Math.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int ans = 0; ...
Main.java:3: error: package jdk.nashorn.internal.parser does not exist import jdk.nashorn.internal.parser.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03035|0
u024824950|p03035|0
codenet
Compile Error
483
v2_s728970260
s728970260
s728970260
p03035
p03035
u054652697
u054652697
1,558,832,478
2019-05-26T01:01:18
Main.java
#include <cstdio> #include <cstring> #include <cstdlib> #include <cmath> #include <ctime> #include <cassert> #include <string> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <functional> #include <iostream> #include <iomanip> #include <map> #include <set> #include <list> #include <lim...
Main.java:1: error: illegal character: '#' #include <cstdio> ^ Main.java:2: error: illegal character: '#' #include <cstring> ^ Main.java:3: error: illegal character: '#' #include <cstdlib> ^ Main.java:4: error: illegal character: '#' #include <cmath> ^ Main.java:5: error: illegal character: '#' #include <ctime> ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u054652697|p03035|0
u054652697|p03035|0
codenet
Compile Error
817
v2_s020510468
s020510468
s020510468
p03035
p03035
u082512804
u082512804
1,599,094,972
2020-09-03T01:02:52
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; public class Main { void solve() throws IOException { int A = ni(); int B = ni(); if(A>=13) out.println(B); el...
Main.java:15: error: cannot find symbol else put.println(0); ^ symbol: variable put location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03035|1
u082512804|p03035|1
codenet
Compile Error
2,937
v2_s858508751
s858508751
s858508751
p03035
p03035
u110681742
u110681742
1,558,901,632
2019-05-26T20:13:52
FerrisWheel.java
import java.util.Scanner; public class FerrisWheel Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int A =sc.nextInt(); int B =sc.nextInt(); if(A>12) System.out.println(B); else if(A>5) System.out.println(B/2); else System.out.println("0"); } }
FerrisWheel.java:2: error: '{' expected public class FerrisWheel Main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110681742|p03035|0
u110681742|p03035|0
codenet
Compile Error
303
v2_s509540578
s509540578
s509540578
p03035
p03035
u163630034
u163630034
1,558,839,956
2019-05-26T03:05:56
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int age = scan.nextInt(); int price = scan.nextInt(); int payment = 0; if (price % 2 == 0) { if (age >= 13) { payment = price; } else if (age >= 12 || age <= 6) { payment = price / 2; } else if (age <= 5) { p...
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
u163630034|p03035|0
u163630034|p03035|0
codenet
Compile Error
375
v2_s796670725
s796670725
s796670725
p03035
p03035
u167206842
u167206842
1,566,676,193
2019-08-24T19:49:53
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 answer =0; if(a>=13){ answer=b; }else if(6<=a&&a<=12){ answer = b/2; }else{ null; } System.out.print...
Main.java:13: error: not a statement null; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p03035|0
u167206842|p03035|0
codenet
Compile Error
337
v2_s770036107
s770036107
s770036107
p03035
p03035
u195245476
u195245476
1,558,832,644
2019-05-26T01:04:04
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 k; if(a>13){ k=b; }else if(a<=6){ k=b/2; }else if(a>6){ ...
Main.java:17: error: ';' expected k=0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u195245476|p03035|0
u195245476|p03035|0
codenet
Compile Error
376
v2_s021012992
s021012992
s021012992
p03035
p03035
u195245476
u195245476
1,558,832,700
2019-05-26T01:05:00
Test.java
import java.util.*; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k; if(a>13){ k=b; }else if(a<=6){ k=b/2; }else if(a>6){ ...
Test.java:20: error: variable k might not have been initialized System.out.println(k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u195245476|p03035|0
u195245476|p03035|0
codenet
Compile Error
377
v2_s508796864
s508796864
s508796864
p03035
p03035
u195245476
u195245476
1,558,832,825
2019-05-26T01:07:05
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 k; if(a>13){ k=b; }else if(a<=6){ k=b/2; }else if(a>6){ ...
Main.java:20: error: variable k might not have been initialized System.out.println(k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u195245476|p03035|0
u195245476|p03035|0
codenet
Compile Error
377
v2_s045439036
s045439036
s045439036
p03035
p03035
u206017850
u206017850
1,558,896,666
2019-05-26T18:51:06
Main.java
public static void main(String[] args){ int age = Integer.parseInt(augs[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
u206017850|p03035|0
u206017850|p03035|0
codenet
Compile Error
81
v2_s910381585
s910381585
s910381585
p03035
p03035
u217010036
u217010036
1,558,832,619
2019-05-26T01:03:39
Main.java
import scala.io.{StdIn => in} object Main extends App { val Array(a, b) = in.readLine.split(" ").map(_.toInt) val ans = a match { case x if x <= 5 => 0 case x if x <=12 => b / 2 case _ => b } println(ans) }
Main.java:1: error: <identifier> expected import scala.io.{StdIn => in} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217010036|p03035|0
u217010036|p03035|0
codenet
Compile Error
227
v2_s260897080
s260897080
s260897080
p03035
p03035
u217010036
u217010036
1,558,832,688
2019-05-26T01:04:48
Main.java
import scala.io.{StdIn => in} object Main extends App { val Array(a, b) = in.readLine.split(" ").map(_.toInt) val ans = a match { case x if x <= 5 => 0 case x if x <=12 => b / 2 case _ => b } println(ans) }
Main.java:1: error: <identifier> expected import scala.io.{StdIn => in} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217010036|p03035|0
u217010036|p03035|0
codenet
Compile Error
227
v2_s508856913
s508856913
s508856913
p03035
p03035
u223718904
u223718904
1,558,836,867
2019-05-26T02:14:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int age = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); if(age>=13){ System.out.println(b); }else if(age<=5){ System.out.pr...
Main.java:18: error: ';' expected System.out.println(b/2) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223718904|p03035|0
u223718904|p03035|0
codenet
Compile Error
404
v2_s851710602
s851710602
s851710602
p03035
p03035
u228730930
u228730930
1,575,748,429
2019-12-07T19:53:49
Main.java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line = new String(in.readLine()); String[] input = line.split(" ", 0); int age = Integer.parseInt(input[0].trim()); int price = Integer.parseInt(input[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
u228730930|p03035|0
u228730930|p03035|0
codenet
Compile Error
635
v2_s532430696
s532430696
s532430696
p03035
p03035
u251779460
u251779460
1,559,777,098
2019-06-05T23:24:58
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); if (A>=13){ System.out.println(B); } elif (A>=6 && A<=12){ System.out.println(B/2); }else{ Sy...
Main.java:9: error: ';' expected } elif (A>=6 && A<=12){ ^ Main.java:11: error: 'else' without 'if' }else{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p03035|0
u251779460|p03035|0
codenet
Compile Error
376
v2_s183452311
s183452311
s183452311
p03035
p03035
u257593072
u257593072
1,558,832,711
2019-05-26T01:05:11
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int cost = 0; if (a >= 13) { cost = b; } else if (a >= 6 && a <= 12) { cost = b /2; } else { cost = 0; } System.out.println(cost); ...
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
u257593072|p03035|0
u257593072|p03035|0
codenet
Compile Error
936
v2_s395161878
s395161878
s395161878
p03035
p03035
u274962354
u274962354
1,576,697,454
2019-12-18T19:30:54
Main.java
#include<iostream> #include<string.h> #include<math.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a <= 5) { cout << 0 << endl; } else if (a <= 12) { cout << b / 2 << endl; } else { cout << b << endl; } return 0; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<string.h> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:9: error: not a statement cin >> a >> b; ^ Main.java:11: error: not a statement cout << 0 << endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03035|1
u274962354|p03035|1
codenet
Compile Error
250
v2_s232839557
s232839557
s232839557
p03035
p03035
u317333738
u317333738
1,574,204,995
2019-11-19T23:09:55
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(); if (a >= 13) { System.out.println(B); } else if (a <= 12 && a >= 6) { System.out.println(B / 2); } else { ...
Main.java:10: error: cannot find symbol System.out.println(B); ^ symbol: variable B location: class Main Main.java:12: error: cannot find symbol System.out.println(B / 2); ^ symbol: variable B location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p03035|0
u317333738|p03035|0
codenet
Compile Error
355
v2_s634364979
s634364979
s634364979
p03035
p03035
u317333738
u317333738
1,574,205,030
2019-11-19T23:10:30
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(); if (a >= 13) { System.out.println(B); } else if (a <= 12 && a >= 6) { System.out.println(b / 2); } else { ...
Main.java:10: error: cannot find symbol System.out.println(B); ^ symbol: variable B location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u317333738|p03035|0
u317333738|p03035|0
codenet
Compile Error
355
v2_s304703504
s304703504
s304703504
p03035
p03035
u376348462
u376348462
1,581,901,219
2020-02-17T01:00:19
solution.java
import java.util.Scanner public class solution { public static void main(String []args) { int n,b; Scanner sc= new Scanner(System.in); n= sc.nextInt(); b=sc.nextInt(); if(n>=13) { System.out.println(b); } else if(n>5 && n<13) { System.out.println(b/2); } ...
solution.java:1: error: ';' expected import java.util.Scanner ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u376348462|p03035|0
u376348462|p03035|0
codenet
Compile Error
380
v2_s308331515
s308331515
s308331515
p03035
p03035
u413139122
u413139122
1,559,683,185
2019-06-04T21:19:45
main.java
import java.util.*; public class main{ public static main(String args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); if (a >= 13) { System.out.println(b + "\n"); } else if (a < 13 && a >= 6) { System.out.println((b / 2) + "\n"); }...
main.java:4: error: modifier static not allowed here public static main(String args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413139122|p03035|0
u413139122|p03035|0
codenet
Compile Error
372
v2_s888864954
s888864954
s888864954
p03035
p03035
u448324500
u448324500
1,565,055,681
2019-08-06T01:41:21
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(A>=13){ System.out.println(B); } else if(6<=A<=12){ System.out.println(B/2); } else if(A<=5){ System.out.println("0"); } ...
Main.java:19: error: bad operand types for binary operator '<=' else if(6<=A<=12){ ^ first type: boolean second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p03035|0
u448324500|p03035|0
codenet
Compile Error
324
v2_s884246276
s884246276
s884246276
p03035
p03035
u449390500
u449390500
1,558,923,613
2019-05-27T02:20:13
Main.java
public static void main(String[] args) { int A = 30; int B = 100; if(A < 6){ System.out.println("0円"); } else if (A < 13){ System.out.println(B/2+"円"); } else{ System.out.println(B+"円"); } }
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u449390500|p03035|0
u449390500|p03035|0
codenet
Compile Error
218
v2_s640571141
s640571141
s640571141
p03035
p03035
u462723267
u462723267
1,574,730,254
2019-11-26T01:04:14
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(); if (0<=A&&A<=5){ int B = 0; System.out.println(A B); else if (6<=A && A<=12){ int B = B/2; ...
Main.java:11: error: ')' or ',' expected System.out.println(A B); ^ Main.java:11: error: not a statement System.out.println(A B); ^ Main.java:11: error: ';' expected System.out.println(A B); ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462723267|p03035|0
u462723267|p03035|0
codenet
Compile Error
461