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_s116365697
s116365697
s116365697
p02731
p02731
u723153318
u723153318
1,585,702,876
2020-04-01T01:01:16
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); double L = sc.nextInt(); double volume = (L/3)*(L/3)*(L/3); println(volume); } }
Main.java:9: error: cannot find symbol println(volume); ^ symbol: method println(double) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u723153318|p02731|0
u723153318|p02731|0
codenet
Compile Error
229
v2_s833563249
s833563249
s833563249
p02731
p02731
u786768376
u786768376
1,586,289,213
2020-04-07T19:53:33
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ doouble a = 0.0; Scanner sc = new Scanner(System.in); a = sc.nextInt(); double count =0.0; count=a*a*a/27.0; System.out.println(count); } }
Main.java:5: error: cannot find symbol doouble a = 0.0; ^ symbol: class doouble location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786768376|p02731|2
u786768376|p02731|2
codenet
Compile Error
243
v2_s144053086
s144053086
s144053086
p02731
p02731
u795978684
u795978684
1,585,061,807
2020-03-24T14:56:47
Main.java
class Main { static int mod = (int) (Math.pow(10,9)+7); // static int mod = 998244353; public static void main(String[] args) { Scanner sc = new Scanner(System.in); double L = sc.nextDouble(); double a=L/3/3/3*L*L; System.out.println(a); } }
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
u795978684|p02731|0
u795978684|p02731|0
codenet
Compile Error
285
v2_s415717050
s415717050
s415717050
p02731
p02731
u816631826
u816631826
1,586,557,516
2020-04-10T22:25:16
Main.java
J=int(input()) E=J/3 print(E**3) #print the answer
Main.java:1: error: class, interface, enum, or record expected J=int(input()) ^ Main.java:4: error: illegal character: '#' #print the answer ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02731|0
u816631826|p02731|0
codenet
Compile Error
50
v2_s549755700
s549755700
s549755700
p02731
p02731
u824555610
u824555610
1,592,244,536
2020-06-15T18:08:56
Main.java
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int len = sc.nextInt(); System.out.println(wSide); System.out.println(tSide); System.out.println(hSide); BigDecimal result = wSide.multiply(tSide).multi...
Main.java:8: error: cannot find symbol System.out.println(wSide); ^ symbol: variable wSide location: class Main Main.java:9: error: cannot find symbol System.out.println(tSide); ^ symbol: variable tSide location: class Main Main.java:10: error: cannot find symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824555610|p02731|0
u824555610|p02731|0
codenet
Compile Error
380
v2_s273089644
s273089644
s273089644
p02731
p02731
u835335967
u835335967
1,584,931,409
2020-03-23T02:43:29
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd = new Scanner(System.in); int l=kbd.nextInt(); double a=x*x*x; double A=a/27; System.out.printf("%.6f\n",A); } }
Main.java:6: error: cannot find symbol double a=x*x*x; ^ symbol: variable x location: class Main Main.java:6: error: cannot find symbol double a=x*x*x; ^ symbol: variable x location: class Main Main.java:6: error: cannot find symbol double a=x*x*x; ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u835335967|p02731|0
u835335967|p02731|0
codenet
Compile Error
226
v2_s761790038
s761790038
s761790038
p02731
p02731
u902576227
u902576227
1,584,972,848
2020-03-23T14:14:08
Main.java
l=int(input()) print(l*l*l/27)
Main.java:1: error: class, interface, enum, or record expected l=int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p02731|1
u902576227|p02731|1
codenet
Compile Error
30
v2_s661717817
s661717817
s661717817
p02732
p02732
u012999123
u012999123
1,584,934,380
2020-03-23T03:33:00
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[] a=new long[n]; long[] g=new long[n+1]; int al=0; for(int i=0;i<n;i++){ a[i]= sc.nextInt(); al+=g[a[i]]; g[a[i]]++; } long ...
Main.java:11: error: incompatible types: possible lossy conversion from long to int al+=g[a[i]]; ^ Main.java:12: error: incompatible types: possible lossy conversion from long to int g[a[i]]++; ^ Main.java:23: error: incompatible types: possible lossy conversion fro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02732|0
u012999123|p02732|0
codenet
Compile Error
572
v2_s751402397
s751402397
s751402397
p02732
p02732
u062736195
u062736195
1,584,929,002
2020-03-23T02:03:22
Main.java
import java.util.*; import static java.lang.System.*; import java.io.IOException; import java.io.InputStream; public class Main{ public static void main(String[] args){ FastScanner sc = new FastScanner(); int N = sc.nextInt(); int[]score = new int[N+1]; int[] k = new int[N+1]; long sum = 0; fo...
Main.java:109: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02732|0
u062736195|p02732|0
codenet
Compile Error
2,844
v2_s945553583
s945553583
s945553583
p02732
p02732
u062736195
u062736195
1,585,000,407
2020-03-23T21:53:27
Main.java
import java.util.*; import static java.lang.System.*; import java.io.*; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int n = sc.nextInt(); ArrayList<Integer> list = new ArrayList<>(); for(int i = 0; i < n; i+...
Main.java:58: error: unnamed classes are a preview feature and are disabled by default. PrintWriter out = new PrintWriter(System.out); ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02732|1
u062736195|p02732|1
codenet
Compile Error
3,408
v2_s081584216
s081584216
s081584216
p02732
p02732
u144577080
u144577080
1,584,932,464
2020-03-23T03:01:04
Main.java
public class Main { public static void main(String args[]) { return "orz"; } }
Main.java:3: error: incompatible types: unexpected return value return "orz"; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u144577080|p02732|0
u144577080|p02732|0
codenet
Compile Error
92
v2_s104239970
s104239970
s104239970
p02732
p02732
u154898295
u154898295
1,584,926,724
2020-03-23T01:25:24
Main.java
#include <bits/stdc++.h> using namespace std; vector<int> num(200001); vector<int> a(200001); int main() { int n; cin >> n; long long result = 0; for (int i = 0, x; i < n; i++) { cin >> x; a[i] = x; num[x]++; result += num[x] - 1; } for (int i = 0; i < n; i++) { cout << result - num[a[i]] + 1 << endl; ...
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:4: error: unnamed classes are a preview feature and are disabled by default. vector<int> num(200001); ^ (use --enable-preview to enable unn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154898295|p02732|0
u154898295|p02732|0
codenet
Compile Error
325
v2_s314278527
s314278527
s314278527
p02732
p02732
u207845630
u207845630
1,584,935,289
2020-03-23T03:48:09
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[] A = new int[N]; int[] buf = new int[N]; int count; int ans = 0; int i; for(i = 0;i < N;i++){ A[i] = sc.nextInt(); } System.arraycopy(A,0,buf,A.length) ...
Main.java:14: error: ';' expected System.arraycopy(A,0,buf,A.length) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02732|0
u207845630|p02732|0
codenet
Compile Error
1,012
v2_s610872022
s610872022
s610872022
p02732
p02732
u207845630
u207845630
1,584,935,945
2020-03-23T03:59: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(); int[] A = new int[N]; int[] buf = new int[N]; int[] count = new int[N]; int ans = 0; int i; for(i = 0;i < N;i++){ A[i] = sc.nextInt(); } for(i = 0;i < N;i++){...
Main.java:24: error: cannot find symbol fill(count,0); ^ symbol: method fill(int[],int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02732|0
u207845630|p02732|0
codenet
Compile Error
914
v2_s533687578
s533687578
s533687578
p02732
p02732
u207845630
u207845630
1,584,938,179
2020-03-23T04:36:19
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] count = new int[N]; int ans = 0; int i; for(i = 0;i < N;i++){ A[i] = sc.nextInt(); count[A[i] - 1]++; } for(i = 0;i < N;i++){ ...
Main.java:33: error: incompatible types: int cannot be converted to boolean if(i = 0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02732|0
u207845630|p02732|0
codenet
Compile Error
919
v2_s337925469
s337925469
s337925469
p02732
p02732
u207845630
u207845630
1,589,000,738
2020-05-09T05:05:38
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; int buf = 0; for(int i = 0;i < N;i++){ A[i] = sc.nextInt(); B[i] = A[i]; } Arrays.sort(A); int count = 1; int[]...
Main.java:38: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02732|1
u207845630|p02732|1
codenet
Compile Error
748
v2_s346654393
s346654393
s346654393
p02732
p02732
u218740431
u218740431
1,585,093,494
2020-03-24T23:44:54
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long [] in = new long [a]; long [] in2 = new long [a]; long b = 0;  long c; for(int i=0;i<a;i++){in[i] = sc.nextlong(); ...
Main.java:9: error: illegal character: '\u3000' ?long c; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02732|0
u218740431|p02732|0
codenet
Compile Error
644
v2_s412688817
s412688817
s412688817
p02732
p02732
u218740431
u218740431
1,585,093,530
2020-03-24T23:45:30
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long [] in = new long [a]; long [] in2 = new long [a]; long b = 0; long c; for(int i=0;i<a;i++){in[i] = sc.nextlong(); ...
Main.java:10: error: cannot find symbol for(int i=0;i<a;i++){in[i] = sc.nextlong(); ^ symbol: method nextlong() location: variable sc of type Scanner Main.java:11: error: incompatible types: possible lossy conversion from long to int in2[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02732|0
u218740431|p02732|0
codenet
Compile Error
643
v2_s619642833
s619642833
s619642833
p02732
p02732
u218740431
u218740431
1,585,093,594
2020-03-24T23:46:34
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); long [] in = new long [a]; long [] in2 = new long [a]; long b = 0; long c; for(int i=0;i<a;i++){in[i] = sc.nextLong(); ...
Main.java:11: error: incompatible types: possible lossy conversion from long to int in2[in[i]-1]++; ^ Main.java:15: error: incompatible types: possible lossy conversion from long to int for(int i=0;i<a;i++){c = in2[in[i]-1]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02732|0
u218740431|p02732|0
codenet
Compile Error
643
v2_s665449593
s665449593
s665449593
p02732
p02732
u234094745
u234094745
1,584,930,598
2020-03-23T02:29:58
Main.java
//package practice; import java.util.*; import java.io.*; import java.math.*; public class Main { public static void main(String args[]) throws Exception { Scanner scan = new Scanner(System.in); int[] values = new int[scan.nextInt()]; for (int i = 0; i < balls; i++) { values[i] = scan.nextInt(); } i...
Main.java:14: error: cannot find symbol for (int i = 0; i < balls; i++) { ^ symbol: variable balls location: class Main Main.java:18: error: cannot find symbol int[] combos = new int[balls]; ^ symbol: variable balls location: class Main Main.java:19: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234094745|p02732|0
u234094745|p02732|0
codenet
Compile Error
679
v2_s298112293
s298112293
s298112293
p02732
p02732
u335667012
u335667012
1,586,960,759
2020-04-15T14:25:59
Main.java
import java.io.*; import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextInt(); long[] a = new long[n]; Map<Long, Long> mp = new HashMap<>(); for(long i = 0; i < n; ++i){ ...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n]; ^ Main.java:12: error: incompatible types: possible lossy conversion from long to int a[i] = sc.nextLong(); ^ Main.java:13: error: incompatible types: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u335667012|p02732|0
u335667012|p02732|0
codenet
Compile Error
767
v2_s803372685
s803372685
s803372685
p02732
p02732
u404196289
u404196289
1,584,931,642
2020-03-23T02:47:22
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int arr[] = new int[N]; int list[] = new int[N+1]; for (int i = 0; i < N ; i ++){ arr[i] = scan.nextInt(); list[arr[i]] += 1; } for(int k = 0; k < N ; k +...
Main.java:21: error: cannot find symbol for (intj = list[i]-1; j > 0; j-- ){ ^ symbol: variable intj location: class Main Main.java:21: error: cannot find symbol for (intj = list[i]-1; j > 0; j-- ){ ^ symbol: variable j location: class Main Main.java:21: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02732|0
u404196289|p02732|0
codenet
Compile Error
568
v2_s221938149
s221938149
s221938149
p02732
p02732
u404196289
u404196289
1,585,017,465
2020-03-24T02:37:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long N = scan.nextLong(); long arr[] = new long[N]; long count[] = new long[N+1]; long sum = 0; for (int i = 0; i < N ; i ++){ arr[i] = scan.nextInt(); count[arr[i]] += 1; } fo...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long arr[] = new long[N]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int long count[] = new long[N+1]; ^ Main.java:13: error: incompatible types...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02732|2
u404196289|p02732|2
codenet
Compile Error
647
v2_s277253953
s277253953
s277253953
p02732
p02732
u404196289
u404196289
1,585,017,602
2020-03-24T02:40:02
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); long N = scan.nextLong(); int arr[] = new int[N]; int count[] = new int[N+1]; long sum = 0; for (int i = 0; i < N ; i ++){ arr[i] = scan.nextInt(); count[arr[i]] += 1; } for(in...
Main.java:7: error: incompatible types: possible lossy conversion from long to int int arr[] = new int[N]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int int count[] = new int[N+1]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u404196289|p02732|2
u404196289|p02732|2
codenet
Compile Error
643
v2_s881726625
s881726625
s881726625
p02732
p02732
u437421138
u437421138
1,584,928,647
2020-03-23T01:57:27
Main.java
import java.util.HashMap; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); long n = scn.nextLong(); scn.nextLine(); FreqMap map = new FreqMap(); String[] arrstr = scn.nextLine().split(" "); ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int long[] array = new long[n]; ^ Main.java:45: error: incompatible types: int cannot be converted to Long map.put(n, 1); ^ Note: Some messages have been simplified;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u437421138|p02732|0
u437421138|p02732|0
codenet
Compile Error
1,167
v2_s818891575
s818891575
s818891575
p02732
p02732
u486105630
u486105630
1,584,928,374
2020-03-23T01:52:54
Main.java
a
Main.java:1: error: reached end of file while parsing a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486105630|p02732|0
u486105630|p02732|0
codenet
Compile Error
1
v2_s746702908
s746702908
s746702908
p02732
p02732
u520067800
u520067800
1,584,946,587
2020-03-23T06:56:27
Main.java
class Main { public static String StringPeriods(String str) { boolean flag = false; String ans = ""; for(int i=0;i<str.length();i++){ String temp = str; String substr = str.substring(0,i); temp = temp.replaceAll(substr, ""); if(temp.equals("")) { flag = true; ans = ...
Main.java:54: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:55: error: class, interface, enum, or record expected import java.io.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u520067800|p02732|1
u520067800|p02732|0
codenet
Compile Error
2,346
v2_s703289209
s703289209
s703289209
p02732
p02732
u547671064
u547671064
1,584,931,236
2020-03-23T02:40:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int N=sc.nextInt(); int A[] =new int[N]; int B[] =new int[N]; int C[] =new int[N+1]; int D[] =new int[N]; long W[] =new long[N]; C[0]=0; for(int i=0;i<N;i++){ A[...
Main.java:23: error: ']' expected long W[k]=C[N]-D[A[k]-1]+(B[A[k]-1]-1)*(B[A[k]-1]-2)/2; ^ Main.java:23: error: ';' expected long W[k]=C[N]-D[A[k]-1]+(B[A[k]-1]-1)*(B[A[k]-1]-2)/2; ^ Main.java:23: error: not a statement long W[k]=C[N]-D[A[k]-1]+(B[A[k]-1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02732|0
u547671064|p02732|0
codenet
Compile Error
721
v2_s575251469
s575251469
s575251469
p02732
p02732
u547671064
u547671064
1,584,931,952
2020-03-23T02:52:32
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 A[] =new long[N]; long B[] =new long[N]; long C[] =new long[N+1]; long D[] =new long[N]; long W[] =new long[N]; C[0]=0; for(int i=0;i<N;i++){ ...
Main.java:14: error: incompatible types: possible lossy conversion from long to int B[A[i]-1]=B[A[i]-1]+1;} ^ Main.java:14: error: incompatible types: possible lossy conversion from long to int B[A[i]-1]=B[A[i]-1]+1;} ^ Main.java:19: error: incompatible types: possible loss...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02732|0
u547671064|p02732|0
codenet
Compile Error
726
v2_s049847148
s049847148
s049847148
p02732
p02732
u547671064
u547671064
1,584,931,982
2020-03-23T02:53:02
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 A[] =new long[N]; long B[] =new long[N]; long C[] =new long[N+1]; long D[] =new long[N]; long W[] =new long[N]; C[0]=0; for(int i=0;i<N;i++){ ...
Main.java:6: error: incompatible types: long[] cannot be converted to int[] int A[] =new long[N]; ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int A[i]=sc.nextLong(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02732|0
u547671064|p02732|0
codenet
Compile Error
725
v2_s797177470
s797177470
s797177470
p02732
p02732
u563321291
u563321291
1,585,284,485
2020-03-27T04:48:05
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //Random r = new Random(); int N = sc.nextInt(); int S[] = new int[N]; int ct1[] = new int[200000]; int ct2[] = new int[200000]; int tmp; for(int i =0;...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563321291|p02732|0
u563321291|p02732|0
codenet
Compile Error
741
v2_s794450248
s794450248
s794450248
p02732
p02732
u676749446
u676749446
1,598,159,264
2020-08-23T05:07:44
Main.java
import java.io.*; import java.util.*; import java.util.stream.*; class Main{ static final long MOD = 1_000_000_007; // 10^9+7 static final int MAX = 2_147_483_646; // intMax static final int INF = 1_000_000_000; // 10^9 public static void main(String[] args) throws Exception { hayami saori = new haya...
Main.java:39: error: incompatible types: possible lossy conversion from long to int int min = Math.min(k, n - k); ^ Main.java:43: error: incompatible types: possible lossy conversion from long to int for (int i = n - min + 1; i <= n; i++) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676749446|p02732|0
u676749446|p02732|0
codenet
Compile Error
3,323
v2_s593954609
s593954609
s593954609
p02732
p02732
u728264684
u728264684
1,584,930,230
2020-03-23T02:23:50
Main.java
import java.util.HashMap; import java.util.Scanner; /* 説明 */ public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int a[] = new int[n]; HashMap<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i...
Main.java:37: error: cannot find symbol ans += map.get(a[0]- 1) * (map.get(key) - 2); ^ symbol: variable key location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02732|0
u728264684|p02732|0
codenet
Compile Error
1,031
v2_s611757331
s611757331
s611757331
p02732
p02732
u728264684
u728264684
1,584,933,514
2020-03-23T03:18:34
Main.java
import java.util.HashMap; import java.util.Scanner; /* 説明 */ public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int a[] = new int[n]; HashMap<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i...
Main.java:28: error: ';' expected all += map.get(key) * (map.get(key) - 1) / 2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02732|0
u728264684|p02732|0
codenet
Compile Error
835
v2_s799072481
s799072481
s799072481
p02732
p02732
u728264684
u728264684
1,584,934,588
2020-03-23T03:36:28
Main.java
import java.util.HashMap; import java.util.Scanner; /* 説明 */ public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int a[] = new int[n]; HashMap<Integer, Long> map = new HashMap<>(); for (int i = 0; i < n; i++)...
Main.java:19: error: incompatible types: int cannot be converted to Long map.put(a[i], 1); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02732|0
u728264684|p02732|0
codenet
Compile Error
834
v2_s613950516
s613950516
s613950516
p02732
p02732
u752907799
u752907799
1,585,033,928
2020-03-24T07:12:08
Main.java
import java.io.*; import java.util.*; public class Main{ static MyReader in = new MyReader(); static PrintWriter out = new PrintWriter(System.out); public static void main(String[] args){ int N = in.i(); int[] A = in.ii(); int[] count = new int[N+1]; for (int i = 0; i < N; ...
Main.java:48: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752907799|p02732|0
u752907799|p02732|0
codenet
Compile Error
1,197
v2_s159468633
s159468633
s159468633
p02732
p02732
u811622556
u811622556
1,598,555,009
2020-08-27T19:03:29
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[] num = new int[n]; Map<Integer, Long> map = new HashMap<>(); for(int i = 0; i < n; i++){ int number = sc.nextInt(); nu...
Main.java:15: error: incompatible types: int cannot be converted to Long map.put(number, 1); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u811622556|p02732|0
u811622556|p02732|0
codenet
Compile Error
875
v2_s524919633
s524919633
s524919633
p02732
p02732
u884888915
u884888915
1,584,931,181
2020-03-23T02:39:41
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = readInt(sc); int[] list = new int[n]; int[] map = new int[n]; int[] ansMemo = new int[n]; ...
Main.java:63: error: illegal start of expression static int readInt(Scanner sc) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u884888915|p02732|0
u884888915|p02732|0
codenet
Compile Error
2,232
v2_s862757515
s862757515
s862757515
p02732
p02732
u899530879
u899530879
1,586,130,152
2020-04-05T23:42:32
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 = new int[N]; long[] count = new long[N+1]; //その数値がいくつあるか long sum = 0; //入力 for(int i=0; i<N; i++) { A[i] = sc.ne...
Main.java:18: error: incompatible types: possible lossy conversion from long to int sum += comb2(count[i]); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899530879|p02732|0
u899530879|p02732|0
codenet
Compile Error
740
v2_s420798109
s420798109
s420798109
p02732
p02732
u899530879
u899530879
1,586,130,243
2020-04-05T23:44:03
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 = new int[N]; long[] count = new long[N+1]; //その数値がいくつあるか long sum = 0; //入力 for(int i=0; i<N; i++) { A[i] = sc.ne...
Main.java:28: error: incompatible types: possible lossy conversion from long to int int ans = (num * (num - 1)) / 2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899530879|p02732|0
u899530879|p02732|0
codenet
Compile Error
741
v2_s291312879
s291312879
s291312879
p02732
p02732
u911912079
u911912079
1,584,931,349
2020-03-23T02:42:29
Main.java
import java.util.*; import java.io.*; import java.math.BigDecimal; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); int N = fs.nextInt(); String A[] = new String[N]; String B[] = new String[N]; int K[] = new int[N]; for(int i=0; i<N; i++){ A[i] = fs.next...
Main.java:19: error: ')' expected if(k!=i&&B.equals(A[i]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u911912079|p02732|0
u911912079|p02732|0
codenet
Compile Error
1,216
v2_s322655542
s322655542
s322655542
p02732
p02732
u921177152
u921177152
1,584,931,979
2020-03-23T02:52:59
Main.java
import java.util.Scanner; class Main { public static void main(String[] $) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[n]; long[] b=new int[n]; long sum=0; for(int i=0;i<n;i++) { a[i]=sc.nextInt(); b[a[i]-1]++; } for(int j=0;j<n;j++) { sum+=b[j]*(b[j]-1)/2; } ...
Main.java:8: error: incompatible types: int[] cannot be converted to long[] long[] b=new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u921177152|p02732|0
u921177152|p02732|0
codenet
Compile Error
396
v2_s381342460
s381342460
s381342460
p02732
p02732
u928306508
u928306508
1,584,931,131
2020-03-23T02:38:51
Main.java
import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer; import atcoder.triangle.MyScanner; public class Main { public static void main(String[] args) th...
Main.java:11: error: package atcoder.triangle does not exist import atcoder.triangle.MyScanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928306508|p02732|0
u928306508|p02732|0
codenet
Compile Error
1,993
v2_s780624643
s780624643
s780624643
p02732
p02732
u999592340
u999592340
1,584,928,268
2020-03-23T01:51:08
Main.java
import java.io.*; import java.util.*; import java.util.Map.Entry; public class Main { public static void main(final String[] args) throws Exception { final Scanner sc = new Scanner(System.in); int N = sc.nextInt(); final Map<Integer, Long> counts = new HashMap<>(); int[] A = new i...
Main.java:15: error: incompatible types: int cannot be converted to Long counts.put(A[i], 0); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u999592340|p02732|0
u999592340|p02732|0
codenet
Compile Error
1,092
v2_s632353515
s632353515
s632353515
p02733
p02733
u108906751
u108906751
1,584,931,176
2020-03-23T02:39:36
Main.java
import java.util.*; import java.io.*; import java.text.*; public class Main { public static void main(String[] args) throws Exception { FastScanner sc = new FastScanner(); int h = sc.nextInt(); int w = sc.nextInt(); int alwed = sc.nextInt(); int co...
Main.java:45: error: ')' expected for(int bit=0; bit < (1<<(h-1); bit++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u108906751|p02733|0
u108906751|p02733|0
codenet
Compile Error
5,216
v2_s455739656
s455739656
s455739656
p02733
p02733
u331360010
u331360010
1,584,932,559
2020-03-23T03:02:39
Main.java
import java.util.*; import java.io.*; import java.text.*; public class Main { public static void main(String[] args) throws Exception { FastScanner sc = new FastScanner(); int h = sc.nextInt(); int w = sc.nextInt(); int alwed = sc.nextInt(); int co...
Main.java:49: error: bad operand types for binary operator '&' if(bit&(1<<i) > 0){ ^ first type: int second type: boolean Main.java:87: error: undefined label: loop1 break loop1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u331360010|p02733|0
u331360010|p02733|0
codenet
Compile Error
5,217
v2_s700549675
s700549675
s700549675
p02733
p02733
u381467237
u381467237
1,584,933,005
2020-03-23T03:10:05
Main.java
import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String [] args) { Scanner scanner = new Scanner(System.in); int H = scanner.nextInt(); int W = scanner.nextInt(); int K = scanner.nextInt(); int[][] graph =...
Main.java:146: error: method dfs in class Main cannot be applied to given types; boolean success = dfs(graph, H, W, K, dp, cutRows, totalCuts, rowCuts, 0, 0); ^ required: int,int,int,int[][],Set<Integer>,int,int,int,int found: int[][],int,int,int,int[][],Set<Integer>,int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u381467237|p02733|0
u381467237|p02733|0
codenet
Compile Error
6,124
v2_s891116309
s891116309
s891116309
p02733
p02733
u575350848
u575350848
1,584,929,402
2020-03-23T02:10:02
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; import ...
Main.java:18: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:84: error: cannot find symbol private boolean check(List<Pair<Integer, Integer>> bars, int y1, int y2, int k, int[][] a) { ^ symbol: class Pair location: class Task Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575350848|p02733|0
u575350848|p02733|0
codenet
Compile Error
4,009
v2_s517218308
s517218308
s517218308
p02733
p02733
u575350848
u575350848
1,584,929,538
2020-03-23T02:12:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.List; import ...
Main.java:18: error: package com.sun.tools.javac.util is not visible import com.sun.tools.javac.util.Pair; ^ (package com.sun.tools.javac.util is declared in module jdk.compiler, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u575350848|p02733|0
u575350848|p02733|0
codenet
Compile Error
4,009
v2_s729003000
s729003000
s729003000
p02733
p02733
u788137651
u788137651
1,584,929,431
2020-03-23T02:10:31
Main.java
/*    ∫ ∫ ∫    ノヽ   (_  )  (_    ) (______ )  ヽ(´・ω・)ノ     |  /    UU */ #pragma region macro #include <bits/stdc++.h> typedef long long int64; using namespace std; using P = pair<int64, int64>; typedef vector<int> vi; const int MOD = (int)1e9 + 7; const int64 INF = 1LL << 62; const int inf = 1<<30; template<class T>bo...
Main.java:11: error: illegal character: '#' #pragma region macro ^ Main.java:12: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:14: error: class, interface, enum, or record expected using namespace std; ^ Main.java:15: error: unnamed classes are a preview feature and are disabled by default. using P...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u788137651|p02733|0
u788137651|p02733|0
codenet
Compile Error
6,251
v2_s517024041
s517024041
s517024041
p02733
p02733
u788137651
u788137651
1,584,929,876
2020-03-23T02:17:56
Main.java
/*    ∫ ∫ ∫    ノヽ   (_  )  (_    ) (______ )  ヽ(´・ω・)ノ     |  /    UU */ #pragma region macro #include <bits/stdc++.h> typedef long long int64; using namespace std; using P = pair<int64, int64>; typedef vector<int> vi; const int MOD = (int)1e9 + 7; const int64 INF = 1LL << 62; const int inf = 1<<30; template<class T>bo...
Main.java:11: error: illegal character: '#' #pragma region macro ^ Main.java:12: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:14: error: class, interface, enum, or record expected using namespace std; ^ Main.java:15: error: unnamed classes are a preview feature and are disabled by default. using P...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u788137651|p02733|0
u788137651|p02733|0
codenet
Compile Error
6,377
v2_s579668384
s579668384
s579668384
p02734
p02734
u095902467
u095902467
1,585,562,077
2020-03-30T09:54:37
Main.java
public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int target = scanner.nextInt(); int[] nums = new int[n]; for(int i=0; i<n; i++){ nums[i] = scanner.nextInt(); } System....
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u095902467|p02734|0
u095902467|p02734|0
codenet
Compile Error
747
v2_s868949975
s868949975
s868949975
p02734
p02734
u327702064
u327702064
1,584,932,579
2020-03-23T03:02:59
Main.java
import utils.PrintUtil; import java.io.*; import java.util.*; public class Main { static class Task { private static final int MOD = 998244353; private int[] arr; private int n; private int[] suffixSumArr; private Map<Integer, List<List<Integer>>> memoMap; priva...
Main.java:1: error: package utils does not exist import utils.PrintUtil; ^ Main.java:80: error: cannot find symbol PrintUtil.printIntListList(listList); ^ symbol: variable PrintUtil location: class Task 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327702064|p02734|0
u327702064|p02734|0
codenet
Compile Error
4,164
v2_s725525833
s725525833
s725525833
p02734
p02734
u327702064
u327702064
1,584,932,614
2020-03-23T03:03:34
Main.java
import java.io.*; import java.util.*; public class Main { static class Task { private static final int MOD = 998244353; private int[] arr; private int n; private int[] suffixSumArr; private Map<Integer, List<List<Integer>>> memoMap; private List<List<Integer>> ...
Main.java:80: error: cannot find symbol PrintUtil.printIntListList(listList); ^ symbol: variable PrintUtil location: class Task 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327702064|p02734|0
u327702064|p02734|0
codenet
Compile Error
4,141
v2_s950322648
s950322648
s950322648
p02735
p02735
u059234158
u059234158
1,587,576,059
2020-04-22T17:20:59
Main.java
import java.util.*; class Main{ public static void main(String[] $){ final Scanner s=new Scanner(System.in); int h=s.nextInt(); int w=s.nextInt(); int[][] a=new int[h+1][w+1]; int[][] c=new char[h+1][w+1]; Arrays.fill(a[0], 99999); for(int i=2;i<=h;++i) a[i][0]=99999; c[1][0]='.'; for(int i=1;i...
Main.java:9: error: incompatible types: char[][] cannot be converted to int[][] int[][] c=new char[h+1][w+1]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p02735|0
u059234158|p02735|0
codenet
Compile Error
576
v2_s734615173
s734615173
s734615173
p02735
p02735
u060760311
u060760311
1,595,276,784
2020-07-20T20:26:24
Main.java
public static void main(String[] args) { // NOP }
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
u060760311|p02735|0
u060760311|p02735|0
codenet
Compile Error
51
v2_s062882407
s062882407
s062882407
p02735
p02735
u062736195
u062736195
1,584,855,775
2020-03-22T05:42:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); char[][] grid = new char[h][w]; for(int i = 0; i < h; i++) grid[i] = sc.next().toCharArray(); int[][] c...
Main.java:29: error: cannot find symbol if (cnt[i-1][j] == '.' && cnt[i][j] == '#') ^ symbol: variable j location: class Main Main.java:29: error: cannot find symbol if (cnt[i-1][j] == '.' && cnt[i][j] == '#') ^ symbol: variable j ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02735|0
u062736195|p02735|0
codenet
Compile Error
1,303
v2_s973500129
s973500129
s973500129
p02735
p02735
u082512804
u082512804
1,599,962,104
2020-09-13T01:55:04
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; public class Main { void solve() throws IOException { H = ni(); W = ni(); a = new int[H][W]; for (int i = 0; i...
Main.java:21: error: incompatible types: int[][] cannot be converted to long[][] long[][] minc = new int[H][W]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p02735|1
u082512804|p02735|1
codenet
Compile Error
3,209
v2_s043519215
s043519215
s043519215
p02735
p02735
u254520375
u254520375
1,584,846,463
2020-03-22T03:07:43
Main.java
import javafx.scene.layout.Priority; import java.util.*; public class Main { static int[][] mp; static int H, W; public static void main(String args[]){ Scanner sc = new Scanner(System.in); H = sc.nextInt(); W = sc.nextInt(); mp = new int[H][]; Set<Integer> visited ...
Main.java:1: error: package javafx.scene.layout does not exist import javafx.scene.layout.Priority; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u254520375|p02735|0
u254520375|p02735|0
codenet
Compile Error
1,744
v2_s645953938
s645953938
s645953938
p02735
p02735
u465133507
u465133507
1,584,841,472
2020-03-22T01:44:32
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java....
Main.java:38: error: unreachable statement continue;; ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465133507|p02735|0
u465133507|p02735|0
codenet
Compile Error
11,205
v2_s706350119
s706350119
s706350119
p02735
p02735
u635358463
u635358463
1,584,839,500
2020-03-22T01:11:40
Main.java
#include<bits/stdc++.h> #define _LIBCPP_DEBUG 0 using namespace std; typedef long long int ll; ll MOD = 1e9 + 7; int INF = 1 << 20; vector<vector<char>> MAP(102,vector<char>(102,'0')); int H,W; int dfs(int row, int col, int cnt){ if(MAP[row][col]=='0') return H+W-1; if(MAP[row][col]=='#') cnt++; if(row=...
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:2: error: illegal character: '#' #define _LIBCPP_DEBUG 0 ^ Main.java:4: error: class, interface, enum, or record expected typedef long long int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635358463|p02735|0
u635358463|p02735|0
codenet
Compile Error
701
v2_s340151157
s340151157
s340151157
p02735
p02735
u660640166
u660640166
1,584,890,312
2020-03-22T15:18:32
Main.java
##### import numpy as np # from numpy import int32, int8 # from collections import deque ##### def getIntList(inp): return [int(_) for _ in inp] from sys import stdin import sys sys.setrecursionlimit(10**8) def getInputs(): inputs=[] for line in stdin: line=line.split() inputs.append(line) return inputs ...
Main.java:2: error: illegal character: '#' ##### ^ Main.java:2: error: illegal character: '#' ##### ^ Main.java:2: error: illegal character: '#' ##### ^ Main.java:2: error: illegal character: '#' ##### ^ Main.java:2: error: illegal character: '#' ##### ^ Main.java:4: error: class, interface, enum, or record e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660640166|p02735|0
u660640166|p02735|0
codenet
Compile Error
1,329
v2_s274667766
s274667766
s274667766
p02736
p02736
u028693637
u028693637
1,584,840,071
2020-03-22T01:21:11
Test.java
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int val = scan.nextInt(); String[] words = scan.nextLine().split(""); int[] nums = new int[val]; for(int i = 0; i < val; i++) { nums[i...
Test.java:21: error: ';' expected saveNum[j] = Math.abs(nums[j] - nums[j + 1]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u028693637|p02736|0
u028693637|p02736|0
codenet
Compile Error
669
v2_s134839464
s134839464
s134839464
p02736
p02736
u028693637
u028693637
1,584,840,141
2020-03-22T01:22:21
Test.java
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int val = scan.nextInt(); String[] words = scan.nextLine().split(""); int[] nums = new int[val]; for(int i = 0; i < val; i++) { nums[...
Test.java:26: error: cannot find symbol System.out.println(num[0]); ^ symbol: variable num location: class Test 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u028693637|p02736|0
u028693637|p02736|0
codenet
Compile Error
671
v2_s023343742
s023343742
s023343742
p02736
p02736
u028693637
u028693637
1,584,840,366
2020-03-22T01:26:06
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int val = Integer.parseInt(scan.nextInt()); String[] words = scan.nextLine().split(""); int[] nums = new int[val]; for(int i = 0; i < val; i++) ...
Main.java:8: error: incompatible types: int cannot be converted to String int val = Integer.parseInt(scan.nextInt()); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u028693637|p02736|0
u028693637|p02736|0
codenet
Compile Error
690
v2_s386865478
s386865478
s386865478
p02736
p02736
u167206842
u167206842
1,584,842,333
2020-03-22T01: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 a[] = new int[N]; String S = sc.next(); for(int i=0;i<N;i++){ a[i] = Integer.parseInt(S.substring(i,i+1)); } int x[][] = new int[N][N]; fo...
Main.java:20: error: ')' or ',' expected System.out.println(Math.abs(a[0]-a[N]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02736|0
u167206842|p02736|0
codenet
Compile Error
746
v2_s849873977
s849873977
s849873977
p02736
p02736
u290929868
u290929868
1,584,841,047
2020-03-22T01:37:27
Main.java
class Main { public static void main(String[] args) {BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String num = br.readLine(); while(num.length()!=1) { char temp[] = new char[num.length()-1]; for(i...
Main.java:4: error: cannot find symbol {BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol {BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290929868|p02736|0
u290929868|p02736|0
codenet
Compile Error
712
v2_s022230764
s022230764
s022230764
p02736
p02736
u290929868
u290929868
1,584,841,108
2020-03-22T01:38:28
Main.java
class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String num = br.readLine(); while(num.length()!=1) { char temp[] = new char[num.length()-1]; ...
Main.java:5: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:5: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290929868|p02736|0
u290929868|p02736|0
codenet
Compile Error
709
v2_s260538190
s260538190
s260538190
p02736
p02736
u290929868
u290929868
1,584,841,182
2020-03-22T01:39:42
Main.java
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String num = br.readLine(); while(num.length()!=1) { char temp[] ...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown int n = Integer.parseInt(br.readLine()); ^ Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown String num = br.readLine(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290929868|p02736|0
u290929868|p02736|0
codenet
Compile Error
747
v2_s956659050
s956659050
s956659050
p02736
p02736
u290929868
u290929868
1,584,841,248
2020-03-22T01:40:48
Main.java
import java.io.* import java.util.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String num = br.readLine(); while(num.length()!=1) { ...
Main.java:1: error: ';' expected import java.io.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290929868|p02736|0
u290929868|p02736|0
codenet
Compile Error
763
v2_s215797632
s215797632
s215797632
p02736
p02736
u457656948
u457656948
1,584,843,419
2020-03-22T02:16:59
Main.java
import java.util.*; public class Main { private int absdiff(int a,int b) { return (a>b?a-b:b-a); } public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); int arr[][]=new int[n]; for(int i=0;i<n;i++) { arr[i]=new int[n-i]...
Main.java:13: error: incompatible types: int[] cannot be converted to int[][] int arr[][]=new int[n]; ^ Main.java:23: error: non-static method absdiff(int,int) cannot be referenced from a static context arr[i][j]=absdiff(arr[i][j-1],arr[i+1][j-1]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457656948|p02736|0
u457656948|p02736|0
codenet
Compile Error
538
v2_s897700381
s897700381
s897700381
p02736
p02736
u457656948
u457656948
1,584,843,484
2020-03-22T02:18:04
Main.java
import java.util.*; public class Main { private int absdiff(int a,int b) { return (a>b?a-b:b-a); } public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); int arr[][]=new int[n]; for(int i=0;i<n;i++) { arr[i]=new int[n-i]...
Main.java:13: error: incompatible types: int[] cannot be converted to int[][] int arr[][]=new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457656948|p02736|0
u457656948|p02736|0
codenet
Compile Error
565
v2_s779343742
s779343742
s779343742
p02736
p02736
u457656948
u457656948
1,584,843,694
2020-03-22T02:21:34
Main.java
import java.util.*; public class Main { private int absdiff(int a,int b) { return (a>b?a-b:b-a); } public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); int arr[][]=new int[n][]; String s=sc.nextLine(); for(int i=0;i<n;i++) ...
Main.java:18: error: cannot find symbol arr[i][0]=Integer.parseInt(sc.charAt(i)); ^ symbol: method charAt(int) location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457656948|p02736|0
u457656948|p02736|0
codenet
Compile Error
614
v2_s075630324
s075630324
s075630324
p02736
p02736
u457656948
u457656948
1,584,843,728
2020-03-22T02:22:08
Main.java
import java.util.*; public class Main { private int absdiff(int a,int b) { return (a>b?a-b:b-a); } public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); sc.nextLine(); int arr[][]=new int[n][]; String s=sc.nextLine(); for(int i=0;i<n;i++) ...
Main.java:18: error: incompatible types: char cannot be converted to String arr[i][0]=Integer.parseInt(s.charAt(i)); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457656948|p02736|0
u457656948|p02736|0
codenet
Compile Error
613
v2_s147930046
s147930046
s147930046
p02736
p02736
u547671064
u547671064
1,584,845,960
2020-03-22T02:59:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); long N=sc.nextLong(); String M =sc.next(); String m[] =M.split("",0); int n[][] =new int[N][N]; for(int k=0;k<N;k++){ n[0][k]=Integer.parseInt(m[k]);} for(int i=1;i<N;i+...
Main.java:8: error: incompatible types: possible lossy conversion from long to int int n[][] =new int[N][N]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int int n[][] =new int[N][N]; ^ Main.java:16: error: incompatible types: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02736|0
u547671064|p02736|0
codenet
Compile Error
458
v2_s228060576
s228060576
s228060576
p02736
p02736
u547671064
u547671064
1,584,846,019
2020-03-22T03:00:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); long N=sc.nextLong(); String M =sc.next(); String m[] =M.split("",0); long n[][] =new long[N][N]; for(int k=0;k<N;k++){ n[0][k]=Integer.parseInt(m[k]);} for(int i=1;i<N;...
Main.java:8: error: incompatible types: possible lossy conversion from long to int long n[][] =new long[N][N]; ^ Main.java:8: error: incompatible types: possible lossy conversion from long to int long n[][] =new long[N][N]; ^ Main.java:16: error: incompatible...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02736|0
u547671064|p02736|0
codenet
Compile Error
460
v2_s884624122
s884624122
s884624122
p02736
p02736
u608025350
u608025350
1,584,846,710
2020-03-22T03:11:50
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); sc.nextLine(); if (n >= 2) { int a[]=new int[n]; for(int i=0;i<n;i++) { a[i]=sc.nextInt(); } int...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608025350|p02736|0
u608025350|p02736|0
codenet
Compile Error
683
v2_s004542399
s004542399
s004542399
p02736
p02736
u608025350
u608025350
1,584,847,138
2020-03-22T03:18:58
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); int n; n = Integer.parseInt(br.readLine()); if (n >= 2) { int a[]=new int[n]; String line = br.readLine(); ...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:4: error: cannot find symbol BufferedReader br =new BufferedReader(new InputStreamReader(Syste...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608025350|p02736|0
u608025350|p02736|0
codenet
Compile Error
891
v2_s162031014
s162031014
s162031014
p02736
p02736
u635104822
u635104822
1,584,840,872
2020-03-22T01:34:32
Main.java
import java.utol.*; public class Main{ public static void main(String args[]) { Scanner in=new Scanner(System.in); long N=in.nextLong(); int a[]=new int[N];int f=0; for(i=0;i<N;i++) { a[i]=in.nextLong(); } while(N==1) { for(i=0;i<N-1;i++) { f=0; ...
Main.java:1: error: package java.utol does not exist import java.utol.*; ^ Main.java:5: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner in=new Scanner(System.in); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02736|0
u635104822|p02736|0
codenet
Compile Error
486
v2_s708848070
s708848070
s708848070
p02736
p02736
u728264684
u728264684
1,584,848,813
2020-03-22T03:46:53
Main.java
import java.util.Scanner; /* H 行 W 列のマス目を考えます。上から r 番目、左から c 番目のマスを(r,c) と表すことにします。 全てのマスはそれぞれ白か黒のどちらかの色に塗られています。 次のような経路が存在するとき、このマス目を"良い"状態と呼びます。 常に白いマスの上にいながら、(1,1) から、一つ 右か下 のマスに移動することを繰り返し、 (H,W) へ移動する。 ここで、"良い"状態ならば (1,1) や(H,W) が必ず白いことに注意してください。 あなたの仕事は、以下の操作を繰り返し、マス目を"良い"状態にすることです。最小で何回操作を行う必要があるか求めてください。...
Main.java:48: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728264684|p02736|0
u728264684|p02736|0
codenet
Compile Error
1,843
v2_s361234122
s361234122
s361234122
p02736
p02736
u911912079
u911912079
1,584,845,794
2020-03-22T02:56:34
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ public static final int MAX_N = 1000000; Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); String a = sc.next(); String b[] = new String[MAX_N]; int d[][] = new int[MAX_N][MAX_N]; for...
Main.java:5: error: illegal start of expression public static final int MAX_N = 1000000; ^ Main.java:12: error: illegal start of type for(int i=0; i<N; i++){ ^ Main.java:12: error: > or ',' expected for(int i=0; i<N; i++){ ^ Main.java:12: error: <identifier> expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u911912079|p02736|0
u911912079|p02736|0
codenet
Compile Error
565
v2_s981714574
s981714574
s981714574
p02739
p02739
u167206842
u167206842
1,584,845,445
2020-03-22T02:50:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); //2桁目以降どっか0だったら全部ゼロじゃないとImpossible? //1桁目は1じゃなかったらImpossible int N = sc.nextInt(); int A[] = new int[Math.pow(2,N)]; String s = sc.next(); for(int i=0;i<Math.pow(2,N);i++){ ...
Main.java:8: error: incompatible types: possible lossy conversion from double to int int A[] = new int[Math.pow(2,N)]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02739|0
u167206842|p02739|0
codenet
Compile Error
537
v2_s299633497
s299633497
s299633497
p02741
p02741
u068577033
u068577033
1,584,325,823
2020-03-16T02:30:23
Main.java
提出 #10921008 ソースコード Copy Copy import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } void run() { //入力 Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); if(h % 2 == 1 && w % 2 == 1) { ...
Main.java:1: error: illegal character: '#' ?? #10921008 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u068577033|p02741|0
u068577033|p02741|0
codenet
Compile Error
443
v2_s988801902
s988801902
s988801902
p02741
p02741
u087672117
u087672117
1,584,234,125
2020-03-15T01:02:05
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int[] array = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = scanner.nextInt(); Sy...
Main.java:16: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u087672117|p02741|0
u087672117|p02741|0
codenet
Compile Error
369
v2_s490970552
s490970552
s490970552
p02741
p02741
u124208943
u124208943
1,584,234,320
2020-03-15T01:05:20
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] N = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int K = sc.netxInt() - 1; System.out.println(N[K]); } }
Main.java:7: error: cannot find symbol int K = sc.netxInt() - 1; ^ symbol: method netxInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124208943|p02741|0
u124208943|p02741|0
codenet
Compile Error
312
v2_s682874210
s682874210
s682874210
p02741
p02741
u154898295
u154898295
1,584,319,732
2020-03-16T00:48:52
Main.java
java.util.*; public class Main{ public static void main(String[] args){ int[] a={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner sc=new Scanner(System.in); int n=sc.nextInt(); System.out.println(a[n-1]); } }
Main.java:1: error: class, interface, enum, or record expected java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154898295|p02741|1
u154898295|p02741|1
codenet
Compile Error
288
v2_s674582876
s674582876
s674582876
p02741
p02741
u198693633
u198693633
1,584,273,146
2020-03-15T11:52:26
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner file = new Scanner(System.in); int k = file.nextInt(); file.close(); int[] a = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1,...
Main.java:11: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u198693633|p02741|0
u198693633|p02741|0
codenet
Compile Error
391
v2_s265876980
s265876980
s265876980
p02741
p02741
u343463670
u343463670
1,584,234,130
2020-03-15T01:02:10
Main.java
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <cmath> #include <queue> using namespace std; #define mem(a,b) memset(a,b,sizeof(a)) typedef long long LL; typedef pair<int,int> PII; int main(){ int a[32] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cstdio> ^ Main.java:3: error: illegal character: '#' #include <cstring> ^ Main.java:4: error: illegal character: '#' #include <algorithm> ^ Main.java:5: error: illegal character: '#' #include <vector> ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u343463670|p02741|0
u343463670|p02741|0
codenet
Compile Error
436
v2_s723893782
s723893782
s723893782
p02741
p02741
u394062737
u394062737
1,584,234,457
2020-03-15T01:07:37
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner s = new Scanner(System.in); int t[] = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]; int k = s.nextInt(); System.out.println(t[k+1]); } }
Main.java:5: error: illegal start of expression int t[] = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u394062737|p02741|0
u394062737|p02741|0
codenet
Compile Error
306
v2_s062617838
s062617838
s062617838
p02741
p02741
u435097501
u435097501
1,587,933,273
2020-04-26T20:34:33
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Int[] K = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; Scanner scan = new Scanner(System.in); Integer num = Integer.parseInt(scan.nextLine()); ...
Main.java:5: error: cannot find symbol Int[] K = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; ^ symbol: class Int location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u435097501|p02741|0
u435097501|p02741|0
codenet
Compile Error
361
v2_s286387216
s286387216
s286387216
p02741
p02741
u496290914
u496290914
1,585,422,090
2020-03-28T19:01:30
Main.java
import java.util.*; class test{ pablic static void main(Sring[] args){ Scanner sc = new Scanner(System.in); int[] nums = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int num = sc.nextInt(); System.out.println(nums[num + 1]); } }
Main.java:4: error: <identifier> expected pablic static void main(Sring[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u496290914|p02741|0
u496290914|p02741|0
codenet
Compile Error
304
v2_s178489946
s178489946
s178489946
p02741
p02741
u547671064
u547671064
1,584,244,312
2020-03-15T03:51:52
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int K =sc.nextInt(); int M[] =new int[32] for(int i=0;i<K;i++){ M[i]=sc.nextInt();} System.out.println(K); } }
Main.java:6: error: ';' expected int M[] =new int[32] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02741|0
u547671064|p02741|0
codenet
Compile Error
255
v2_s494437066
s494437066
s494437066
p02741
p02741
u547671064
u547671064
1,584,244,466
2020-03-15T03:54:26
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int K =sc.nextInt(); int M[] =new int[32]; M[]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; System.out.println(M[K]); } }
Main.java:7: error: not a statement M[]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; ^ Main.java:7: error: ';' expected M[]={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; ^ Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02741|0
u547671064|p02741|0
codenet
Compile Error
316
v2_s413746428
s413746428
s413746428
p02741
p02741
u547671064
u547671064
1,584,244,747
2020-03-15T03:59:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int K =sc.nextInt(); if(K<=16){ int M[] ={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14}; System.out.println(M[K-1]);} else{int N[] = 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, ...
Main.java:9: error: <identifier> expected else{int N[] = 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; ^ Main.java:12: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02741|0
u547671064|p02741|0
codenet
Compile Error
367
v2_s984696626
s984696626
s984696626
p02741
p02741
u574685848
u574685848
1,593,135,866
2020-06-26T01:44:26
Main.java
import java.util.*; public class Main extends numbe{ static public void main(String[] args){ Scanner sc=new Scanner(System.in); int[] num={1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k=sc.nextInt()-1; System.out.print(num[k]); sc.close(); } }
Main.java:2: error: cannot find symbol public class Main extends numbe{ ^ symbol: class numbe 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574685848|p02741|0
u574685848|p02741|0
codenet
Compile Error
315
v2_s895921437
s895921437
s895921437
p02741
p02741
u707562002
u707562002
1,585,627,587
2020-03-31T04:06:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scn = new scn(System.in); int a = scn.nextInt(); int[] x = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; System.out.println(x[a]); } }
Main.java:4: error: cannot find symbol Scanner scn = new scn(System.in); ^ symbol: class scn location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02741|0
u707562002|p02741|0
codenet
Compile Error
312
v2_s326536279
s326536279
s326536279
p02741
p02741
u707562002
u707562002
1,585,665,310
2020-03-31T14:35:10
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int H = scn.nextInt(); int W = scn.nextInt(); int ans; if(H%2 == 0){ ans = W*(H/2); } else { ans = W*(Math.floor(H/2)) + (int)Math.ceil(W/2); ...
Main.java:11: error: incompatible types: possible lossy conversion from double to int ans = W*(Math.floor(H/2)) + (int)Math.ceil(W/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02741|1
u707562002|p02741|1
codenet
Compile Error
363
v2_s531312944
s531312944
s531312944
p02741
p02741
u707562002
u707562002
1,585,665,341
2020-03-31T14:35:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int H = scn.nextInt(); int W = scn.nextInt(); int ans; if(H%2 == 0){ ans = W*(H/2); } else { ans = (int)W*(Math.floor(H/2)) + (int)Math.ceil(W/2);...
Main.java:11: error: incompatible types: possible lossy conversion from double to int ans = (int)W*(Math.floor(H/2)) + (int)Math.ceil(W/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02741|1
u707562002|p02741|1
codenet
Compile Error
368
v2_s982550208
s982550208
s982550208
p02741
p02741
u707562002
u707562002
1,585,665,393
2020-03-31T14:36:33
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int H = scn.nextInt(); int W = scn.nextInt(); int ans; if(H%2 == 0){ ans = W*(H/2); } else { ans = W*(Math.floor(H/2)); ans += (int)Math.c...
Main.java:11: error: incompatible types: possible lossy conversion from double to int ans = W*(Math.floor(H/2)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02741|1
u707562002|p02741|1
codenet
Compile Error
377
v2_s402691303
s402691303
s402691303
p02741
p02741
u717651301
u717651301
1,584,652,518
2020-03-19T21:15:18
Main.java
public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int vales[] = {1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51}; int k = sc.nextInt(); System.out.println(vales[k -1]); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717651301|p02741|0
u717651301|p02741|0
codenet
Compile Error
313