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_s924526609
s924526609
s924526609
p02623
p02623
u580010448
u580010448
1,593,321,791
2020-06-28T05:23:11
Main.java
import java.util.ArrayDeque; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 文字列の入力1 String str1 = sc.nextLine(); // 1行目の配列 String[] strArray1 = str1.split(" "); // 上限時間 int...
Main.java:69: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u580010448|p02623|0
u580010448|p02623|0
codenet
Compile Error
1,778
v2_s023946287
s023946287
s023946287
p02623
p02623
u605675011
u605675011
1,593,850,476
2020-07-04T08:14:36
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int k = sc.nextInt(); int arr1[] = new int[n]; int arr2[] = new int[m]; for(int i=0;i<n;i++){ arr[i] = sc.nextInt(); } ...
Main.java:11: error: cannot find symbol arr[i] = sc.nextInt(); ^ symbol: variable arr location: class Main Main.java:19: error: cannot find symbol if(arr[i]<arr1[j]){ ^ symbol: variable arr location: class Main Main.java:20: error: cannot find symbol res+=arr[i]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u605675011|p02623|0
u605675011|p02623|0
codenet
Compile Error
667
v2_s478552016
s478552016
s478552016
p02623
p02623
u618907626
u618907626
1,593,310,326
2020-06-28T02:12:06
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int ans = 0; int N = scan.nextInt(); int M = scan.nextInt(); int K = scan.nextInt(); int[] A = new int[N + 1]; int[] B = new int[M + 1]; int Acount = 0; int Bcount = 0; f...
Main.java:36: error: cannot find symbol if(K < 0 || (Acout == N && Bcount == M)) { ^ symbol: variable Acout location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u618907626|p02623|0
u618907626|p02623|0
codenet
Compile Error
722
v2_s308641456
s308641456
s308641456
p02623
p02623
u620840657
u620840657
1,593,311,475
2020-06-28T02:31:15
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static final int MAX = 1000000; private static boolean isPrime[]; public static void main(Stri...
Main.java:29: error: ';' expected ans = Math.max(i+1,ans) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u620840657|p02623|0
u620840657|p02623|0
codenet
Compile Error
5,354
v2_s564299250
s564299250
s564299250
p02623
p02623
u653981267
u653981267
1,595,656,022
2020-07-25T05:47:02
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); long[] sa = new long[n + 1]; long[] sb = new long[m + 1]; for(int i = 1; i <= n; i++) { sa[i] = sa[i - 1] + sc.nextLong(); ...
Main.java:19: error: cannot find symbol if(sa[i] <= k) { ^ symbol: variable k location: class Main Main.java:20: error: cannot find symbol long t = k - sa[i]; ^ symbol: variable k location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02623|0
u653981267|p02623|0
codenet
Compile Error
871
v2_s253971500
s253971500
s253971500
p02623
p02623
u678459443
u678459443
1,593,974,965
2020-07-05T18:49:25
Main.java
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] aegs) throws IOException{ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int k = sc.nextInt(); long[] a = new long[n+1]; long[] b = new long[m+1]; a[0]= 0 ; b...
Main.java:19: error: cannot find symbol for(int i=1;i<M+1;i++)a[i]=sc.nextLong()+b[i-1]; ^ symbol: variable M location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u678459443|p02623|0
u678459443|p02623|0
codenet
Compile Error
677
v2_s439199691
s439199691
s439199691
p02623
p02623
u681661864
u681661864
1,594,489,478
2020-07-11T17:44: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 M=sc.nextInt(); int K=sc.nextInt(); int A[]= new int[N]; int B[]= new int[M]; long a[]= new long[N+1]; long b[]= new long[M+1]; a[0]=0; b[0]=0; int best[]= new int...
Main.java:33: error: ';' expected long dif=K-a[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u681661864|p02623|1
u681661864|p02623|0
codenet
Compile Error
775
v2_s229493413
s229493413
s229493413
p02623
p02623
u769291367
u769291367
1,593,927,232
2020-07-05T05:33:52
readBooks.java
import java.util.Scanner; public class readBooks { 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 r1 = new int[a]; int r2 = new int[b]; for( int i = 1; i < a; i++) ...
readBooks.java:12: error: incompatible types: int[] cannot be converted to int int r1 = new int[a]; ^ readBooks.java:13: error: incompatible types: int[] cannot be converted to int int r2 = new int[b]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02623|0
u769291367|p02623|0
codenet
Compile Error
816
v2_s893606737
s893606737
s893606737
p02623
p02623
u769291367
u769291367
1,593,928,674
2020-07-05T05:57:54
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int r1[] = new int[a]; int r2[] = new int[b]; for( int i = 1; i < a; i++) ...
Main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02623|0
u769291367|p02623|0
codenet
Compile Error
730
v2_s308252348
s308252348
s308252348
p02623
p02623
u769291367
u769291367
1,593,928,894
2020-07-05T06:01:34
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int r1[] = new int[a]; int r2[] = new int[b]; for( int i = 1; i < a; i++) ...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02623|0
u769291367|p02623|0
codenet
Compile Error
736
v2_s072462678
s072462678
s072462678
p02623
p02623
u774810394
u774810394
1,593,310,371
2020-06-28T02:12:51
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n, m; long k; n = sc.nextInt(); m = sc.nextInt(); k = sc.nextLong(); sc.nextLine(); int i; long N[] = new long[n]; long M[] = new long[m]; f...
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
u774810394|p02623|0
u774810394|p02623|0
codenet
Compile Error
887
v2_s912650441
s912650441
s912650441
p02623
p02623
u793172064
u793172064
1,593,946,513
2020-07-05T10:55:13
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { Foster sc = new Foster(); int n = sc.nextInt(), m = sc.nextInt(), k = sc.nextLong(); long N[] = sc.longArray(n); long M[] = sc.longArray(m); N[n] = L...
Main.java:9: error: incompatible types: possible lossy conversion from long to int int n = sc.nextInt(), m = sc.nextInt(), k = sc.nextLong(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u793172064|p02623|0
u793172064|p02623|0
codenet
Compile Error
2,075
v2_s494046066
s494046066
s494046066
p02623
p02623
u839277937
u839277937
1,593,310,620
2020-06-28T02:17:00
Main.java
#include <bits/stdc++.h> using namespace std; void solve(){ long long int n, m, k; cin>>n>>m>>k; long long int a[n], b[m]; for(int i = 0; i < n; i++){ cin>>a[i]; } for(int i = 0; i < m; i++){ cin>>b[i]; } long long int i = 0, j = 0; int ans = 0; bool ok = true; while(i < n && j < m){ if(a[i] <= b[j]){...
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 long long int n, m, k; cin>>n>>m>>k; ^ Main.java:6: error: not a statement long long int n, m, k; cin>>n>>m>>k; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u839277937|p02623|0
u839277937|p02623|0
codenet
Compile Error
919
v2_s083484001
s083484001
s083484001
p02623
p02623
u886450127
u886450127
1,593,310,731
2020-06-28T02:18:51
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); int[] aList = new int[a]; int[] bList = new int[b]; ...
Main.java:42: error: variable i is already defined in method main(String[]) for(int i = bCount;i < bList.length;i++){ ^ Main.java:43: error: cannot find symbol save += bList[i]; ^ symbol: variable save location: class Main Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02623|0
u886450127|p02623|0
codenet
Compile Error
1,765
v2_s073783259
s073783259
s073783259
p02623
p02623
u916927648
u916927648
1,593,311,789
2020-06-28T02:36:29
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力(N M K) int N = sc.nextInt(); int M = sc.nextInt(); int K = sc.nextInt(); // System.out.println(N); // System.out.println(M); // System.out.prin...
Main.java:83: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u916927648|p02623|0
u916927648|p02623|0
codenet
Compile Error
2,433
v2_s369185767
s369185767
s369185767
p02623
p02623
u922585959
u922585959
1,594,674,224
2020-07-13T21:03:44
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; class Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static long timeResult = 0; static long countA, countB; static long maxNum; public static void main(String[] ar...
Main.java:41: error: incompatible types: possible lossy conversion from long to int timeResult -= timeTakenA[countA - 1]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922585959|p02623|0
u922585959|p02623|0
codenet
Compile Error
1,489
v2_s027855200
s027855200
s027855200
p02623
p02623
u926632269
u926632269
1,593,411,371
2020-06-29T06:16:11
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); i...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02623|0
u926632269|p02623|0
codenet
Compile Error
1,044
v2_s546562719
s546562719
s546562719
p02623
p02623
u941508450
u941508450
1,593,463,581
2020-06-29T20:46: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 K = sc.nextInt(); int A = new int[N]; int B = new int[M]; int book = 2; for(int i=0;i<N;i++) A[i] = sc.nextInt(...
Main.java:8: error: incompatible types: int[] cannot be converted to int int A = new int[N]; ^ Main.java:9: error: incompatible types: int[] cannot be converted to int int B = new int[M]; ^ Main.java:12: error: array required, but int found A[i] = sc.nextInt(); ^ Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02623|0
u941508450|p02623|0
codenet
Compile Error
581
v2_s699721419
s699721419
s699721419
p02623
p02623
u941508450
u941508450
1,593,463,784
2020-06-29T20:49:44
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 K = sc.nextInt(); int[] A = new int[N]; int[] B = new int[M]; int book = 2; for(int i=0;i<N;i++) A[i] = sc.next...
Main.java:18: error: '.class' expected if(A[] + B[] <= K) ^ Main.java:18: error: '.class' expected if(A[] + B[] <= K) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02623|0
u941508450|p02623|0
codenet
Compile Error
586
v2_s937923188
s937923188
s937923188
p02623
p02623
u941508450
u941508450
1,593,463,865
2020-06-29T20:51:05
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 K = sc.nextInt(); int[] A = new int[N]; int[] B = new int[M]; int book = 2; for(int i=0;i<N;i++) A[i] = sc.next...
Main.java:16: error: cannot find symbol while(A[i] + B[i] <= K){ ^ symbol: variable i location: class Main Main.java:16: error: cannot find symbol while(A[i] + B[i] <= K){ ^ symbol: variable i location: class Main Main.java:17: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02623|0
u941508450|p02623|0
codenet
Compile Error
590
v2_s163630295
s163630295
s163630295
p02623
p02623
u941508450
u941508450
1,593,465,131
2020-06-29T21:12:11
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 K = sc.nextInt(); int[] A = new int[N]; int[] B = new int[M]; int book = 2; for(int i=0;i<N;i++) A[i] = sc.next...
Main.java:18: error: cannot find symbol if(A[i] + B[i] > k) ^ symbol: variable k location: class Main Main.java:23: error: cannot find symbol if(A[i] + B[i] > k) ^ symbol: variable k location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02623|0
u941508450|p02623|0
codenet
Compile Error
657
v2_s380134164
s380134164
s380134164
p02623
p02623
u994548286
u994548286
1,593,308,418
2020-06-28T01:40:18
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 m = sc.nextInt(); int k = sc.nextInt(); //int l1 = st1.length(); int[] A = new int[n]; int[] B = new int[m]; int[] C = new int[n+m]; //int cnt = ...
Main.java:60: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u994548286|p02623|0
u994548286|p02623|0
codenet
Compile Error
902
v2_s993288951
s993288951
s993288951
p02624
p02624
u007805459
u007805459
1,593,309,022
2020-06-28T01:50:22
Main.java
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; import javafx.util.Pair; public class Main { static class FastReader { BufferedReader br; StringTokenize...
Main.java:8: error: package javafx.util does not exist import javafx.util.Pair; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p02624|0
u007805459|p02624|0
codenet
Compile Error
2,135
v2_s941582360
s941582360
s941582360
p02624
p02624
u007805459
u007805459
1,593,309,112
2020-06-28T01:51:52
Main.java
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; import javafx.util.Pair; public class Main { static class FastReader { BufferedReader br; StringTokenize...
Main.java:8: error: package javafx.util does not exist import javafx.util.Pair; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p02624|0
u007805459|p02624|0
codenet
Compile Error
2,135
v2_s783407747
s783407747
s783407747
p02624
p02624
u032351775
u032351775
1,593,310,539
2020-06-28T02:15:39
Main.java
import java.math.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); long ans = 0; for (int i = 1; i <= K; i++) { ans += (i * f(i)); } System.out.println(ans); } private long f(int...
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 Main.java:10: error: non-...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u032351775|p02624|0
u032351775|p02624|0
codenet
Compile Error
534
v2_s172344665
s172344665
s172344665
p02624
p02624
u032351775
u032351775
1,593,310,571
2020-06-28T02:16:11
Main.java
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); long ans = 0; for (int i = 1; i <= K; i++) { ans += (i * f(i)); } System.out.println(ans); } ...
Main.java:11: error: non-static method f(int) cannot be referenced from a static context ans += (i * f(i)); ^ Main.java:18: error: incompatible types: possible lossy conversion from double to int int max = Math.sqrt(num); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u032351775|p02624|0
u032351775|p02624|0
codenet
Compile Error
555
v2_s698065613
s698065613
s698065613
p02624
p02624
u032351775
u032351775
1,593,311,343
2020-06-28T02:29:03
Main.java
import java.math.*; import java.util.*; public class Main { private static int[] factors; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); factors = new int[K]; long ans = 1; factors[1] = 1; factors[2] = 2; factor...
Main.java:17: error: incompatible types: unexpected return value return factors[K]; ^ Main.java:36: error: cannot find symbol for (int i = 2; i <= max; i++) { ^ symbol: variable max location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u032351775|p02624|0
u032351775|p02624|0
codenet
Compile Error
919
v2_s841552273
s841552273
s841552273
p02624
p02624
u032351775
u032351775
1,593,311,389
2020-06-28T02:29:49
Main.java
import java.math.*; import java.util.*; public class Main { private static int[] factors; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); factors = new int[K]; long ans = 1; factors[1] = 1; factors[2] = 2; factor...
Main.java:36: error: cannot find symbol for (int i = 2; i <= max; i++) { ^ symbol: variable max location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u032351775|p02624|0
u032351775|p02624|0
codenet
Compile Error
932
v2_s449472063
s449472063
s449472063
p02624
p02624
u105068972
u105068972
1,593,310,280
2020-06-28T02:11:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in){ int k = sc.nextInt(); int sum = 0; if(k == 1){ System.out.println(k); } for(int i=1; i<=k; i++){ sum = sum + (i*i); ...
Main.java:7: error: illegal start of type if(k == 1){ ^ Main.java:7: error: <identifier> expected if(k == 1){ ^ Main.java:10: error: illegal start of type for(int i=1; i<=k; i++){ ^ Main.java:10: error: <identifier> expected for(int i=1; i<=k; i+...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u105068972|p02624|0
u105068972|p02624|0
codenet
Compile Error
377
v2_s755661978
s755661978
s755661978
p02624
p02624
u134426793
u134426793
1,593,312,182
2020-06-28T02:43:02
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Iterator; import java.util.Set; import java.util.InputMismatchException; import java.util.HashMap; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in...
Main.java:29: error: incompatible types: int[] cannot be converted to int static int spf = new int[MAXN]; ^ Main.java:46: error: array required, but int found spf[1] = 1; ^ Main.java:51: error: array required, but int found spf[i] = i; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134426793|p02624|0
u134426793|p02624|0
codenet
Compile Error
4,465
v2_s548975824
s548975824
s548975824
p02624
p02624
u214675648
u214675648
1,593,599,212
2020-07-01T10:26:52
Task3.java
public class Task3 { public void solve(int testNumber, Scanner in, PrintWriter out) { int n = in.nextInt(); int cnt[] = new int[n + 1]; long tot = 0; for(int i = 1;i <= n; ++i) { if (i != 1) { for (int j = i; j <= n; j += i) { cnt[j]++...
Task3.java:2: error: cannot find symbol public void solve(int testNumber, Scanner in, PrintWriter out) { ^ symbol: class Scanner location: class Task3 Task3.java:2: error: cannot find symbol public void solve(int testNumber, Scanner in, PrintWriter out) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u214675648|p02624|0
u214675648|p02624|0
codenet
Compile Error
488
v2_s812468432
s812468432
s812468432
p02624
p02624
u254809296
u254809296
1,593,310,511
2020-06-28T02:15:11
Main.java
import java.util.*; import java.io.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); ArrayList<int> ans = new ArrayList<int>(); int sum = 0, cnt = 0; for(int i = 1, i <= N; i++){ for(int j = 1; j <=i; j++){ ...
Main.java:9: error: ';' expected for(int i = 1, i <= N; i++){ ^ Main.java:9: error: illegal start of expression for(int i = 1, i <= N; i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u254809296|p02624|0
u254809296|p02624|0
codenet
Compile Error
636
v2_s986077768
s986077768
s986077768
p02624
p02624
u273816974
u273816974
1,593,373,181
2020-06-28T19:39:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Sieve sieve = new Sieve(n); long ans = 0; for (int i = 1; i <= n; i++) { ...
Main.java:13: error: cannot find symbol ans += (long)sieve.factorCount[i] * i; ^ symbol: variable factorCount location: variable sieve of type Sieve 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02624|0
u273816974|p02624|0
codenet
Compile Error
2,088
v2_s896891453
s896891453
s896891453
p02624
p02624
u347471422
u347471422
1,593,768,768
2020-07-03T09:32:48
Main.java
import java.util.*; class Main { public static void main(String []args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long sum=0; for(int i=1;i<=n;i++) { for(int j=1;j<=i;j++) { if(n%j==0) { count++; } } } System.out.print(count); } }
Main.java:15: error: cannot find symbol count++; ^ symbol: variable count location: class Main Main.java:20: error: cannot find symbol System.out.print(count); ^ symbol: variable count location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347471422|p02624|0
u347471422|p02624|0
codenet
Compile Error
268
v2_s852205475
s852205475
s852205475
p02624
p02624
u369561865
u369561865
1,593,309,078
2020-06-28T01:51:18
Main.java
import java.util.Arrays; import java.util.Scanner; import java.util.Stack; public class Main { static int divCount(int n) { boolean hash[] = new boolean[n + 1]; Arrays.fill(hash, true); for (int p = 2; p * p < n; p++) if (hash[p] == true) for (int i = p * 2;...
Main.java:45: error: ';' expected s.push(i) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369561865|p02624|0
u369561865|p02624|0
codenet
Compile Error
1,659
v2_s611216508
s611216508
s611216508
p02624
p02624
u436783461
u436783461
1,593,391,106
2020-06-29T00:38:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long ans = 0; for(int i=0;i<=n;i++){ int t = n / i; long l = i * t * ( t+1 ) / 2; ans += l; } System.out.prin...
Main.java:12: error: cannot find symbol System.out.println(count); ^ symbol: variable count location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u436783461|p02624|1
u436783461|p02624|1
codenet
Compile Error
336
v2_s165526299
s165526299
s165526299
p02624
p02624
u510349606
u510349606
1,596,253,901
2020-08-01T03:51:41
Main.java
for(int i = 1; i <= N; i++){ int cn = i; while(cn <= N) { k[cn]++; cn += i; } }
Main.java:2: error: class, interface, enum, or record expected for(int i = 1; i <= N; i++){ ^ Main.java:2: error: class, interface, enum, or record expected for(int i = 1; i <= N; i++){ ^ Main.java:2: error: class, interface, enum, or record expected for(int i = 1;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u510349606|p02624|0
u510349606|p02624|0
codenet
Compile Error
164
v2_s636573808
s636573808
s636573808
p02624
p02624
u620353602
u620353602
1,593,319,103
2020-06-28T04:38:23
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) n{ Scanner scanner = new Scanner(System.in); int number = scanner.nextInt(); long result = 0; for(int i = 1; i <= number; i++) { int temporal = number / i; result += temporal * (temporal + 1) / 2 * i; } System.out.p...
Main.java:4: error: ';' expected public static void main(String[] args) n{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u620353602|p02624|0
u620353602|p02624|0
codenet
Compile Error
341
v2_s521981763
s521981763
s521981763
p02624
p02624
u699837316
u699837316
1,593,398,098
2020-06-29T02:34:58
Main.java
public class Main { public static void main(String[] args) { var scanner = new Scanner(System.in); var n = scanner.nextInt(); int count = 0; for(int i = 1; i <= n; i++){ for (int j = 1; i * j <= n; j++) { count += i * j; } } Sys...
Main.java:3: error: cannot find symbol var scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699837316|p02624|0
u699837316|p02624|0
codenet
Compile Error
352
v2_s808985699
s808985699
s808985699
p02624
p02624
u822502291
u822502291
1,593,480,048
2020-06-30T01:20:48
ABC172C.java
import java.util.Arrays; import java.util.Scanner; public class ABC172C { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n=scanner.nextInt(); int k=1; int t=0; for(int i=1;i<=n;i++){ for(int j=1;j<=n/2;j++) ...
ABC172C.java:19: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u822502291|p02624|0
u822502291|p02624|0
codenet
Compile Error
456
v2_s158143503
s158143503
s158143503
p02624
p02624
u869760604
u869760604
1,593,316,450
2020-06-28T03:54:10
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt() ; long fillArray[] = new long[N + 1]; Arrays.fill(fillArray, 1); for(int i = 2 ; i <= N ; ++i){ for(int j = i ; j <= N/2 ; j += i){ ...
Main.java:19: error: cannot find symbol System.out.println(ret); ^ symbol: variable ret location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u869760604|p02624|0
u869760604|p02624|0
codenet
Compile Error
534
v2_s520313301
s520313301
s520313301
p02624
p02624
u869760604
u869760604
1,593,316,551
2020-06-28T03:55:51
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt() ; long fillArray[] = new long[N + 1]; Arrays.fill(fillArray, 1); for(int i = 2 ; i <= N/2 ; ++i){ for(int j = i ; j <= N ; j += i){ ...
Main.java:19: error: cannot find symbol System.out.println(ret); ^ symbol: variable ret location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u869760604|p02624|0
u869760604|p02624|0
codenet
Compile Error
534
v2_s355649191
s355649191
s355649191
p02624
p02624
u869760604
u869760604
1,593,316,610
2020-06-28T03:56:50
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt() ; long fillArray[] = new long[N + 1]; Arrays.fill(fillArray, 1); for(int i = 2 ; i <= N ; ++i){ for(int j = i ; j <= N ; j += i){ f...
Main.java:19: error: cannot find symbol System.out.println(ret); ^ symbol: variable ret location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u869760604|p02624|0
u869760604|p02624|0
codenet
Compile Error
532
v2_s675638968
s675638968
s675638968
p02624
p02624
u926632269
u926632269
1,593,412,531
2020-06-29T06:35:31
template1.java
import java.util.*; import java.io.*; public class template1{ static ArrayList<Integer> primes = new ArrayList<Integer>(); public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readL...
template1.java:18: error: <identifier> expected static void sieve(n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02624|0
u926632269|p02624|0
codenet
Compile Error
1,343
v2_s385139364
s385139364
s385139364
p02624
p02624
u926632269
u926632269
1,593,412,614
2020-06-29T06:36:54
Main.java
import java.util.*; import java.io.*; public class Main{ static ArrayList<Integer> primes = new ArrayList<Integer>(); public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()...
Main.java:48: error: cannot find symbol int help = n/p; ^ symbol: variable p location: class Main Main.java:49: error: cannot find symbol if(help%p == 0) ^ symbol: variable p location: class Main Main.java:50: error: cannot find symbol div[n] = 2*div[help...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02624|0
u926632269|p02624|0
codenet
Compile Error
1,353
v2_s677523205
s677523205
s677523205
p02624
p02624
u926632269
u926632269
1,593,412,655
2020-06-29T06:37:35
Main.java
import java.util.*; import java.io.*; public class Main{ static ArrayList<Integer> primes = new ArrayList<Integer>(); public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()...
Main.java:43: error: cannot find symbol if(work == 0){ ^ symbol: variable work location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02624|0
u926632269|p02624|0
codenet
Compile Error
1,359
v2_s951119565
s951119565
s951119565
p02624
p02624
u941508450
u941508450
1,593,466,476
2020-06-29T21:34:36
Main.java
import java.util.Scanner; public class Main{ public static void main(Strign[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int result[]; int count = 0; for(int i=1;i<=n;i++){ int j = i; while(j-- > 0){ if((j/j)==0) count++; } int k =0; ...
Main.java:3: error: cannot find symbol public static void main(Strign[] args){ ^ symbol: class Strign location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02624|0
u941508450|p02624|0
codenet
Compile Error
469
v2_s996658216
s996658216
s996658216
p02624
p02624
u941508450
u941508450
1,593,466,561
2020-06-29T21:36:01
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int result[]; int count = 0; for(int i=1;i<=n;i++){ int j = i; while(j-- > 0){ if((j/j)==0) count++; } int k = 0; ...
Main.java:15: error: variable result might not have been initialized result[k++] = i * count; ^ Main.java:18: error: variable result might not have been initialized for(int i=0;i<result.length;i++){ ^ Main.java:19: error: variable save might not have been initialized save = save + r...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02624|0
u941508450|p02624|0
codenet
Compile Error
471
v2_s938287114
s938287114
s938287114
p02624
p02624
u941508450
u941508450
1,593,466,601
2020-06-29T21:36:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int result[]; int count = 0; for(int i=1;i<=n;i++){ int j = i; while(j-- > 0){ if((j/j)==0) count++; } int k = 0; ...
Main.java:15: error: variable result might not have been initialized result[k++] = i * count; ^ Main.java:18: error: variable result might not have been initialized for(int i=0;i<result.length;i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941508450|p02624|0
u941508450|p02624|0
codenet
Compile Error
475
v2_s748393449
s748393449
s748393449
p02625
p02625
u307022147
u307022147
1,593,310,742
2020-06-28T02:19:02
Main.java
import java.math.BigInteger; import java.util.Scanner; public class Main { static public void main(String[]args){ Scanner sc = new Scanner(System.in); long x1 = 0, y1 = 0, x2 = sc.nextLong() + 1, y2 = sc.nextLong() + 1; BigInteger ans = f(x2, y2); ans = ans.subtract(f(x1 - 1, y2)); ...
Main.java:11: error: cannot find symbol Long = ans.longValue(); ^ symbol: variable Long location: class Main Main.java:12: error: incompatible types: int cannot be converted to Long Long mo = 1000000007; ^ Main.java:13: error: bad operand types for binary operator '>=' ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u307022147|p02625|0
u307022147|p02625|0
codenet
Compile Error
1,966
v2_s010038266
s010038266
s010038266
p02625
p02625
u435097501
u435097501
1,593,311,981
2020-06-28T02:39:41
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; 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(); long result = 1; for(int i = 0; i < n; i++){ ...
Main.java:19: error: cannot find symbol result = result * (m - i - 1); ^ symbol: variable i location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u435097501|p02625|0
u435097501|p02625|0
codenet
Compile Error
626
v2_s689628569
s689628569
s689628569
p02625
p02625
u653981267
u653981267
1,593,376,849
2020-06-28T20:40:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); long[] kai = new long[5000001]; kai[0] = 1; long MOD = (long)Math.pow(10, 9) + 7; for(long i = 1; i < 5000001; i++) { ka...
Main.java:40: error: cannot find symbol return (t * t) % MOD; ^ symbol: variable MOD location: class Main Main.java:42: error: cannot find symbol return (a * func(a, x - 1)) % MOD; ^ symbol: variable MOD location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02625|0
u653981267|p02625|0
codenet
Compile Error
1,155
v2_s210763749
s210763749
s210763749
p02626
p02626
u541055501
u541055501
1,597,798,344
2020-08-19T00:52:24
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.Field; import java.util.Arrays; import java.util.NoSuchElementException; import java.util.Objects; import java.util.PrimitiveIterator; import java.util.function.IntBinaryOperator; import java.util.function.IntF...
Main.java:643: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:644: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:645: error: class, interface, enum, or record expected import java.io.OutputStream; ^ Main.java:646: error: class, inter...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02626|0
u541055501|p02626|0
codenet
Compile Error
42,246
v2_s873723256
s873723256
s873723256
p02627
p02627
u018773111
u018773111
1,592,895,584
2020-06-23T06:59:44
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); if (Character.isUpperCase(s)){ System.out.println('A'); }else{ System.out.println('a'); }}}
Main.java:7: error: no suitable method found for isUpperCase(Scanner) if (Character.isUpperCase(s)){ ^ method Character.isUpperCase(char) is not applicable (argument mismatch; Scanner cannot be converted to char) method Character.isUpperCase(int) is not applicable (argumen...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02627|0
u018773111|p02627|0
codenet
Compile Error
275
v2_s804296439
s804296439
s804296439
p02627
p02627
u018773111
u018773111
1,592,895,774
2020-06-23T07:02:54
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); char[] s = str.toCharArray(); if (Character.isUpperCase(s)){ System.out.println('A'); }else{ System.out.println('a'); }}}
Main.java:7: error: variable s is already defined in method main(String[]) char[] s = str.toCharArray(); ^ Main.java:7: error: cannot find symbol char[] s = str.toCharArray(); ^ symbol: variable str location: class Main Main.java:8: error: no suitable method found for...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02627|0
u018773111|p02627|0
codenet
Compile Error
313
v2_s181642421
s181642421
s181642421
p02627
p02627
u018773111
u018773111
1,592,895,866
2020-06-23T07:04:26
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); char[] c = s.toCharArray(); if (Character.isUpperCase(c)){ System.out.println('A'); }else{ System.out.println('a'); }}}
Main.java:7: error: cannot find symbol char[] c = s.toCharArray(); ^ symbol: method toCharArray() location: variable s of type Scanner Main.java:8: error: no suitable method found for isUpperCase(char[]) if (Character.isUpperCase(c)){ ^ method Character.isU...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02627|0
u018773111|p02627|0
codenet
Compile Error
311
v2_s909969909
s909969909
s909969909
p02627
p02627
u018773111
u018773111
1,592,895,919
2020-06-23T07:05:19
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); char[] c = s.toCharArray(); if (Character.isUpperCase(c[0])){ System.out.println('A'); }else{ System.out.println('a'); }}}
Main.java:7: error: cannot find symbol char[] c = s.toCharArray(); ^ symbol: method toCharArray() location: variable s of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02627|0
u018773111|p02627|0
codenet
Compile Error
314
v2_s129156520
s129156520
s129156520
p02627
p02627
u033629980
u033629980
1,592,787,986
2020-06-22T01:06:26
Main.java
package atcoder.beginner?_171; import java.io.*; import java.util.StringTokenizer; public class Main { public static void main (String[] args) throws Exception { String s = "AZaz"; // br = new BufferedReader(new StringReader(s)); br = new BufferedReader(new InputStreamReader(System.in));...
Main.java:1: error: ';' expected package atcoder.beginner?_171; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033629980|p02627|0
u033629980|p02627|0
codenet
Compile Error
1,272
v2_s296207903
s296207903
s296207903
p02627
p02627
u039826412
u039826412
1,592,788,525
2020-06-22T01:15:25
Main.java
import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.Writer; import java.util.ArrayList; import java.util.HashSet; import java.util.InputMismatchException; import java.util.List; ...
Main.java:24: error: cannot find symbol AtCoder solver = new AtCoder(); ^ symbol: class AtCoder location: class Main Main.java:24: error: cannot find symbol AtCoder solver = new AtCoder(); ^ symbol: class AtCoder location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u039826412|p02627|0
u039826412|p02627|0
codenet
Compile Error
5,279
v2_s247284919
s247284919
s247284919
p02627
p02627
u047251903
u047251903
1,599,069,522
2020-09-02T17:58:42
Main.java
import java.util.*; public static class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int k=sc.nextInt(); int[] p=new int[n; for(int i=0;i<n;i++){ p[i]=sc.nextInt(); } Arrays.sort(p); int s=0; for(int i=0;i<k;i++){ s=+p[i...
Main.java:8: error: ']' expected int[] p=new int[n; ^ Main.java:18: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047251903|p02627|0
u047251903|p02627|0
codenet
Compile Error
393
v2_s962937438
s962937438
s962937438
p02627
p02627
u073396193
u073396193
1,592,787,905
2020-06-22T01:05:05
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 a = next(); ...
Main.java:13: error: cannot find symbol String a = next(); ^ symbol: method next() location: class Main Main.java:15: error: cannot find symbol if( Character.isUpperCase( str.charAt( 0 ) ) ) { ^ symbol: variable str location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073396193|p02627|0
u073396193|p02627|0
codenet
Compile Error
520
v2_s625575673
s625575673
s625575673
p02627
p02627
u073606136
u073606136
1,596,415,104
2020-08-03T00:38:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); if (Character.isUpperCase(str)) { System.out.println("A"); } else { System.out.println("a"); } } }
Main.java:9: error: no suitable method found for isUpperCase(String) if (Character.isUpperCase(str)) { ^ method Character.isUpperCase(char) is not applicable (argument mismatch; String cannot be converted to char) method Character.isUpperCase(int) is not applicable (argu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02627|0
u073606136|p02627|0
codenet
Compile Error
315
v2_s304361857
s304361857
s304361857
p02627
p02627
u089230684
u089230684
1,592,862,097
2020-06-22T21:41:37
Main.java
import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.sql.SQLOutput; import java.util.ArrayList; import java.util.StringTokenizer; import javax.swing.plaf.IconUIResource; c...
Main.java:129: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p02627|0
u089230684|p02627|0
codenet
Compile Error
2,560
v2_s360438462
s360438462
s360438462
p02627
p02627
u113168633
u113168633
1,593,315,304
2020-06-28T03:35:04
main.java
public class main{ public static void main(String []args){ Scanner sc = new Scanner(System.in); char a = sc.nextLine(); if (Character.isUpperCase(a)){ System.out.println('A'); } else{ System.out.println('a'); } } }
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
u113168633|p02627|0
u113168633|p02627|0
codenet
Compile Error
250
v2_s536907793
s536907793
s536907793
p02627
p02627
u118477957
u118477957
1,592,788,076
2020-06-22T01:07:56
Main.java
import import java.io.*; import java.util.*; class GFG { public static void main (String[] args) { Scanner s=new Scanner(System.in); char a=s.next(); if(Character.isUpperCase(a)) System.out.println('A'); if(Character.isUpperCase(a)) System.out.println('A'); } }
Main.java:1: error: <identifier> expected import import java.io.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u118477957|p02627|0
u118477957|p02627|0
codenet
Compile Error
289
v2_s483685872
s483685872
s483685872
p02627
p02627
u121243942
u121243942
1,596,344,338
2020-08-02T04:58:58
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.nextLine(); if (String.toUpperCase(a).equals(a)) { System.out.println("A"); // 大文字 } else { System.out.println("a"); // 小文字 } scan.close(); } }
Main.java:10: error: incompatible types: String cannot be converted to Locale if (String.toUpperCase(a).equals(a)) { ^ 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
u121243942|p02627|0
u121243942|p02627|0
codenet
Compile Error
332
v2_s369279107
s369279107
s369279107
p02627
p02627
u121243942
u121243942
1,596,344,376
2020-08-02T04:59:36
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next(); if (String.toUpperCase(a).equals(a)) { System.out.println("A"); // 大文字 } else { System.out.println("a"); // 小文字 } scan.close(); } }
Main.java:10: error: incompatible types: String cannot be converted to Locale if (String.toUpperCase(a).equals(a)) { ^ 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
u121243942|p02627|0
u121243942|p02627|0
codenet
Compile Error
329
v2_s607074494
s607074494
s607074494
p02627
p02627
u121243942
u121243942
1,596,344,442
2020-08-02T05:00:42
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next().charAt(0); if (String.toUpperCase(a).equals(a)) { System.out.println("A"); // 大文字 } else { System.out.println("a"); // 小文字 } scan.close()...
Main.java:8: error: incompatible types: char cannot be converted to String String a = scan.next().charAt(0); ^ Main.java:10: error: incompatible types: String cannot be converted to Locale if (String.toUpperCase(a).equals(a)) { ^ Note: Some messages have been ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121243942|p02627|0
u121243942|p02627|0
codenet
Compile Error
339
v2_s787829539
s787829539
s787829539
p02627
p02627
u130242638
u130242638
1,596,343,634
2020-08-02T04:47:14
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String alfabet = scan.next(); if (Character.isUpperCase(a)) { System.out.println("A"); // 大文字 } else { System.out.println("a"); // 小文字 } scan.close(); } }
Main.java:10: error: cannot find symbol if (Character.isUpperCase(a)) { ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u130242638|p02627|1
u130242638|p02627|1
codenet
Compile Error
325
v2_s291175063
s291175063
s291175063
p02627
p02627
u136030915
u136030915
1,597,832,568
2020-08-19T10:22:48
Main.java
import java.lang.Character; import java.util.Scanner; public class Main { static String solve(String s ) { char bruh = s.charAt(0); if(Character.isUpperCase(bruh)){ System.out.println("A"); } else System.out.println("a"); } public static void main(String[] args) { ...
Main.java:12: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136030915|p02627|0
u136030915|p02627|0
codenet
Compile Error
434
v2_s252598312
s252598312
s252598312
p02627
p02627
u138251862
u138251862
1,597,462,019
2020-08-15T03:26:59
Main.java
public class Main{ public static void main(String[] args){ String s = new java.util.Scanner(System.in).nextLine(); if(a<=s&&s<=z)System.out.println("a"); else System.out.println("A"); } }
Main.java:4: error: cannot find symbol if(a<=s&&s<=z)System.out.println("a"); ^ symbol: variable a location: class Main Main.java:4: error: cannot find symbol if(a<=s&&s<=z)System.out.println("a"); ^ symbol: variable z location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u138251862|p02627|0
u138251862|p02627|0
codenet
Compile Error
203
v2_s044187506
s044187506
s044187506
p02627
p02627
u166948777
u166948777
1,592,851,838
2020-06-22T18:50:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); //判定// 出力 if((str.matches("a-z")){ System.out.println("a"); }else { System.out.println("A"); } } }
Main.java:7: error: ')' expected if((str.matches("a-z")){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u166948777|p02627|0
u166948777|p02627|0
codenet
Compile Error
299
v2_s159206735
s159206735
s159206735
p02627
p02627
u176574512
u176574512
1,592,914,940
2020-06-23T12:22:20
Main.java
public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String a = scan.nextLine(); if(a.equals("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","X","y","Z"){ System.out.println("a") }else{ System....
Main.java:6: error: ')' expected if(a.equals("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","X","y","Z"){ ^ Main.java:7: error: ';' expected Syst...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176574512|p02627|0
u176574512|p02627|0
codenet
Compile Error
353
v2_s166015174
s166015174
s166015174
p02627
p02627
u176574512
u176574512
1,592,915,051
2020-06-23T12:24:11
Main.java
public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String a = scan.nextLine(); if(a.equals("a","b","c","d","e","f","g","h","i","j","k", "l","m","n","o","p","q","r","s","t","u","v","w","X","y","Z")){ System.out.println("a"); }...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176574512|p02627|0
u176574512|p02627|0
codenet
Compile Error
373
v2_s190515696
s190515696
s190515696
p02627
p02627
u176982046
u176982046
1,592,787,878
2020-06-22T01:04:38
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Char s = sc.next(); if(s >= 'a' && s <= 'z'){ System.out.println("a"); } else { System.out.println("A"); } } }
Main.java:7: error: cannot find symbol Char s = sc.next(); ^ symbol: class Char location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176982046|p02627|0
u176982046|p02627|0
codenet
Compile Error
254
v2_s951335811
s951335811
s951335811
p02627
p02627
u176982046
u176982046
1,592,787,979
2020-06-22T01:06:19
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); Char s = a; if(s >= 'a' && s <= 'z'){ System.out.println("a"); } else { System.out.println("A"); } } }
Main.java:8: error: cannot find symbol Char s = a; ^ symbol: class Char location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u176982046|p02627|0
u176982046|p02627|0
codenet
Compile Error
269
v2_s266256544
s266256544
s266256544
p02627
p02627
u187785396
u187785396
1,592,810,820
2020-06-22T07:27:00
Solution.java
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner myObj = new Scanner(System.in); String in = userName = myObj.nextLine(); if (in.charAt(0) >= 'a' && in.charat(0) <= 'z') { System.out.println("a"); } else { System.out.println("A"); } }...
Solution.java:6: error: cannot find symbol String in = userName = myObj.nextLine(); ^ symbol: variable userName location: class Solution Solution.java:7: error: cannot find symbol if (in.charAt(0) >= 'a' && in.charat(0) <= 'z') { ^ symbol: method charat(i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u187785396|p02627|0
u187785396|p02627|0
codenet
Compile Error
322
v2_s588317897
s588317897
s588317897
p02627
p02627
u199120400
u199120400
1,592,797,814
2020-06-22T03:50:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); if( Character.isUpperCase( str.charAt(sc.next()) ) ) { System.out.println("A"); } else { System.out.println("a"); } } }
Main.java:6: error: cannot find symbol if( Character.isUpperCase( str.charAt(sc.next()) ) ) { ^ symbol: variable str location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u199120400|p02627|0
u199120400|p02627|0
codenet
Compile Error
294
v2_s038697916
s038697916
s038697916
p02627
p02627
u218740431
u218740431
1,592,787,889
2020-06-22T01:04:49
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String [26] str = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; for(int i=0;i<26;i++){if(s.equal...
Main.java:7: error: not a statement String [26] str = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; ^ Main.java:7: error: ';' expected String [26] str = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02627|0
u218740431|p02627|0
codenet
Compile Error
471
v2_s462809365
s462809365
s462809365
p02627
p02627
u218740431
u218740431
1,592,787,931
2020-06-22T01:05:31
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String str[26] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; for(int i=0;i<26;i++){if(s.equals...
Main.java:7: error: ']' expected String str[26] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}; ^ Main.java:7: error: not a statement String str[26] = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r",...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02627|0
u218740431|p02627|0
codenet
Compile Error
470
v2_s695252135
s695252135
s695252135
p02627
p02627
u218740431
u218740431
1,592,809,213
2020-06-22T07:00:13
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.nextInt(); if(str.islower()){System.out.println("a");} else{System.out.println("A");} } }
Main.java:5: error: incompatible types: int cannot be converted to String String str = sc.nextInt(); ^ Main.java:6: error: cannot find symbol if(str.islower()){System.out.println("a");} ^ symbol: method islower() location: variable str of type String 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02627|1
u218740431|p02627|0
codenet
Compile Error
238
v2_s211211865
s211211865
s211211865
p02627
p02627
u218740431
u218740431
1,592,809,233
2020-06-22T07:00:33
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); if(str.islower()){System.out.println("a");} else{System.out.println("A");} } }
Main.java:6: error: cannot find symbol if(str.islower()){System.out.println("a");} ^ symbol: method islower() location: variable str of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02627|1
u218740431|p02627|0
codenet
Compile Error
235
v2_s786187124
s786187124
s786187124
p02627
p02627
u252805327
u252805327
1,592,790,529
2020-06-22T01:48:49
Main.java
class Alphabet{ Scan scan = new Scan(System.in); if(Character.isUpperCase(scan.charAt()){ System.out.println("A"); }else { System.out.println("a"); } }
Main.java:3: error: illegal start of type if(Character.isUpperCase(scan.charAt()){ ^ Main.java:3: error: <identifier> expected if(Character.isUpperCase(scan.charAt()){ ^ Main.java:3: error: <identifier> expected if(Character.isUpperCase(scan.charAt()){ ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252805327|p02627|0
u252805327|p02627|0
codenet
Compile Error
157
v2_s809518191
s809518191
s809518191
p02627
p02627
u252805327
u252805327
1,592,791,087
2020-06-22T01:58:07
Main.java
import java.util.Scanner; class Alphabet{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String str = scan.next(); if(isLower(str)){ System.out.print("a"); }else{ System.out.print("A"); } } static boolean isLower(String str){ return str.equals(s...
Main.java:14: error: cannot find symbol return str.equals(str.toLowerCase); ^ symbol: variable toLowerCase location: variable str of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252805327|p02627|0
u252805327|p02627|0
codenet
Compile Error
342
v2_s594869516
s594869516
s594869516
p02627
p02627
u254462853
u254462853
1,593,324,349
2020-06-28T06:05:49
solution.java
import java.util.*; import java.lang.*; public class solution{ public static void main(String[] args) { Scanner key = new Scanner(System.in); char a = key.next(); if(isUpperCase(a)) System.out.println("A"); else System.out.println("a"); } }
solution.java:8: error: incompatible types: String cannot be converted to char char a = key.next(); ^ solution.java:9: error: cannot find symbol if(isUpperCase(a)) ^ symbol: method isUpperCase(char) location: class solution 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u254462853|p02627|0
u254462853|p02627|0
codenet
Compile Error
290
v2_s029426607
s029426607
s029426607
p02627
p02627
u266250594
u266250594
1,592,795,503
2020-06-22T03:11:43
Main.java
public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { char in = sc.next().charAt(0); System.out.println('A' <= in && in <= 'Z' ? 'A' : 'a'); } } }
Main.java:4: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol try (Scanner sc = new Scanner(System.in)) { ^ symbol: class Scanner location: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266250594|p02627|0
u266250594|p02627|0
codenet
Compile Error
248
v2_s968597097
s968597097
s968597097
p02627
p02627
u310956674
u310956674
1,596,916,966
2020-08-08T20:02:46
Main.java
#include <bits/stdc++.h> using namespace std; int main() { long long N; cin >> N; string res = ""; while (N) { --N; res += (char)('a' + (N % 26)); N /= 26; } reverse(res.begin(), res.end()); cout << res << endl; }
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:5: error: not a statement long long N; ^ Main.java:6: error: not a statement cin >> N; ^ Main.java:14: error: not a state...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u310956674|p02627|0
u310956674|p02627|0
codenet
Compile Error
266
v2_s174242652
s174242652
s174242652
p02627
p02627
u324571163
u324571163
1,592,788,208
2020-06-22T01:10:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String x = scan.nextString(); boolean a = Pattern.matches("^[A-Z]+$", x); if(a = true) { System.out.println(A); }else { System.out.println(a); ...
Main.java:6: error: cannot find symbol String x = scan.nextString(); ^ symbol: method nextString() location: variable scan of type Scanner Main.java:8: error: cannot find symbol boolean a = Pattern.matches("^[A-Z]+$", x); ^ symbol: variable Pattern locati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324571163|p02627|0
u324571163|p02627|0
codenet
Compile Error
356
v2_s841291434
s841291434
s841291434
p02627
p02627
u330907398
u330907398
1,597,809,304
2020-08-19T03:55:04
Main.java
public class Main { public static void main(String[] args) { String α = new java.util.Scanner(System.in).nextText; if (α == isUpperCase) { System.out.println("A"); } else { System.out.println("a"); } } }
Main.java:3: error: cannot find symbol String ? = new java.util.Scanner(System.in).nextText; ^ symbol: variable nextText location: class Scanner Main.java:4: error: cannot find symbol if (? == isUpperCase) { ^ symbol: variable isUpperCase l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02627|0
u330907398|p02627|0
codenet
Compile Error
237
v2_s757368935
s757368935
s757368935
p02627
p02627
u330907398
u330907398
1,597,809,431
2020-08-19T03:57:11
Main.java
public class Main { public static void main(String[] args) { String α = new java.util.Scanner(System.in).nextText; if (Charactar.isUpperCase(α)) { System.out.println("A"); } else { System.out.println("a"); } } }
Main.java:3: error: cannot find symbol String ? = new java.util.Scanner(System.in).nextText; ^ symbol: variable nextText location: class Scanner Main.java:4: error: cannot find symbol if (Charactar.isUpperCase(?)) { ^ symbol: variable Charactar ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02627|0
u330907398|p02627|0
codenet
Compile Error
246
v2_s381013574
s381013574
s381013574
p02627
p02627
u330907398
u330907398
1,597,810,310
2020-08-19T04:11:50
Main.java
public class Main { public static void main(String[] args) { char α = new java.util.Scanner(System.in).nextText; if (Charactar.isUpperCase(α)) { System.out.println("A"); } else { System.out.println("a"); } } }
Main.java:3: error: cannot find symbol char ? = new java.util.Scanner(System.in).nextText; ^ symbol: variable nextText location: class Scanner Main.java:4: error: cannot find symbol if (Charactar.isUpperCase(?)) { ^ symbol: variable Charactar loca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02627|0
u330907398|p02627|0
codenet
Compile Error
244
v2_s540558522
s540558522
s540558522
p02627
p02627
u339758680
u339758680
1,593,149,842
2020-06-26T05:37:22
Main.java
import java.util.Scanner; class Alphabets{ Scanner sc=new Scanner(System.in); char c=sc.nextChar(); if(c.isLower()){ c=c.toUpper(); System.out.println(c); } else{ c=c.toLower(); System.out.println(c); } \ }
Main.java:9: error: illegal start of type if(c.isLower()){ ^ Main.java:9: error: <identifier> expected if(c.isLower()){ ^ Main.java:9: error: ';' expected if(c.isLower()){ ^ Main.java:14: error: illegal start of type else{ ^ Main.java:19: error: illegal character: '\' \ ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u339758680|p02627|0
u339758680|p02627|0
codenet
Compile Error
240
v2_s074867273
s074867273
s074867273
p02627
p02627
u339758680
u339758680
1,593,151,008
2020-06-26T05:56:48
Main.java
import java.util.Scanner; class Alphabets{ Scanner sc=new Scanner(System.in); String c=sc.next(); // String s=c.toLowerCase(); if(c.isLowerCase()){ c=c.toUpperCase(); System.out.println(c); } else{ c=c.toLowerCase(); System.out.println(c); } }
Main.java:12: error: illegal start of type if(c.isLowerCase()){ ^ Main.java:12: error: <identifier> expected if(c.isLowerCase()){ ^ Main.java:12: error: ';' expected if(c.isLowerCase()){ ^ Main.java:17: error: illegal start of type else{ ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u339758680|p02627|0
u339758680|p02627|0
codenet
Compile Error
286
v2_s676336180
s676336180
s676336180
p02627
p02627
u345351125
u345351125
1,592,789,026
2020-06-22T01:23:46
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); String S = in.nextLine(); String str1 = new String(S); if(Character.isUpperCase(str1.charAt( 0 ))){ String T = str1.toLowerCase(); Syst...
Main.java:10: error: cannot find symbol System.out.println(A); ^ symbol: variable A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345351125|p02627|0
u345351125|p02627|0
codenet
Compile Error
466
v2_s891145982
s891145982
s891145982
p02627
p02627
u347471422
u347471422
1,593,767,390
2020-07-03T09:09:50
Main.java
import java.util.*; class Main() { public static void main(String []args) { Scanner sc = new Scanner(System.in); char c = sc.next().charAt(0); if(c>='a' && c<='z') { System.out.println("a"); } else { System.out.println("A"); } } }
Main.java:2: error: '{' expected class Main() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347471422|p02627|0
u347471422|p02627|0
codenet
Compile Error
238
v2_s422611432
s422611432
s422611432
p02627
p02627
u348088442
u348088442
1,592,788,652
2020-06-22T01:17:32
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { IO io = new IO(); Impl impl = new Impl(); String s = io.next(); char c = s.charAt(0); if (c >= 'A' && c <= 'Z') { io.write("A"); } else { io....
Main.java:27: error: class Main is already defined in package unnamed package public class Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u348088442|p02627|0
u348088442|p02627|0
codenet
Compile Error
5,046
v2_s656163457
s656163457
s656163457
p02627
p02627
u362825937
u362825937
1,593,203,735
2020-06-26T20:35:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next(); if(Character.isUpperCase(a))System.out.println("A"); else System.out.println("B"); } }
Main.java:9: error: no suitable method found for isUpperCase(String) if(Character.isUpperCase(a))System.out.println("A"); ^ method Character.isUpperCase(char) is not applicable (argument mismatch; String cannot be converted to char) method Character.isUpperCase(int) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p02627|0
u362825937|p02627|0
codenet
Compile Error
262
v2_s929661927
s929661927
s929661927
p02627
p02627
u362825937
u362825937
1,593,203,864
2020-06-26T20:37:44
Main.java
import java.util.Scanner; import java.lang.Character; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String a = scan.next(); Character c = new Character(); if(c.isUpperCase(a))System.out.println("A"); else System.out.println("B"); ...
Main.java:10: error: constructor Character in class Character cannot be applied to given types; Character c = new Character(); ^ required: char found: no arguments reason: actual and formal argument lists differ in length Main.java:12: error: no suitable method found for isUpperCa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p02627|0
u362825937|p02627|0
codenet
Compile Error
328
v2_s474987353
s474987353
s474987353
p02627
p02627
u362825937
u362825937
1,593,204,285
2020-06-26T20:44:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Char a = scan.next(); if(c.isUpperCase(a))System.out.println("A"); else System.out.println("B"); }
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p02627|0
u362825937|p02627|0
codenet
Compile Error
263
v2_s259589064
s259589064
s259589064
p02627
p02627
u362825937
u362825937
1,593,204,316
2020-06-26T20:45:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Char a = scan.next(); if(c.isUpperCase(a))System.out.println("A"); else System.out.println("B"); } }
Main.java:8: error: cannot find symbol Char a = scan.next(); ^ symbol: class Char location: class Main Main.java:11: error: cannot find symbol if(c.isUpperCase(a))System.out.println("A"); ^ symbol: variable c location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u362825937|p02627|0
u362825937|p02627|0
codenet
Compile Error
265