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_s789219047
s789219047
s789219047
p04005
p04005
u631971129
u631971129
1,473,746,196
2016-09-13T05:56:36
Main.java
import java.util.Scanner; public class Main { static final Scanner in = new Scanner(System.in); private static int[] input(){ int a[] = new int[3]; for(int i=0; i<len; i++) { a[i] = in.nextInt(); } return a; } private static int solve(int a[]) { if (a[0]%2 == 0 || a[1]%2==0) { return 0; ...
Main.java:9: error: cannot find symbol for(int i=0; i<len; i++) ^ symbol: variable len location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631971129|p04005|0
u631971129|p04005|0
codenet
Compile Error
465
v2_s183597280
s183597280
s183597280
p04005
p04005
u694571112
u694571112
1,542,407,189
2018-11-16T22:26:29
Main.java
import java.util.*; import java.util.Arrays; class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long[] t = new int[3]; t[0] =Long.parseLong(sc.next()); t[1] =Long.parseLong(sc.next()); t[2] =Long.parseLong(sc.next()); Arrays.sort(...
Main.java:9: error: incompatible types: int[] cannot be converted to long[] long[] t = new int[3]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u694571112|p04005|0
u694571112|p04005|0
codenet
Compile Error
460
v2_s765065183
s765065183
s765065183
p04006
p04006
u018679195
u018679195
1,564,189,198
2019-07-27T00:59:58
Main.java
#include<iostream> #include<string> #include<cstring> #include<map> #include<algorithm> #include<set> #include<vector> #include<cstdio> #include<cmath> #include<queue> using namespace std; typedef long long LL; const int maxn = 2e3 + 5; LL a[maxn]; LL b[maxn][maxn]; int main(){ int n; LL x,sum = 1LL << 60LL; ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<string> ^ Main.java:3: error: illegal character: '#' #include<cstring> ^ Main.java:4: error: illegal character: '#' #include<map> ^ Main.java:5: error: illegal character: '#' #include<algorithm> ^ Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p04006|0
u018679195|p04006|0
codenet
Compile Error
808
v2_s412664358
s412664358
s412664358
p04006
p04006
u353919145
u353919145
1,564,187,971
2019-07-27T00:39:31
Main.java
public static void main(String[] args) { // TODO Auto-generated method stub long x,bal1,bal2,bal3,ans,kk; int n; Scanner in =new Scanner(System.in); n=in.nextInt();x=in.nextLong(); long [] a=new long[n+1000]; for(int i=1;i<=n;i++) { a[i]=in.nextLong(); } ans=0;kk=-1; for(int i=1;i<=n;i++) { b...
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
u353919145|p04006|0
u353919145|p04006|0
codenet
Compile Error
593
v2_s014168088
s014168088
s014168088
p04006
p04006
u816631826
u816631826
1,564,189,145
2019-07-27T00:59:05
Main.java
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int maxn = 2e3 + 5; LL a[maxn]; LL b[maxn][maxn]; int main(){ int n; LL x,sum = 1LL << 60LL; cin >> n >> x; for(int i = 1;i <= n;i++) cin >> a[i]; for(int i = 1;i <= n;i++){ b[i][0] = a[i]; for(int k = 1;k <= n...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long LL; ^ Main.java:5: error: class, interface, enum, or record expected cons...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p04006|0
u816631826|p04006|0
codenet
Compile Error
664
v2_s359858951
s359858951
s359858951
p04006
p04006
u816631826
u816631826
1,564,189,410
2019-07-27T01:03:30
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub long x,kk,ans; int n; Scanner in =new Scanner(System.in); n=in.nextInt();x=in.nextLong(); long [] a=new long[n+1000]; long [][] dp = new long[n+500][n+500]; for(int i=1;i<=n;i++) { a[i]=in.nextLong(); ...
Main.java:7: error: cannot find symbol Scanner in =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner in =new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p04006|0
u816631826|p04006|0
codenet
Compile Error
854
v2_s767280357
s767280357
s767280357
p04006
p04006
u863370423
u863370423
1,564,187,857
2019-07-27T00:37:37
BBBBBBBBBB.java
public class BBBBBBBBBB { public static void main(String[] args) { // TODO Auto-generated method stub long x,bal1,bal2,bal3,ans,kk; int n; Scanner in =new Scanner(System.in); n=in.nextInt();x=in.nextLong(); long [] a=new long[n+1000]; for(int i=1;i<=n;i++) { a[i]=in.nextLong(); } ans=0;kk=-1; ...
BBBBBBBBBB.java:7: error: cannot find symbol Scanner in =new Scanner(System.in); ^ symbol: class Scanner location: class BBBBBBBBBB BBBBBBBBBB.java:7: error: cannot find symbol Scanner in =new Scanner(System.in); ^ symbol: class Scanner location: class BBBBBBBBBB 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p04006|0
u863370423|p04006|0
codenet
Compile Error
625
v2_s673882193
s673882193
s673882193
p04008
p04008
u110651993
u110651993
1,473,097,083
2016-09-05T17:38:03
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.List; import java.io.IOException; import java.util.ArrayList; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Denis Nedelyaev ...
Main.java:91: error: invalid method declaration; return type required public FastScanner(InputStream inputStream) throws IOException { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u110651993|p04008|2
u110651993|p04008|1
codenet
Compile Error
3,485
v2_s945193996
s945193996
s945193996
p04008
p04008
u137474376
u137474376
1,473,127,219
2016-09-06T02:00:19
Main.java
import ru.ifmo.niyaz.io.FastScannerTokenizer; import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.io.OutputStream; import java.io.IOException; import java.util.*; import java.io.InputStreamReader; import java.io.Writer; import java.io.BufferedRea...
Main.java:1: error: package ru.ifmo.niyaz.io does not exist import ru.ifmo.niyaz.io.FastScannerTokenizer; ^ 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
u137474376|p04008|2
u137474376|p04008|1
codenet
Compile Error
7,927
v2_s914737665
s914737665
s914737665
p04008
p04008
u839675792
u839675792
1,473,161,758
2016-09-06T11:35:58
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private static long K; private static List<List<Long>> vec; private static int ans; public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ...
Main.java:34: error: incompatible types: possible lossy conversion from long to int height = Math.max(height, dfs(j, v)); ^ 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
u839675792|p04008|1
u839675792|p04008|1
codenet
Compile Error
1,095
v2_s320024981
s320024981
s320024981
p04011
p04011
u134665813
u134665813
1,590,299,863
2020-05-24T05:57:43
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(); // 整数の入力 int N = sc.nextInt(); int K = sc.nextInt(); int X = sc.nextInt(); int Y = sc.nextInt(); // 宿泊費の合計を計算 int sum; if (N<=K) { sum = N * X; } else { sum ...
Main.java:4: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134665813|p04011|0
u134665813|p04011|0
codenet
Compile Error
427
v2_s694082474
s694082474
s694082474
p04011
p04011
u134665813
u134665813
1,590,299,930
2020-05-24T05:58:50
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(); // 整数の入力 int N = sc.nextInt(); int K = sc.nextInt(); int X = sc.nextInt(); int Y = sc.nextInt(); // 宿泊費の合計を計算 int sum = 0; if (N<=K) { sum = N * X; } else { ...
Main.java:4: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable (...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134665813|p04011|0
u134665813|p04011|0
codenet
Compile Error
431
v2_s780195723
s780195723
s780195723
p04011
p04011
u171074630
u171074630
1,590,192,562
2020-05-23T00:09:22
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); int sum = 0; if((n-k) >= 0){ sum += (k*x)+((n-k)*y); }else{ sum ...
Main.java:14: error: ';' expected sum += n*x ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u171074630|p04011|0
u171074630|p04011|0
codenet
Compile Error
367
v2_s331572086
s331572086
s331572086
p04011
p04011
u188396343
u188396343
1,580,845,843
2020-02-04T19:50:43
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int n,k,x,y; cin >> n >> k >> x >> y; if(n<=k){ cout << x*n; }else{ cout << x*k+y*(n-k); } }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:6: error: not a statement cin >> n >> k >> x >> y; ^ Main.java:8: error: not a statement cout << x*n; ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p04011|0
u188396343|p04011|0
codenet
Compile Error
170
v2_s032414888
s032414888
s032414888
p04011
p04011
u208309047
u208309047
1,573,951,185
2019-11-17T00:39:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { int[] num = new int[4]; int money = 0; for (int i = 0; i < 4; i++) { num[i] = new java.util.Scanner(System.in).nextInt(); } if(num[0]>num[1]) { money = num[1]*num[2]+ num[3]*(num[0]-num[1]); } if(num[0]<=num[1]...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208309047|p04011|0
u208309047|p04011|0
codenet
Compile Error
357
v2_s014269103
s014269103
s014269103
p04011
p04011
u208309047
u208309047
1,573,951,229
2019-11-17T00:40:29
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { int[] num = new int[4]; int money = 0; for (int i = 0; i < 4; i++) { num[i] = new java.util.Scanner(System.in).nextInt(); } if(num[0]>num[1]) { money = num[1]*num[2]+ num[3]*(num[0]-num[1]); } if(num[0]<=num[1...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u208309047|p04011|0
u208309047|p04011|0
codenet
Compile Error
362
v2_s171647572
s171647572
s171647572
p04011
p04011
u241090452
u241090452
1,588,270,074
2020-04-30T18:07:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); if(n-k<0){ System.out.println(n*x); }else{ ...
Main.java:13: error: cannot find symbol System.out.printnln(k*x+(n-k)*y); ^ symbol: method printnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241090452|p04011|0
u241090452|p04011|0
codenet
Compile Error
376
v2_s508206542
s508206542
s508206542
p04011
p04011
u249218713
u249218713
1,472,437,645
2016-08-29T02:27:25
Main.java
import java.util.Scanner; public Class FeeCalculator(){ public static void main (String [] args){ Scanner in = new Scanner(System.in); int N = in.nextInt(); int K = in.nextInt(); int X = in.nextInt(); int Y = in.nextInt(); int total = K*X + (N-K)*Y; System.out.println(total); } }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public Class FeeCalculator(){ ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: illegal start of expression public static void main (String [] args){ ^ Main.java:14: error: class, interface, enum, or rec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u249218713|p04011|0
u249218713|p04011|0
codenet
Compile Error
286
v2_s349449876
s349449876
s349449876
p04011
p04011
u399138188
u399138188
1,596,868,492
2020-08-08T06:34:52
Abc_044.java
public class Abc_044 { public static void main(String args[]) { int N; int K; int X; int Y; int yen; yen= K*X+(N-K)*Y; System.out.println(yen); } }
Abc_044.java:9: error: variable K might not have been initialized yen= K*X+(N-K)*Y; ^ Abc_044.java:9: error: variable X might not have been initialized yen= K*X+(N-K)*Y; ^ Abc_044.java:9: error: variable N might not have been initialized yen= K*X+(N-K)*Y; ^ Abc_044.java:9: error: varia...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399138188|p04011|0
u399138188|p04011|0
codenet
Compile Error
166
v2_s565626645
s565626645
s565626645
p04011
p04011
u412290310
u412290310
1,562,866,553
2019-07-11T17:35:53
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 k = sc.nextInt(); //泊数 int x = sc.nextInt(); //金額 int y = sc.nextInt(); //金額 if (n > k){ System...
Main.java:12: error: cannot find symbol System.out.println(x * k + y (n - k)); ^ symbol: method y(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412290310|p04011|0
u412290310|p04011|0
codenet
Compile Error
436
v2_s442139641
s442139641
s442139641
p04011
p04011
u412290310
u412290310
1,562,866,578
2019-07-11T17:36:18
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 k = sc.nextInt(); //泊数 int x = sc.nextInt(); //金額 int y = sc.nextInt(); //金額 if (n > k){ System...
Main.java:12: error: cannot find symbol System.out.println(x * k + y(n - k)); ^ symbol: method y(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412290310|p04011|0
u412290310|p04011|0
codenet
Compile Error
435
v2_s266353958
s266353958
s266353958
p04011
p04011
u412290310
u412290310
1,562,866,674
2019-07-11T17:37:54
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 k = sc.nextInt(); //泊数 int x = sc.nextInt(); //金額 int y = sc.nextInt(); //金額 if (n > k){ System...
Main.java:12: error: cannot find symbol System.out.println(x * k + y(n-k)); ^ symbol: method y(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u412290310|p04011|0
u412290310|p04011|0
codenet
Compile Error
433
v2_s693849319
s693849319
s693849319
p04011
p04011
u421651097
u421651097
1,472,438,319
2016-08-29T02:38:39
taskA.java
import java.util.*; public class taskA { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int totalNights, numFirst, numSubsequent; int priceFirst, priceSubsequent; totalNights = sc.nextInt(); numFirs...
taskA.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u421651097|p04011|0
u421651097|p04011|0
codenet
Compile Error
740
v2_s971863478
s971863478
s971863478
p04011
p04011
u453208627
u453208627
1,585,273,492
2020-03-27T01:44:52
Main.java
public static void main(String[] args) { System.out.println( new App().calcCost( toInt(args[0]) ,toInt(args[1]) ,toInt(args[2]) ,toInt(args[3]) ) ); } public static int toInt (String a) { ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453208627|p04011|0
u453208627|p04011|0
codenet
Compile Error
727
v2_s813502860
s813502860
s813502860
p04011
p04011
u519450844
u519450844
1,490,852,738
2017-03-30T05:45: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 K = sc.nextInt(); int X = sc.nextInt(); int Y = sc.nextInt(); int M; if(N > K){ M = K * X + (N - k) * Y; ...
Main.java:11: error: cannot find symbol M = K * X + (N - k) * Y; ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u519450844|p04011|0
u519450844|p04011|0
codenet
Compile Error
455
v2_s004315827
s004315827
s004315827
p04011
p04011
u522305303
u522305303
1,508,239,547
2017-10-17T11:25:47
Main.java
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { FastScanner in = new FastScanner(); int N = in.nextInt(); int K = in.nextInt(); int X = in.nextInt(); int Y = in.nextInt(); if (K > N...
Main.java:79: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u522305303|p04011|0
u522305303|p04011|0
codenet
Compile Error
1,949
v2_s703796189
s703796189
s703796189
p04011
p04011
u593227551
u593227551
1,498,175,239
2017-06-22T23:47:19
Main.java
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); System.out.println(x*...
Main.java:12: error: ')' or ',' expected System.out.println(x*k+Math.max(0, y*(n-k)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593227551|p04011|0
u593227551|p04011|0
codenet
Compile Error
349
v2_s385729124
s385729124
s385729124
p04011
p04011
u593227551
u593227551
1,498,175,271
2017-06-22T23:47:51
Main.java
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); int x = scanner.nextInt(); int y = scanner.nextInt(); System.out.println(x*...
Main.java:12: error: ')' or ',' expected System.out.println(x*k+Math.max(0, y*(n-k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593227551|p04011|0
u593227551|p04011|0
codenet
Compile Error
348
v2_s322691279
s322691279
s322691279
p04011
p04011
u602086678
u602086678
1,474,394,393
2016-09-20T17:59:53
Main.java
import java.io.*; class Test { public static void main(String args[]) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String[] strStdIn = new String[4]; for (int i=0; i < 4; i++) { strStdIn[i] = in.readLine(); } int totalLiving = Integer.parseInt(s...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown strStdIn[i] = in.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u602086678|p04011|0
u602086678|p04011|0
codenet
Compile Error
796
v2_s481049427
s481049427
s481049427
p04011
p04011
u602086678
u602086678
1,474,394,710
2016-09-20T18:05:10
Main.java
import java.util.Scanner; class Test { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String[] strStdIn = new String[4]; while (scanner.hasNextLine()) { int i = 0; strStdIn[i] = scanner.nextLine(); i++; if (s.length() == 0) { break; } int totalLiv...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u602086678|p04011|0
u602086678|p04011|0
codenet
Compile Error
820
v2_s125711490
s125711490
s125711490
p04011
p04011
u602086678
u602086678
1,474,395,009
2016-09-20T18:10:09
Main.java
import java.util.Scanner; class Test { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String[] strStdIn = new String[4]; while (scanner.hasNextLine()) { int i = 0; strStdIn[i] = scanner.nextLine(); i++; if (s.length() == 0) { break; } } int tot...
Main.java:12: error: cannot find symbol if (s.length() == 0) { ^ symbol: variable s location: class Test 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u602086678|p04011|0
u602086678|p04011|0
codenet
Compile Error
825
v2_s258556609
s258556609
s258556609
p04011
p04011
u631934736
u631934736
1,580,082,686
2020-01-26T23:51:26
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); BufferedReader input = new BufferedReader(new InputStreamReader(System.in)) int stay = Integer.parseIn...
Main.java:9: error: ';' expected BufferedReader input = new BufferedReader(new InputStreamReader(System.in)) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631934736|p04011|0
u631934736|p04011|0
codenet
Compile Error
703
v2_s378050625
s378050625
s378050625
p04011
p04011
u631934736
u631934736
1,580,082,725
2020-01-26T23:52:05
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); int stay = Integer.parseI...
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown int stay = Integer.parseInt(input.readLine()); ^ Main.java:11: error: unreported exception IOException; must be caught or declared to be thrown int sale = Inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631934736|p04011|0
u631934736|p04011|0
codenet
Compile Error
704
v2_s320003461
s320003461
s320003461
p04011
p04011
u631934736
u631934736
1,580,082,842
2020-01-26T23:54:02
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args){ BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); int stay = Integer.parseInt(input.readLine()); int sale = Integer.parseInt(input.readLin...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown int stay = Integer.parseInt(input.readLine()); ^ Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown int sale = Intege...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u631934736|p04011|0
u631934736|p04011|0
codenet
Compile Error
633
v2_s051850051
s051850051
s051850051
p04011
p04011
u710717356
u710717356
1,477,287,187
2016-10-24T05:33:07
Main.java
public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); String l = scan.next(); String m =scan.next(); String n = scan.next(); String o = scan.next(); int N = Integer.parseInt(l);//5 int K = Integer.parseInt(m);//3 int X = ...
Main.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u710717356|p04011|0
u710717356|p04011|0
codenet
Compile Error
462
v2_s580048756
s580048756
s580048756
p04011
p04011
u719622470
u719622470
1,499,805,899
2017-07-11T20:44:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); char[] ar = a.toCharArray(); loop: for (int i = 0;i < ar.length();i++) { int y = 0; for (int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1...
Main.java:7: error: cannot find symbol loop: for (int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type char[] Main.java:9: error: cannot find symbol for (int m = 0;m < ar.length();m++) { ^ symbol: method length() l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04011|0
u719622470|p04011|0
codenet
Compile Error
491
v2_s990851476
s990851476
s990851476
p04011
p04011
u728597345
u728597345
1,595,130,737
2020-07-19T03:52:17
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); if(n >= k){ int sum = k * x + (n - k) * ...
Main.java:18: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728597345|p04011|0
u728597345|p04011|0
codenet
Compile Error
454
v2_s875900515
s875900515
s875900515
p04011
p04011
u738265085
u738265085
1,580,848,722
2020-02-04T20:38:42
Main.java
import java.util.Scanner; class Main{ Scanner sin = new Scanner(System.in); int N = sin.nextInt(); int K = sin.nextInt(); int X = sin.nextInt(); int Y = sin.nextInt(); if(N<=K){ int XY = X*N; }else{ int NK = N-K; int XY = X*K + Y*NK; } System.out.println(XY); }
Main.java:10: error: illegal start of type if(N<=K){ ^ Main.java:10: error: <identifier> expected if(N<=K){ ^ Main.java:10: error: <identifier> expected if(N<=K){ ^ Main.java:12: error: illegal start of type }else{ ^ Main.java:16: error: <identifier> expected System.out.println(XY); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p04011|0
u738265085|p04011|0
codenet
Compile Error
297
v2_s490923309
s490923309
s490923309
p04011
p04011
u762160119
u762160119
1,552,392,421
2019-03-12T12:07:01
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextint(); if(n<=k) { System.out.println(x*n); }else { ...
Main.java:8: error: cannot find symbol int y = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u762160119|p04011|0
u762160119|p04011|0
codenet
Compile Error
377
v2_s036624800
s036624800
s036624800
p04011
p04011
u858266719
u858266719
1,490,857,625
2017-03-30T07:07:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N =nextInt(); int K =nextInt(); int X =nextInt(); int Y =nextInt(); if(N<=K){ System.out.println(N*X); }else if(N>K){ System.out.println(K*X+(N-K)*Y); } } }
Main.java:5: error: cannot find symbol int N =nextInt(); ^ symbol: method nextInt() location: class Main Main.java:6: error: cannot find symbol int K =nextInt(); ^ symbol: method nextInt() location: class Main Main.java:7: error: cannot find symbol int X =nextInt(); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
300
v2_s360907696
s360907696
s360907696
p04011
p04011
u858266719
u858266719
1,490,857,741
2017-03-30T07:09:01
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X =sc.nextInt(); int K =sc.nextInt(); int X =sc.nextInt(); int Y =sc.nextInt(); if(N<=K){ System.out.println(N*X); }else if(N>K){ System.out.println(K*X+(N-K)*Y); } } }
Main.java:7: error: variable X is already defined in method main(String[]) int X =sc.nextInt(); ^ Main.java:9: error: cannot find symbol if(N<=K){ ^ symbol: variable N location: class Main Main.java:10: error: cannot find symbol System.out.println(N*X); ^ symbol: variable N l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
312
v2_s294106793
s294106793
s294106793
p04011
p04011
u858266719
u858266719
1,490,858,118
2017-03-30T07:15:18
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String X =sc.next(); String K =sc.next(); String X =sc.next(); String Y =sc.next(); if(N<=K){ System.out.println("N*X"); }else if(N>K){ System.out.println("K*X+(N-K)*Y"); } } }
Main.java:7: error: variable X is already defined in method main(String[]) String X =sc.next(); ^ Main.java:9: error: cannot find symbol if(N<=K){ ^ symbol: variable N location: class Main Main.java:11: error: cannot find symbol }else if(N>K){ ^ symbol: variable N location: class Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
316
v2_s272603321
s272603321
s272603321
p04011
p04011
u858266719
u858266719
1,490,858,251
2017-03-30T07:17:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int X =sc.nextInt(); int K =sc.nextInt(); int X =sc.nextInt(); int Y =sc.nextInt(); if(N<=K){ System.out.println("N*X"); }else if(N>K){ System.out.println("K*X+(N-K)*Y"); } } }
Main.java:7: error: variable X is already defined in method main(String[]) int X =sc.nextInt(); ^ Main.java:9: error: cannot find symbol if(N<=K){ ^ symbol: variable N location: class Main Main.java:11: error: cannot find symbol }else if(N>K){ ^ symbol: variable N location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
316
v2_s375865560
s375865560
s375865560
p04011
p04011
u858266719
u858266719
1,490,859,433
2017-03-30T07:37:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n, k, x, y, answer; int X =sc.nextInt(); int K =sc.nextInt(); int X =sc.nextInt(); int Y =sc.nextInt(); if(N<=K){ answer=K * X + (N - K) * Y; System.out.println(answer); }else { ...
Main.java:8: error: variable X is already defined in method main(String[]) int X =sc.nextInt(); ^ Main.java:10: error: cannot find symbol if(N<=K){ ^ symbol: variable N location: class Main Main.java:11: error: cannot find symbol answer=K * X + (N - K) * Y; ^ symbol: variable N ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
370
v2_s494255808
s494255808
s494255808
p04011
p04011
u858266719
u858266719
1,490,859,871
2017-03-30T07:44:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int K =sc.nextInt(); int X =sc.nextInt(); int Y =sc.nextInt(); int S; if(N >= K){ S = K*X+(N-K)*Y; System.ou...
Main.java:12: error: cannot find symbol System.out.println(M); ^ symbol: variable M location: class Main Main.java:15: error: cannot find symbol System.out.println(M); ^ symbol: variable M location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u858266719|p04011|0
u858266719|p04011|0
codenet
Compile Error
420
v2_s326613043
s326613043
s326613043
p04011
p04011
u938403491
u938403491
1,577,838,179
2020-01-01T00:22:59
Main.java
import java.util.*; import java.util.ArrayList; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int n = a-b; int counter =0; if(n>0){ ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u938403491|p04011|0
u938403491|p04011|0
codenet
Compile Error
422
v2_s323715425
s323715425
s323715425
p04011
p04011
u952491523
u952491523
1,548,942,681
2019-01-31T13:51:21
Main.java
import java.util.*; public class Main{ public static void main(string[] args){ int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int x = Integer.parseInt(sc.next()); int y = Integer.parseInt(sc.next()); System.out.println(k * x + (n-k) * y); } }
Main.java:3: error: cannot find symbol public static void main(string[] args){ ^ symbol: class string location: class Main Main.java:4: error: cannot find symbol int n = Integer.parseInt(sc.next()); ^ symbol: variable sc location: class Main Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u952491523|p04011|0
u952491523|p04011|0
codenet
Compile Error
293
v2_s680738987
s680738987
s680738987
p04011
p04011
u952491523
u952491523
1,548,942,718
2019-01-31T13:51:58
Main.java
import java.util.*; public class Main{ public static void main(string[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int x = Integer.parseInt(sc.next()); int y = Integer.parseInt(sc.next()); System.out.println(k * x + (n-...
Main.java:3: error: cannot find symbol public static void main(string[] args){ ^ symbol: class string location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u952491523|p04011|0
u952491523|p04011|0
codenet
Compile Error
334
v2_s749456902
s749456902
s749456902
p04011
p04011
u984264252
u984264252
1,479,847,579
2016-11-22T20:46:19
Main.java
class Main{ public static void main(String[] a){ Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); int x = in.nextInt(); int y = in.nextInt(); int ans = k*x+(n-k)*y; System.out.println(ans); } }
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u984264252|p04011|0
u984264252|p04011|0
codenet
Compile Error
235
v2_s552904151
s552904151
s552904151
p04012
p04012
u485208646
u485208646
1,472,438,117
2016-08-29T02:35:17
Main.java
import java.util.Scanner; class Main { public static void main(String... args) { Scanner sc = new Scanner(System.in); String n = sc.next(); if(n.length() % 2 == 1){ System.out.println("no"); System.exit(0); }else{ boolean b = true; String s = "abcdefghijklmnopqrstuvwxyz"; ...
Main.java:16: error: variable s is already defined in method main(String...) String s = n.charAt(j); ^ Main.java:16: error: incompatible types: char cannot be converted to String String s = n.charAt(j); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485208646|p04012|0
u485208646|p04012|0
codenet
Compile Error
684
v2_s213170175
s213170175
s213170175
p04012
p04012
u488934106
u488934106
1,566,566,783
2019-08-23T13:26:23
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String W = sc.next(); int count = 0; for(char i = 'a'; i <='z'; i++) { for(int x = 0; x < W.length(); x++) { if(W.charAt(x) == i) { count += 1; } } if(count % 2 != 0){ ...
Main.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u488934106|p04012|1
u488934106|p04012|1
codenet
Compile Error
412
v2_s931564120
s931564120
s931564120
p04012
p04012
u516664397
u516664397
1,475,782,979
2016-10-06T19:42:59
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int alpha[] = int[26]; Scanner sc = new Scanner(System.in); String bun = sc.next(); char[] block = bun.toCharArray(); for(int i = 0;i<bun.length();i++){ alpha[(int)block[i]-61] +=1; } int even = 0; for(int i = 0;i<26;i++){...
Main.java:5: error: ']' expected int alpha[] = int[26]; ^ Main.java:21: error: ';' expected if(even == 0){System.out.println("Yes")}else{System.out.println("No")} ^ Main.java:21: error: ';' expected if(even == 0){System.out.println("Yes")}else{System.out.pri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516664397|p04012|0
u516664397|p04012|0
codenet
Compile Error
452
v2_s579745430
s579745430
s579745430
p04012
p04012
u516664397
u516664397
1,475,782,996
2016-10-06T19:43:16
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int alpha[] = int[26]; Scanner sc = new Scanner(System.in); String bun = sc.next(); char[] block = bun.toCharArray(); for(int i = 0;i<bun.length();i++){ alpha[(int)block[i]-61] +=1; } int even = 0; for(int i = 0;i<26;i++){...
Main.java:5: error: ']' expected int alpha[] = int[26]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516664397|p04012|0
u516664397|p04012|0
codenet
Compile Error
454
v2_s482582034
s482582034
s482582034
p04012
p04012
u516664397
u516664397
1,475,783,038
2016-10-06T19:43:58
Main.java
import java.util.*; class Main{ public static void main(String[] args){ int[] alpha = int[26]; Scanner sc = new Scanner(System.in); String bun = sc.next(); char[] block = bun.toCharArray(); for(int i = 0;i<bun.length();i++){ alpha[(int)block[i]-61] +=1; } int even = 0; for(int i = 0;i<26;i++){...
Main.java:5: error: ']' expected int[] alpha = int[26]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u516664397|p04012|0
u516664397|p04012|0
codenet
Compile Error
454
v2_s772743830
s772743830
s772743830
p04012
p04012
u605778072
u605778072
1,534,815,464
2018-08-21T01:37:44
Main.java
import java.math.BigDecimal; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String w = sc.next(); String res = "Yes"; for (char c='a'; c<='z'; c++){ int count = 0; for (int ...
Main.java:22: error: cannot find symbol if (count%2 == 1){ ^ symbol: variable count location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u605778072|p04012|0
u605778072|p04012|0
codenet
Compile Error
592
v2_s791569872
s791569872
s791569872
p04012
p04012
u659156129
u659156129
1,597,177,625
2020-08-11T20:27:05
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(); String[] list = s.split(""); Arrays.sort(list); int[] a = new int[s.length()]; for(int i=0; i<s.length(); i++) a[i] = 0; for(int i=...
Main.java:12: error: '.class' expected while(int j=0; j<s.length()){ ^ Main.java:12: error: > or ',' expected while(int j=0; j<s.length()){ ^ Main.java:12: error: not a statement while(int j=0; j<s.length()){ ^ 3 er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04012|0
u659156129|p04012|0
codenet
Compile Error
624
v2_s826207814
s826207814
s826207814
p04012
p04012
u659156129
u659156129
1,597,177,685
2020-08-11T20:28:05
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(); String[] list = s.split(""); Arrays.sort(list); int[] a = new int[s.length()]; for(int i=0; i<s.length(); i++) a[i] = 0; int j=0; ...
Main.java:14: error: int cannot be dereferenced if(a[i].equals(a[i-1])) a[j]++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04012|0
u659156129|p04012|0
codenet
Compile Error
632
v2_s282026259
s282026259
s282026259
p04012
p04012
u659156129
u659156129
1,597,326,976
2020-08-13T13:56:16
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(); String[] list = s.split(""); Arrays.sort(list); String x = list[0]; int count = 0; for(int i=0;i<s.length;i++){ if(x.e...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04012|1
u659156129|p04012|1
codenet
Compile Error
539
v2_s708489089
s708489089
s708489089
p04012
p04012
u659156129
u659156129
1,597,327,094
2020-08-13T13:58:14
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(); String[] list = s.split(""); Arrays.sort(list); String x = list[0]; int count = 0; for(int i=0;i<s.length;i++){ if(x.e...
Main.java:11: error: cannot find symbol for(int i=0;i<s.length;i++){ ^ symbol: variable length location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04012|1
u659156129|p04012|1
codenet
Compile Error
550
v2_s630250902
s630250902
s630250902
p04012
p04012
u659156129
u659156129
1,597,327,274
2020-08-13T14:01:14
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(); String[] list = s.split(""); if(s.length%2==1){ System.out.println("No"); }else{ Arrays.sort(list); String x = list[...
Main.java:8: error: cannot find symbol if(s.length%2==1){ ^ symbol: variable length location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p04012|1
u659156129|p04012|1
codenet
Compile Error
634
v2_s511816056
s511816056
s511816056
p04012
p04012
u711620077
u711620077
1,567,968,040
2019-09-08T18:40:40
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 文字列の入力 List<String> sList = Arrays.asList(sc.next().split("")); Collections.sort(sList); int count = 0; String lastChar = ""; String ans = "Yes"; ...
Main.java:15: error: not a statement count == 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p04012|0
u711620077|p04012|0
codenet
Compile Error
663
v2_s171776309
s171776309
s171776309
p04012
p04012
u719622470
u719622470
1,499,805,282
2017-07-11T20:34:42
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = Scanner.nextLine(); String[] ar = str.split(""); loop for(int i = 0;i < ar.length();i++) { int y = 0; for(int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y +...
Main.java:7: error: not a statement loop for(int i = 0;i < ar.length();i++) { ^ Main.java:7: error: ';' expected loop for(int i = 0;i < ar.length();i++) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
494
v2_s299592894
s299592894
s299592894
p04012
p04012
u719622470
u719622470
1,499,805,365
2017-07-11T20:36:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = Scanner.nextLine(); String[] ar = str.split(""); loop: for(int i = 0;i < ar.length();i++) { int y = 0; for(int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y ...
Main.java:5: error: non-static method nextLine() cannot be referenced from a static context String a = Scanner.nextLine(); ^ Main.java:6: error: cannot find symbol String[] ar = str.split(""); ^ symbol: variable str location: class Main Main.java:7: error: cannot find symbo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
495
v2_s172871108
s172871108
s172871108
p04012
p04012
u719622470
u719622470
1,499,805,444
2017-07-11T20:37:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); String[] ar = str.split(""); loop: for(int i = 0;i < ar.length();i++) { int y = 0; for(int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1; ...
Main.java:6: error: cannot find symbol String[] ar = str.split(""); ^ symbol: variable str location: class Main Main.java:7: error: cannot find symbol loop: for(int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type String[] M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
489
v2_s240882781
s240882781
s240882781
p04012
p04012
u719622470
u719622470
1,499,805,519
2017-07-11T20:38:39
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); String[] ar = a.split(""); loop: for(int i = 0;i < ar.length();i++) { int y = 0; for(int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1; ...
Main.java:7: error: cannot find symbol loop: for(int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type String[] Main.java:9: error: cannot find symbol for(int m = 0;m < ar.length();m++) { ^ symbol: method length() loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
487
v2_s274588219
s274588219
s274588219
p04012
p04012
u719622470
u719622470
1,499,805,623
2017-07-11T20:40:23
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); String[] ar = a.split(""); loop: for (int i = 0;i < ar.length();i++) { int y = 0; for (int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1; ...
Main.java:7: error: cannot find symbol loop: for (int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type String[] Main.java:9: error: cannot find symbol for (int m = 0;m < ar.length();m++) { ^ symbol: method length() ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
489
v2_s246897117
s246897117
s246897117
p04012
p04012
u719622470
u719622470
1,499,805,779
2017-07-11T20:42:59
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); String[] ar = a.split(""); loop: for (int i = 0;i < ar.length();i++) { int y = 0; for (int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1; ...
Main.java:7: error: cannot find symbol loop: for (int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type String[] Main.java:9: error: cannot find symbol for (int m = 0;m < ar.length();m++) { ^ symbol: method length() ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
489
v2_s616031965
s616031965
s616031965
p04012
p04012
u719622470
u719622470
1,499,805,916
2017-07-11T20:45:16
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); char[] ar = a.toCharArray(); loop: for (int i = 0;i < ar.length();i++) { int y = 0; for (int m = 0;m < ar.length();m++) { if(ar[n].equals(ar[m])) { y += 1...
Main.java:7: error: cannot find symbol loop: for (int i = 0;i < ar.length();i++) { ^ symbol: method length() location: variable ar of type char[] Main.java:9: error: cannot find symbol for (int m = 0;m < ar.length();m++) { ^ symbol: method length() l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
491
v2_s466821665
s466821665
s466821665
p04012
p04012
u719622470
u719622470
1,499,806,077
2017-07-11T20:47:57
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); char[] ar = a.toCharArray(); loop: for (int i = 0;i < ar.length;i++) { int y = 0; for (int m = 0;m < ar.length;m++) { if(ar[n].equals(ar[m])) { y += 1; ...
Main.java:10: error: cannot find symbol if(ar[n].equals(ar[m])) { ^ symbol: variable n location: class Main Main.java:10: error: char cannot be dereferenced if(ar[n].equals(ar[m])) { ^ Main.java:13: error: int cannot be dereferenced if(m.equals(ar[ar.length])) { ^ 3 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
485
v2_s823060730
s823060730
s823060730
p04012
p04012
u719622470
u719622470
1,499,806,212
2017-07-11T20:50:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.nextLine(); char[] ar = a.toCharArray(); loop: for (int i = 0;i < ar.length;i++) { int y = 0; for (int m = 0;m < ar.length;m++) { if(ar[n] == ar[m]) { y += 1; } ...
Main.java:10: error: cannot find symbol if(ar[n] == ar[m]) { ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
475
v2_s825187324
s825187324
s825187324
p04012
p04012
u719622470
u719622470
1,499,807,292
2017-07-11T21:08:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); String a = s.next(); char[] ar = a.toCharArray(); loop: for (int i = 0;i < ar.length;i++) { int y = 0; for (int m = 0;m < ar.length;m++) { if(ar[i] == ar[m]) { y += 1; } i...
Main.java:17: error: unreachable statement break loop; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u719622470|p04012|0
u719622470|p04012|0
codenet
Compile Error
483
v2_s346220461
s346220461
s346220461
p04012
p04012
u738265085
u738265085
1,580,850,420
2020-02-04T21:07:00
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sin = new Scanner(System.in); String w = sin.nextLine(); if(w.length%2 == 0){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:7: error: cannot find symbol if(w.length%2 == 0){ ^ symbol: variable length location: variable w of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p04012|0
u738265085|p04012|0
codenet
Compile Error
272
v2_s106254248
s106254248
s106254248
p04012
p04012
u764011970
u764011970
1,490,980,341
2017-03-31T17:12:21
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String w = sc.next(); for (int i = 0 ; i < w.length() ; i++) { for (int j = 0 ; j < w.length() ; j++) { if (w.charAt(i) == w.charAt(j)) { count++; } } if (count % 2 ...
Main.java:10: error: cannot find symbol count++; ^ symbol: variable count location: class Main Main.java:13: error: cannot find symbol if (count % 2 != 0) { ^ symbol: variable count location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764011970|p04012|0
u764011970|p04012|0
codenet
Compile Error
400
v2_s177031939
s177031939
s177031939
p04012
p04012
u806768852
u806768852
1,571,432,384
2019-10-18T20:59:44
Main.java
import java.util.*; class Main{ public static void judge(String okikaeruyatu){ wafter = w.replace(okikaeruyatu,""); wlenafter = wafter.length(); if((wlen - wlenafter) % 2 == 1){ ugly += 1; } } public static void main(String[] args){ int ugly = 0; Scanner sc = new Scanner(System.in);...
Main.java:51: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04012|0
u806768852|p04012|0
codenet
Compile Error
934
v2_s785259500
s785259500
s785259500
p04012
p04012
u806768852
u806768852
1,571,432,530
2019-10-18T21:02:10
Main.java
import java.util.*; class Main{ public static void judge(String okikaeruyatu){ wafter = w.replace(okikaeruyatu,""); wlenafter = wafter.length(); if((wlen - wlenafter) % 2 == 1){ ugly += 1; } } public static void main(String[] args){ int ugly = 0; Scanner sc = new Scanner(System.in);...
Main.java:5: error: cannot find symbol wafter = w.replace(okikaeruyatu,""); ^ symbol: variable wafter location: class Main Main.java:5: error: cannot find symbol wafter = w.replace(okikaeruyatu,""); ^ symbol: variable w location: class Main Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04012|0
u806768852|p04012|0
codenet
Compile Error
852
v2_s716121038
s716121038
s716121038
p04012
p04012
u806768852
u806768852
1,571,433,039
2019-10-18T21:10:39
Main.java
import java.util.*; class Main{ static int ugly = 0; Scanner sc = new Scanner(System.in); String nyuuryoku = sc.next(); String w = nyuuryoku; static int wlen = w.length(); String wafter; int wlenafter; public static void judge(String okikaeruyatu){ wafter = w.replace(okikaeruyatu,""); wlenafte...
Main.java:8: error: non-static variable w cannot be referenced from a static context static int wlen = w.length(); ^ Main.java:13: error: non-static variable wafter cannot be referenced from a static context wafter = w.replace(okikaeruyatu,""); ^ Main.java:13: error: non-static variable w ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p04012|0
u806768852|p04012|0
codenet
Compile Error
887
v2_s589867129
s589867129
s589867129
p04012
p04012
u863370423
u863370423
1,592,817,013
2020-06-22T09:10:13
Main.java
#include<bits/stdc++.h> using namespace std; int main() { int ar[26],i; string s; cin>>s; for(i=0;i<26;i++){ ar[i]=0; // a=0, b=1 ,z=26 ; } //counting sort for(i=0;i<s.size();i++){ int p=s[i]-97; ar[p]++; } string ans = "Yes"; for (int i = 0;i < 26;i++){...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:5: error: not a statement int ar[26],i; ^ Main.java:7: error: not a statement cin>>s; ^ Main.java:29: error: not a...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p04012|1
u863370423|p04012|1
codenet
Compile Error
404
v2_s509614937
s509614937
s509614937
p04012
p04012
u874996917
u874996917
1,527,600,710
2018-05-29T13:31:50
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Main main=new Main(); main.run...
Main.java:177: error: cannot find symbol public List<Entry<String, Integer>> sortValuesAsc() { ^ symbol: class Entry location: class MapUtilStringInt Main.java:191: error: cannot find symbol public List<Entry<String, Integer>> sortValuesDsc() { ^ symbol: class Entry location: cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874996917|p04012|0
u874996917|p04012|0
codenet
Compile Error
4,977
v2_s274214577
s274214577
s274214577
p04012
p04012
u913110564
u913110564
1,535,945,028
2018-09-03T03:23:48
Main.java
import java.util.Scanner; class Main public static void main(String[] args) { Scanner sc=new Scanner(System.in); String a=sc.next(); int[] cmj=new int[26]; for(int i=0; i<a.length(); i++) { cmj[a.charAt(i)-97]++; } for(int i=0; i<26; i++) { if(cmj[i]%2==1) { System.out.println("No"); Sys...
Main.java:3: error: '{' expected class Main ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:23: error: class, interface, enum, or record expected } ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u913110564|p04012|0
u913110564|p04012|0
codenet
Compile Error
375
v2_s927919044
s927919044
s927919044
p04013
p04013
u137747137
u137747137
1,572,504,565
2019-10-31T06:49:25
Main.java
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++) #define rep(i,n) REP(i,0,n) #define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--) #define rrep(i,n) RREP(i,n-1,0) #define REPL(i,m,n) for(ll i=(ll)(m); i<(ll)(n); i++) #define repl(i,n) REPL(i,...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define ll long long ^ Main.java:3: error: class, interface, enum, or record expected #define ll long long ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137747137|p04013|0
u137747137|p04013|0
codenet
Compile Error
912
v2_s574714636
s574714636
s574714636
p04013
p04013
u185193776
u185193776
1,472,435,403
2016-08-29T01:50:03
Main.java
import scala.collection.immutable.Range; import java.math.BigInteger; import java.util.Scanner; /** * Created by sonetsuyoshi on 2016/07/31. */ public class Main { static public void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int A = scan...
Main.java:2: error: package scala.collection.immutable does not exist import scala.collection.immutable.Range; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u185193776|p04013|0
u185193776|p04013|0
codenet
Compile Error
1,080
v2_s086377364
s086377364
s086377364
p04013
p04013
u681013601
u681013601
1,599,591,049
2020-09-08T18:50:49
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Arrays; import java.util.StringTokenizer; public class Main { private static final FastIn in = new FastIn(); private static final PrintWriter out = new PrintWriter(System.out); ...
Main.java:20: error: 'var' is not allowed in a compound declaration var n = in.nextInt(), a = in.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u681013601|p04013|0
u681013601|p04013|0
codenet
Compile Error
1,538
v2_s842486781
s842486781
s842486781
p04014
p04014
u076522215
u076522215
1,547,684,859
2019-01-17T00:27:39
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long s = sc.nextLong(); if (s == n) { System.out.println(n + 1); return; } for (long i = 2; i * i <= n...
Main.java:26: error: cannot find symbol ans = Math.min(min, b); ^ symbol: variable min location: class Main Main.java:34: error: cannot find symbol System.out.println(min); ^ symbol: variable min location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u076522215|p04014|1
u076522215|p04014|0
codenet
Compile Error
1,226
v2_s084563280
s084563280
s084563280
p04014
p04014
u504228740
u504228740
1,554,322,537
2019-04-03T20:15:37
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long s = sc.nextLong(); long ans = Long.MAX_VALUE; if(n==s){ System.out.println(n+1); return; } long a=Math.sqrt(n); for(long i = 2; i<=a; i++){ if(...
Main.java:12: error: incompatible types: possible lossy conversion from double to long long a=Math.sqrt(n); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p04014|0
u504228740|p04014|0
codenet
Compile Error
645
v2_s374310206
s374310206
s374310206
p04014
p04014
u940102677
u940102677
1,541,753,821
2018-11-09T08:57:01
Main.java
n = int(input()) s = int(input()) d = 0 k = 1 while k*k <= n-s: if (n-s)%k > 0: k += 1 continue l = (n-s)//k if (l+1)*(l+1) > n: b = l+1 if n//b + n%b == s: d = b b = k+1 a = 0 r = n while r > 0: a += r%b r = r//b if a == s: print(b) exit() k += 1 if n == s: pri...
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u940102677|p04014|0
u940102677|p04014|0
codenet
Compile Error
366
v2_s493028299
s493028299
s493028299
p04015
p04015
u001427717
u001427717
1,472,438,413
2016-08-29T02:40:13
Main060.java
public class Main060 { public static void main(String[] args) { // キーボード入力をint配列へ詰める int intAry[] = new int[2]; Scanner in1 = new Scanner(System.in); for (int i = 0;i <= intAry.length; i++) { intAry[i] = in1.nextInt(); } in1.close(); // int intAry2[] = new int[intAry[0]]; Scanner in2 = new Sc...
Main060.java:6: error: cannot find symbol Scanner in1 = new Scanner(System.in); ^ symbol: class Scanner location: class Main060 Main060.java:6: error: cannot find symbol Scanner in1 = new Scanner(System.in); ^ symbol: class Scanner location: class Main060 Main060.java:14: error: ca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u001427717|p04015|0
u001427717|p04015|0
codenet
Compile Error
830
v2_s689733413
s689733413
s689733413
p04015
p04015
u057671932
u057671932
1,555,894,502
2019-04-22T00:55:02
Main.java
public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int N = keyboard.nextInt(); int A = keyboard.nextInt(); int[] in = new int[N]; for(int i=0; i < N; i++) { in[i] = keyboard.nextInt(); } for (int i = 0; i < N; i++) { in[i] -= A; } ...
Main.java:4: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner keyboard = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u057671932|p04015|0
u057671932|p04015|0
codenet
Compile Error
652
v2_s330784575
s330784575
s330784575
p04015
p04015
u433156827
u433156827
1,473,849,407
2016-09-14T10:36:47
Main.java
import java.util.*; public class Main { public static takCards(int[] cards, int avg) { ArrayList<Integer>[] cache = new ArrayList<Integer>[cards.length]; for (ArrayList<Integer> l : cache) l = new ArrayList<Integer>(); long count = 0; for (int i = 1; i <= cards.length; i++) for (int j = 0; j < cards.l...
Main.java:4: error: invalid method declaration; return type required public static takCards(int[] cards, int avg) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u433156827|p04015|0
u433156827|p04015|0
codenet
Compile Error
1,193
v2_s049592247
s049592247
s049592247
p04015
p04015
u433156827
u433156827
1,473,849,469
2016-09-14T10:37:49
Main.java
import java.util.*; public class Main { public static long takCards(int[] cards, int avg) { ArrayList<Integer>[] cache = new ArrayList<Integer>[cards.length]; for (ArrayList<Integer> l : cache) l = new ArrayList<Integer>(); long count = 0; for (int i = 1; i <= cards.length; i++) for (int j = 0; j < ca...
Main.java:5: error: generic array creation ArrayList<Integer>[] cache = new ArrayList<Integer>[cards.length]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u433156827|p04015|0
u433156827|p04015|0
codenet
Compile Error
1,198
v2_s079296192
s079296192
s079296192
p04015
p04015
u541055501
u541055501
1,582,692,407
2020-02-26T04:46:47
Main.java
import lib.FastScanner; public class Main { public static void main(String[] args) { FastScanner fsc = new FastScanner(); int n = fsc.nextInt(); int a = fsc.nextInt(); int[] x = new int[n]; for (int i = 0; i < n; i++) { x[i] = fsc.nextInt() - a; } ...
Main.java:2: error: package lib does not exist import lib.FastScanner; ^ Main.java:6: error: cannot find symbol FastScanner fsc = new FastScanner(); ^ symbol: class FastScanner location: class Main Main.java:6: error: cannot find symbol FastScanner fsc = new FastScanner(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p04015|0
u541055501|p04015|0
codenet
Compile Error
787
v2_s316448570
s316448570
s316448570
p04015
p04015
u626325611
u626325611
1,472,439,846
2016-08-29T03:04:06
Main.java
public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); int A = 0; int N = 0; int[] X ; int result = 0; N = scanner.nextInt(); A = scanner.nextInt(); X = new int[N]; int pointer ...
Main.java:2: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626325611|p04015|0
u626325611|p04015|0
codenet
Compile Error
879
v2_s693888061
s693888061
s693888061
p04016
p04016
u379234461
u379234461
1,475,893,711
2016-10-08T02:28:31
Main.java
arc060; import static java.lang.Math.*; import java.util.Arrays; import java.util.Scanner; /** * http://arc060.contest.atcoder.jp/tasks/arc060_b * f(b,n) は、n を b 進表記したときの各桁の和 * f(b,n)=s を満たすような 2 以上の整数 b が存在するか判定(存在する場合は最小のb) * * @author Cummin */ /** * 例: b=10の場合、123=1*100+2*10+3 ⇒ 1*(99+1)+2(9+1)+3=9*(1*...
Main.java:1: error: class, interface, enum, or record expected arc060; ^ Main.java:3: error: class, interface, enum, or record expected import static java.lang.Math.*; ^ Main.java:4: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:5: error: class, interface, enum, or record expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379234461|p04016|1
u379234461|p04016|1
codenet
Compile Error
6,465
v2_s289145388
s289145388
s289145388
p04017
p04017
u379234461
u379234461
1,475,953,017
2016-10-08T18:56:57
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; import java.util.logging.Level; import java.util.logging.Logger; /** * http://arc060.contest.atcoder.jp/tasks/arc060_c * * @author Cummin */ public class Main { static int N ; // 2 <= N ...
Main.java:130: error: cannot find symbol Logger.getLogger(ARC060_E.class.getName()).log(Level.SEVERE, null, ex); ^ symbol: class ARC060_E location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u379234461|p04017|1
u379234461|p04017|0
codenet
Compile Error
4,402
v2_s103330445
s103330445
s103330445
p04017
p04017
u790372061
u790372061
1,472,440,385
2016-08-29T03:13:05
Main.java
#define _CRT_SECURE_NO_WARNINGS #include<sstream> #include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<climits> #include<cmath> #include<string> #include<vector> #include<set> #include<map> #include<queue> #include<numeric> #include<functional> #include<algorithm> #include<bitset> #include<t...
Main.java:1: error: illegal character: '#' #define _CRT_SECURE_NO_WARNINGS ^ Main.java:2: error: illegal character: '#' #include<sstream> ^ Main.java:3: error: illegal character: '#' #include<iostream> ^ Main.java:4: error: illegal character: '#' #include<cstdio> ^ Main.java:5: error: illegal character: '#' #include<cs...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u790372061|p04017|0
u790372061|p04017|0
codenet
Compile Error
1,845
v2_s772005099
s772005099
s772005099
p04018
p04018
u313111801
u313111801
1,475,391,884
2016-10-02T07:04:44
Main.java
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; public static void main(String[] args) throws E...
Main.java:66: error: incompatible types: ArrayList<Integer>[] cannot be converted to ArrayList<Integer> if (isGood(0, n, hash[i], mod[i], pow[i], div)) { ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p04018|0
u313111801|p04018|0
codenet
Compile Error
4,868
v2_s406945895
s406945895
s406945895
p04018
p04018
u313111801
u313111801
1,475,391,946
2016-10-02T07:05:46
Main.java
import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; public static void main(String[] args) throws E...
Main.java:66: error: incompatible types: ArrayList<Integer>[] cannot be converted to ArrayList<Integer> if (isGood(0, n, hash[i], mod[i], pow[i], div)) { ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u313111801|p04018|0
u313111801|p04018|0
codenet
Compile Error
4,868
v2_s800675192
s800675192
s800675192
p04019
p04019
u018916376
u018916376
1,559,073,198
2019-05-28T19:53:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String text = in.next(); in.close(); String dis = text.contains("N") && contains("S") && contains("W") && contains("E") ? "Yes" : "No"; ...
Main.java:8: error: cannot find symbol String dis = text.contains("N") && contains("S") && contains("W") && contains("E") ^ symbol: method contains(String) location: class Main Main.java:8: error: cannot find symbol String dis = text.contains("N") && cont...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018916376|p04019|0
u018916376|p04019|0
codenet
Compile Error
353
v2_s221903453
s221903453
s221903453
p04019
p04019
u018916376
u018916376
1,559,073,826
2019-05-28T20:03:46
Main.java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String text = in.next(); in.close(); boolean u = text.contains("N"); boolean d = text.contains("S"); boolean r = text.contains("E"); boolean l = text.contains("W"...
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018916376|p04019|0
u018916376|p04019|0
codenet
Compile Error
444
v2_s758246395
s758246395
s758246395
p04019
p04019
u062910870
u062910870
1,472,248,995
2016-08-26T22:03:15
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); String str = sc.next(); if((str.contains("N") && !str.contains("S")) || (str.contains("S") && !str.contains("N"))){ System.out.println("NO"); return; ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062910870|p04019|0
u062910870|p04019|0
codenet
Compile Error
496
v2_s352979219
s352979219
s352979219
p04019
p04019
u140306344
u140306344
1,471,831,758
2016-08-22T02:09:18
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new Strin...
Main.java:22: error: incompatible types: possible lossy conversion from long to int a[i] = v-e*2; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140306344|p04019|0
u140306344|p04019|0
codenet
Compile Error
1,027