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_s365943477
s365943477
s365943477
p02729
p02729
u482226328
u482226328
1,584,925,458
2020-03-23T01:04:18
Main.java
} return comb[k]; } long repeatedCombination(int n, int k) { return combination(n + k - 1, k); } } private static class ModularCombination { private final long fact[]; private final long mod; private final Modular modular; public ModularCombination(int size, long m...
Main.java:2: error: class, interface, enum, or record expected } ^ Main.java:4: error: class, interface, enum, or record expected } ^ Main.java:8: error: class, interface, enum, or record expected } ^ Main.java:147: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u482226328|p02729|0
u482226328|p02729|0
codenet
Compile Error
3,148
v2_s204428386
s204428386
s204428386
p02729
p02729
u487795608
u487795608
1,585,276,285
2020-03-27T02:31:25
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); System.out.println(N * N -1 / 2 + M * M- 1 /2); } }
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
u487795608|p02729|0
u487795608|p02729|0
codenet
Compile Error
220
v2_s446273229
s446273229
s446273229
p02729
p02729
u585919238
u585919238
1,586,974,674
2020-04-15T18:17:54
Main.java
java.util.Scanner; class Main{ int sum(int n){ return n*(n+1)/2; } public static void main(String[] args){ int n,m; Scanner scan = new Scanner(System.in); n = scan.nextInt(); m = scan.nextInt(); System.out.print(sum(n-1)+sum(m-1)); } }
Main.java:1: error: class, interface, enum, or record expected java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u585919238|p02729|0
u585919238|p02729|0
codenet
Compile Error
271
v2_s588926925
s588926925
s588926925
p02729
p02729
u600133550
u600133550
1,584,929,317
2020-03-23T02:08:37
Main.java
import java.util.*; import java.lang.*; class Solution{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int a[]=new int[100]; a[0]=0; a[1]=0; int l=3; for(int i=2;i<100;i++){ a[i]=a[i-1]+l; l=l+1; } ...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u600133550|p02729|0
u600133550|p02729|0
codenet
Compile Error
627
v2_s230398888
s230398888
s230398888
p02729
p02729
u608257553
u608257553
1,584,926,211
2020-03-23T01:16:51
Main.java
2 1 4 3 1 1 13 3 0 3
Main.java:1: error: class, interface, enum, or record expected 2 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u608257553|p02729|0
u608257553|p02729|0
codenet
Compile Error
21
v2_s409113145
s409113145
s409113145
p02729
p02729
u626353997
u626353997
1,585,437,114
2020-03-28T23:11:54
Main.java
#include <iostream> using namespace std; int main(){ int n,m; cin >>n>>m; cout<<(n+m)*(n+m-1)/2-n*m<<endl; return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:7: error: not a statement cin >>n>>m; ^ Main.java:8: error: not a statement cout<<(n+m)*(n+m-1)/2-n*m<<endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p02729|2
u626353997|p02729|2
codenet
Compile Error
136
v2_s715051871
s715051871
s715051871
p02729
p02729
u634173914
u634173914
1,585,446,985
2020-03-29T01:56:25
Main.java
public static void main(String args[]){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); System.out.println(N*(N-1)/2+M*(M-1)/2); }
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
u634173914|p02729|0
u634173914|p02729|0
codenet
Compile Error
205
v2_s115880482
s115880482
s115880482
p02729
p02729
u764902390
u764902390
1,585,198,201
2020-03-26T04:50:01
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int M = scan.nextInt(); System.out.println((N(N-1)/2)+(M(M-1)/2)); } }
Main.java:11: error: cannot find symbol System.out.println((N(N-1)/2)+(M(M-1)/2)); ^ symbol: method N(int) location: class Main Main.java:11: error: cannot find symbol System.out.println((N(N-1)/2)+(M(M-1)/2)); ^ symbol: method M(int) location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764902390|p02729|0
u764902390|p02729|0
codenet
Compile Error
251
v2_s751833831
s751833831
s751833831
p02729
p02729
u769291367
u769291367
1,597,196,541
2020-08-12T01:42:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int result = 0; int sum = 0; if(N / 2 == 0 && M / 2 != 0) sum = N + M; if(sum / 2 == 0) result++ Syst...
Main.java:14: error: ';' expected result++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02729|0
u769291367|p02729|0
codenet
Compile Error
350
v2_s174038836
s174038836
s174038836
p02729
p02729
u820895990
u820895990
1,584,925,987
2020-03-23T01:13:07
Main.java
import java.util.*; static long combination(long n,long r) { long ans=1; for(long i=0;i<r;i++) { ans=(ans*(n-i))/(i+1); } return ans; } public class Main {// Main public static void main(String[] args){ Scanner sc=new Scanner(System.in); long e=s...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. static long combination(long n,long r) ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u820895990|p02729|0
u820895990|p02729|0
codenet
Compile Error
521
v2_s499982172
s499982172
s499982172
p02729
p02729
u860874998
u860874998
1,589,340,987
2020-05-13T03:36:27
Main.java
//Atcoder160A 配列の比較 import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N=S.length; for(int i=0;i<(N-1)/2;i++){ if(S.charAt(i) == S.charAt(N-1-i)&&S.charAt(i) == S.charAt((N-1)/2-1-i)&&S.charAt(N-i)...
Main.java:8: error: cannot find symbol int N=S.length; ^ symbol: variable length location: variable S of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02729|0
u860874998|p02729|0
codenet
Compile Error
448
v2_s627039098
s627039098
s627039098
p02729
p02729
u869728296
u869728296
1,588,470,468
2020-05-03T01:47:48
Main.java
public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); int M=stdIn.nextInt(); int N=stdIn.nextInt(); System.out.println(M*(M-1)/2+N*(N-1)/2); }
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
u869728296|p02729|0
u869728296|p02729|0
codenet
Compile Error
211
v2_s636648367
s636648367
s636648367
p02729
p02729
u900560792
u900560792
1,587,559,267
2020-04-22T12:41:07
Main.java
class Main { int fact(int n){ return n == 1 ? 1 : n * fact( n-1 ); } int selection(int n){ if(n==0 || n==1) return 0; else{ int k=fact(n); int l=fact(n-2); int m=fact(2); int p=k/(l*m); return p; } }...
Main.java:19: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:19: 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
u900560792|p02729|0
u900560792|p02729|0
codenet
Compile Error
598
v2_s803225005
s803225005
s803225005
p02729
p02729
u910088520
u910088520
1,584,927,519
2020-03-23T01:38:39
MyClass.java
import java.util.*; public class MyClass { public static void main(String args[]) { Scanner sc = new Scaanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); System.out.println( (n*(n-1))/2+(m*(m-1))/2 ); } }
MyClass.java:5: error: cannot find symbol Scanner sc = new Scaanner(System.in); ^ symbol: class Scaanner location: class MyClass 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910088520|p02729|0
u910088520|p02729|0
codenet
Compile Error
257
v2_s638158079
s638158079
s638158079
p02729
p02729
u910295652
u910295652
1,585,551,713
2020-03-30T07:01:53
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); int a = n!; int b = m!; System.out.println(a+b); } }
Main.java:8: error: ';' expected int a = n!; ^ Main.java:9: error: ';' expected int b = m!; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910295652|p02729|0
u910295652|p02729|0
codenet
Compile Error
266
v2_s925158334
s925158334
s925158334
p02729
p02729
u926352007
u926352007
1,597,376,971
2020-08-14T03:49:31
Main.java
#include <stdio.h> int main(void){ int n,m; int nsum,msum; int s; scanf("%d"" %d ", &n,&m); if ( n < 2) nsum = 0; else if ( n > 1) nsum = n * (n - 1) / 2; if ( m < 2) msum = 0; else if ( m > 1) ...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected int nsum,msum; ^ Main.java:6: error: unnamed classes are a preview feature and are d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926352007|p02729|0
u926352007|p02729|0
codenet
Compile Error
419
v2_s548068627
s548068627
s548068627
p02729
p02729
u926352007
u926352007
1,597,377,044
2020-08-14T03:50:44
Main.java
#include <stdio.h> int main(void) { int N; int M; scanf("%d", &N); scanf("%d", &M); int cnt_a = 0; int cnt_b = 0; cnt_a = (N * (N - 1)) / 2; cnt_b = (M * (M - 1)) / 2; int sum = cnt_a + cnt_b; printf("%d\n", sum); return 0; }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int M; ^ (use --enable-preview to enable unnamed classes) Main.java:6:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926352007|p02729|0
u926352007|p02729|0
codenet
Compile Error
250
v2_s509480361
s509480361
s509480361
p02729
p02729
u926352007
u926352007
1,597,377,147
2020-08-14T03:52:27
Main.java
#include<stdio.h> int main(){ int N,M; scanf("%d%d",&N,&M); printf("%d\n",(N*(N-1))/2+(M*(M-1)/2)); return 0; }
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected scanf("%d%d",&N,&M); ^ Main.java:7: error: class, interface, enum, or record expected printf("...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926352007|p02729|0
u926352007|p02729|0
codenet
Compile Error
127
v2_s892869095
s892869095
s892869095
p02729
p02729
u954450470
u954450470
1,584,926,510
2020-03-23T01:21:50
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int s = 0; for (int i = N - 1; i > 0; i--) s = s + i; for (int i = M - 1; i > 0; i--) s = s + i; System.out.println("" + s); } }
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
u954450470|p02729|0
u954450470|p02729|0
codenet
Compile Error
292
v2_s829032926
s829032926
s829032926
p02729
p02729
u992134985
u992134985
1,584,925,463
2020-03-23T01:04:23
Main.java
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <array> using namespace std; int main(){ int n,m; cin >> n >> m; int ans = 0; if(n > 2){ ans += n*(n-1)/2; } if(m > 2){ ans += m*(m-1)/2; } cout << ans <<endl; return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cstdio> ^ Main.java:3: error: illegal character: '#' #include <vector> ^ Main.java:4: error: illegal character: '#' #include <algorithm> ^ Main.java:5: error: illegal character: '#' #include <array> ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992134985|p02729|0
u992134985|p02729|0
codenet
Compile Error
312
v2_s150459768
s150459768
s150459768
p02730
p02730
u007805459
u007805459
1,596,132,585
2020-07-30T18:09:45
Main.java
import java.io.*; import java.lang.reflect.Array; import java.util.*; public class Main { public static void main(String[] args) { InputReader sc = new InputReader(System.in); PrintWriter pw = new PrintWriter(System.out); Random gen = new Random(); int test = 1;//sc.nextInt(); ...
Main.java:15: error: <identifier> expected String sh = s.import java.io.BufferedReader; ^ Main.java:15: error: not a statement String sh = s.import java.io.BufferedReader; ^ Main.java:16: error: illegal start of expression impor...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p02730|0
u007805459|p02730|0
codenet
Compile Error
6,231
v2_s063071611
s063071611
s063071611
p02730
p02730
u016958027
u016958027
1,584,925,760
2020-03-23T01:09:20
Main.java
import java.io.*; import java.util.*; import forces.Solution.Reader; class Main { static long sx = 0, sy = 0, m = (long) (1e9 + 7); static ArrayList<Integer>[] a; static int[] dp; static long[] farr; // static boolean b = true; static HashMap<Integer, Integer> hm = new HashMap<>(); // static TreeMap<Integ...
Main.java:5: error: package forces.Solution does not exist import forces.Solution.Reader; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016958027|p02730|0
u016958027|p02730|0
codenet
Compile Error
5,225
v2_s304394645
s304394645
s304394645
p02730
p02730
u019117875
u019117875
1,584,926,906
2020-03-23T01:28:26
Main.java
import java.io.*; class Palin { public static void main()throws IOException { String s,s1="",s2="",s3="",s4"",s5=""; int i,j=0; BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); s=input.readLine(); l=s.length(); l1=(l-1)/2; l2=(l+3)/2; s2=s.substring(0,l1); ...
Main.java:6: error: ';' expected String s,s1="",s2="",s3="",s4"",s5=""; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02730|0
u019117875|p02730|0
codenet
Compile Error
667
v2_s136825857
s136825857
s136825857
p02730
p02730
u019117875
u019117875
1,584,926,989
2020-03-23T01:29:49
Main.java
import java.io.*; class Palin { public static void main()throws IOException { String s,s1="",s2="",s3="",s4="",s5=""; int i,j=0; BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); s=input.readLine(); l=s.length(); l1=(l-1)/...
Main.java:8: error: cannot find symbol BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); ^ symbol: class BufferdReader location: class Palin Main.java:8: error: cannot find symbol BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02730|0
u019117875|p02730|0
codenet
Compile Error
800
v2_s137558618
s137558618
s137558618
p02730
p02730
u019117875
u019117875
1,584,927,051
2020-03-23T01:30:51
Main.java
import java.io.*; class Palin { public static void main()throws IOException { String s,s1="",s2="",s3="",s4"",s5=""; int i,j=0,l,l1,l2; BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); s=input.readLine(); l=s.length(); l1...
Main.java:6: error: ';' expected String s,s1="",s2="",s3="",s4"",s5=""; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02730|0
u019117875|p02730|0
codenet
Compile Error
807
v2_s076696134
s076696134
s076696134
p02730
p02730
u019117875
u019117875
1,584,927,087
2020-03-23T01:31:27
Main.java
import java.io.*; class Palin { public static void main()throws IOException { String s,s1="",s2="",s3="",s4="",s5=""; int i,j=0,l,l1,l2; BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); s=input.readLine(); l=s.length(); l...
Main.java:8: error: cannot find symbol BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); ^ symbol: class BufferdReader location: class Palin Main.java:8: error: cannot find symbol BufferdReader input=new BufferedReader(new InputStreamReaader(System.in)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02730|0
u019117875|p02730|0
codenet
Compile Error
808
v2_s773428394
s773428394
s773428394
p02730
p02730
u019117875
u019117875
1,584,927,154
2020-03-23T01:32:34
Main.java
import java.io.*; class Palin { public static void main()throws IOException { String s,s1="",s2="",s3="",s4="",s5=""; int i,j=0,l,l1,l2; BufferdReader input=new BufferedReader(new InputStreamReader(System.in)); s=input.readLine(); l=s.length(); l1...
Main.java:8: error: cannot find symbol BufferdReader input=new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferdReader location: class Palin 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02730|0
u019117875|p02730|0
codenet
Compile Error
807
v2_s041265196
s041265196
s041265196
p02730
p02730
u037069148
u037069148
1,596,831,581
2020-08-07T20:19:41
Solution.java
import java.util.Scanner; public class Solution{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)/2)) && isPalindrome(word.substr...
Solution.java:11: error: ')' or ',' expected if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)/2)) && isPalindrome(word.substring(((length+3)/2)-1, length){ ^ Solutio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
679
v2_s967919557
s967919557
s967919557
p02730
p02730
u037069148
u037069148
1,596,831,678
2020-08-07T20:21:18
Solution.java
import java.util.Scanner; public class Solution{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(...
Solution.java:11: error: ')' expected if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)/2)) && isPalindrome(word.substring(((length+3)/2)-1, length)){ ^ 1 er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
790
v2_s123224304
s123224304
s123224304
p02730
p02730
u037069148
u037069148
1,596,831,792
2020-08-07T20:23:12
Main.java
public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)/2)) && isPalindrome(word.substring(((length+3)/2)...
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:24: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
748
v2_s568585036
s568585036
s568585036
p02730
p02730
u037069148
u037069148
1,596,831,989
2020-08-07T20:26:29
Solution.java
import java.util.Scanner; public class Solution{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)/2)) && isPalindrome(word.substring(((length...
Solution.java:21: error: bad operand types for binary operator '!=' if (Character.compare(string.substring(i), string.substring(string.length()-1-i) != 0)){ ^ first type: String second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
688
v2_s832310800
s832310800
s832310800
p02730
p02730
u037069148
u037069148
1,596,832,119
2020-08-07T20:28:39
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) && isPalindrome(word.substring(0, (length-1)...
Main.java:21: error: method equals in class String cannot be applied to given types; if (String.equals(string.substring(i), string.substring(string.length()-1-i))){ ^ required: Object found: String,String reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
788
v2_s341411968
s341411968
s341411968
p02730
p02730
u037069148
u037069148
1,596,832,298
2020-08-07T20:31:38
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String word = scan.nextLine(); int length = word.length(); if (isPalindrome(word) ...
Main.java:21: error: incompatible types: int cannot be converted to boolean if (string.substring(i).compareTo(string.substring(string.length()-1-i))){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u037069148|p02730|0
u037069148|p02730|0
codenet
Compile Error
891
v2_s461547483
s461547483
s461547483
p02730
p02730
u073396193
u073396193
1,584,927,513
2020-03-23T01:38:33
Main.java
import java.io.BufferedReader; import java.io.*; import java.util.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Collections; public class Main { public static void main(final String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); ...
Main.java:62: error: unclosed character literal System.out.println('Yes'); ^ Main.java:62: error: unclosed character literal System.out.println('Yes'); ^ Main.java:62: error: not a statement System.out.println('Yes'); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073396193|p02730|0
u073396193|p02730|0
codenet
Compile Error
1,550
v2_s271266000
s271266000
s271266000
p02730
p02730
u079088332
u079088332
1,585,118,821
2020-03-25T06:47:01
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String S = scanner.next(); int N = S.length(); String S1 = S.substring(0,(N - 1) / 2); String S2 = S.substring((N + 3) / 2 - 1,N); String answer = "No"; ...
Main.java:30: error: illegal start of type return true; ^ Main.java:32: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079088332|p02730|0
u079088332|p02730|0
codenet
Compile Error
771
v2_s017399404
s017399404
s017399404
p02730
p02730
u094619686
u094619686
1,592,869,000
2020-06-22T23:36:40
Main.java
//#define _USE_MATH_DEFINES #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cmath> #include <vector> using namespace std; int i = 0; bool is_kaibun(char s[], int l, int r) { while(s[l] == s[r]) { l++; r--; i++; } if (l > r) return true; else return f...
Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' #include <cstdio> ^ Main.java:4: error: illegal character: '#' #include <cstdlib> ^ Main.java:5: error: illegal character: '#' #include <cstring> ^ Main.java:6: error: illegal character: '#' #include <algorithm> ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u094619686|p02730|0
u094619686|p02730|0
codenet
Compile Error
652
v2_s017057631
s017057631
s017057631
p02730
p02730
u109449621
u109449621
1,587,274,464
2020-04-19T05:34:24
Main.java
import java.util.*; import java.io.*; public class Main { private static String checkP(String s, int start, int end) { int sum = start + end, limit = (sum % 2 == 0) ? (sum / 2) : ((sum / 2) - 1); for(int i = start, j = end; i <= limit; i++, --j) { if(s.charAt(i) != s.charAt(j)) return false; } ...
Main.java:9: error: incompatible types: boolean cannot be converted to String if(s.charAt(i) != s.charAt(j)) return false; ^ Main.java:11: error: incompatible types: boolean cannot be converted to String return true; ^ Main.java:17: error: bad operand typ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109449621|p02730|0
u109449621|p02730|0
codenet
Compile Error
609
v2_s585979179
s585979179
s585979179
p02730
p02730
u109640435
u109640435
1,584,928,935
2020-03-23T02:02:15
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String firstCheck = s.substring(0,(s.length()-1)/2); System.out.println("firstCheck is: "+firstCheck); String seconCheck = s.substring((s.length()+3)/2 - 1, s.length()); Sy...
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109640435|p02730|0
u109640435|p02730|0
codenet
Compile Error
842
v2_s887740253
s887740253
s887740253
p02730
p02730
u128313765
u128313765
1,585,332,641
2020-03-27T18:10:41
trabajo.java
public class trabajo { public static void primer(String frase){ for(int i=0;i<frase.length();i++){ for(int x=frase.length()-1;i>=0;i--){ if(frase.charAt(x)==frase.charAt(i)){ JOptionPane.showMessageDialog(null,"si es palindromo"); }else{ ...
trabajo.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128313765|p02730|0
u128313765|p02730|0
codenet
Compile Error
457
v2_s530645293
s530645293
s530645293
p02730
p02730
u128313765
u128313765
1,585,332,793
2020-03-27T18:13:13
Main.java
class Main { for(int i=0;i<frase.length();i++){ for(int x=frase.length()-1;i>=0;i--){ if(frase.charAt(x)==frase.charAt(i)){ JOptionPane.showMessageDialog(null,"si es palindromo"); }else{ JOptionPane.showMessageDialog(null,"NO es...
Main.java:4: error: illegal start of type for(int i=0;i<frase.length();i++){ ^ Main.java:4: error: > or ',' expected for(int i=0;i<frase.length();i++){ ^ Main.java:4: error: <identifier> expected for(int i=0;i<frase.length();i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128313765|p02730|0
u128313765|p02730|0
codenet
Compile Error
408
v2_s839452552
s839452552
s839452552
p02730
p02730
u128313765
u128313765
1,585,332,843
2020-03-27T18:14:03
trabajo.java
public class trabajo { public static void primer(String frase){ for(int i=0;i<frase.length();i++){ for(int x=frase.length()-1;i>=0;i--){ if(frase.charAt(x)==frase.charAt(i)){ JOptionPane.showMessageDialog(null,"Yes"); }else{ JOpti...
trabajo.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128313765|p02730|0
u128313765|p02730|0
codenet
Compile Error
430
v2_s132106313
s132106313
s132106313
p02730
p02730
u128313765
u128313765
1,585,332,903
2020-03-27T18:15:03
Main.java
class Main { for(int i=0;i<frase.length();i++){ for(int x=frase.length()-1;i>=0;i--){ if(frase.charAt(x)==frase.charAt(i)){ JOptionPane.showMessageDialog(null,"Yes"); }else{ JOptionPane.showMessageDialog(null,"No"); } ...
Main.java:4: error: illegal start of type for(int i=0;i<frase.length();i++){ ^ Main.java:4: error: > or ',' expected for(int i=0;i<frase.length();i++){ ^ Main.java:4: error: <identifier> expected for(int i=0;i<frase.length();i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u128313765|p02730|0
u128313765|p02730|0
codenet
Compile Error
379
v2_s047668538
s047668538
s047668538
p02730
p02730
u158114739
u158114739
1,584,926,867
2020-03-23T01:27:47
Main.java
import java.util.*; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if (checkReverse(S)) { if (checkReverse(S.substring((S.length() + 1) / 2))) { System.out.println("Yes"); return; } } S...
Main.java:20: error: incompatible types: inference variable R has incompatible bounds String reverseS = Slist.stream().collect(StringBuilder::new, StringBuilder::append, StringBuilder::append); ^ upper bounds: String,Object lower bounds: StringBuilder where R,T are ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u158114739|p02730|0
u158114739|p02730|0
codenet
Compile Error
677
v2_s643102009
s643102009
s643102009
p02730
p02730
u212397344
u212397344
1,585,008,247
2020-03-24T00:04:07
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); char[] charS = S.toCharArray(); boolean isStrong = true; for(int i=0; i<charS.length(); i++){ for(int j=charS.length()-1; j>=0; j--){ if(charS[i] != char...
Main.java:8: error: cannot find symbol for(int i=0; i<charS.length(); i++){ ^ symbol: method length() location: variable charS of type char[] Main.java:9: error: cannot find symbol for(int j=charS.length()-1; j>=0; j--){ ^ symbol: method length() locati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02730|0
u212397344|p02730|0
codenet
Compile Error
935
v2_s834694738
s834694738
s834694738
p02730
p02730
u212397344
u212397344
1,585,008,359
2020-03-24T00:05:59
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); char[] charS = S.toCharArray(); boolean isStrong = true; for(int i=0; i<charS.length; i++){ for(int j=charS.length-1; j>=0; j--){ if(charS[i] != charS[j]...
Main.java:24: error: cannot find symbol for(int i=(chharS.length+3)/2-1; i<charS.length; i++){ ^ symbol: variable chharS location: class Main Main.java:25: error: cannot find symbol for(int j=charS.length-1; j>=(chharS.length+3)/2; j--){ ^ symbol: v...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02730|0
u212397344|p02730|0
codenet
Compile Error
920
v2_s045195889
s045195889
s045195889
p02730
p02730
u212397344
u212397344
1,585,009,095
2020-03-24T00:18:15
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); char[] charS = S.toCharArray(); int length = charS.length; boolean isStrong = true; for(int i=0; i<N; i++){ if(charS[i] != charS[N-1-i]){ isStrong=fa...
Main.java:9: error: cannot find symbol for(int i=0; i<N; i++){ ^ symbol: variable N location: class Main Main.java:10: error: cannot find symbol if(charS[i] != charS[N-1-i]){ ^ symbol: variable N location: class Main Main.java:15: error: cannot find sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02730|0
u212397344|p02730|0
codenet
Compile Error
688
v2_s528170444
s528170444
s528170444
p02730
p02730
u218740431
u218740431
1,585,092,252
2020-03-24T23:24:12
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = "Yes"; int c = a.length(); for(int i=0;i<(c-1)/2;i++){if(a.charAt(i).equals(a.charAt(c-1-i)) && a.charAt(i).equals(a.charAt((c-1)/2-1-i))){} ...
Main.java:8: error: char cannot be dereferenced for(int i=0;i<(c-1)/2;i++){if(a.charAt(i).equals(a.charAt(c-1-i)) && a.charAt(i).equals(a.charAt((c-1)/2-1-i))){} ^ Main.java:8: error: char cannot be dereferenced for(int i=0;i<(c-1)/2;i++){if(a.charAt(i).e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02730|0
u218740431|p02730|0
codenet
Compile Error
442
v2_s121633788
s121633788
s121633788
p02730
p02730
u218740431
u218740431
1,585,092,553
2020-03-24T23:29:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String a = sc.next(); String b = "Yes"; int c = a.length(); for(int i=0;i<(c-1)/2;i++){if(a.charAt(i).equals(a.charAt(c-1-i)) && a.charAt(i).equals(a.charAt((c-1)/2-1-i))){ }...
Main.java:8: error: char cannot be dereferenced for(int i=0;i<(c-1)/2;i++){if(a.charAt(i).equals(a.charAt(c-1-i)) && a.charAt(i).equals(a.charAt((c-1)/2-1-i))){ } ^ Main.java:8: error: char cannot be dereferenced for(int i=0;i<(c-1)/2;i++){if(a.charAt(i)....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02730|0
u218740431|p02730|0
codenet
Compile Error
443
v2_s800055865
s800055865
s800055865
p02730
p02730
u296383300
u296383300
1,591,886,419
2020-06-11T14:40:19
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner s = new Scanner(System.in); string s = sc.next; int n = s.length(); String left = s.substring(0,(n-1)/2); String right =s.substring((n+3)/2-1,n); if(left.equals(right...
Main.java:5: error: cannot find symbol string s = sc.next; ^ symbol: class string location: class Main Main.java:5: error: variable s is already defined in method main(String[]) string s = sc.next; ^ Main.java:5: error: cannot find symbol string s = sc.next; ^ symbol: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u296383300|p02730|0
u296383300|p02730|0
codenet
Compile Error
429
v2_s282037055
s282037055
s282037055
p02730
p02730
u312964891
u312964891
1,584,928,679
2020-03-23T01:57:59
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int length = s.length(); int i = (length-1)/2-1; int j = (length+3)/2-1; if(isPalindrome(s,0,length-1) && isPalindrome(s,...
Main.java:18: error: illegal start of expression public boolean isPalindrome(String s,int i,int j){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u312964891|p02730|0
u312964891|p02730|0
codenet
Compile Error
701
v2_s342785573
s342785573
s342785573
p02730
p02730
u369712616
u369712616
1,584,926,699
2020-03-23T01:24:59
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] input = sc.next().toCharArrary(); int le = input.length; boolean bl = true; for(int i = 0; i < (n - 1) / 2; i++){ bl &= (input[i] == input[n - 1 - i]); } for(int ...
Main.java:5: error: cannot find symbol char[] input = sc.next().toCharArrary(); ^ symbol: method toCharArrary() location: class String Main.java:8: error: cannot find symbol for(int i = 0; i < (n - 1) / 2; i++){ ^ symbol: variable n location: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02730|0
u369712616|p02730|0
codenet
Compile Error
521
v2_s870943225
s870943225
s870943225
p02730
p02730
u369712616
u369712616
1,584,926,743
2020-03-23T01:25:43
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); char[] input = sc.next().toCharArary(); int n = input.length; boolean bl = true; for(int i = 0; i < (n - 1) / 2; i++){ bl &= (input[i] == input[n - 1 - i]); } for(int i ...
Main.java:5: error: cannot find symbol char[] input = sc.next().toCharArary(); ^ symbol: method toCharArary() location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02730|0
u369712616|p02730|0
codenet
Compile Error
519
v2_s232816734
s232816734
s232816734
p02730
p02730
u383363320
u383363320
1,587,580,409
2020-04-22T18:33:29
Main.java
import java.io.*; public class Main{ public static void main(String...args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String subString = br.readLine(); int len = subString.length(); String r1 = new StringBuilder(subString).reverse().toString(); String s1 =...
Main.java:5: error: cannot find symbol String r1 = new StringBuilder(subString).reverse().toString(); String s1 = S.substring(0,(len-1)/2); ^ symbol: variable S location: class Main Main.java:6: error: cannot find symbol String...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u383363320|p02730|0
u383363320|p02730|0
codenet
Compile Error
636
v2_s763892174
s763892174
s763892174
p02730
p02730
u417506212
u417506212
1,584,929,601
2020-03-23T02:13:21
Main.java
public class Main { public static void main(String[] args) { // 読み込み Boolean flag1 = false; Boolean flag2 = false; Boolean flag3 = false; Scanner sc = new Scanner(System.in); String S = sc.next(); int N = S.length(); // 条件1 StringBuffer sb = new StringBuffer(S); sb.reverse(); if(S.toString(...
Main.java:10: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:10: 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
u417506212|p02730|0
u417506212|p02730|0
codenet
Compile Error
946
v2_s691065025
s691065025
s691065025
p02730
p02730
u437727817
u437727817
1,587,792,346
2020-04-25T05:25:46
Main.java
import java.util.Scanner; import java.util.*; /** * @author yamato * */ public class Main { /** * @param args */ public static boolean kaibun(String S,int N) { int i; String s1; String s2; if(N%2 != 0) { s1 = S.substring(0,(N-1)/2); s2 = S.substring((N-1)/2+1); }else { s1 = S.substring(0...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u437727817|p02730|1
u437727817|p02730|0
codenet
Compile Error
617
v2_s952822079
s952822079
s952822079
p02730
p02730
u510020380
u510020380
1,584,931,238
2020-03-23T02:40:38
Main.java
import java.util.Scanner; public static void main(String[] args) { char word[]; int k = 0; Scanner scan = new Scanner(System.in); String S = scan.next(); int N = S.length(); for(int a = 0; a < N; a++){ //for文で文字数分の配列に1文字ずつ入れたかった(野望) word[a] = str.charAt(a); } //文字数が偶数だったときは半分までk...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:50: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u510020380|p02730|0
u510020380|p02730|0
codenet
Compile Error
968
v2_s854509657
s854509657
s854509657
p02730
p02730
u511176146
u511176146
1,586,401,797
2020-04-09T03:09:57
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner can = new Scanner(System.in); String kaibun = can.next(); char bunkai[] = new char[kaibun.length()]; for(int i = 0; i < (kaibun.length() - 1) / 2;i++) { if(kaibun.charAt(i) != kaibun.charAt(kaibun.length() - 1...
Main.java:19: error: ')' expected if(kaibun.charAt(i) != kaibun.charAt((kaibun.length() - 1) / 2 - 1){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511176146|p02730|0
u511176146|p02730|0
codenet
Compile Error
640
v2_s193771269
s193771269
s193771269
p02730
p02730
u547671064
u547671064
1,584,925,915
2020-03-23T01:11:55
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); String N=sc.next(); String n[] =N.split("",0); int m=N.length(); int M=m/2 for(int i=0;i<M;i++){ if(!(n[i].equals(n[m-1-i]))){System.out.println("No");System.exit(0);} ...
Main.java:8: error: ';' expected int M=m/2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02730|0
u547671064|p02730|0
codenet
Compile Error
548
v2_s779741173
s779741173
s779741173
p02730
p02730
u572345088
u572345088
1,591,542,464
2020-06-07T15:07:44
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s = in.readLine(); int s_len = s.length(); if(s...
Main.java:10: error: cannot find symbol if(s.substring(0,(n-1)/2).equalse(s.substring((n+1)/2,n))) { ^ symbol: variable n location: class Main Main.java:10: error: cannot find symbol if(s.substring(0,(n-1)/2).equalse(s.substring((n+1)/2,n))) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572345088|p02730|1
u572345088|p02730|1
codenet
Compile Error
466
v2_s292996621
s292996621
s292996621
p02730
p02730
u572345088
u572345088
1,591,542,560
2020-06-07T15:09:20
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String s = in.readLine(); int s_len = s.length(); if(s...
Main.java:10: error: cannot find symbol if(s.substring(0,(s_len-1)/2).equalse(s.substring((s_len+1)/2,s_len))) { ^ symbol: method equalse(String) location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572345088|p02730|1
u572345088|p02730|1
codenet
Compile Error
478
v2_s282317139
s282317139
s282317139
p02730
p02730
u586721659
u586721659
1,589,399,521
2020-05-13T19:52:01
Main.java
#include<iostream> using namespace std; bool is_palindrome(string s){ string t(s.rbegin(),s.rend()); return s == t; } int main(){ string s; cin>>s; int n=s.size(); if(is_palindrome(s) && is_palindrome(s.substr(0,(n-1)/2)) && is_palindrome(s.substr((n+1)/2))){ cout<<"Yes"<<endl; } ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include<iostream> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. bool is_palindrome(string s){ ^ (use --enable-preview to enable unnamed cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u586721659|p02730|0
u586721659|p02730|0
codenet
Compile Error
348
v2_s469489180
s469489180
s469489180
p02730
p02730
u587100042
u587100042
1,588,318,369
2020-05-01T07:32:49
Main.java
import java.util.*; public class Main{ static boolean kai(String public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s=sc.next(); char[] a; a=s.toCharArray(); int n=a.length; int f=0; for(int i=0;i<=(n-1)/2;i++){ if(a[i]==a[n-1-i]){ if(a[i]==...
Main.java:3: error: <identifier> expected static boolean kai(String ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02730|0
u587100042|p02730|0
codenet
Compile Error
558
v2_s516219154
s516219154
s516219154
p02730
p02730
u587100042
u587100042
1,588,319,609
2020-05-01T07:53:29
Main.java
import java.util.*; import java.io.*; public static boolean kaibun(String s){ StringBuffer sb=new StringBuffer(s); sb.reverse(); String t=sb.toString(); return t.equals(s); } public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s=sc.next(); char[] a...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static boolean kaibun(String s){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02730|0
u587100042|p02730|0
codenet
Compile Error
572
v2_s095852705
s095852705
s095852705
p02730
p02730
u587100042
u587100042
1,588,319,801
2020-05-01T07:56:41
Main.java
import java.util.*; import java.io.*; public class Main{ public static boolean kaibun(String s){ StringBuffer sb=new StringBuffer(s); sb.reverse(); String t=sb.toString(); return t.equals(s); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s=sc.next(); cha...
Main.java:17: error: cannot find symbol for(int i=0;i<(n-1)/2;i++){ ^ symbol: variable n location: class Main Main.java:19: error: cannot find symbol y+=a[(n+1)/2+i]; ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02730|0
u587100042|p02730|0
codenet
Compile Error
577
v2_s763554826
s763554826
s763554826
p02730
p02730
u635104822
u635104822
1,584,927,626
2020-03-23T01:40:26
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); String S=in.nextLine();String p="",b=""; int N=S.length(); StringBuffer br=new StringBuffer(S); if(S.reverse().compareTo(S)=0) { p=S.substring(0,(N-1)/2); StringBuf...
Main.java:16: error: ';' expected b=S.substring((N-1)/2)-1)); ^ Main.java:30: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02730|0
u635104822|p02730|0
codenet
Compile Error
706
v2_s295412878
s295412878
s295412878
p02730
p02730
u659156129
u659156129
1,596,466,195
2020-08-03T14:49:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); String s = scn.next(); int check = 0; String[] list = s.split(""); String[] list1 = new String[s.length()]; for(int i=0; i<s.length(); ++i){ ...
Main.java:43: error: not a statement list3[] = list[((s.length()+3)/2-1)+i]; ^ Main.java:43: error: ';' expected list3[] = list[((s.length()+3)/2-1)+i]; ^ Main.java:43: error: not a statement list3[] = list[((s.length()+3)/2-1)+i]; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02730|0
u659156129|p02730|0
codenet
Compile Error
1,712
v2_s235201691
s235201691
s235201691
p02730
p02730
u766280310
u766280310
1,584,925,676
2020-03-23T01:07:56
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s=sc.next(); int n=s.length(); boolean res=check(s,0,n-1)&&check(s,0,(n-1)/2-1)&&check(s,(n+3)/2-1,n-1); if(res)System.out.println("Yes"); else...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u766280310|p02730|0
u766280310|p02730|0
codenet
Compile Error
600
v2_s775275192
s775275192
s775275192
p02730
p02730
u832834830
u832834830
1,585,080,610
2020-03-24T20:10:10
Main.java
import java.util.*; public class Main { public static boolean isPalindrome(String str){ if(str.length() <= 1){ return true; } else{ if(str[0] == str[str.length()-1]){ return isPalindrome(str.subString(1,str.length()-1)) } else{ return false; ...
Main.java:9: error: ';' expected return isPalindrome(str.subString(1,str.length()-1)) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
630
v2_s352991860
s352991860
s352991860
p02730
p02730
u832834830
u832834830
1,585,080,680
2020-03-24T20:11:20
Main.java
import java.util.*; public class Main { public static boolean isPalindrome(String str){ if(str.length() <= 1){ return true; } else{ if(str[0] == str[str.length()-1]){ return isPalindrome(str.subString(1,str.length()-1)); } else{ return false; ...
Main.java:8: error: array required, but String found if(str[0] == str[str.length()-1]){ ^ Main.java:8: error: array required, but String found if(str[0] == str[str.length()-1]){ ^ Main.java:9: error: cannot find symbol return isPalindrome(str.subString(1,st...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
632
v2_s177621209
s177621209
s177621209
p02730
p02730
u832834830
u832834830
1,585,085,915
2020-03-24T21:38:35
Main.java
import java.util.*; public class Main { /* public static boolean isPalindrome(String str, int start, int end){ if( end - start <= 1){ return true; } else{ if(str.indexOf(start) == str.indexOf(end)){ return isPalindrome(str,start+1,end-1); } else{ ...
Main.java:21: error: ';' expected String halfStr = str.substring(0,str.length()+1)/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
840
v2_s123108935
s123108935
s123108935
p02730
p02730
u832834830
u832834830
1,585,085,978
2020-03-24T21:39:38
Main.java
import java.util.*; public class Main { /* public static boolean isPalindrome(String str, int start, int end){ if( end - start <= 1){ return true; } else{ if(str.indexOf(start) == str.indexOf(end)){ return isPalindrome(str,start+1,end-1); } else{ ...
Main.java:23: error: cannot find symbol boolean isStrongPalindrome = new StringBuffer(halfstr).reverse().toString().equals(halfStr) ^ symbol: variable halfstr location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
841
v2_s734552485
s734552485
s734552485
p02730
p02730
u832834830
u832834830
1,585,086,013
2020-03-24T21:40:13
Main.java
import java.util.*; public class Main { /* public static boolean isPalindrome(String str, int start, int end){ if( end - start <= 1){ return true; } else{ if(str.indexOf(start) == str.indexOf(end)){ return isPalindrome(str,start+1,end-1); } else{ ...
Main.java:21: error: ';' expected String halfStr = str.substring(0,str.length()+1)/2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
840
v2_s265386742
s265386742
s265386742
p02730
p02730
u832834830
u832834830
1,585,086,323
2020-03-24T21:45:23
Main.java
import java.util.*; public class Main { /* public static boolean isPalindrome(String str, int start, int end){ if( end - start <= 1){ return true; } else{ if(str.indexOf(start) == str.indexOf(end)){ return isPalindrome(str,start+1,end-1); } else{ ...
Main.java:24: error: cannot find symbol boolean isStrongPalindrome = new StringBuffer(leftStr).reverse().toString().equals(leftStr) ^ symbol: variable leftStr location: class Main Main.java:24: error: cannot find symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u832834830|p02730|0
u832834830|p02730|0
codenet
Compile Error
924
v2_s658302306
s658302306
s658302306
p02730
p02730
u860874998
u860874998
1,589,340,932
2020-05-13T03:35:32
Main.java
//Atcoder160A 配列の比較 import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N=S.length; for(int i=0;i<(N-1)/2;i++) if(S.charAt(i) == S.charAt(N-1-i)&&S.charAt(i) == S.charAt((N-1)/2-1-i)&&S.charAt(N-i) ...
Main.java:15: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02730|0
u860874998|p02730|0
codenet
Compile Error
447
v2_s926183581
s926183581
s926183581
p02730
p02730
u860874998
u860874998
1,589,341,548
2020-05-13T03:45:48
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N=S.length(); x = s.substring(0,N/2); y = s.substring(N/2+1,N); if(x.equals(y)){ System.out.println("Yes");} else{ ...
Main.java:8: error: cannot find symbol x = s.substring(0,N/2); ^ symbol: variable x location: class Main Main.java:8: error: cannot find symbol x = s.substring(0,N/2); ^ symbol: variable s location: class Main Main.java:9: error: cannot find symbol y = s.subst...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02730|0
u860874998|p02730|0
codenet
Compile Error
354
v2_s219198573
s219198573
s219198573
p02730
p02730
u860874998
u860874998
1,589,341,590
2020-05-13T03:46:30
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N=S.length(); String x = s.substring(0,N/2); String y = s.substring(N/2+1,N); if(x.equals(y)){ System.out.println("Yes");} ...
Main.java:8: error: cannot find symbol String x = s.substring(0,N/2); ^ symbol: variable s location: class Main Main.java:9: error: cannot find symbol String y = s.substring(N/2+1,N); ^ symbol: variable s location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02730|0
u860874998|p02730|0
codenet
Compile Error
368
v2_s892266935
s892266935
s892266935
p02730
p02730
u860874998
u860874998
1,589,341,878
2020-05-13T03:51:18
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); int N=S.length(); String x = S.substring(0,N/2); String y = S.substring(N/2+1,N); if(x.equals(y)){ System.out.println("Yes");} ...
Main.java:16: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:31: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02730|0
u860874998|p02730|0
codenet
Compile Error
752
v2_s450363157
s450363157
s450363157
p02730
p02730
u897853321
u897853321
1,600,101,226
2020-09-14T16:33:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int n = s.length(); String a = s.substring(0, n/2); String b = s.substring(n/2+1, n); boolean ans = isKaibun(a) && isKaibun(b) && isKaibun...
Main.java:18: error: unnamed classes are a preview feature and are disabled by default. private static boolean isKaibun(String s) { ^ (use --enable-preview to enable unnamed classes) Main.java:25: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02730|0
u897853321|p02730|0
codenet
Compile Error
585
v2_s982249643
s982249643
s982249643
p02730
p02730
u897853321
u897853321
1,600,101,263
2020-09-14T16:34:23
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int n = s.length(); String a = s.substring(0, n/2); String b = s.substring(n/2+1, n); boolean ans = isKaibun(a) && isKaibun(b) && isKaibun...
Main.java:18: error: unnamed classes are a preview feature and are disabled by default. private static boolean isKaibun(String s) { ^ (use --enable-preview to enable unnamed classes) Main.java:25: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02730|0
u897853321|p02730|0
codenet
Compile Error
585
v2_s127155251
s127155251
s127155251
p02730
p02730
u977879365
u977879365
1,593,728,426
2020-07-02T22:20:26
Main.java
#include <bits/stdc++.h> #define rep(i,n) for(int i = 0; i < (n); i++) using ll = long long; using namespace std; using P = pair<int,int>; bool isPalindrome(string s){ string t = s; reverse(t.begin(),t.end()); return s == t; } int main(){ string s; cin >> s; bool ans = true; if(!isPalindro...
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 rep(i,n) for(int i = 0; i < (n); i++) ^ Main.java:2: error: class, interface, enum, or record expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u977879365|p02730|0
u977879365|p02730|0
codenet
Compile Error
457
v2_s387619597
s387619597
s387619597
p02731
p02731
u016958027
u016958027
1,584,926,939
2020-03-23T01:28:59
Main.java
import java.io.*; import java.util.*; import foundation.june20.double_unique; class Main { static long sx = 0, sy = 0, m = (long) (1e9 + 7); static ArrayList<Integer>[] a; static int[] dp; static long[] farr; // static boolean b = true; static HashMap<Integer, Integer> hm = new HashMap<>(); // static TreeM...
Main.java:5: error: package foundation.june20 does not exist import foundation.june20.double_unique; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u016958027|p02731|0
u016958027|p02731|0
codenet
Compile Error
5,161
v2_s351841017
s351841017
s351841017
p02731
p02731
u044527108
u044527108
1,585,033,207
2020-03-24T07:00:07
Main.java
import java.util.*; import java.lang.*; public class Main { public static void main(string args[]) { Scanner s = new Scanner(System.in); double l = s.newDouble(); double len = l/3; System.out.println(Math.pow(len, 3)); } }
Main.java:6: error: cannot find symbol public static void main(string args[]) ^ symbol: class string location: class Main Main.java:9: error: cannot find symbol double l = s.newDouble(); ^ symbol: method newDouble() location: variable s of type Sca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044527108|p02731|0
u044527108|p02731|0
codenet
Compile Error
267
v2_s022119564
s022119564
s022119564
p02731
p02731
u044527108
u044527108
1,585,033,395
2020-03-24T07:03:15
Main.java
import java.util.*; import java.lang.*; class Main { public static void main(string args[]) { Scanner s = new Scanner(System.in); double l = s.newDouble(); double len = l/3; System.out.println(Math.pow(len, 3)); } }
Main.java:6: error: cannot find symbol public static void main(string args[]) ^ symbol: class string location: class Main Main.java:9: error: cannot find symbol double l = s.newDouble(); ^ symbol: method newDouble() location: variable s of type Sca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044527108|p02731|0
u044527108|p02731|0
codenet
Compile Error
260
v2_s302692683
s302692683
s302692683
p02731
p02731
u047746316
u047746316
1,592,942,142
2020-06-23T19:55:42
Main.java
import java.util.*; import java.math.BigDecimal; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); //入力 int L = sc.nextInt(); double M =(double) L/3;  //直方体の体積(最大) S...
Main.java:13: error: illegal character: '\u3000' ?//??????(??? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047746316|p02731|0
u047746316|p02731|0
codenet
Compile Error
391
v2_s188041295
s188041295
s188041295
p02731
p02731
u089230684
u089230684
1,586,558,259
2020-04-10T22:37:39
Main.java
import java.util.Scanner; class MaxVolume{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int input = s.nextInt(); double length = input/(double)3; System.out.println(length*length*length) } }
Main.java:7: error: ';' expected System.out.println(length*length*length) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02731|0
u089230684|p02731|0
codenet
Compile Error
232
v2_s765884935
s765884935
s765884935
p02731
p02731
u156931988
u156931988
1,588,443,298
2020-05-02T18:14:58
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); flaot total_len = Flaot.valueOf(sc.next()); System.out.println((total_len/3)*(total_len/3)*(total_len/3)); } }
Main.java:6: error: cannot find symbol flaot total_len = Flaot.valueOf(sc.next()); ^ symbol: class flaot location: class Main Main.java:6: error: cannot find symbol flaot total_len = Flaot.valueOf(sc.next()); ^ symbol: variable Flaot location: class Main 2 e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u156931988|p02731|0
u156931988|p02731|0
codenet
Compile Error
266
v2_s663949218
s663949218
s663949218
p02731
p02731
u156931988
u156931988
1,588,443,320
2020-05-02T18:15:20
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); flaot total_len = Float.valueOf(sc.next()); System.out.println((total_len/3)*(total_len/3)*(total_len/3)); } }
Main.java:6: error: cannot find symbol flaot total_len = Float.valueOf(sc.next()); ^ symbol: class flaot location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u156931988|p02731|0
u156931988|p02731|0
codenet
Compile Error
266
v2_s190620693
s190620693
s190620693
p02731
p02731
u207294148
u207294148
1,585,855,838
2020-04-02T19:30:38
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int L = stdIn.nextInt(); stdIn.close(); double x = L / 3.0; double result = x * x * x; System.out.printf(result); } }
Main.java:11: error: no suitable method found for printf(double) System.out.printf(result); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; double cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207294148|p02731|0
u207294148|p02731|0
codenet
Compile Error
296
v2_s807020540
s807020540
s807020540
p02731
p02731
u207294148
u207294148
1,585,855,865
2020-04-02T19:31:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int L = stdIn.nextInt(); stdIn.close(); double x = L / 3.0; double result = x * x * x; System.out.printf(result); } }
Main.java:11: error: no suitable method found for printf(double) System.out.printf(result); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; double cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207294148|p02731|0
u207294148|p02731|0
codenet
Compile Error
296
v2_s946888907
s946888907
s946888907
p02731
p02731
u207845630
u207845630
1,584,928,773
2020-03-23T01:59:33
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int L = sc.nextInt(); double hen = L / 3; ans = hen * hen * hen; System.out.println(ans); } }
Main.java:7: error: cannot find symbol ans = hen * hen * hen; ^ symbol: variable ans location: class Main Main.java:8: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207845630|p02731|0
u207845630|p02731|0
codenet
Compile Error
223
v2_s661256047
s661256047
s661256047
p02731
p02731
u212397344
u212397344
1,585,011,043
2020-03-24T00:50:43
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double L = sc.nextDouble(); SYstem.out.println(L*L*L/27); } }
Main.java:6: error: package SYstem does not exist SYstem.out.println(L*L*L/27); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02731|0
u212397344|p02731|0
codenet
Compile Error
186
v2_s787944627
s787944627
s787944627
p02731
p02731
u217597504
u217597504
1,584,930,412
2020-03-23T02:26:52
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String [] args){ Scanner in = new Scanner(System.in); int l = in.nextInt(); double a = l/3; l =l-a; double b = l/2; double c = (l-b); System.out.print(a*b*c); } }
Main.java:8: error: incompatible types: possible lossy conversion from double to int l =l-a; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u217597504|p02731|0
u217597504|p02731|0
codenet
Compile Error
266
v2_s242676246
s242676246
s242676246
p02731
p02731
u284795785
u284795785
1,584,932,453
2020-03-23T03:00:53
Main.java
ort java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); double n=sc.nextDouble(); double ans=Math.pow(n/3,3); System.out.println(ans); } }
Main.java:1: error: class, interface, enum, or record expected ort java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02731|0
u284795785|p02731|0
codenet
Compile Error
219
v2_s144918199
s144918199
s144918199
p02731
p02731
u299189387
u299189387
1,585,988,180
2020-04-04T08:16:20
Vol.java
import.java.util.Scanner; public class Vol { public static void main(String[] args) { Scanner key = new Scanner(System.in); int num = key.nextInt(); key.close(); double volume = num/3; System.out.println(volume*volume*volume); } }
Vol.java:1: error: <identifier> expected import.java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u299189387|p02731|0
u299189387|p02731|0
codenet
Compile Error
292
v2_s122512568
s122512568
s122512568
p02731
p02731
u394325049
u394325049
1,585,514,774
2020-03-29T20:46:14
Main.java
import java.util.*; public class Main{ public static void main(String args[]) { Scanner sc=new Scanner(System.in); double s=sc.nextDouble(); double si=s/3; System.out.printf(si*si*si); } }
Main.java:7: error: no suitable method found for printf(double) System.out.printf(si*si*si); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; double cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u394325049|p02731|0
u394325049|p02731|0
codenet
Compile Error
211
v2_s614610648
s614610648
s614610648
p02731
p02731
u429342487
u429342487
1,593,010,476
2020-06-24T14:54:36
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int L = scan.nextInt(); double b = double L/3; double a =0; a = b*b*b; System.out.println(a); } }
Main.java:10: error: '.class' expected double b = double L/3; ^ Main.java:10: error: not a statement double b = double L/3; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u429342487|p02731|0
u429342487|p02731|0
codenet
Compile Error
291
v2_s221944267
s221944267
s221944267
p02731
p02731
u462253630
u462253630
1,584,928,310
2020-03-23T01:51:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); double n = sc.nextInt(); double answer =( n / 3) * (n / 3) ** (n/ 3); System.out.println(answer); } }
Main.java:9: error: illegal start of expression double answer =( n / 3) * (n / 3) ** (n/ 3); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u462253630|p02731|0
u462253630|p02731|0
codenet
Compile Error
315
v2_s882199599
s882199599
s882199599
p02731
p02731
u635104822
u635104822
1,584,930,500
2020-03-23T02:28:20
Main.java
import java.util.*; class Main { public static voidn main() { Scanner in=new Scanner(System.in); int L=in.nextInt(); double p=(double)(L/3); double k=p*p*p; System.out.println(k); } }
Main.java:4: error: cannot find symbol public static voidn main() ^ symbol: class voidn location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635104822|p02731|0
u635104822|p02731|0
codenet
Compile Error
209
v2_s120009563
s120009563
s120009563
p02731
p02731
u653981267
u653981267
1,595,690,026
2020-07-25T15:13:46
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double L = sc.nextDouble(); double ans = (L / (double)3) * (L / (double)3) * (L / (double)3) System.out.println(ans); } }
Main.java:7: error: ';' expected double ans = (L / (double)3) * (L / (double)3) * (L / (double)3) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02731|1
u653981267|p02731|1
codenet
Compile Error
261
v2_s541892249
s541892249
s541892249
p02731
p02731
u699628455
u699628455
1,588,377,884
2020-05-02T00:04:44
Main.java
import java.util.*; class Main{ static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int L = sc.nextInt(); L =L*1.0; System.out.println((L*L*L)/27); } }
Main.java:6: error: incompatible types: possible lossy conversion from double to int L =L*1.0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02731|0
u699628455|p02731|0
codenet
Compile Error
217