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_s445764871
s445764871
s445764871
p02594
p02594
u333260134
u333260134
1,596,416,632
2020-08-03T01:03:52
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); if(t>=30) System.out.println("Yes"); else System.out.println("No") } }
Main.java:9: error: ';' expected else System.out.println("No") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u333260134|p02594|0
u333260134|p02594|0
codenet
Compile Error
247
v2_s154474951
s154474951
s154474951
p02594
p02594
u350573240
u350573240
1,596,475,422
2020-08-03T17:23:42
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String s = sc.next(); int len = s.length(); int cnt=0; char[] sChars = s.toCharArray(); int leftindex=N-1; int rdcnt=0; int whcnt=0; for(int i=0;i<N;i+...
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
u350573240|p02594|1
u350573240|p02594|0
codenet
Compile Error
808
v2_s575402524
s575402524
s575402524
p02594
p02594
u358894498
u358894498
1,596,417,255
2020-08-03T01:14:15
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int x=sc.nextInt(); if(x>=30) { System.out.println("Yes") }else { System.out.println("No"); } } }
Main.java:9: error: ';' expected System.out.println("Yes") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358894498|p02594|0
u358894498|p02594|0
codenet
Compile Error
237
v2_s070494792
s070494792
s070494792
p02594
p02594
u460819600
u460819600
1,596,416,446
2020-08-03T01:00:46
Main.java
/* मनस्वी म्रियते कामं कार्पण्यं न तु गच्छति । अपि निर्वाणमायाति नानलो याति शीतताम् ॥ */ #include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; using namespace std; #define mod 1000000007 #define pb push_back #define ll long long i...
Main.java:6: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:6: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:12: error: illegal character: '#' #define mod 1000000007 ^ Main.java:12: error: class, interface, enum, or record expected #define mod 100000...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u460819600|p02594|0
u460819600|p02594|0
codenet
Compile Error
2,800
v2_s007213082
s007213082
s007213082
p02594
p02594
u464949032
u464949032
1,596,416,490
2020-08-03T01:01:30
Main.java
import java.util.*; import java.io.*; public class Main { static FastReader sc=new FastReader(); public static void main(String[] args) { int t = i(); if(t>=30){ System.out.println("Yes"); else System.out.println("No"); } ...
Main.java:15: error: 'else' without 'if' else ^ Main.java:25: error: illegal start of expression static void input(int A[]) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u464949032|p02594|0
u464949032|p02594|0
codenet
Compile Error
2,165
v2_s128854537
s128854537
s128854537
p02594
p02594
u478530879
u478530879
1,596,687,259
2020-08-06T04:14:19
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if (x >= 30) { System.out.println("Yes"); } else { System.out.println("No"); } } }
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
u478530879|p02594|0
u478530879|p02594|0
codenet
Compile Error
267
v2_s338114277
s338114277
s338114277
p02594
p02594
u485648967
u485648967
1,597,088,671
2020-08-10T19:44:31
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner (System.in); int a = sc.nextInt(); System.out.println(a >= 30 ? 'Yes' : 'No'); } }
Main.java:10: error: unclosed character literal System.out.println(a >= 30 ? 'Yes' : 'No'); ^ Main.java:10: error: unclosed character literal System.out.println(a >= 30 ? 'Yes' : 'No'); ^ Main.java:10: error: not a statement System.out.println(a >=...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485648967|p02594|0
u485648967|p02594|0
codenet
Compile Error
268
v2_s639199446
s639199446
s639199446
p02594
p02594
u495668613
u495668613
1,596,416,725
2020-08-03T01:05:25
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); if(num>=30) { System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495668613|p02594|0
u495668613|p02594|0
codenet
Compile Error
287
v2_s741228544
s741228544
s741228544
p02594
p02594
u511736427
u511736427
1,597,464,466
2020-08-15T04:07:46
Main.java
public static boolean test(int args){ return args >= 30 ? true : false; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static boolean test(int args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511736427|p02594|0
u511736427|p02594|0
codenet
Compile Error
75
v2_s212718061
s212718061
s212718061
p02594
p02594
u511736427
u511736427
1,597,464,599
2020-08-15T04:09:59
Main.java
public static String test(int args){ return args >= 30 ? "Yes" : "No"; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static String test(int args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511736427|p02594|0
u511736427|p02594|0
codenet
Compile Error
75
v2_s910202453
s910202453
s910202453
p02594
p02594
u527378230
u527378230
1,600,810,124
2020-09-22T21:28:44
Main.java
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); if(x>=30){System.out.println("Yes")}else{System.out.println("No")} } }
Main.java:7: error: ';' expected if(x>=30){System.out.println("Yes")}else{System.out.println("No")} ^ Main.java:7: error: ';' expected if(x>=30){System.out.println("Yes")}else{System.out.println("No")} ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u527378230|p02594|0
u527378230|p02594|0
codenet
Compile Error
249
v2_s951510285
s951510285
s951510285
p02594
p02594
u565440706
u565440706
1,597,199,854
2020-08-12T02:37:34
Main.java
//package A; //A - Air Conditioner import java.util.Scanner; public class Main { int temperature; public abc_174(int temperature) { this.temperature = temperature; if (this.temperature >= 30) System.out.println("Yes"); else System.out.println("No"); } pu...
Main.java:7: error: invalid method declaration; return type required public abc_174(int temperature) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u565440706|p02594|0
u565440706|p02594|0
codenet
Compile Error
540
v2_s604930551
s604930551
s604930551
p02594
p02594
u583294876
u583294876
1,599,687,691
2020-09-09T21:41:31
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = nwe Scanner(System.in); int temp = sc.nextInt(); if(30 <= temp){ System.out.println("Yes"); } else{ System.out.println("No"); } }
Main.java:5: error: ';' expected Scanner sc = nwe Scanner(System.in); ^ Main.java:13: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583294876|p02594|0
u583294876|p02594|0
codenet
Compile Error
258
v2_s619297011
s619297011
s619297011
p02594
p02594
u583294876
u583294876
1,599,687,746
2020-09-09T21:42:26
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int temp = sc.nextInt(); if(30 <= temp){ System.out.println("Yes"); } else{ System.out.println("No"); } }
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583294876|p02594|0
u583294876|p02594|0
codenet
Compile Error
259
v2_s948836512
s948836512
s948836512
p02594
p02594
u591423867
u591423867
1,597,169,540
2020-08-11T18:12:20
Main.java
public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String str = scanner.nextLine(); int input = Integer.parseInt(str); if (input >= 30) println("Yes"); else println("No"); } public static void println(String msg){ System.out.println(msg); }
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
u591423867|p02594|0
u591423867|p02594|0
codenet
Compile Error
286
v2_s825103924
s825103924
s825103924
p02594
p02594
u595323110
u595323110
1,596,416,618
2020-08-03T01:03:38
Main.java
class q1{ public static void main(String[] args) { Scanner in = new Scanner(System.in); long n = in.nextLong(); if(n >= 30){ System.out,println("YES"); } else{ System.out,println("NO"); } } }
Main.java:6: error: not a statement System.out,println("YES"); ^ Main.java:6: error: ';' expected System.out,println("YES"); ^ Main.java:9: error: not a statement System.out,println("NO"); ^ Main.java:9: error: ';' expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u595323110|p02594|0
u595323110|p02594|0
codenet
Compile Error
271
v2_s026542259
s026542259
s026542259
p02594
p02594
u601932003
u601932003
1,596,416,489
2020-08-03T01:01:29
Main.java
import java.util.*; import java.io.*; public class Main { public static class FastReader { private InputStream stream; private byte[] buf = new byte[4096]; private int curChar, snumChars; public FastReader(InputStream stream) { this.stream = stream; } public int read() { if (snumChars == ...
Main.java:133: error: cannot find symbol new Solution().solve(); ^ symbol: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u601932003|p02594|0
u601932003|p02594|0
codenet
Compile Error
2,808
v2_s025810907
s025810907
s025810907
p02594
p02594
u628847104
u628847104
1,597,043,849
2020-08-10T07:17:29
Main.java
class a { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n>20) System.out.println("yes"); else System.out.println("no"); } }
Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class a Main.java:5: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class a 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628847104|p02594|0
u628847104|p02594|0
codenet
Compile Error
210
v2_s457579320
s457579320
s457579320
p02594
p02594
u628847104
u628847104
1,597,044,029
2020-08-10T07:20:29
Main.java
import java.util.Scanner(); class a { public static void main(Strings args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n>20) System.out.println("yes"); else System.out.println("no"); } }
Main.java:1: error: ';' expected import java.util.Scanner(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628847104|p02594|0
u628847104|p02594|0
codenet
Compile Error
248
v2_s538404347
s538404347
s538404347
p02594
p02594
u628847104
u628847104
1,597,044,086
2020-08-10T07:21:26
Main.java
import java.util.*; class a { public static void main(Strings args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n>20) System.out.println("yes"); else System.out.println("no"); } }
Main.java:4: error: cannot find symbol public static void main(Strings args[]) ^ symbol: class Strings location: class a 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628847104|p02594|0
u628847104|p02594|0
codenet
Compile Error
240
v2_s077295511
s077295511
s077295511
p02594
p02594
u628847104
u628847104
1,597,044,117
2020-08-10T07:21:57
Main.java
import java.util.Scanner(); class a { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); if(n>20) System.out.println("yes"); else System.out.println("no"); } }
Main.java:1: error: ';' expected import java.util.Scanner(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u628847104|p02594|0
u628847104|p02594|0
codenet
Compile Error
247
v2_s540295210
s540295210
s540295210
p02594
p02594
u673238097
u673238097
1,597,295,678
2020-08-13T05:14:38
MM.java
//package com.company; import javafx.scene.chart.BarChart; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedHashSet; import java.util.Random; public class MM { public static void main(String[] args) throws IOException { BufferedReader r...
MM.java:3: error: package javafx.scene.chart does not exist import javafx.scene.chart.BarChart; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u673238097|p02594|0
u673238097|p02594|0
codenet
Compile Error
553
v2_s090972667
s090972667
s090972667
p02594
p02594
u743504636
u743504636
1,596,416,606
2020-08-03T01:03:26
Main.java
public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); //プログラムはここに記入 if(num>=30) { System.out.println("Yes"); }else { System.out.println("No"); } scan.close(); } }
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
u743504636|p02594|0
u743504636|p02594|0
codenet
Compile Error
282
v2_s757268253
s757268253
s757268253
p02594
p02594
u825976472
u825976472
1,596,860,694
2020-08-08T04:24:54
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner IN = new Scanner(System.in); int temp = IN.nextLine(); if(temp < 30) System.out.println("No"); else System.out.println("Yes"); } }
Main.java:6: error: incompatible types: String cannot be converted to int int temp = IN.nextLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825976472|p02594|0
u825976472|p02594|0
codenet
Compile Error
234
v2_s375600628
s375600628
s375600628
p02594
p02594
u825976472
u825976472
1,596,860,848
2020-08-08T04:27:28
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner IN = new Scanner(System.in); String temp = IN.nextLine(); int tem = String.parseInt(temp); if(temp < 30) System.out.println("No"); else System.out.println("Yes"); } }
Main.java:7: error: cannot find symbol int tem = String.parseInt(temp); ^ symbol: method parseInt(String) location: class String Main.java:8: error: bad operand types for binary operator '<' if(temp < 30) ^ first type: String second type: int 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825976472|p02594|0
u825976472|p02594|0
codenet
Compile Error
272
v2_s949834370
s949834370
s949834370
p02594
p02594
u825976472
u825976472
1,596,862,141
2020-08-08T04:49:01
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner IN = new Scanner(System.in); String temp = IN.nextLine(); int tem = String.parseInt(temp); if(tem.compareTo(30) < 0) System.out.println("No"); else System.out.println("Yes"); } }
Main.java:7: error: cannot find symbol int tem = String.parseInt(temp); ^ symbol: method parseInt(String) location: class String Main.java:8: error: int cannot be dereferenced if(tem.compareTo(30) < 0) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825976472|p02594|0
u825976472|p02594|0
codenet
Compile Error
284
v2_s712254939
s712254939
s712254939
p02594
p02594
u825976472
u825976472
1,596,862,188
2020-08-08T04:49:48
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner IN = new Scanner(System.in); String temp = IN.nextLine(); int tem = String.parseInt(temp); if(tem < 30) System.out.println("No"); else System.out.println("Yes"); } }
Main.java:7: error: cannot find symbol int tem = String.parseInt(temp); ^ symbol: method parseInt(String) location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825976472|p02594|0
u825976472|p02594|0
codenet
Compile Error
271
v2_s270562471
s270562471
s270562471
p02594
p02594
u825976472
u825976472
1,596,862,241
2020-08-08T04:50:41
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner IN = new Scanner(System.in); String temp = IN.nextLine(); int tem = temp.parseInt(); if(tem < 30) System.out.println("No"); else System.out.println("Yes"); } }
Main.java:7: error: cannot find symbol int tem = temp.parseInt(); ^ symbol: method parseInt() location: variable temp of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825976472|p02594|0
u825976472|p02594|0
codenet
Compile Error
265
v2_s042436513
s042436513
s042436513
p02594
p02594
u843125357
u843125357
1,596,574,872
2020-08-04T21:01:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner; int X = new sc.nextInt(); System.out.println(X < 30 ? "No" : "Yes"); } }
Main.java:5: error: '(' or '[' expected Scanner sc = new Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843125357|p02594|0
u843125357|p02594|0
codenet
Compile Error
229
v2_s357931107
s357931107
s357931107
p02594
p02594
u843125357
u843125357
1,596,574,901
2020-08-04T21:01:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner; int X = sc.nextInt(); System.out.println(X < 30 ? "No" : "Yes"); } }
Main.java:5: error: '(' or '[' expected Scanner sc = new Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u843125357|p02594|0
u843125357|p02594|0
codenet
Compile Error
226
v2_s115537822
s115537822
s115537822
p02594
p02594
u847400477
u847400477
1,596,416,467
2020-08-03T01:01:07
Main.java
#include<bits/stdc++.h> using namespace std; #define boost ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); #define mp make_pair #define pb push_back #define fp first #define sp second typedef long long int ll; typedef pair<ll,ll> pp; #define check(x, i) ((x>>i)&1LL) #define set(x,i) (x|(1LL<<i)) #define unset(x,i) ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define boost ios::sync_with_stdio(false);cin.tie(0);cout.tie(0); ^ Main.java:3: error: class, interface, enum,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u847400477|p02594|0
u847400477|p02594|0
codenet
Compile Error
986
v2_s472167297
s472167297
s472167297
p02594
p02594
u851106150
u851106150
1,596,416,661
2020-08-03T01:04:21
Main.java
import java.io.*; public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ String a = br.readLine(); int X = Integer.parseInt(a); if(X >= 30){ System.out.println("Yes"); }else{ System.out.println("No"); ...
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
u851106150|p02594|0
u851106150|p02594|0
codenet
Compile Error
396
v2_s639599982
s639599982
s639599982
p02594
p02594
u852710721
u852710721
1,596,417,290
2020-08-03T01:14:50
AC.java
import java.util.Scanner; public class AC { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); if(X >= 30) { System.out.println("Yes"); }else { System.out.println("No"); } }
AC.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852710721|p02594|0
u852710721|p02594|0
codenet
Compile Error
244
v2_s476677601
s476677601
s476677601
p02594
p02594
u852710721
u852710721
1,596,417,550
2020-08-03T01:19:10
shgd.java
import java.util.Scanner; public class shgd { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int y = 9; while(y!=8){ int X = sc.nextInt(); if(X >= 30) { System.out.println("Yes"); }else { System.out.println("No"); } } }
shgd.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852710721|p02594|0
u852710721|p02594|0
codenet
Compile Error
287
v2_s202642510
s202642510
s202642510
p02594
p02594
u852710721
u852710721
1,596,417,612
2020-08-03T01:20:12
shgd.java
import java.util.Scanner; public class shgd { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for(int i=0,i<=1,i++){ int X = sc.nextInt(); if(X >= 30) { System.out.println("Yes"); }else { System.out.println("No"); } } }
shgd.java:7: error: ';' expected for(int i=0,i<=1,i++){ ^ shgd.java:7: error: ';' expected for(int i=0,i<=1,i++){ ^ shgd.java:15: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852710721|p02594|0
u852710721|p02594|0
codenet
Compile Error
279
v2_s043692237
s043692237
s043692237
p02594
p02594
u856422788
u856422788
1,597,751,777
2020-08-18T11:56:17
A.java
public class A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temperature = sc.nextInt(); if (temperature >= 30) System.out.println("Yes"); else System.out.println("No"); } }
A.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A A.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856422788|p02594|0
u856422788|p02594|0
codenet
Compile Error
252
v2_s482513892
s482513892
s482513892
p02594
p02594
u882911155
u882911155
1,596,416,722
2020-08-03T01:05:22
Main.java
import java.util.*; class Main{ pulic static void main(String args[]){ Scanner s = new Scanner(System.in); int n = s.nextInt(); if(n>=30) System.out.println("Yes"); else System.out.println("No"); } }
Main.java:5: error: <identifier> expected pulic static void main(String args[]){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u882911155|p02594|0
u882911155|p02594|0
codenet
Compile Error
247
v2_s790124596
s790124596
s790124596
p02594
p02594
u897853321
u897853321
1,596,423,661
2020-08-03T03:01:01
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdinScanner = new Scanner(System.in); int K = stdinScanner.nextInt(); int count = 1; int current = 7; while (count <= K) { if (current % K == 0) { System.ou...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02594|0
u897853321|p02594|0
codenet
Compile Error
492
v2_s917234551
s917234551
s917234551
p02594
p02594
u952060066
u952060066
1,596,417,309
2020-08-03T01:15:09
Main.java
import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Strin...
Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:10: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u952060066|p02594|0
u952060066|p02594|0
codenet
Compile Error
524
v2_s430063091
s430063091
s430063091
p02594
p02594
u982242268
u982242268
1,598,382,241
2020-08-25T19:04:01
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n >= 30) Sysetm.out.println("Yes"); else System.out.println("No"); } }
Main.java:6: error: package Sysetm does not exist if(n >= 30) Sysetm.out.println("Yes"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02594|0
u982242268|p02594|0
codenet
Compile Error
306
v2_s898212161
s898212161
s898212161
p02594
p02594
u994856493
u994856493
1,596,419,002
2020-08-03T01:43:22
Main.java
import java.util.*; Class Temperature{ public static void main(String args){ Scanner s=new Scanner(); int temp=s.nextInt(); if(temp>30){ System.out.print('Yes'); } else{ System.out.println('No); } } }
Main.java:3: error: class, interface, enum, or record expected Class Temperature{ ^ Main.java:12: error: unclosed character literal System.out.print('Yes'); ^ Main.java:12: error: unclosed character literal System.out.print('Yes'); ^ Main.java:12: error: not a statement S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u994856493|p02594|0
u994856493|p02594|0
codenet
Compile Error
226
v2_s988618344
s988618344
s988618344
p02594
p02594
u994856493
u994856493
1,596,419,189
2020-08-03T01:46:29
Temperature.java
import java.util.*; public class Temperature{ public static void main(String[] args){ Scanner s=new Scanner(); int temp=s.nextInt(); if(temp>30){ System.out.print('Yes'); } else{ System.out.println('No'); } } }
Temperature.java:12: error: unclosed character literal System.out.print('Yes'); ^ Temperature.java:12: error: unclosed character literal System.out.print('Yes'); ^ Temperature.java:12: error: not a statement System.out.print('Yes'); ^ Temperature.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u994856493|p02594|0
u994856493|p02594|0
codenet
Compile Error
242
v2_s464286189
s464286189
s464286189
p02594
p02594
u994856493
u994856493
1,596,419,311
2020-08-03T01:48:31
Temperature.java
import java.util.*; public class Temperature{ public static void main(String[] args){ Scanner s=new Scanner(); int temp=s.nextInt(); if(temp>=30){ System.out.println("Yes"); } else{ System.out.println("No"); } } }
Temperature.java:8: error: no suitable constructor found for Scanner(no arguments) Scanner s=new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (act...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u994856493|p02594|0
u994856493|p02594|0
codenet
Compile Error
245
v2_s786785440
s786785440
s786785440
p02594
p02594
u996972551
u996972551
1,596,416,607
2020-08-03T01:03:27
Main.java
'Yes'
Main.java:1: error: unclosed character literal 'Yes' ^ Main.java:1: error: unclosed character literal 'Yes' ^ Main.java:1: error: reached end of file while parsing 'Yes' ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u996972551|p02594|0
u996972551|p02594|0
codenet
Compile Error
5
v2_s509429585
s509429585
s509429585
p02595
p02595
u008688016
u008688016
1,596,429,216
2020-08-03T04:33:36
Main.java
import java.util.Scanner; import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in){ long N=sc.nextLong(); long D=sc.nextLong(); int count=0; while(N){ long X1=sc.nextLong(); long Y1=sc.nextLong(); long distance=Ma...
Main.java:10: error: illegal start of type while(N){ ^ Main.java:10: error: <identifier> expected while(N){ ^ Main.java:19: error: <identifier> expected System.out.println(count); ^ Main.java:19: error: <identifier> expected System.out.println(count); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u008688016|p02595|0
u008688016|p02595|0
codenet
Compile Error
466
v2_s566171574
s566171574
s566171574
p02595
p02595
u125155118
u125155118
1,596,420,260
2020-08-03T02:04:20
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); long d = scan.nextInt(); int count = 0; for(int i = 0; i < n; i++) { long x = scan.nextLong(); long y = scan.nextLong(); lo...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u125155118|p02595|0
u125155118|p02595|0
codenet
Compile Error
520
v2_s548605601
s548605601
s548605601
p02595
p02595
u132094168
u132094168
1,596,417,283
2020-08-03T01:14:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); // スペース区切りの整数の入力 int D = sc.nextInt(); for (int i = 0; i < N; i++){ int X(i) = sc.nextInt(); int Y(i) = sc.nextInt(); } int L; ...
Main.java:10: error: ';' expected int X(i) = sc.nextInt(); ^ Main.java:10: error: not a statement int X(i) = sc.nextInt(); ^ Main.java:10: error: ';' expected int X(i) = sc.nextInt(); ^ Main.java:11: error: ';' expected int Y(i) = sc.nextInt(); ^ Main.java:11: error: not a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
572
v2_s057837743
s057837743
s057837743
p02595
p02595
u132094168
u132094168
1,596,417,440
2020-08-03T01:17:20
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); // スペース区切りの整数の入力 int D = sc.nextInt(); int X[]; a = new int[N+1]; int Y[]; a = new int[N+1]; for (int i = 0; i < N; i++){ X(i) = ...
Main.java:10: error: cannot find symbol a = new int[N+1]; ^ symbol: variable a location: class Main Main.java:12: error: cannot find symbol a = new int[N+1]; ^ symbol: variable a location: class Main Main.java:14: error: cannot find symbol X(i) = sc.nextInt(); ^ symbol: method X(int) l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
640
v2_s085900754
s085900754
s085900754
p02595
p02595
u132094168
u132094168
1,596,417,544
2020-08-03T01:19:04
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 D = sc.nextInt(); int X[]; a = new int[N+1]; int Y[]; a = new int[N+1]; for (int i = 0; i < N; i++){ X[i] = ...
Main.java:10: error: cannot find symbol a = new int[N+1]; ^ symbol: variable a location: class Main Main.java:12: error: cannot find symbol a = new int[N+1]; ^ symbol: variable a location: class Main Main.java:20: error: cannot find symbol for (int i = 0; i < n; i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
641
v2_s600724784
s600724784
s600724784
p02595
p02595
u132094168
u132094168
1,596,418,114
2020-08-03T01:28:34
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 D = sc.nextInt(); int X[]; X = new int[N+1]; int Y[]; Y = new int[N+1]; for (int i = 0; i < N; i++){ X[i] = ...
Main.java:23: error: bad operand types for binary operator '<=' if (L<=D){ ^ first type: int[] second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
669
v2_s252328518
s252328518
s252328518
p02595
p02595
u132094168
u132094168
1,596,419,290
2020-08-03T01:48:10
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 D = sc.nextInt(); int X[]; X = new int[N]; int Y[]; Y = new int[N]; for (int i = 0; i < N; i++){ X[i] = sc.n...
Main.java:22: error: bad operand types for binary operator '^' L[j]=((X[j])^2+(Y[j])^2)^(0.5); ^ first type: int second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
672
v2_s190555087
s190555087
s190555087
p02595
p02595
u132094168
u132094168
1,596,419,449
2020-08-03T01:50:49
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 D = sc.nextInt(); int X[]; X = new int[N]; int Y[]; Y = new int[N]; for (int i = 0; i < N; i++){ X[i] = sc.n...
Main.java:21: error: bad operand types for binary operator '^' L=((X[j])^2+(Y[j])^2)^(0.5); ^ first type: int second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
645
v2_s563802527
s563802527
s563802527
p02595
p02595
u132094168
u132094168
1,596,419,808
2020-08-03T01:56: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 D = sc.nextInt(); int A[]; A = new int[N]; int B[]; B = new int[N]; for (int i = 0; i < N; i++){ A[i] = sc.n...
Main.java:18: error: incompatible types: int[] cannot be converted to double[] X = new int[N]; ^ Main.java:20: error: incompatible types: int[] cannot be converted to double[] Y = new int[N]; ^ Main.java:29: error: bad operand types for binary operator '^' L=((X[j])^2+(Y[j])^2)^(1/2); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
802
v2_s481865337
s481865337
s481865337
p02595
p02595
u132094168
u132094168
1,596,419,819
2020-08-03T01:56:59
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 D = sc.nextInt(); int A[]; A = new int[N]; int B[]; B = new int[N]; for (int i = 0; i < N; i++){ A[i] = sc.n...
Main.java:18: error: incompatible types: int[] cannot be converted to double[] X = new int[N]; ^ Main.java:20: error: incompatible types: int[] cannot be converted to double[] Y = new int[N]; ^ Main.java:29: error: bad operand types for binary operator '^' L=((X[j])^2+(Y[j])^2)^(1/2); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
802
v2_s911708660
s911708660
s911708660
p02595
p02595
u132094168
u132094168
1,596,419,955
2020-08-03T01:59:15
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 D = sc.nextInt(); int A[]; A = new int[N]; int B[]; B = new int[N]; for (int i = 0; i < N; i++){ A[i] = sc.n...
Main.java:29: error: bad operand types for binary operator '^' L=((X[j])^2+(Y[j])^2)^(1/2); ^ first type: double second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
808
v2_s094599236
s094599236
s094599236
p02595
p02595
u132094168
u132094168
1,596,420,022
2020-08-03T02:00:22
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 D = sc.nextInt(); int A[]; A = new int[N]; int B[]; B = new int[N]; for (int i = 0; i < N; i++){ A[i] = sc.n...
Main.java:29: error: bad operand types for binary operator '^' L=((X[j]*X[j])+(Y[j]*Y[j]))^(0.5); ^ first type: double second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
814
v2_s697662165
s697662165
s697662165
p02595
p02595
u132094168
u132094168
1,596,420,088
2020-08-03T02:01:28
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 D = sc.nextInt(); int A[]; A = new int[N]; int B[]; B = new int[N]; for (int i = 0; i < N; i++){ A[i] = sc.n...
Main.java:29: error: cannot find symbol L=sqrt((X[j]*X[j])+(Y[j]*Y[j])); ^ symbol: method sqrt(double) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02595|0
u132094168|p02595|0
codenet
Compile Error
812
v2_s092578693
s092578693
s092578693
p02595
p02595
u133832537
u133832537
1,596,417,183
2020-08-03T01:13:03
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int n,x,y,count=0; long double d; Scanner sc=new Scanner(System.in); n=sc.nextInt(); d=sc.nextInt(); for(int i=0;i<n;i++){ x=sc.nextInt(); y=sc.nextInt(); lon...
Main.java:6: error: not a statement long double d; ^ Main.java:6: error: ';' expected long double d; ^ Main.java:14: error: not a statement long double d_i=Math.sqrt((x*x)+(y*y)); ^ Main.java:14: error: ';' expected long double d_i=Math.sqrt((x*x)+...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u133832537|p02595|0
u133832537|p02595|0
codenet
Compile Error
441
v2_s769896453
s769896453
s769896453
p02595
p02595
u135363744
u135363744
1,596,417,285
2020-08-03T01:14:45
Main.java
import java.util.*; class Main{ private int Num,Dis; private int[] Xa,Ya; public static void main(String[] args){ Scanner sc = new Scanner(System.in); Num = sc.nextInt(); Dis = sc.nextInt(); for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); } int R = 0; f...
Main.java:8: error: non-static variable Num cannot be referenced from a static context Num = sc.nextInt(); ^ Main.java:9: error: non-static variable Dis cannot be referenced from a static context Dis = sc.nextInt(); ^ Main.java:10: error: non-static variable Num cannot be referenced from a static contex...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02595|0
u135363744|p02595|0
codenet
Compile Error
517
v2_s436025241
s436025241
s436025241
p02595
p02595
u135363744
u135363744
1,596,417,338
2020-08-03T01:15:38
Main.java
import java.util.*; class Main{ public int Num,Dis; public int[] Xa,Ya; public static void main(String[] args){ Scanner sc = new Scanner(System.in); Num = sc.nextInt(); Dis = sc.nextInt(); for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); } int R = 0; fo...
Main.java:8: error: non-static variable Num cannot be referenced from a static context Num = sc.nextInt(); ^ Main.java:9: error: non-static variable Dis cannot be referenced from a static context Dis = sc.nextInt(); ^ Main.java:10: error: non-static variable Num cannot be referenced from a static contex...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02595|0
u135363744|p02595|0
codenet
Compile Error
516
v2_s537829136
s537829136
s537829136
p02595
p02595
u135363744
u135363744
1,596,417,459
2020-08-03T01:17:39
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int Num = sc.nextInt(); int Dis = sc.nextInt(); int[] Xa = new int[Num]; int[] Ya = new int[Num}; for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); }...
Main.java:9: error: ']' expected int[] Ya = new int[Num}; ^ Main.java:10: error: illegal start of type for(int i=0;i<Num;i++){ ^ Main.java:10: error: > or ',' expected for(int i=0;i<Num;i++){ ^ Main.java:10: error: <identifier> expected for(int i=0;i<Nu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02595|0
u135363744|p02595|0
codenet
Compile Error
471
v2_s786889286
s786889286
s786889286
p02595
p02595
u135363744
u135363744
1,596,417,509
2020-08-03T01:18:29
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int Num = sc.nextInt(); int Dis = sc.nextInt(); int[] Xa = new int[Num]; int[] Ya = new int[Num]; for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); }...
Main.java:16: error: cannot find symbol if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++; ^ symbol: variable i location: class Main Main.java:16: error: cannot find symbol if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02595|0
u135363744|p02595|0
codenet
Compile Error
468
v2_s319412771
s319412771
s319412771
p02595
p02595
u135363744
u135363744
1,596,417,545
2020-08-03T01:19:05
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int Num = sc.nextInt(); int Dis = sc.nextInt(); int[] Xa = new int[Num]; int[] Ya = new int[Num]; for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); }...
Main.java:16: error: cannot find symbol if(Math.pow(Xa[k],2)+Math.pow(Y[k],2)<=Math.pow(Dis,2))R++; ^ symbol: variable Y location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02595|0
u135363744|p02595|0
codenet
Compile Error
468
v2_s915247011
s915247011
s915247011
p02595
p02595
u153350126
u153350126
1,596,433,912
2020-08-03T05:51:52
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); int N=in.nextInt(); int D=in.nextInt(); int x[]=new int[100000]; int y[]=new int[100000]; int i=0; int count=0; int res[]=new in...
Main.java:19: error: incompatible types: possible lossy conversion from double to int res[i]=Math.sqrt(Math.pow(x[i],2) + Math.pow(y[i],2)); ^ Main.java:20: error: bad operand types for binary operator '>=' if(res>=D){ ^ first type: int[] second type: int 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153350126|p02595|0
u153350126|p02595|0
codenet
Compile Error
624
v2_s444659084
s444659084
s444659084
p02595
p02595
u153350126
u153350126
1,596,434,087
2020-08-03T05:54:47
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); int N=in.nextInt(); int D=in.nextInt(); int x[]=new int[100000]; int y[]=new int[100000]; int i=0; int count=0; int res[]=new in...
Main.java:19: error: incompatible types: possible lossy conversion from double to int res[i]=Math.sqrt(Math.pow(x[i],2) + Math.pow(y[i],2)); ^ Main.java:20: error: bad operand types for binary operator '>=' if(res>=D){ ^ first type: int[] second type: int 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153350126|p02595|0
u153350126|p02595|0
codenet
Compile Error
624
v2_s342582348
s342582348
s342582348
p02595
p02595
u191257442
u191257442
1,596,417,768
2020-08-03T01:22:48
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int c = 0; int N = sc.nextInt(); int D = sc.nextInt(); double[] X = new double[N]; double[] Y = new double[N]; double[] X2 = new double[N]; double[] Y2 = ...
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
u191257442|p02595|0
u191257442|p02595|0
codenet
Compile Error
750
v2_s635745900
s635745900
s635745900
p02595
p02595
u217504179
u217504179
1,597,021,695
2020-08-10T01:08:15
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int d=sc.nextInt(); int count=0l for(int i=0;i<n;i++) { int x=sc.nextInt(); int y=sc.nextInt(); if(Math.sqrt(Math.pow(x,2)+...
Main.java:9: error: ';' expected int count=0l ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217504179|p02595|0
u217504179|p02595|0
codenet
Compile Error
406
v2_s617228120
s617228120
s617228120
p02595
p02595
u217504179
u217504179
1,597,022,078
2020-08-10T01:14:38
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int d=sc.nextInt(); int count=0; for(int i=0;i<n;i++) { int x=sc.nextInt(); int y=sc.nextInt(); double ans=(x*x)+(y*y) ...
Main.java:14: error: ';' expected double ans=(x*x)+(y*y) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217504179|p02595|0
u217504179|p02595|0
codenet
Compile Error
420
v2_s676111422
s676111422
s676111422
p02595
p02595
u325545467
u325545467
1,596,416,910
2020-08-03T01:08:30
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); double d=sc.nextDouble(); double x=0,y=0; int count=0; for(int i=0;i<n;i++) { x=sc.nextDouble(); y=sc.nextDouble(); ...
Main.java:16: error: ';' expected double val=(x*x)+(y*y) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u325545467|p02595|0
u325545467|p02595|0
codenet
Compile Error
454
v2_s076721393
s076721393
s076721393
p02595
p02595
u326593284
u326593284
1,597,468,470
2020-08-15T05:14:30
Main.java
public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int[] point = new int[2]; int N = sc.nextInt(); int D = sc.nextInt(); int ans = 0; for(int i = 0; i < N; i++) { ...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u326593284|p02595|0
u326593284|p02595|0
codenet
Compile Error
613
v2_s200381438
s200381438
s200381438
p02595
p02595
u330907398
u330907398
1,597,964,788
2020-08-20T23:06:28
Main.java
public class Main { public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); int D = new java.util.Scanner(System.in).nextInt(); int counts = 0; for (i = 0; i < N; i++) { int X_i = new java.util.Scanner(System.in).nextInt(); int Y_i = new java.util.Scann...
Main.java:13: error: ';' expected System.out.println(counts) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02595|0
u330907398|p02595|0
codenet
Compile Error
496
v2_s185803132
s185803132
s185803132
p02595
p02595
u330907398
u330907398
1,597,964,815
2020-08-20T23:06:55
Main.java
public class Main { public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); int D = new java.util.Scanner(System.in).nextInt(); int counts = 0; for (i = 0; i < N; i++) { int X_i = new java.util.Scanner(System.in).nextInt(); int Y_i = new java.util.Scann...
Main.java:6: error: cannot find symbol for (i = 0; i < N; i++) { ^ symbol: variable i location: class Main Main.java:6: error: cannot find symbol for (i = 0; i < N; i++) { ^ symbol: variable i location: class Main Main.java:6: error: cannot find symbol for (i = 0; i < N;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02595|0
u330907398|p02595|0
codenet
Compile Error
497
v2_s962706975
s962706975
s962706975
p02595
p02595
u330907398
u330907398
1,598,048,896
2020-08-21T22:28:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.next(); int D = sc.next(); int counts = 0; for (int i = 1; i < N + 1; i++) { int X_i = new java.util.Scanner(System.in).nextInt(); int Y_i = new java.u...
Main.java:5: error: incompatible types: String cannot be converted to int int N = sc.next(); ^ Main.java:6: error: incompatible types: String cannot be converted to int int D = sc.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02595|2
u330907398|p02595|1
codenet
Compile Error
497
v2_s105175503
s105175503
s105175503
p02595
p02595
u330907398
u330907398
1,598,049,930
2020-08-21T22:45:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long D = sc.nextLong(); long X = 0; Long Y = 0; int counts = 0; for (int i = 0; i < N; i++) { long X = sc.nextLong(); long Y = sc.nextLo...
Main.java:8: error: incompatible types: int cannot be converted to Long Long Y = 0; ^ Main.java:11: error: variable X is already defined in method main(String[]) long X = sc.nextLong(); ^ Main.java:12: error: variable Y is already defined in method main(String[]) long Y = sc.next...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02595|2
u330907398|p02595|1
codenet
Compile Error
450
v2_s031727689
s031727689
s031727689
p02595
p02595
u330907398
u330907398
1,598,049,952
2020-08-21T22:45:52
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long D = sc.nextLong(); long X = 0; long Y = 0; int counts = 0; for (int i = 0; i < N; i++) { long X = sc.nextLong(); long Y = sc.nextLo...
Main.java:11: error: variable X is already defined in method main(String[]) long X = sc.nextLong(); ^ Main.java:12: error: variable Y is already defined in method main(String[]) long Y = sc.nextLong(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02595|2
u330907398|p02595|1
codenet
Compile Error
450
v2_s321658274
s321658274
s321658274
p02595
p02595
u337422143
u337422143
1,599,880,579
2020-09-12T03:16:19
Distance.java
import java.util.*; public class Distance{ public static void main(String[] args){ Scanner x =new Scanner(System.in); int size=x.nextInt(); int max=x.nextInt(); int count=0; while(size-->0) { int a=x.nextInt(); int b=x.nextInt(); if(a^2+b^2<=max^2)...
Distance.java:12: error: bad operand types for binary operator '^' if(a^2+b^2<=max^2){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u337422143|p02595|0
u337422143|p02595|0
codenet
Compile Error
403
v2_s599421841
s599421841
s599421841
p02595
p02595
u337422143
u337422143
1,599,891,639
2020-09-12T06:20:39
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner x =new Scanner(System.in); int size=x.nextInt(); int max=x.nextInt(); int count=0; while(size-->0) { int a=x.nextInt(); int b=x.nextInt(); if(a^2+b^2<=max^2){ ...
Main.java:12: error: bad operand types for binary operator '^' if(a^2+b^2<=max^2){ ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u337422143|p02595|1
u337422143|p02595|0
codenet
Compile Error
399
v2_s419514779
s419514779
s419514779
p02595
p02595
u362532770
u362532770
1,597,172,797
2020-08-11T19:06:37
Main.java
import java.util.*; class { public static void main(String[] args) { Scanner x= new Scanner(System.in); int n = x.nextInt(); int d = x.nextInt(); double[]nums = new double[n]; for(int i = 0 ; i < n;i++){ double a = x.nextDouble(); double b = x.nextDouble(); a ...
Main.java:4: error: <identifier> expected class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362532770|p02595|0
u362532770|p02595|0
codenet
Compile Error
609
v2_s567017854
s567017854
s567017854
p02595
p02595
u362532770
u362532770
1,597,172,819
2020-08-11T19:06:59
Main.java
package javaapplication227; import java.util.*; Class JavaApplication227 { public static void main(String[] args) { Scanner x= new Scanner(System.in); int n = x.nextInt(); int d = x.nextInt(); double[]nums = new double[n]; for(int i = 0 ; i < n;i++){ double a = x.nextDoubl...
Main.java:5: error: class, interface, enum, or record expected Class JavaApplication227 { ^ Main.java:8: 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:31: error: cl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362532770|p02595|0
u362532770|p02595|0
codenet
Compile Error
655
v2_s372117244
s372117244
s372117244
p02595
p02595
u374795478
u374795478
1,596,657,390
2020-08-05T19:56: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(); long d = sc.nextLong(); int ans = 0; for (int i = 0; i < n; i++) { long x = sc.nextInt(); Long y = sc.nextInt(); if (x * x + y * y...
Main.java:12: error: incompatible types: int cannot be converted to Long Long y = sc.nextInt(); ^ Main.java:14: error: cannot find symbol answer++; ^ symbol: variable answer location: class Main Main.java:17: error: cannot find symbol System.out.println(answer); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374795478|p02595|0
u374795478|p02595|0
codenet
Compile Error
403
v2_s620093449
s620093449
s620093449
p02595
p02595
u374795478
u374795478
1,596,657,494
2020-08-05T19:58:14
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(); long d = sc.nextLong(); int ans = 0; for (int i = 0; i < n; i++) { long x = sc.nextInt(); Long y = sc.nextInt(); if (x * x + y * y...
Main.java:12: error: incompatible types: int cannot be converted to Long Long y = sc.nextInt(); ^ Main.java:17: error: cannot find symbol System.out.println(answer); ^ symbol: variable answer location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374795478|p02595|0
u374795478|p02595|0
codenet
Compile Error
400
v2_s120740363
s120740363
s120740363
p02595
p02595
u376348462
u376348462
1,596,519,864
2020-08-04T05:44:24
Main.java
/*package whatever //do not write package name here */ import java.io.*; import java.util.Scanner; class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int count = 0; long d = in.nextInt(); d = d*d; for(int i=0;i<n;i++) { ...
Main.java:16: error: '.class' expected long sq = long(x*x + y*y); ^ Main.java:16: error: not a statement long sq = long(x*x + y*y); ^ Main.java:16: error: ';' expected long sq = long(x*x + y*y); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u376348462|p02595|1
u376348462|p02595|1
codenet
Compile Error
524
v2_s968755623
s968755623
s968755623
p02595
p02595
u385344263
u385344263
1,596,416,957
2020-08-03T01:09:17
Main.java
import java.io.*; import java.util.*; public class Main static class FastReader{ BufferedReader br; StringTokenizer st; public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));} String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokeniz...
Main.java:3: error: '{' expected public class Main ^ Main.java:16: error: unnamed classes are a preview feature and are disabled by default. static int getGcd(int n1,int n2){ ^ (use --enable-preview to enable unnamed classes) Main.java:69: error: class, interface, enum, or record expec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u385344263|p02595|0
u385344263|p02595|0
codenet
Compile Error
2,318
v2_s752730664
s752730664
s752730664
p02595
p02595
u427226082
u427226082
1,596,489,775
2020-08-03T21:22:55
Main.java
public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int ans = 0; for (int i = 1; i < n; i++) { int x = i; int y = i; if((x*x+y*y)<=d*d){ ans += 1; } } System.out.println(ans); } }
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:16: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427226082|p02595|0
u427226082|p02595|0
codenet
Compile Error
310
v2_s263084454
s263084454
s263084454
p02595
p02595
u506422818
u506422818
1,598,070,545
2020-08-22T04:29:05
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] x = sc.nextLine().split(" "); int answer = 0; int d = Integer.parseInt(x[1]); for (int i =0;i < Integer.parseInt(x[0]);i++) { String[] y = sc.nextLine().split(" "); int s = Integer.parseInt(y[0...
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
u506422818|p02595|0
u506422818|p02595|0
codenet
Compile Error
474
v2_s114095873
s114095873
s114095873
p02595
p02595
u543467961
u543467961
1,597,591,829
2020-08-16T15:30:29
Main.java
int n = in.nextInt(); long d = in.nextInt(); d = d * d; Point[] points = Point.readPoints(in, n); int answer = 0; for (Point p : points) { if (p.x * p.x + p.y * p.y <= d) answer++; } out.println(answer);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n = in.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected d = d * d; ^ Main.java:7: error: class, interface, enum, or record expected for (Point p : poin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u543467961|p02595|0
u543467961|p02595|0
codenet
Compile Error
217
v2_s059902354
s059902354
s059902354
p02595
p02595
u543467961
u543467961
1,597,591,897
2020-08-16T15:31:37
Main.java
int n = in.nextInt(); long d = in.nextInt(); d = d * d; Point[] points = Point.readPoints(in, n); int answer = 0; for (Point p : points) { if (p.x * p.x + p.y * p.y <= d) answer++; } out.println(answer);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n = in.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected d = d * d; ^ Main.java:7: error: class, interface, enum, or record expected for (Point p : poin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u543467961|p02595|0
u543467961|p02595|0
codenet
Compile Error
217
v2_s486890230
s486890230
s486890230
p02595
p02595
u556589653
u556589653
1,596,929,608
2020-08-08T23:33:28
main.java
import java.util.Scanner; public class main(){ public static void (String[] args){ Scanner scan = new Scanner (System.in); int n; long d; n = scan.nextInt(); d = scan.nextlong(); int ans = 0; for (int i = 0; i < n; i++){ long x,y; x = scan.nextlong(); y = scan.nextlong();...
main.java:2: error: '{' expected public class main(){ ^ main.java:3: error: <identifier> expected public static void (String[] args){ ^ main.java:19: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556589653|p02595|0
u556589653|p02595|0
codenet
Compile Error
401
v2_s090518606
s090518606
s090518606
p02595
p02595
u556589653
u556589653
1,596,929,649
2020-08-08T23:34:09
Main.java
import java.util.Scanner; public class Main(){ public static void (String[] args){ Scanner scan = new Scanner (System.in); int n; long d; n = scan.nextInt(); d = scan.nextlong(); int ans = 0; for (int i = 0; i < n; i++){ long x,y; x = scan.nextlong(); y = scan.nextlong();...
Main.java:2: error: '{' expected public class Main(){ ^ Main.java:3: error: <identifier> expected public static void (String[] args){ ^ Main.java:19: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556589653|p02595|0
u556589653|p02595|0
codenet
Compile Error
402
v2_s513294442
s513294442
s513294442
p02595
p02595
u556589653
u556589653
1,596,929,700
2020-08-08T23:35:00
Main.java
import java.util.Scanner; public class Main(){ public static void (String[] args){ Scanner scan = new Scanner (System.in); int n; long d; n = scan.nextInt(); d = scan.nextlong(); int ans = 0; for (int i = 0; i < n; i++){ long x,y; x = scan.nextlong(); y = scan.nextlong();...
Main.java:2: error: '{' expected public class Main(){ ^ Main.java:3: error: <identifier> expected public static void (String[] args){ ^ Main.java:19: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556589653|p02595|0
u556589653|p02595|0
codenet
Compile Error
408
v2_s253136252
s253136252
s253136252
p02595
p02595
u556589653
u556589653
1,596,929,801
2020-08-08T23:36:41
Main.java
import java.util.Scanner; public class Main(){ public static void main (String[] args){ Scanner scan = new Scanner (System.in); int n; long d; n = scan.nextInt(); d = scan.nextlong(); int ans = 0; for (int i = 0; i < n; i++){ long x,y; x = scan.nextlong(); y = scan.nextlo...
Main.java:2: error: '{' expected public class Main(){ ^ Main.java:19: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556589653|p02595|0
u556589653|p02595|0
codenet
Compile Error
413
v2_s683168147
s683168147
s683168147
p02595
p02595
u583294876
u583294876
1,599,687,207
2020-09-09T21:33:27
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextLong(); long d = sc.nextLong(); long count = 0; for(int i = 0;i < num;i++){ long p = sc.nextLong(); long q = sc.nextLong(); long dis = Math.sqrt(p...
Main.java:6: error: incompatible types: possible lossy conversion from long to int int num = sc.nextLong(); ^ Main.java:12: error: incompatible types: possible lossy conversion from double to long long dis = Math.sqrt(p * p + q * q); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u583294876|p02595|0
u583294876|p02595|0
codenet
Compile Error
422
v2_s308996583
s308996583
s308996583
p02595
p02595
u681661864
u681661864
1,596,417,305
2020-08-03T01:15:05
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); int N= sc.nextInt(); long D=Math(sc.nextInt(),2); long d[]= new long[N]; int ans =0; for(int i=0; i<N; i++){ d[i]= Math.pow(sc.nextInt(),2)+ Math.pow(sc.nextInt(),2); ...
Main.java:7: error: cannot find symbol long D=Math(sc.nextInt(),2); ^ symbol: method Math(int,int) location: class Main Main.java:11: error: incompatible types: possible lossy conversion from double to long d[i]= Math.pow(sc.nextInt(),2)+ Math.pow(sc.nextInt(),2); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u681661864|p02595|0
u681661864|p02595|0
codenet
Compile Error
405
v2_s146495715
s146495715
s146495715
p02595
p02595
u688579504
u688579504
1,597,097,384
2020-08-10T22:09:44
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); double D = scan.nextDouble(); int overCount = 0; for (int i = N; i > 0; i--) { double X = scan.nextDouble(); double Y = scan.nextDouble(); ...
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
u688579504|p02595|0
u688579504|p02595|0
codenet
Compile Error
503
v2_s462454980
s462454980
s462454980
p02595
p02595
u691440068
u691440068
1,596,649,611
2020-08-05T17:46:51
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); long n=sc.nextLong(); long d=sc.nextLong(); int cnt=0; // long x[],y[]; x=new long[n]; y=new long[n]; long[] x=new long[n]; long[] y=new long[n]; int i=0; while((n--)>0){ x[i]=sc.nextLong(); y[i]=sc.next...
Main.java:12: error: incompatible types: possible lossy conversion from long to int long[] x=new long[n]; ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int long[] y=new long[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u691440068|p02595|0
u691440068|p02595|0
codenet
Compile Error
403
v2_s687539572
s687539572
s687539572
p02595
p02595
u691440068
u691440068
1,596,649,892
2020-08-05T17:51:32
Main.java
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); long n=sc.nextLong(); long d=sc.nextLong(); int cnt=0; // long x[],y[]; x=new long[n]; y=new long[n]; long[] x=new long[n]; long[] y=new long[n]; int i=0; while((n--)>0){ x[i]=sc.nextLong(); y[i]=sc.next...
Main.java:12: error: incompatible types: possible lossy conversion from long to int long[] x=new long[n]; ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int long[] y=new long[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u691440068|p02595|0
u691440068|p02595|0
codenet
Compile Error
403
v2_s946907698
s946907698
s946907698
p02595
p02595
u748325747
u748325747
1,596,417,307
2020-08-03T01:15: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(),d=sc.nextInt(),f=0; for(int i=0;i<n;i++){ int x=sc.nextInt(),y=sc.nextInt() if(d>=(int)Math.sqrt(x*x+y*y)) f++; } System.out.println(f); } }
Main.java:7: error: ';' expected int x=sc.nextInt(),y=sc.nextInt() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u748325747|p02595|0
u748325747|p02595|0
codenet
Compile Error
311
v2_s974031207
s974031207
s974031207
p02595
p02595
u756981208
u756981208
1,596,645,603
2020-08-05T16:40:03
Main.java
import java.util.Scanner; class Main { static public void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); int a = 0; for (int i = 0; i <= N; i++) { int X = sc.nextInt(); int Y = sc.nextInt(); if (D*D >= X*X + Y*Y) { a...
Main.java:16: error: not a statement in.close ^ Main.java:16: error: ';' expected in.close ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u756981208|p02595|0
u756981208|p02595|0
codenet
Compile Error
384
v2_s890510586
s890510586
s890510586
p02595
p02595
u769291367
u769291367
1,597,176,912
2020-08-11T20:15:12
Main.java
java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int q = sc.nextInt(); int result = 0; for(int i = 0; i < p; i++) double x1 = sc.nextDouble(); double x2 = sc.nextDouble(); double dis...
Main.java:1: error: class, interface, enum, or record expected java.util.Scanner; ^ Main.java:12: error: variable declaration not allowed here double x1 = sc.nextDouble(); ^ Main.java:18: error: <identifier> expected System.out.println(result); ^ Main.java:18: error: <identifier...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02595|0
u769291367|p02595|0
codenet
Compile Error
435
v2_s459869876
s459869876
s459869876
p02595
p02595
u769291367
u769291367
1,597,177,051
2020-08-11T20:17:31
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int q = sc.nextInt(); int result = 0; for(int i = 0; i < p; i++) double x1 = sc.nextDouble(); double x2 = sc.nextDouble(); dou...
Main.java:12: error: variable declaration not allowed here double x1 = sc.nextDouble(); ^ Main.java:18: error: <identifier> expected System.out.println(result); ^ Main.java:18: error: <identifier> expected System.out.println(result); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02595|0
u769291367|p02595|0
codenet
Compile Error
443