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_s874104761
s874104761
s874104761
p02892
p02892
u729617972
u729617972
1,570,330,032
2019-10-06T02:47:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean[][] s = new boolean[200][200]; int[] num = new int[200]; for(int i = 0 ; i < n ; i++){ String tmp = sc.next(); for(int j = 0 ; j < n ; j++){ s[i][j...
Main.java:54: error: ')' expected if((num[i] - num[j] != 1) && (num[j] - num[i] != 1){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729617972|p02892|0
u729617972|p02892|0
codenet
Compile Error
1,149
v2_s060897008
s060897008
s060897008
p02892
p02892
u982630224
u982630224
1,570,332,979
2019-10-06T03:36:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); // graph list ArrayList<ArrayList<Integer>> edge = new ArrayList<ArrayList<Integer>>(); for (int i=0;i<N;i++) { ArrayList<Integer> add = new ArrayLis...
Main.java:54: error: undefined label: loop break loop; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02892|0
u982630224|p02892|0
codenet
Compile Error
1,630
v2_s732091079
s732091079
s732091079
p02892
p02892
u982630224
u982630224
1,570,333,028
2019-10-06T03:37:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); // graph list ArrayList<ArrayList<Integer>> edge = new ArrayList<ArrayList<Integer>>(); for (int i=0;i<N;i++) { ArrayList<Integer> add = new ArrayLis...
Main.java:54: error: undefined label: loop break loop; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02892|0
u982630224|p02892|0
codenet
Compile Error
1,630
v2_s878628596
s878628596
s878628596
p02892
p02892
u982630224
u982630224
1,571,444,299
2019-10-19T00:18:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); // graph list LinkedList<ArrayList<Integer>> edge_2 = new LinkedList<ArrayList<Integer>>(); for (int i=0;i<N;i++) { ...
Main.java:48: error: incompatible types: ArrayList<Integer> cannot be converted to LinkedList<Integer> LinkedList<Integer> edge_list = edge.get(index); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02892|2
u982630224|p02892|2
codenet
Compile Error
2,283
v2_s105132680
s105132680
s105132680
p02897
p02897
u005491552
u005491552
1,569,718,976
2019-09-29T01:02:56
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int count=0; for(int i = 1; i <= n; i++){ if(i%2==1){count++;} } System.out.println((double)count/(double)n); } }
Main.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: 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
u005491552|p02897|0
u005491552|p02897|0
codenet
Compile Error
305
v2_s445691399
s445691399
s445691399
p02897
p02897
u011996008
u011996008
1,584,041,888
2020-03-12T19:38:08
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println((double)((n+1)/2)/n); } }
Main.java:7: error: cannot find symbol System.out.println((double)((n+1)/2)/n); ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol System.out.println((double)((n+1)/2)/n); ^ symbol: variable n location: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02897|0
u011996008|p02897|0
codenet
Compile Error
186
v2_s188176914
s188176914
s188176914
p02897
p02897
u015418292
u015418292
1,572,043,588
2019-10-25T22:46:28
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int kisuu = 0; for(int i = 0; i < a; i++){ if(i%2!=0){ kisuu++; } System.out.println(kisuu/a); ...
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02897|0
u015418292|p02897|0
codenet
Compile Error
369
v2_s813363024
s813363024
s813363024
p02897
p02897
u015418292
u015418292
1,572,043,693
2019-10-25T22:48:13
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int kisuu = 0; for(int i = 1; i < a; i++){ if(i%2!=0){ kisuu++; } System.out.println(kisuu/a); ...
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02897|0
u015418292|p02897|0
codenet
Compile Error
342
v2_s037738569
s037738569
s037738569
p02897
p02897
u015418292
u015418292
1,572,047,395
2019-10-25T23:49:55
Main.java
import java.util.Scanner; public class Main throw Exception{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; for(int i = 0; i < a.length; i ++) { a[i] = sc.nextInt(); } int count = 1; do { for(int i...
Main.java:3: error: '{' expected public class Main throw Exception{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u015418292|p02897|0
u015418292|p02897|0
codenet
Compile Error
467
v2_s858473983
s858473983
s858473983
p02897
p02897
u073606136
u073606136
1,588,398,629
2020-05-02T05:50:29
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.next(); int M = N / 2; if(N % 2 == 0){ System.out.println((double) 1 / N); } else { System.out.pr...
Main.java:6: error: incompatible types: String cannot be converted to int int N = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02897|0
u073606136|p02897|0
codenet
Compile Error
372
v2_s767302153
s767302153
s767302153
p02897
p02897
u089230684
u089230684
1,573,314,291
2019-11-09T15:44:51
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]){//double 处理果盘 Scanner in = new Scanner(System.in); int n = in.nextInt(),j; if (n % 2 == 0){ j = n/2; }else{ j = 1 + (n -1 )/2; } float x = (float)j/n; System.out.println(x);
Main.java:12: error: reached end of file while parsing System.out.println(x); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02897|1
u089230684|p02897|1
codenet
Compile Error
292
v2_s796819937
s796819937
s796819937
p02897
p02897
u109985485
u109985485
1,570,334,863
2019-10-06T04:07:43
test.java
import java.util.Scanner; public class test { // Making a static main function public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); if (num % 2 ==0) system.out.println("0.5"); else { system.out.println(((...
test.java:10: error: package system does not exist system.out.println("0.5"); ^ test.java:12: error: package system does not exist system.out.println(((num/2) + 1) / num); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109985485|p02897|0
u109985485|p02897|0
codenet
Compile Error
360
v2_s710436193
s710436193
s710436193
p02897
p02897
u109985485
u109985485
1,570,335,118
2019-10-06T04:11:58
Main.java
import java.util.Scanner; public class Main { // Making a static main function public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); if (num % 2 ==0) system.out.println("0.5"); else { system.out.println((...
Main.java:10: error: package system does not exist system.out.println("0.5"); ^ Main.java:12: error: package system does not exist system.out.println(((num/2) + 1) / num); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109985485|p02897|0
u109985485|p02897|0
codenet
Compile Error
361
v2_s797666798
s797666798
s797666798
p02897
p02897
u110653681
u110653681
1,571,015,886
2019-10-14T01:18:06
Main.java
#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%2==0){ cout<<0.5<<endl; } else{ int x=n/2+1; double y=x; printf("%lf\n",y/n); } return 0; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include<iostream> ^ Main.java:6: error: not a statement cin>>n; ^ Main.java:8: error: not a statement cout<<0.5<<endl; ^ Main.java:4: error: unnamed...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110653681|p02897|0
u110653681|p02897|0
codenet
Compile Error
224
v2_s512315219
s512315219
s512315219
p02897
p02897
u127030911
u127030911
1,569,865,581
2019-09-30T17:46:21
Main.java
#include <iostream> using namespace std; int main(){ int n; cin >> n; double ans = (double)(n-(n/2))/(double)n; cout << ans << endl; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:6: error: not a statement cin >> n; ^ Main.java:9: error: not a statement cout << ans << endl; ^ Main.java:4: error: un...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u127030911|p02897|1
u127030911|p02897|1
codenet
Compile Error
152
v2_s109891786
s109891786
s109891786
p02897
p02897
u146779775
u146779775
1,572,625,803
2019-11-01T16:30:03
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; cout << ((n%2==0)?(n/2.0)/n:((n-1)/2.0+1)/n) << endl; 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:6: error: not a statement int n; cin>>n; ^ Main.java:8: error: not a statement cout << ((n%2==0)?(n/2.0)/n:((n-1)/2.0+1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u146779775|p02897|0
u146779775|p02897|0
codenet
Compile Error
159
v2_s832739962
s832739962
s832739962
p02897
p02897
u149153181
u149153181
1,569,723,043
2019-09-29T02:10:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double N=sc.nextInt(); double ans; double count=0; for(int i=1; i<=n; i++){ if(i%2.0==1){ count++; } } ans=count/N; System.out.println("ans="+ans);...
Main.java:8: error: cannot find symbol for(int i=1; i<=n; i++){ ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u149153181|p02897|0
u149153181|p02897|0
codenet
Compile Error
328
v2_s555518962
s555518962
s555518962
p02897
p02897
u149153181
u149153181
1,569,723,122
2019-09-29T02:12:02
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); double N=sc.nextInt(); double ans; double count=0; for(int i=1; i<=n; i++){ if(i%2.0==1){ count++; } } ans=count/N; System.out.println("ans="+ans);...
Main.java:8: error: cannot find symbol for(int i=1; i<=n; i++){ ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u149153181|p02897|0
u149153181|p02897|0
codenet
Compile Error
328
v2_s862123445
s862123445
s862123445
p02897
p02897
u179749305
u179749305
1,582,819,409
2020-02-27T16:03:29
Main.java
int N; //--------------------------------------------------------------------------------------------------- void _main() { cin >> N; int cnt = (N + 1) / 2; double ans = 1.0 * cnt / N; printf("%.10f\n", ans); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int N; ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: not a statement cin >> N; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179749305|p02897|0
u179749305|p02897|0
codenet
Compile Error
226
v2_s034576476
s034576476
s034576476
p02897
p02897
u179749305
u179749305
1,582,819,444
2020-02-27T16:04:04
Main.java
int N; void _main() { cin >> N; int cnt = (N + 1) / 2; double ans = 1.0 * cnt / N; printf("%.10f\n", ans); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int N; ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: not a statement cin >> N; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179749305|p02897|0
u179749305|p02897|0
codenet
Compile Error
124
v2_s869841807
s869841807
s869841807
p02897
p02897
u200239931
u200239931
1,571,001,104
2019-10-13T21:11:44
Main.java
public static void main(String[] args) throws Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader reader = new BufferedReader(is); String s = reader.readLine(); Integer a = Integer.valueOf(s); if (a % 2 == 0) { System.out.printl...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) throws Exception { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200239931|p02897|0
u200239931|p02897|0
codenet
Compile Error
422
v2_s951675132
s951675132
s951675132
p02897
p02897
u200239931
u200239931
1,571,001,195
2019-10-13T21:13:15
Main.java
public class Main { public static void main(String[] args) throws Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader reader = new BufferedReader(is); String s = reader.readLine(); Integer a = Integer.valueOf(s); if (a % 2 == 0) { ...
Main.java:5: error: cannot find symbol InputStreamReader is = new InputStreamReader(System.in); ^ symbol: class InputStreamReader location: class Main Main.java:5: error: cannot find symbol InputStreamReader is = new InputStreamReader(System.in); ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u200239931|p02897|0
u200239931|p02897|0
codenet
Compile Error
446
v2_s807249135
s807249135
s807249135
p02897
p02897
u201966856
u201966856
1,591,645,801
2020-06-08T19:50:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); //入力表示 int N = scanner.nextInt(); int B = 0; if (N % 2 == 0) { B = N / 2; } else { B = N / 2 + 1; } } } System.out.println((doubl...
Main.java:24: error: class, interface, enum, or record expected System.out.println((double)B/N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u201966856|p02897|0
u201966856|p02897|0
codenet
Compile Error
366
v2_s129852931
s129852931
s129852931
p02897
p02897
u212904724
u212904724
1,574,178,870
2019-11-19T15:54:30
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 A[] = new int[N]; string out; System.out.println(out); sc.close(); } }
Main.java:9: error: cannot find symbol string out; ^ symbol: class string location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212904724|p02897|0
u212904724|p02897|0
codenet
Compile Error
238
v2_s488072813
s488072813
s488072813
p02897
p02897
u218740431
u218740431
1,587,593,769
2020-04-22T22:16:09
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if (a%2==0){System.out.println("0.5")} else{double ans = (a+1.0)/(2.0*a); System.out.println(ans);} } }
Main.java:6: error: ';' expected if (a%2==0){System.out.println("0.5")} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02897|0
u218740431|p02897|0
codenet
Compile Error
280
v2_s872784688
s872784688
s872784688
p02897
p02897
u219894353
u219894353
1,569,719,131
2019-09-29T01:05:31
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double N = Integer.parseInt(scanner.nextLine()); N = Integer.parseInt(args[0]); double v = ((int) (N / 2)) / N; System.out.println("" + v); } }
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u219894353|p02897|0
u219894353|p02897|0
codenet
Compile Error
267
v2_s280862022
s280862022
s280862022
p02897
p02897
u223247368
u223247368
1,572,757,473
2019-11-03T05:04:33
Main.java
public static void main(String[] args) { // TODO Auto-generated method stub Scanner s = new Scanner(System.in); int n = s.nextInt(); String str = s.nextLine(); // String str = "2 3 1"; int[] arr = new int[n+1]; arr[0] = 0; String sss[] = str.split("\\s"); for(int i=1;i<=n;i++) { arr[i] = Integer....
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
u223247368|p02897|0
u223247368|p02897|0
codenet
Compile Error
502
v2_s248162572
s248162572
s248162572
p02897
p02897
u280715164
u280715164
1,569,719,276
2019-09-29T01:07:56
Main.java
import java.util.*; public class Main { Scanner sc = new Scanner(System.in); int a,b,c,d,e,f,k,l,m,n,x,y,z; String[] S; Main(){a // 整数の入力 n = sc.nextInt(); double t=n/2; if(n%2==1)t+=1; // 出力 System.out.println(t/n); } public static void main(String[] args){ new Main(); } }
Main.java:7: error: cannot find symbol Main(){a ^ symbol: class a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u280715164|p02897|0
u280715164|p02897|0
codenet
Compile Error
312
v2_s427881603
s427881603
s427881603
p02897
p02897
u284795785
u284795785
1,571,026,927
2019-10-14T04:22:07
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=1; int c=0; while(b<=a){ if(b&2==1){ c++; } b++; } System.out.println((double)(c/a...
Main.java:9: error: bad operand types for binary operator '&' if(b&2==1){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02897|0
u284795785|p02897|0
codenet
Compile Error
331
v2_s949484250
s949484250
s949484250
p02897
p02897
u291402523
u291402523
1,569,720,294
2019-09-29T01:24:54
Main.java
public static void Main(String[] args) { Scanner scan=new Scanner(System.in); int N; N=scan.nextInt(); int kisu; kisu=N/2; if(N%2==1)kisu++; double A; A=(double)kisu/(double)N; System.out.print(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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u291402523|p02897|0
u291402523|p02897|0
codenet
Compile Error
224
v2_s188342935
s188342935
s188342935
p02897
p02897
u294547658
u294547658
1,583,122,020
2020-03-02T04:07:00
Main.java
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] c) { Scanner scan = new Scanner(System.in); double t = scan.nextInt(); double half = 2; double s = t % half; if (s == 0) { System.out.println(new BigDecima...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u294547658|p02897|0
u294547658|p02897|0
codenet
Compile Error
521
v2_s191033168
s191033168
s191033168
p02897
p02897
u298620933
u298620933
1,570,821,198
2019-10-11T19:13:18
Main.java
1 import java.util.Scanner;//入力を取得する(Scanner) 2 3 class main { 4 public static void main(String arts[]) { 5 double N; 6 Scanner sc = new Scanner(System.in); 7 N = sc.nextDouble(); 8 9 int targ...
Main.java:1: error: class, interface, enum, or record expected 1 import java.util.Scanner;//???????(Scanner) ^ Main.java:2: error: class, interface, enum, or record expected 2 ^ Main.java:4: error: illegal start of type 4 public static void main(String arts[]) { ^ Main.java:5: error: not a state...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298620933|p02897|0
u298620933|p02897|0
codenet
Compile Error
563
v2_s891470981
s891470981
s891470981
p02897
p02897
u298620933
u298620933
1,570,821,490
2019-10-11T19:18:10
Main.java
1 import java.util.Scanner;//入力を取得する(Scanner) 2 3 class Main { 4 public static void main(String arts[]) { 5 int N; 6 Scanner sc = new Scanner(System.in); 7 N = sc.nextInt(); 8 9 int target; 10 ...
Main.java:1: error: class, interface, enum, or record expected 1 import java.util.Scanner;//???????(Scanner) ^ Main.java:2: error: class, interface, enum, or record expected 2 ^ Main.java:4: error: illegal start of type 4 public static void main(String arts[]) { ^ Main.java:5: error: not a statemen...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298620933|p02897|0
u298620933|p02897|0
codenet
Compile Error
554
v2_s807325012
s807325012
s807325012
p02897
p02897
u314232289
u314232289
1,569,719,006
2019-09-29T01:03:26
Main.java
{-# LANGUAGE BangPatterns #-} import Control.Monad import Data.Maybe import Debug.Trace import Data.List import qualified Data.Map.Strict as Map import qualified Data.IntMap.Strict as IntMap import qualified Data.Set as Set import qualified Data.IntSet as IntSet import Data.Functor import Data.Array -- import Data.Arra...
Main.java:1: error: class, interface, enum, or record expected {-# LANGUAGE BangPatterns #-} ^ Main.java:1: error: illegal character: '#' {-# LANGUAGE BangPatterns #-} ^ Main.java:1: error: illegal character: '#' {-# LANGUAGE BangPatterns #-} ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314232289|p02897|0
u314232289|p02897|0
codenet
Compile Error
488
v2_s358255986
s358255986
s358255986
p02897
p02897
u353919145
u353919145
1,572,671,998
2019-11-02T05:19:58
A.java
import java.util.*; public class A { public static void main(String args[])throws Exception { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n==1) { float p=1.0; System.out.println(p); } else { int k=0; for(int i=1;i<n;i+=2) k++; int p=(k*1.0)/n; System.out.println(p); } } }
A.java:10: error: incompatible types: possible lossy conversion from double to float float p=1.0; ^ A.java:18: error: incompatible types: possible lossy conversion from double to int int p=(k*1.0)/n; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02897|2
u353919145|p02897|2
codenet
Compile Error
289
v2_s096547700
s096547700
s096547700
p02897
p02897
u369712616
u369712616
1,584,069,341
2020-03-13T03:15:41
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); if(a % 2 == 0){ System.out.println(1/2.0); }else{ System.out.println(((n+1)/2.0)/n); } } }
Main.java:9: error: cannot find symbol System.out.println(((n+1)/2.0)/n); ^ symbol: variable n location: class Main Main.java:9: error: cannot find symbol System.out.println(((n+1)/2.0)/n); ^ symbol: variable n location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02897|0
u369712616|p02897|0
codenet
Compile Error
263
v2_s044212243
s044212243
s044212243
p02897
p02897
u369712616
u369712616
1,584,069,363
2020-03-13T03:16:03
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(a % 2 == 0){ System.out.println(1/2.0); }else{ System.out.println(((n+1)/2.0)/n); } } }
Main.java:6: error: cannot find symbol if(a % 2 == 0){ ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02897|0
u369712616|p02897|0
codenet
Compile Error
263
v2_s628246445
s628246445
s628246445
p02897
p02897
u431125128
u431125128
1,569,789,629
2019-09-29T20:40:29
Main.java
import java.util.* public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] array1=new int[N]; int counter=0; for(int i=0;i<N;i++){ array[i]=i+1; } for(int i=0;i<N;i++){ if(array[i]%2==1){ counter++; ...
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02897|0
u431125128|p02897|0
codenet
Compile Error
401
v2_s160257788
s160257788
s160257788
p02897
p02897
u431125128
u431125128
1,569,789,657
2019-09-29T20:40:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] array1=new int[N]; int counter=0; for(int i=0;i<N;i++){ array[i]=i+1; } for(int i=0;i<N;i++){ if(array[i]%2==1){ counter++; ...
Main.java:10: error: cannot find symbol array[i]=i+1; ^ symbol: variable array location: class Main Main.java:13: error: cannot find symbol if(array[i]%2==1){ ^ symbol: variable array location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02897|0
u431125128|p02897|0
codenet
Compile Error
402
v2_s683077115
s683077115
s683077115
p02897
p02897
u431125128
u431125128
1,573,386,934
2019-11-10T11:55:34
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int N=sc.nextInt(); int[] array=new int[N]; int counter=0; for(int i=0;i<N;i++){ array[i]=i; } for(int i:array){ if(i%2==0){ counter++; } }...
Main.java:21: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02897|1
u431125128|p02897|1
codenet
Compile Error
776
v2_s346986369
s346986369
s346986369
p02897
p02897
u440812556
u440812556
1,579,116,364
2020-01-15T19:26:04
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a = N%2; int b = 0; if(a == 0){ int b = 0.5; } else if{ int b = (1+N)/2*N; } System.out.println(b); } }
Main.java:16: error: '(' expected else if{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02897|0
u440812556|p02897|0
codenet
Compile Error
303
v2_s829146736
s829146736
s829146736
p02897
p02897
u440812556
u440812556
1,579,116,451
2020-01-15T19:27:31
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a = N%2; int b = 0; if(a == 0){ int b = 0.5; } if else{ int b = (1+N)/2*N; } System.out.println(b); } }
Main.java:16: error: '(' expected if else{ ^ Main.java:16: error: illegal start of expression if else{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02897|0
u440812556|p02897|0
codenet
Compile Error
303
v2_s751328041
s751328041
s751328041
p02897
p02897
u440812556
u440812556
1,579,116,553
2020-01-15T19:29:13
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a = N%2; int b = 0; if(a == 0){ b = 0.5; } else{ b = (1+N)/2*N; } System.out.println(b); } }
Main.java:14: error: incompatible types: possible lossy conversion from double to int b = 0.5; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02897|0
u440812556|p02897|0
codenet
Compile Error
294
v2_s008579545
s008579545
s008579545
p02897
p02897
u440812556
u440812556
1,579,117,861
2020-01-15T19:51:01
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a = N%2; double b; if(a == 0){ b = 0.5; } else{ b = ((1+N)/2)/N; } System.out.println(String.format(b); } }
Main.java:20: error: ')' or ',' expected System.out.println(String.format(b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02897|0
u440812556|p02897|0
codenet
Compile Error
309
v2_s383694754
s383694754
s383694754
p02897
p02897
u440812556
u440812556
1,579,119,076
2020-01-15T20:11:16
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double N = sc.nextDouble(); int a = N%2; double b; if(a == 0){ b = N/(2*N); } else{ b = (N+1)/(2*N); } System.out.println(String.format("%.10f",b))...
Main.java:10: error: incompatible types: possible lossy conversion from double to int int a = N%2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440812556|p02897|0
u440812556|p02897|0
codenet
Compile Error
328
v2_s646658556
s646658556
s646658556
p02897
p02897
u461321601
u461321601
1,569,727,429
2019-09-29T03:23:49
od.java
import java.util.Scanner; public class od{ public static void main(String[] args){ int N = 101; int sum = 0; double p; Scanner scanner = new Scanner(); while (N >= 100) { N = scanner.next(); } for (int i = 1; i <= N; i++) { if (i % 2 ==...
od.java:7: error: no suitable constructor found for Scanner(no arguments) Scanner scanner = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not ap...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461321601|p02897|0
u461321601|p02897|0
codenet
Compile Error
433
v2_s554024364
s554024364
s554024364
p02897
p02897
u463844166
u463844166
1,570,568,588
2019-10-08T21:03:08
Main.java
mport java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); double m=n/2; double k=Math.floor(m); double l=(n-m)/n; System.out.println(l); } }
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u463844166|p02897|1
u463844166|p02897|1
codenet
Compile Error
243
v2_s927133319
s927133319
s927133319
p02897
p02897
u542605091
u542605091
1,570,596,306
2019-10-09T04:45:06
OddsProbability.java
public class OddsProbability { public static void main(String[] args) { double N = Double.parseDoubel(args[0]); if (N % 2 == 0){ System.out.println(N/2*N); } else{ System.out.println((N+1) / 2*N); } } }
OddsProbability.java:3: error: cannot find symbol double N = Double.parseDoubel(args[0]); ^ symbol: method parseDoubel(String) location: class Double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u542605091|p02897|0
u542605091|p02897|0
codenet
Compile Error
249
v2_s184574921
s184574921
s184574921
p02897
p02897
u553551165
u553551165
1,575,859,151
2019-12-09T02:39:11
Main.java
a = [int(x) for x in input().split(" ")] print("bust") if sum(a) >= 22 else print("win")
Main.java:1: error: class, interface, enum, or record expected a = [int(x) for x in input().split(" ")] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u553551165|p02897|0
u553551165|p02897|0
codenet
Compile Error
88
v2_s145425291
s145425291
s145425291
p02897
p02897
u577170763
u577170763
1,569,721,487
2019-09-29T01:44:47
Main.java
import java.util.Scanner; public class Main { int n; Main(int n) { this.n = n; } /** * * @return greeting message */ public double solve() { if (n % 2 == 0) { return 0.5; } else { return 1.0 * (n + 1) / 2 / n; } } ...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577170763|p02897|0
u577170763|p02897|0
codenet
Compile Error
588
v2_s422245689
s422245689
s422245689
p02897
p02897
u626531089
u626531089
1,575,097,176
2019-11-30T06:59:36
oddprogram.java
public class oddprogram { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float n = sc.nextInt(); System.out.println((((n+1)/2))/n); if(n%2==0){ System.out.println(0.5); } else{ System.out.println((((n+1)/2))/n)...
oddprogram.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class oddprogram oddprogram.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class oddprogram 2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626531089|p02897|0
u626531089|p02897|0
codenet
Compile Error
350
v2_s073037537
s073037537
s073037537
p02897
p02897
u626531089
u626531089
1,575,097,224
2019-11-30T07:00:24
oddprogram.java
public class oddprogram { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float n = sc.nextInt(); if(n%2==0){ System.out.println(0.5); } else{ System.out.println((((n+1)/2))/n); } } }
oddprogram.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class oddprogram oddprogram.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class oddprogram 2...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626531089|p02897|0
u626531089|p02897|0
codenet
Compile Error
307
v2_s289399360
s289399360
s289399360
p02897
p02897
u630085796
u630085796
1,569,961,868
2019-10-01T20:31:08
Main.java
import java.util.Scanner; public static void main(String[] args){ taskA(); } public static void taskA(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int count = 0; for(int i = 1; i < n; i++){ if(i % 2 != 0) count++; } System.out.println(String.format("%.2f", ...
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
u630085796|p02897|0
u630085796|p02897|0
codenet
Compile Error
342
v2_s920413342
s920413342
s920413342
p02897
p02897
u631728946
u631728946
1,569,726,820
2019-09-29T03:13:40
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long gcd = gcd(a, b); int res = 1; if(gcd%2 == 0) { res+...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631728946|p02897|1
u631728946|p02897|0
codenet
Compile Error
811
v2_s784524732
s784524732
s784524732
p02897
p02897
u694321332
u694321332
1,577,562,141
2019-12-28T19:42:21
Main.java
public static void main(String[] args) { int N = 100; float prob=0; int a =4; if(a%2!=0 && a<N){ prob = 2/4; System.out.println(prob); } } }
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:11: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u694321332|p02897|0
u694321332|p02897|0
codenet
Compile Error
200
v2_s305167042
s305167042
s305167042
p02897
p02897
u760718569
u760718569
1,571,874,614
2019-10-23T23:50:14
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(); double counter; for(int i = 0;i <= a;i++){ int b = i % 2; if(b == 1){ counter++; } System.out.println((double)a/counter); ...
Main.java:10: error: variable counter might not have been initialized counter++; ^ Main.java:12: error: variable counter might not have been initialized System.out.println((double)a/counter); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02897|0
u760718569|p02897|0
codenet
Compile Error
327
v2_s730764715
s730764715
s730764715
p02897
p02897
u760718569
u760718569
1,571,874,664
2019-10-23T23:51:04
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(); double counter = 0; for(int i = 0;i <= a;i++){ int b = i % 2; if(b == 1){ counter++; } System.out.println((double)a/counter); ...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760718569|p02897|0
u760718569|p02897|0
codenet
Compile Error
329
v2_s313208060
s313208060
s313208060
p02897
p02897
u763466420
u763466420
1,571,419,536
2019-10-18T17:25:36
Main.java
import java.util.*; public static void main(String[] args){ Scanner sc = new Scanner(System.in); double N = sc.nextLine(); System.println((N - N/2) / N); }
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
u763466420|p02897|0
u763466420|p02897|0
codenet
Compile Error
162
v2_s443275719
s443275719
s443275719
p02897
p02897
u763466420
u763466420
1,571,419,685
2019-10-18T17:28:05
Main.java
import java.util.*; public call Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double N = sc.nextLine(); System.println((N - N/2) / N); } }
Main.java:2: error: class, interface, enum, or record expected public call Main{ ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:9: error: class, interface...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u763466420|p02897|0
u763466420|p02897|0
codenet
Compile Error
182
v2_s009244540
s009244540
s009244540
p02897
p02897
u763466420
u763466420
1,571,419,705
2019-10-18T17:28:25
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double N = sc.nextLine(); System.println((N - N/2) / N); } }
Main.java:6: error: incompatible types: String cannot be converted to double double N = sc.nextLine(); ^ Main.java:7: error: cannot find symbol System.println((N - N/2) / N); ^ symbol: method println(double) location: class System 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u763466420|p02897|0
u763466420|p02897|0
codenet
Compile Error
183
v2_s651852196
s651852196
s651852196
p02897
p02897
u763466420
u763466420
1,571,419,738
2019-10-18T17:28:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double N = (double)sc.nextLine(); System.println((N - N/2) / N); } }
Main.java:6: error: incompatible types: String cannot be converted to double double N = (double)sc.nextLine(); ^ Main.java:7: error: cannot find symbol System.println((N - N/2) / N); ^ symbol: method println(double) location: class System 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u763466420|p02897|0
u763466420|p02897|0
codenet
Compile Error
191
v2_s624892197
s624892197
s624892197
p02897
p02897
u787005274
u787005274
1,570,575,806
2019-10-08T23:03:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = Scanner(System.in); int N = sc.nextInt(); int S = N / 2 System.out.println(S / N);
Main.java:7: error: ';' expected int S = N / 2 ^ Main.java:8: error: reached end of file while parsing System.out.println(S / N); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
204
v2_s243034614
s243034614
s243034614
p02897
p02897
u787005274
u787005274
1,570,575,842
2019-10-08T23:04:02
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = Scanner(System.in); int N = sc.nextInt(); int S = N / 2; System.out.println(S / N);
Main.java:8: error: reached end of file while parsing System.out.println(S / N); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
206
v2_s992846341
s992846341
s992846341
p02897
p02897
u787005274
u787005274
1,570,575,881
2019-10-08T23:04:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = Scanner(System.in); int N = sc.nextInt(); int S = N / 2 System.out.println(S / N); } }
Main.java:7: error: ';' expected int S = N / 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
212
v2_s776254016
s776254016
s776254016
p02897
p02897
u787005274
u787005274
1,570,575,901
2019-10-08T23:05:01
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = Scanner(System.in); int N = sc.nextInt(); int S = N / 2; System.out.println(S / N); } }
Main.java:5: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: method Scanner(InputStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
213
v2_s335662274
s335662274
s335662274
p02897
p02897
u787005274
u787005274
1,570,576,058
2019-10-08T23:07:38
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner sc = Scanner(System.in); int N = sc.nextInt(); int S = N / 2; double K = S / N ; System.out.println(K); } }
Main.java:5: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: method Scanner(InputStream) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
233
v2_s652831681
s652831681
s652831681
p02897
p02897
u787005274
u787005274
1,570,576,229
2019-10-08T23:10:29
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 S = N / 2; K = (double)S / N; System.out.println(K); } }
Main.java:8: error: cannot find symbol K = (double)S / N; ^ symbol: variable K location: class Main Main.java:9: error: cannot find symbol System.out.println(K); ^ symbol: variable K location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u787005274|p02897|0
u787005274|p02897|0
codenet
Compile Error
237
v2_s214551603
s214551603
s214551603
p02897
p02897
u812805378
u812805378
1,570,807,542
2019-10-11T15:25:42
Main.java
import java.util.*; class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long ans; if(n!=1){ ans = (n%2==0)?0.5:0.6; } else{ ans = 1; } system.out.println(ans); } }
Main.java:9: error: incompatible types: possible lossy conversion from double to long ans = (n%2==0)?0.5:0.6; ^ Main.java:14: error: package system does not exist system.out.println(ans); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812805378|p02897|0
u812805378|p02897|0
codenet
Compile Error
320
v2_s867407035
s867407035
s867407035
p02897
p02897
u812805378
u812805378
1,570,807,590
2019-10-11T15:26:30
Main.java
import java.util.*; class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double ans; if(n!=1){ ans = (n%2==0)?0.5:0.6; } else{ ans = 1; } system.out.println(ans); }...
Main.java:14: error: package system does not exist system.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u812805378|p02897|0
u812805378|p02897|0
codenet
Compile Error
322
v2_s804188893
s804188893
s804188893
p02897
p02897
u816631826
u816631826
1,570,941,733
2019-10-13T04:42:13
Odd.java
Odd.java; import java.util.Scanner; public class Odd{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int odd=0; System.out.println("Enter N : "); int N=sc.nextInt(); for(int i=1;i<=N;i++){ if(i%2!=0) odd++; } double probability...
Odd.java:1: error: class, interface, enum, or record expected Odd.java; ^ Odd.java:2: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02897|0
u816631826|p02897|0
codenet
Compile Error
389
v2_s313585423
s313585423
s313585423
p02897
p02897
u816631826
u816631826
1,572,671,932
2019-11-02T05:18:52
A.java
import java.util.*; public class A { public static void main(String args[])throws Exception { Scanner sc=new Scanner(System.in)); int n=sc.nextInt(); if(n==1) { float p=1.0; System.out.println(p); } else { int k=0; for(int i=1;i<n;i+=2) k++; int p=(k*1.0)/n; System.out.println(p); } } }
A.java:6: error: ';' expected Scanner sc=new Scanner(System.in)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02897|1
u816631826|p02897|1
codenet
Compile Error
290
v2_s328893654
s328893654
s328893654
p02897
p02897
u827836698
u827836698
1,573,907,429
2019-11-16T12:30:29
Main.java
import java.util.*; public class Main{ public static void main{ Scanner sc = new Scanner(System.in); double N = sc.nextDouble(); System.out.println(N % 2 == 0 ? (N/2)/N:((N+1)/2)/N); } }
Main.java:4: error: '(' expected public static void main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827836698|p02897|0
u827836698|p02897|0
codenet
Compile Error
208
v2_s614356532
s614356532
s614356532
p02897
p02897
u827836698
u827836698
1,573,907,462
2019-11-16T12:31:02
Main.java
import java.util.*; public class Main{ public static void main{ Scanner sc = new Scanner(System.in); double N = sc.nextDouble(); System.out.println(N % 2 == 0 ? (N/2)/N:((N+1)/2)/N); } }
Main.java:4: error: '(' expected public static void main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827836698|p02897|0
u827836698|p02897|0
codenet
Compile Error
208
v2_s839269905
s839269905
s839269905
p02897
p02897
u860478135
u860478135
1,571,792,844
2019-10-23T01:07:24
Main.java
n1 = int(input()) n2 = n1 // 2 r1 = (n2 + (n1 - 2 * n2)) / n1 print(r1)
Main.java:1: error: class, interface, enum, or record expected n1 = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860478135|p02897|0
u860478135|p02897|0
codenet
Compile Error
75
v2_s666286046
s666286046
s666286046
p02897
p02897
u866070271
u866070271
1,575,845,419
2019-12-08T22:50:19
Main.java
import java.util.*; public static void main(String[] args) { Scanner input = new Scanner(System.in); int number = input.nextInt(); int odd = 0; double oddness; for (int i=1; i<=number ; i++) { if(i%2 != 0 ) odd += 1; } oddness = odd / number; }
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
u866070271|p02897|0
u866070271|p02897|0
codenet
Compile Error
291
v2_s373882336
s373882336
s373882336
p02897
p02897
u866070271
u866070271
1,575,845,454
2019-12-08T22:50:54
Main.java
import java.util.*; public static void main(String[] args) { Scanner input = new Scanner(System.in); int number = input.nextInt(); int odd = 0; double oddness; for (int i=1; i<=number ; i++) { if(i%2 != 0 ) odd += 1; } oddness = odd / number; System.out.println(oddness);...
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
u866070271|p02897|0
u866070271|p02897|0
codenet
Compile Error
324
v2_s585050250
s585050250
s585050250
p02897
p02897
u866070271
u866070271
1,575,845,526
2019-12-08T22:52:06
Main.java
import java.util.*; class Oddness { public static void findOddness { Scanner input = new Scanner(System.in); int number = input.nextInt(); int odd = 0; double oddness; for (int i=1; i<=number ; i++) { if(i%2 != 0 ) odd += 1; } oddness = odd / number; System.out.println(o...
Main.java:3: error: '(' expected public static void findOddness { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866070271|p02897|0
u866070271|p02897|0
codenet
Compile Error
334
v2_s547059525
s547059525
s547059525
p02897
p02897
u868996139
u868996139
1,570,055,931
2019-10-02T22:38:51
Main.java
import java.util.Scanner; Main class{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int num = n - n/2; double ans = num/n; System.out.println(ans); } }
Main.java:2: error: class, interface, enum, or record expected Main class{ ^ Main.java:2: error: <identifier> expected Main class{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02897|0
u868996139|p02897|0
codenet
Compile Error
240
v2_s475043925
s475043925
s475043925
p02897
p02897
u880909682
u880909682
1,572,579,084
2019-11-01T03:31:24
Main.java
import java.util.Scanner; class { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n % 2 ==0) { System.out.println(n/2); } else { System.out.println((n+1)/(2*n)); } } }
Main.java:2: error: <identifier> expected class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u880909682|p02897|0
u880909682|p02897|0
codenet
Compile Error
258
v2_s722622439
s722622439
s722622439
p02897
p02897
u914911051
u914911051
1,570,033,179
2019-10-02T16:19:39
Main.java
import java.util.*; import java.util.Collections; // sorting use import java.io.*; import static java.lang.System.*; public class Main { public static void main(String args[]) { int i, cnt = 0; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int h[] = new int[n]; for (i = 0...
Main.java:21: error: reached end of file while parsing out.println(cnt); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u914911051|p02897|0
u914911051|p02897|0
codenet
Compile Error
429
v2_s592923620
s592923620
s592923620
p02897
p02897
u920694585
u920694585
1,569,719,049
2019-09-29T01:04:09
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(); double count = ; for(int i = 1; i <= a; i++){ if(i % 2 != 0){ count++; } } ...
Main.java:9: error: illegal start of expression double count = ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920694585|p02897|0
u920694585|p02897|0
codenet
Compile Error
384
v2_s882614758
s882614758
s882614758
p02897
p02897
u941200345
u941200345
1,569,721,309
2019-09-29T01:41:49
Main.java
class Probability { import java.io.Scanner; public static void main(String []args) { int ,i,N,x=1; double a; Scanner sc=new Scanner(System.in); System.out.print("\nInput A Number = "); n=sc.nextInt(); for(i=1;i<=N;i++) { if(i%2==1) x++; ...
Main.java:3: error: illegal start of type import java.io.Scanner; ^ Main.java:3: error: <identifier> expected import java.io.Scanner; ^ Main.java:6: error: not a statement int ,i,N,x=1; ^ Main.java:6: error: ';' expected int ,i,N,x=1; ^ Main.java:6: error: not a st...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941200345|p02897|0
u941200345|p02897|0
codenet
Compile Error
406
v2_s242909464
s242909464
s242909464
p02898
p02898
u006449883
u006449883
1,571,454,107
2019-10-19T03:01:47
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 i = 0; i < N; i++) { if(sc.nextInt() >=K)count++; } System.out.println(count); } }
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
u006449883|p02898|0
u006449883|p02898|0
codenet
Compile Error
267
v2_s089713549
s089713549
s089713549
p02898
p02898
u054143905
u054143905
1,586,171,564
2020-04-06T11:12:44
Main.java
ERROR: type should be large_string, got "\nhttps://atcoder.jp/contests/abc142/tasks/abc142_b\nXMA Header Image\nB - Roller Coaster\natcoder.jp\nايه يستا\nانت نمت\n\nimport java.util.Scanner;\n class Main { \n\t\t\t\tpublic static void main(String[] args) {\n\t\t\t\tScanner reader =new Scanner (System.in);\n\t\t\t\tint arr[]=new int [101010];\n\t\t\t\tint k;\n\t\t\t int n;\n\t\t\t int cnt=0;\n\t\t\t n=reader.nextInt();\n\t\t\t k=reader.nextInt();\n\t\t\t for(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\t arr[i]=reader.nextInt();\n\t\t\t }\n\t\t\t for(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\t if(arr[i]>=k)\n\t\t\t\t {\n\t\t\t\t\t cnt++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t System.out.println(cnt);\n\t\t\t}\n\t}"
Main.java:2: error: class, interface, enum, or record expected https://atcoder.jp/contests/abc142/tasks/abc142_b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u054143905|p02898|1
u054143905|p02898|0
codenet
Compile Error
596
v2_s518881286
s518881286
s518881286
p02898
p02898
u054143905
u054143905
1,586,171,651
2020-04-06T11:14:11
Main.java
ERROR: type should be large_string, got "\nhttps://atcoder.jp/contests/abc142/tasks/abc142_b\nXMA Header Image\nB - Roller Coaster\natcoder.jp\nايه يستا\nانت نمت\n\nimport java.util.Scanner;\n class Main { \n\t\t\t\tpublic static void main(String[] args) {\n\t\t\t\tScanner reader =new Scanner (System.in);\n\t\t\t\tint arr[]=new int [101010];\n\t\t\t\tint k;\n\t\t\t int n;\n\t\t\t int cnt=0;\n\t\t\t n=reader.nextInt();\n\t\t\t k=reader.nextInt();\n\t\t\t for(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\t arr[i]=reader.nextInt();\n\t\t\t }\n\t\t\t for(int i=0;i<n;i++)\n\t\t\t {\n\t\t\t\t if(arr[i]>=k)\n\t\t\t\t {\n\t\t\t\t\t cnt++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t System.out.println(cnt);\n\t\t\t}\n\t}"
Main.java:2: error: class, interface, enum, or record expected https://atcoder.jp/contests/abc142/tasks/abc142_b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u054143905|p02898|1
u054143905|p02898|0
codenet
Compile Error
596
v2_s057455481
s057455481
s057455481
p02898
p02898
u060569392
u060569392
1,570,398,828
2019-10-06T21:53:48
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int count = 0; for (int i=0; i<n; i++) { int x=sc.nextInt() if (x<k) ...
Main.java:11: error: ';' expected int x=sc.nextInt() ^ Main.java:19: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060569392|p02898|0
u060569392|p02898|0
codenet
Compile Error
418
v2_s871448261
s871448261
s871448261
p02898
p02898
u092025199
u092025199
1,571,345,523
2019-10-17T20:52:03
Main.java
import java.util.Scanner; pulbic class Main{ pubic static void main(String[] args){ Scanner sc.new Scanner(System.in); int n=sc.nextInt(); int h=sc.nextInt(); int[] a=new int[n]; int res=0; for(int i=0;i<n;i++){ a[i]=sc.nextInt(); res+=a[i]>=h?1:0; } System.out.print(r...
Main.java:3: error: class, interface, enum, or record expected pulbic class Main{ ^ Main.java:4: error: <identifier> expected pubic static void main(String[] args){ ^ Main.java:5: error: ';' expected Scanner sc.new Scanner(System.in); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092025199|p02898|0
u092025199|p02898|0
codenet
Compile Error
330
v2_s805196072
s805196072
s805196072
p02898
p02898
u221637105
u221637105
1,570,033,838
2019-10-02T16:30:38
Main.java
import java.util.*; import java.util.Collections; // sorting use import java.io.*; import static java.lang.System.*; public class Main { public static void main(String args[]) { int i, cnt = 0; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int h[] = new int[n]; for (i = 0...
Main.java:21: error: reached end of file while parsing out.println(cnt); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u221637105|p02898|0
u221637105|p02898|0
codenet
Compile Error
445
v2_s593820189
s593820189
s593820189
p02898
p02898
u251825204
u251825204
1,594,219,850
2020-07-08T14:50:50
Main.java
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 i = 0; i < N ; ++i){ int high = sc.nextInt(); if(high >= K){ count++; } } System.out.println(count); ...
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
u251825204|p02898|0
u251825204|p02898|0
codenet
Compile Error
329
v2_s027323863
s027323863
s027323863
p02898
p02898
u251825204
u251825204
1,594,219,925
2020-07-08T14:52:05
Main.java
public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int count = 0; while(sc.hasNext()){ int high = sc.nextInt(); if(high >= K){ count++; } } System.out.println(count); } ...
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
u251825204|p02898|0
u251825204|p02898|0
codenet
Compile Error
321
v2_s925880112
s925880112
s925880112
p02898
p02898
u251825204
u251825204
1,594,220,001
2020-07-08T14:53:21
Main.java
import java.util.*; public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int count = 0; while(sc.hasNext()){ int high = sc.nextInt(); if(high >= K){ count++; } } System.out.prin...
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:22: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251825204|p02898|0
u251825204|p02898|0
codenet
Compile Error
342
v2_s197116679
s197116679
s197116679
p02898
p02898
u284795785
u284795785
1,571,029,014
2019-10-14T04:56:54
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 a=1; int c=0; while(a<=n){ int h=sc.nextInt(); if(h>=k){ c++; } in...
Main.java:14: error: variable h is already defined in method main(String[]) int h=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02898|0
u284795785|p02898|0
codenet
Compile Error
389
v2_s927640258
s927640258
s927640258
p02898
p02898
u284795785
u284795785
1,571,029,064
2019-10-14T04:57:44
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int a=1; int c=0; while(a<=n){ int h=sc.nextInt(); if(h>=k){ c++; } in...
Main.java:20: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02898|0
u284795785|p02898|0
codenet
Compile Error
775
v2_s002684436
s002684436
s002684436
p02898
p02898
u284795785
u284795785
1,571,029,133
2019-10-14T04:58:53
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 a=1; int c=0; while(a<=n){ int h=sc.nextInt(); if(h>=k){ c++; } in...
Main.java:14: error: variable h is already defined in method main(String[]) int h=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02898|0
u284795785|p02898|0
codenet
Compile Error
389
v2_s924420839
s924420839
s924420839
p02898
p02898
u369712616
u369712616
1,584,268,002
2020-03-15T10:26:42
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int[] height = new int[n]; int num = 0; for(int i = 0; i < n; i++){ t = sc.nextInt(); if(t>=k){ num++; } ...
Main.java:10: error: cannot find symbol t = sc.nextInt(); ^ symbol: variable t location: class Main Main.java:11: error: cannot find symbol if(t>=k){ ^ symbol: variable t location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02898|0
u369712616|p02898|0
codenet
Compile Error
356
v2_s635922213
s635922213
s635922213
p02898
p02898
u411433053
u411433053
1,594,347,809
2020-07-10T02:23:29
Main.java
import java.io.*; import java.lang.*; 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 i = 0; i<n; i++) { int x = sc.nextInt(); if (x>=k) ...
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
u411433053|p02898|0
u411433053|p02898|0
codenet
Compile Error
387
v2_s201941120
s201941120
s201941120
p02898
p02898
u431125128
u431125128
1,569,938,899
2019-10-01T14:08:19
Main.java
public class Main{ public static void main(String[] args){ Scanner sc=new java.util.Scanner(System.in); int counter=0; final int N=sc.nextInt(); final int K=sc.nextInt(); int[] h=new int[N]; for(int i=0;i<N;i++){ h[i]=sc.nextInt(); } for(int i:h){ if(i>=K){ counter++; } } } }
Main.java:3: error: cannot find symbol Scanner sc=new java.util.Scanner(System.in); ^ symbol: class Scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p02898|0
u431125128|p02898|0
codenet
Compile Error
309
v2_s770188419
s770188419
s770188419
p02898
p02898
u505115437
u505115437
1,569,719,770
2019-09-29T01:16:10
Main.java
package test; 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 index=0; index<N; index++) { if (sc.nextInt()>=K) { count++; } } System.out.println(count); } }
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
u505115437|p02898|0
u505115437|p02898|0
codenet
Compile Error
308
v2_s875381281
s875381281
s875381281
p02898
p02898
u541055501
u541055501
1,570,310,734
2019-10-05T21:25:34
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); n=Integer.parseInt(sc.next()); k=Integer.parseInt(sc.next()); int res=0; for(int i=0; i<n; i++){ if(Integer.parseInt(sc.next())>=k){ ...
Main.java:6: error: cannot find symbol n=Integer.parseInt(sc.next()); ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol k=Integer.parseInt(sc.next()); ^ symbol: variable k location: class Main Main.java:9: error: cannot find symbol for(i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02898|0
u541055501|p02898|0
codenet
Compile Error
417
v2_s519305397
s519305397
s519305397
p02898
p02898
u675751622
u675751622
1,574,569,894
2019-11-24T04:31:34
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int limit = Integer.parseInt(sc.next()); int[] member = new int[n]; int count = 0; for(int i = 0; i < n; i++) { member[i] = Integer....
Main.java:12: error: cannot find symbol if(member[i] >= k) count++; ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p02898|0
u675751622|p02898|0
codenet
Compile Error
418