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_s095374073
s095374073
s095374073
p03103
p03103
u563321291
u563321291
1,587,900,877
2020-04-26T11:34:37
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { static int a1[]= {0,-1,0,1}; static int b1[]= {-1,0,1,0}; private static Scanner sc = new Scanner(System.in); //result = Math.pow(num1, num3) //StringB...
Main.java:80: error: cannot find symbol v(i+1,sum*(cc.get(i)+1)); ^ symbol: variable cc location: class Main Main.java:81: error: cannot find symbol v(i+1,sum*(cc.get(i)-1)); ^ symbol: variable cc location: class Main Main.java:82: error: cannot find symbol v(i+1,sum*(cc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563321291|p03103|0
u563321291|p03103|0
codenet
Compile Error
3,220
v2_s314769920
s314769920
s314769920
p03103
p03103
u568787360
u568787360
1,552,403,035
2019-03-12T15:03:55
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 M = sc.nextLong(); long count_opt =0; long price_opt =0; ArrayList<Drink> List = new ArrayList<>(); for(int a=0;a<N...
Main.java:9: error: cannot find symbol ArrayList<Drink> List = new ArrayList<>(); ^ symbol: class Drink location: class Main Main.java:13: error: cannot find symbol Drink d = new Drink(price,count); ^ symbol: class Drink location: class Main Main.java:13: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568787360|p03103|1
u568787360|p03103|1
codenet
Compile Error
979
v2_s084963014
s084963014
s084963014
p03103
p03103
u568787360
u568787360
1,552,403,279
2019-03-12T15:07:59
Main.java
import java.util.*; public class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long M = sc.nextLong(); long count_opt =0; long price_opt =0; ArrayList<Drink> List = new ArrayList<>(); for(int a=0;a<N...
Main.java:9: error: cannot find symbol ArrayList<Drink> List = new ArrayList<>(); ^ symbol: class Drink location: class Main Main.java:13: error: cannot find symbol Drink d = new Drink(price,count); ^ symbol: class Drink location: class Main Main.java:13: er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568787360|p03103|1
u568787360|p03103|1
codenet
Compile Error
1,028
v2_s964494932
s964494932
s964494932
p03103
p03103
u572483595
u572483595
1,552,163,443
2019-03-09T20:30:43
Main.java
import java.util.ArrayList; import java.util.Comparator; import java.util.Scanner; import javafx.util.Pair; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N,M; N= sc.nextInt(); M = sc.nextInt(); ArrayList<Pair<Long,Integer>> list = new ArrayList<Pair<...
Main.java:5: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:14: error: cannot find symbol ArrayList<Pair<Long,Integer>> list = new ArrayList<Pair<Long,Integer>>(); ^ symbol: class Pair location: class Main Main.java:14: error: cannot find symbol Ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572483595|p03103|0
u572483595|p03103|0
codenet
Compile Error
771
v2_s306142144
s306142144
s306142144
p03103
p03103
u572483595
u572483595
1,552,163,651
2019-03-09T20:34:11
Main.java
import java.util.ArrayList; import java.util.Comparator; import java.util.Scanner; import javafx.util.Pair; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N,M; N= sc.nextInt(); M = sc.nextInt(); ArrayList<Pair<Long,Integer>> list = new ArrayList<Pair<...
Main.java:5: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:14: error: cannot find symbol ArrayList<Pair<Long,Integer>> list = new ArrayList<Pair<Long,Integer>>(); ^ symbol: class Pair location: class Main Main.java:14: error: cannot find symbol Ar...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572483595|p03103|0
u572483595|p03103|0
codenet
Compile Error
771
v2_s210615158
s210615158
s210615158
p03103
p03103
u584924463
u584924463
1,552,167,615
2019-03-09T21:40:15
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(); int M = sc.nextInt(); int[] A = new int[N]; int[] B = new int[N]; for (int i = 0; i < N ; i++)...
Main.java:21: error: illegal start of expression long res = rec(A,B,,dp, M, 0 ); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u584924463|p03103|0
u584924463|p03103|0
codenet
Compile Error
1,130
v2_s349086212
s349086212
s349086212
p03103
p03103
u587721314
u587721314
1,564,432,905
2019-07-29T20:41:45
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { // AtCoder Beginner Contest 121 // https://atcoder.jp/contests/abc121/tasks public static void main(String[] args) { FastReader sc = new Fast...
Main.java:38: error: cannot find symbol LinkedList<Integer> stack = new LinkedList<>(); ^ symbol: class LinkedList location: class Main Main.java:38: error: cannot find symbol LinkedList<Integer> stack = new LinkedList<>(); ^ symbol: class LinkedList location: class M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p03103|0
u587721314|p03103|0
codenet
Compile Error
2,224
v2_s605283288
s605283288
s605283288
p03103
p03103
u587721314
u587721314
1,564,434,121
2019-07-29T21:02:01
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java.util.Map; import java.util.Queue; import java.util.Set; import java.util.StringTokenizer; public class Main...
Main.java:18: error: non-static method c() cannot be referenced from a static context c(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587721314|p03103|0
u587721314|p03103|0
codenet
Compile Error
2,737
v2_s951630531
s951630531
s951630531
p03103
p03103
u627434558
u627434558
1,562,360,509
2019-07-05T21:01:49
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(), M = scanner.nextInt(); Map<Integer, Long> drinks = new HashMap<>(); for(int i = 0; i < N; i++){ Integer key = scanner.nextInt(); ...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u627434558|p03103|1
u627434558|p03103|1
codenet
Compile Error
843
v2_s357550314
s357550314
s357550314
p03103
p03103
u627434558
u627434558
1,562,366,920
2019-07-05T22:48:40
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long N = scanner.nextLong(), M = scanner.nextLong(); Map<Long, Long> drinks = new TreeMap<>(); for(int i = 0; i < N; i++){ Long key = scanner.nextLong(); Lo...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u627434558|p03103|1
u627434558|p03103|1
codenet
Compile Error
860
v2_s603377421
s603377421
s603377421
p03103
p03103
u647999897
u647999897
1,565,430,102
2019-08-10T09:41:42
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); int N = scn.nextInt(); int M = scn.nextInt(); ArrayList<Data> data = new ArrayList<>(); for (int i = 0; i < N; i++) { int A = scn.nextInt(); int B = scn.nextInt(); ...
Main.java:40: error: incompatible types: possible lossy conversion from long to int this.stock = b; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u647999897|p03103|0
u647999897|p03103|0
codenet
Compile Error
1,176
v2_s573317708
s573317708
s573317708
p03103
p03103
u653981267
u653981267
1,553,106,271
2019-03-20T18:24:31
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 m = sc.nextLong(); HashMap<Long, Long> map = new HashMap<Long, Long>(); long[] a = new long[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextL...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n]; ^ Main.java:26: error: incompatible types: int cannot be converted to Long map.put(a[i], 0); ^ Note: Some messages have been simplified; recompile with -Xd...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03103|0
u653981267|p03103|0
codenet
Compile Error
797
v2_s742298851
s742298851
s742298851
p03103
p03103
u653981267
u653981267
1,553,106,321
2019-03-20T18:25:21
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 m = sc.nextLong(); HashMap<Long, Long> map = new HashMap<Long, Long>(); long[] a = new long[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextL...
Main.java:9: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03103|0
u653981267|p03103|0
codenet
Compile Error
803
v2_s846355045
s846355045
s846355045
p03103
p03103
u682395093
u682395093
1,552,224,717
2019-03-10T13:31:57
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); //軒数 int M = sc.nextInt(); //ほしい本数 Map<Integer, Integer> mMap = new HashMap<Integer, Integer>(); for (int i = ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u682395093|p03103|0
u682395093|p03103|0
codenet
Compile Error
613
v2_s687892371
s687892371
s687892371
p03103
p03103
u698000453
u698000453
1,552,173,041
2019-03-09T23:10:41
Main.java
import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); long[] a = new long[n]; long[] b = new long[n]; int count = 0;...
Main.java:46: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u698000453|p03103|0
u698000453|p03103|0
codenet
Compile Error
878
v2_s072135037
s072135037
s072135037
p03103
p03103
u740667034
u740667034
1,552,164,019
2019-03-09T20:40:19
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int n=scan.nextInt(); int m=scan.nextInt(); List<Integer> a=new ArrayList<>(); List<Integer> b=new Arr...
Main.java:31: error: variable x might not have been initialized ans-=(long)(x*(sum-m)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03103|0
u740667034|p03103|0
codenet
Compile Error
766
v2_s815982085
s815982085
s815982085
p03103
p03103
u752146501
u752146501
1,552,371,974
2019-03-12T06:26:14
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.List; import java.util.Scanner; import java.util.ArrayList; /** * Built using CHelper plug-in * Actual solution is at the top * * @author HBonsai */ public class Main { public stat...
Main.java:35: error: ')' or ',' expected stores.sort((x, y) -> x.first - y.first == 0 ?0:(x.first - y.first>0?1:-1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03103|2
u752146501|p03103|2
codenet
Compile Error
1,776
v2_s518216726
s518216726
s518216726
p03103
p03103
u752146501
u752146501
1,552,373,410
2019-03-12T06:50:10
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.List; import java.util.Scanner; import java.util.ArrayList; /** * Built using CHelper plug-in * Actual solution is at the top * * @author HBonsai */ public class Main { public stat...
Main.java:35: error: incompatible types: bad return type in lambda expression stores.sort((x, y) -> x.first - y.first); ^ possible lossy conversion from long to int Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03103|2
u752146501|p03103|2
codenet
Compile Error
1,742
v2_s772710574
s772710574
s772710574
p03103
p03103
u752146501
u752146501
1,552,374,269
2019-03-12T07:04:29
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.io.Closeable; import java.io.IOException; import java.util.Comparator; import java.util.NoSuchElementException; import java.io.InputStream; /** * Built using CHelper pl...
Main.java:34: error: cannot find symbol Arrays.sort(stores, (x,y) -> x.first - y.first); ^ symbol: variable first location: variable x of type int[] Main.java:34: error: cannot find symbol Arrays.sort(stores, (x,y) -> x.first - y.first); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752146501|p03103|2
u752146501|p03103|2
codenet
Compile Error
4,132
v2_s015459874
s015459874
s015459874
p03104
p03104
u059223549
u059223549
1,552,165,718
2019-03-09T21:08:38
Main.java
public static void main(String[] args) { // { // Scanner in = new Scanner(System.in); // long a = in.nextLong(); // long b = in.nextLong(); // long ret = 0; // for (long i = a; i <= b; i++) { // ret ^= i; // } // System.out.println(ret); // } { Scanner in = new Scanner(System.in); long a = i...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:34: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059223549|p03104|0
u059223549|p03104|0
codenet
Compile Error
672
v2_s480819879
s480819879
s480819879
p03104
p03104
u179572988
u179572988
1,554,309,953
2019-04-03T16:45:53
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力(AとB) long A = sc.nextLong(); long B = sc.nextLong(); long partA =0; long partB =0; long a = A-1; // A-1=aの偶奇を判別 if((a)%2==1){ if(((a-1)...
Main.java:20: error: ';' expected partA=0^a ^ Main.java:22: error: ';' expected partA=1^(a) ^ Main.java:34: error: ';' expected partB=0^B ^ Main.java:36: error: ';' expected partB=1^(B) ^ Main.java:38...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179572988|p03104|0
u179572988|p03104|0
codenet
Compile Error
864
v2_s297915892
s297915892
s297915892
p03104
p03104
u249671260
u249671260
1,552,164,676
2019-03-09T20:51:16
Main.java
#include<bits/stdc++.h> using namespace std; #define double long double #define int long long #define vec vector #define pb push_back #define unset unordered_set #define ii pair<int, int> #define X first #define Y second #define FOR(i, a, b) for(int i = (a); i < (b); i++) #define FORE(i, a, b) for(int i = (a); i <= (b...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:4: error: illegal character: '#' #define double long double ^ Main.java:4: error: class, interface, enum, or record expected #define double long...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u249671260|p03104|0
u249671260|p03104|0
codenet
Compile Error
2,106
v2_s419584072
s419584072
s419584072
p03104
p03104
u340072973
u340072973
1,552,169,947
2019-03-09T22:19:07
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String in[]; long a, b, x, ret; in = scanner.nextLine().split(" "); a = Long.parseLong(in[0]); b = Long.parseLong(in[1]); if (a == b) {...
Main.java:13: error: variable ret might not have been initialized System.out.println(ret); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340072973|p03104|0
u340072973|p03104|0
codenet
Compile Error
589
v2_s178907634
s178907634
s178907634
p03104
p03104
u340072973
u340072973
1,552,207,827
2019-03-10T08:50:27
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String in[]; long a, b, x, y, ret; in = scanner.nextLine().split(" "); a = Long.parseLong(in[0]); b = Long.parseLong(in[1]); ret = 0; for (long i = ...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340072973|p03104|1
u340072973|p03104|1
codenet
Compile Error
519
v2_s701937707
s701937707
s701937707
p03104
p03104
u572483595
u572483595
1,552,168,552
2019-03-09T21:55:52
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // System.out.println(" "+Integer.toBinaryString(123)); // System.out.println(Integer.toBinaryString(456)); // System.out.println(Integer.toBinaryString(456-123)); // System.out.println(Integer.toBinaryString(123^456)); // ...
Main.java:37: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u572483595|p03104|0
u572483595|p03104|0
codenet
Compile Error
1,122
v2_s469581015
s469581015
s469581015
p03104
p03104
u609992002
u609992002
1,552,165,840
2019-03-09T21:10:40
Main.java
#include<bits/stdc++.h> using namespace std; long long f(long long a) { long long res[] = {a,1,a+1,0}; return res[a%4]; } long long getXor(long long a, long long b) { return f(b)^f(a-1); } int main() { long long a, b ; cin >> a >> b; cout << getXor(a,b) << endl; return 0; }
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:4: error: class, interface, enum, or record expected long long f(long long a) { ^ Main.java:6: error: class, interface, enum, or record expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u609992002|p03104|0
u609992002|p03104|0
codenet
Compile Error
301
v2_s958122275
s958122275
s958122275
p03104
p03104
u740667034
u740667034
1,552,165,573
2019-03-09T21:06:13
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); public static int func(int n){ if(n<0) return 0; if(n>=0){ if(n%4==0){ return 0; }else if(n%4==1){ ...
Main.java:7: error: illegal start of expression public static int func(int n){ ^ Main.java:21: error: <identifier> expected System.out.println(f(b)^(~f(a-1))); ^ Main.java:21: error: <identifier> expected System.out.println(f(b)^(~f(a-1))); ^ Main.java:23: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03104|0
u740667034|p03104|0
codenet
Compile Error
486
v2_s964294783
s964294783
s964294783
p03104
p03104
u740667034
u740667034
1,552,165,621
2019-03-09T21:07:01
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); System.out.println(f(b)^(~f(a-1))); } public static int func(int n){ if(n<0) return 0; if(n>=0){ if(n%4==0){ ...
Main.java:7: error: cannot find symbol System.out.println(f(b)^(~f(a-1))); ^ symbol: method f(int) location: class Main Main.java:7: error: cannot find symbol System.out.println(f(b)^(~f(a-1))); ^ symbol: method f(int) location: class Main 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03104|0
u740667034|p03104|0
codenet
Compile Error
490
v2_s434253402
s434253402
s434253402
p03104
p03104
u740667034
u740667034
1,552,165,749
2019-03-09T21:09:09
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); System.out.println(func(b)^(~func(a-1))); } public static int func(int n){ if(n<0) return 0; if(n>=0){ if(n%4==0){...
Main.java:23: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03104|0
u740667034|p03104|0
codenet
Compile Error
496
v2_s863024727
s863024727
s863024727
p03104
p03104
u740667034
u740667034
1,552,165,818
2019-03-09T21:10:18
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); System.out.println(func(b)^(~func(a-1))); } public static int func(int n){ if(n<0) return 0; if(n>=0){ if(n%4==0){ re...
Main.java:22: error: missing return statement } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03104|0
u740667034|p03104|0
codenet
Compile Error
465
v2_s630712177
s630712177
s630712177
p03104
p03104
u900855318
u900855318
1,552,518,051
2019-03-13T23:00:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int start = scanner.nextInt(); int end = scanner.nextInt(); int result = 0; for (int ix = start; ix < end; ix++) { result ^= ix; } return result; } ...
Main.java:14: error: incompatible types: unexpected return value return result; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p03104|0
u900855318|p03104|0
codenet
Compile Error
321
v2_s967595660
s967595660
s967595660
p03104
p03104
u900855318
u900855318
1,552,518,447
2019-03-13T23:07:27
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long start = scanner.nextLong(); long end = scanner.nextLong(); int result = 0; for (int ix = start; ix <= end; ix++) { result ^= ix; } System.out.pri...
Main.java:10: error: incompatible types: possible lossy conversion from long to int for (int ix = start; ix <= end; ix++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p03104|0
u900855318|p03104|0
codenet
Compile Error
340
v2_s042211106
s042211106
s042211106
p03104
p03104
u928784113
u928784113
1,564,908,504
2019-08-04T08:48:24
Main.java
from collections import deque,defaultdict,Counter from itertools import accumulate import bisect from heapq import heappop,heappush from fractions import gcd from copy import deepcopy import math Mod = 1000000007 def main(): #startline------------------------------------------- A,B = map(int,input().split()) ...
Main.java:1: error: class, interface, enum, or record expected from collections import deque,defaultdict,Counter ^ Main.java:12: error: illegal character: '#' def main(): #startline------------------------------------------- ^ Main.java:27: error: illegal character: '#' main() #endline==================...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928784113|p03104|0
u928784113|p03104|0
codenet
Compile Error
1,741
v2_s536627744
s536627744
s536627744
p03105
p03105
u041601206
u041601206
1,554,154,123
2019-04-01T21:28:43
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 D = B / A; if (D < C) System.out.println(D); else System.out.println(C); } }
Main.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util 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 s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u041601206|p03105|1
u041601206|p03105|1
codenet
Compile Error
295
v2_s952019960
s952019960
s952019960
p03105
p03105
u073396193
u073396193
1,599,345,573
2020-09-05T22:39:33
Main.java
import java.io.BufferedReader; import java.io.*; import java.util.*; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Collections; import java.util.Arrays; public class Main { public static void main(final String[] args){ final Scanner sc = new Scanner(System.in)...
Main.java:16: error: variable list2 is already defined in method main(String[]) final List<Long> list2 = new ArrayList<>(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073396193|p03105|0
u073396193|p03105|0
codenet
Compile Error
671
v2_s870502683
s870502683
s870502683
p03105
p03105
u092025199
u092025199
1,556,194,566
2019-04-25T12:16:06
Main.java
import java.util.*; 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(); System.out.println(a>b?0:a/b); } }
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092025199|p03105|0
u092025199|p03105|0
codenet
Compile Error
236
v2_s000570385
s000570385
s000570385
p03105
p03105
u092025199
u092025199
1,556,194,625
2019-04-25T12:17:05
Main.java
import java.util.*; 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(); r=a>b?0:a/b; System.out.println(r); } }
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u092025199|p03105|0
u092025199|p03105|0
codenet
Compile Error
245
v2_s683846796
s683846796
s683846796
p03105
p03105
u144052334
u144052334
1,551,649,174
2019-03-03T21:39:34
Main.java
class TestClass { public static void main(String args[] ) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String name = br.readLine(); // Reading input from STDIN String []n=name.split(" "); int a=Integer.parseInt(n...
Main.java:12: error: > or ',' expected if(a=<b){ ^ Main.java:14: error: > or ',' expected if(a=<b){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u144052334|p03105|0
u144052334|p03105|0
codenet
Compile Error
662
v2_s298852014
s298852014
s298852014
p03105
p03105
u167206842
u167206842
1,573,330,056
2019-11-09T20:07:36
Main.java
import java.util.*; 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(); System.out.println(Math.min(c,(b/a)); } }
Main.java:8: error: ')' or ',' expected System.out.println(Math.min(c,(b/a)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p03105|0
u167206842|p03105|0
codenet
Compile Error
254
v2_s664532899
s664532899
s664532899
p03105
p03105
u188396343
u188396343
1,575,386,595
2019-12-03T15:23:15
Main.java
import java.util.*; 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 x = A/B; if(X<C){ System.out.println(x); }else{ System.out.println(C); } } }
Main.java:9: error: illegal start of type if(X<C){ ^ Main.java:9: error: > or ',' expected if(X<C){ ^ Main.java:11: error: illegal start of type }else{ ^ Main.java:15: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03105|0
u188396343|p03105|0
codenet
Compile Error
289
v2_s186905654
s186905654
s186905654
p03105
p03105
u188396343
u188396343
1,575,386,723
2019-12-03T15:25:23
Main.java
import java.util.*; 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 x = A/B; if(x<C){ System.out.println(x); }else{ System.out.println(C); } } }
Main.java:9: error: illegal start of type if(x<C){ ^ Main.java:9: error: > or ',' expected if(x<C){ ^ Main.java:11: error: illegal start of type }else{ ^ Main.java:15: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03105|0
u188396343|p03105|0
codenet
Compile Error
290
v2_s600489540
s600489540
s600489540
p03105
p03105
u188396343
u188396343
1,575,386,874
2019-12-03T15:27:54
Main.java
import java.util.*; public class Main{ public static void main(String args[]); Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int x = A/B; if(x < c){ System.out.println(x); }else{ System.out.println(c); } } }
Main.java:9: error: illegal start of type if(x < c){ ^ Main.java:9: error: > or ',' expected if(x < c){ ^ Main.java:11: error: illegal start of type }else{ ^ Main.java:15: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03105|0
u188396343|p03105|0
codenet
Compile Error
291
v2_s902378182
s902378182
s902378182
p03105
p03105
u188396343
u188396343
1,575,386,943
2019-12-03T15:29:03
Main.java
import java.util.*; 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 x = a/b; if(x < c){ System.out.println("x"); }else{ System.out.println("c"); } } }
Main.java:9: error: illegal start of type if(x < c){ ^ Main.java:9: error: > or ',' expected if(x < c){ ^ Main.java:11: error: illegal start of type }else{ ^ Main.java:15: error: class, interface, enum, or record expected } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03105|0
u188396343|p03105|0
codenet
Compile Error
296
v2_s432883805
s432883805
s432883805
p03105
p03105
u188396343
u188396343
1,576,080,800
2019-12-11T16:13:20
Main.java
import java.util.*; import java.util.Date; import java.text.SimpleDateFormat; 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 = ac.nextInt(); int t = b/a; if(t>=c){ System.out.println(c); }else{ Sys...
Main.java:9: error: cannot find symbol int c = ac.nextInt(); ^ symbol: variable ac location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u188396343|p03105|1
u188396343|p03105|1
codenet
Compile Error
352
v2_s946371095
s946371095
s946371095
p03105
p03105
u205144881
u205144881
1,591,605,304
2020-06-08T08:35:04
Main.java
public class Main { public static void main(String[] args) { int count = B / A; if (count > C) count = C; System.out.println(count); } }
Main.java:3: error: cannot find symbol int count = B / A; ^ symbol: variable B location: class Main Main.java:3: error: cannot find symbol int count = B / A; ^ symbol: variable A location: class Main Main.java:4: error: cannot find symbol if (count > C) count = C;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u205144881|p03105|0
u205144881|p03105|0
codenet
Compile Error
156
v2_s564852738
s564852738
s564852738
p03105
p03105
u205144881
u205144881
1,591,605,446
2020-06-08T08:37:26
Main.java
public class Main { public static void main(String[] args) { int A, B, C; int count = B / A; if (count > C) count = C; System.out.println(count); } }
Main.java:5: error: variable B might not have been initialized int count = B / A; ^ Main.java:5: error: variable A might not have been initialized int count = B / A; ^ Main.java:6: error: variable C might not have been initialized if (count > C) count = C; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u205144881|p03105|0
u205144881|p03105|0
codenet
Compile Error
176
v2_s701922326
s701922326
s701922326
p03105
p03105
u205144881
u205144881
1,591,605,519
2020-06-08T08:38:39
Main.java
public class Main { public static void main(String[] args) { int A = args[0]; int B = args[1]; int C = args[2]; int count = B / A; if (count > C) count = C; System.out.println(count); } }
Main.java:3: error: incompatible types: String cannot be converted to int int A = args[0]; ^ Main.java:4: error: incompatible types: String cannot be converted to int int B = args[1]; ^ Main.java:5: error: incompatible types: String cannot be converted to int int C = arg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u205144881|p03105|0
u205144881|p03105|0
codenet
Compile Error
226
v2_s471646308
s471646308
s471646308
p03105
p03105
u218740431
u218740431
1,589,136,416
2020-05-10T18:46:56
Main.java
import java.util.*; public class Main { public static void main(String[] args){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println(Math.min(b/a,c)); } }
Main.java:4: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int b = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:6: error: cannot find symbol int c = sc.next...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03105|0
u218740431|p03105|0
codenet
Compile Error
217
v2_s004282207
s004282207
s004282207
p03105
p03105
u346307762
u346307762
1,562,632,417
2019-07-09T00:33:37
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int price = sc.nextInt(); int money = sc.nextInt(); int max = sc.nextInt(); System.out.println(Math.min((int)(money / price), max); } }
Main.java:10: error: ')' or ',' expected System.out.println(Math.min((int)(money / price), max); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u346307762|p03105|0
u346307762|p03105|0
codenet
Compile Error
300
v2_s831337397
s831337397
s831337397
p03105
p03105
u353919145
u353919145
1,588,933,417
2020-05-08T10:23:37
Main.java
class Main { public static void main(String[] args) { int a,b,c,d;/*a=價格 b=預算 c=次數上限 d=購買次數*/ a=10; b=10; c=3; d=b/a; if(d>c){ System.out.println(c); }else{ System.out.println(d); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03105|3
u353919145|p03105|3
codenet
Compile Error
237
v2_s456530479
s456530479
s456530479
p03105
p03105
u389979392
u389979392
1,551,950,165
2019-03-07T09:16:05
Main.java
import java.util.*; public static void main(String[] args) { Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); int C=sc.nextInt(); if(B/A>C) { System.out.println(C); } else { System.out.println(B/A); } } }
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:16: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u389979392|p03105|0
u389979392|p03105|0
codenet
Compile Error
286
v2_s313890012
s313890012
s313890012
p03105
p03105
u418089925
u418089925
1,587,557,707
2020-04-22T12:15:07
Main.java
import java.util.*; public class Main { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if (b/a>=c) { System.out.println(c); }else{ ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u418089925|p03105|0
u418089925|p03105|0
codenet
Compile Error
367
v2_s711680727
s711680727
s711680727
p03105
p03105
u424241608
u424241608
1,587,859,807
2020-04-26T00:10:07
Main.java
import java.util.Scanner; class Main{ public static void main(String... args){ char[] s = sc.next().toCharArray(); int[] arr = {0,0}; for(char c : s){ if(c == '1')arr[1]++; else arr[0]++; } System.out.println(2*Math.min(arr[0],arr[1])); } }
Main.java:5: error: cannot find symbol char[] s = sc.next().toCharArray(); ^ symbol: variable sc location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u424241608|p03105|0
u424241608|p03105|0
codenet
Compile Error
292
v2_s306371183
s306371183
s306371183
p03105
p03105
u440190560
u440190560
1,552,119,070
2019-03-09T08:11:10
Main.java
public class Main { public static void main(String[] args) throws Exception { try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ String S = i.readLine(); int a = S.length(); Long r = S.chars().parallel().filter(c -> c=='0').count(); Long b = a - r; Sys...
Main.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ ^ symbol: class BufferedReader location: class Main Main.java:4: error: cannot find symbol try(BufferedReader i = new BufferedReader(new InputStreamReader(System.in))){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440190560|p03105|1
u440190560|p03105|0
codenet
Compile Error
371
v2_s136774039
s136774039
s136774039
p03105
p03105
u452955775
u452955775
1,565,462,697
2019-08-10T18:44:57
Main.java
import java.util.*; 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(); System.out.println(Math.min(b/a,c)); } } }
Main.java:12: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452955775|p03105|0
u452955775|p03105|0
codenet
Compile Error
279
v2_s789759707
s789759707
s789759707
p03105
p03105
u547671064
u547671064
1,586,534,469
2020-04-10T16:01:09
Main.java
import java.util.*; 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 = B/A; int E=Math.min(C,D); System.out.pritnln(E); } }
Main.java:10: error: cannot find symbol System.out.pritnln(E); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p03105|0
u547671064|p03105|0
codenet
Compile Error
269
v2_s261244090
s261244090
s261244090
p03105
p03105
u547671064
u547671064
1,586,534,624
2020-04-10T16:03:44
Main.java
import java.util.*; 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 = B/A; int E =Math.min(C,D); System.out.pritnln( E ); } }
Main.java:10: error: cannot find symbol System.out.pritnln( E ); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p03105|0
u547671064|p03105|0
codenet
Compile Error
272
v2_s387959244
s387959244
s387959244
p03105
p03105
u547671064
u547671064
1,586,542,109
2020-04-10T18:08:29
Main.java
import java.util.*; 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 = B/A; E = Math.min(C,D); System.out.pritnln( E ); } }
Main.java:9: error: cannot find symbol E = Math.min(C,D); ^ symbol: variable E location: class Main Main.java:10: error: cannot find symbol System.out.pritnln( E ); ^ symbol: variable E location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p03105|1
u547671064|p03105|0
codenet
Compile Error
270
v2_s859908906
s859908906
s859908906
p03105
p03105
u547671064
u547671064
1,586,542,139
2020-04-10T18:08:59
Main.java
import java.util.*; 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 = B/A; int E = Math.min(C,D); System.out.pritnln( D ); } }
Main.java:10: error: cannot find symbol System.out.pritnln( D ); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p03105|1
u547671064|p03105|0
codenet
Compile Error
274
v2_s027046892
s027046892
s027046892
p03105
p03105
u556125658
u556125658
1,555,967,437
2019-04-22T21:10:37
Main.java
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 count = 0; if( B - A * C >= 0) { count = C; System.out.println(count); } if(B - A * C < 0 && B >= A) { count = B / A; S...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556125658|p03105|0
u556125658|p03105|0
codenet
Compile Error
435
v2_s913434620
s913434620
s913434620
p03105
p03105
u591794154
u591794154
1,553,383,539
2019-03-23T23:25:39
Main.java
public class Main{ public static void main(String[] args)[ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); int i=0; int p,q; while(1){ if(i==0) p=b-a; else p=p-a if(i>=c){ break; }els...
Main.java:2: error: ';' expected public static void main(String[] args)[ ^ Main.java:12: error: illegal start of type while(1){ ^ Main.java:14: error: ';' expected else p=p-a ^ Main.java:23: error: <identifier> expected System.out.println(c); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u591794154|p03105|0
u591794154|p03105|0
codenet
Compile Error
406
v2_s091950186
s091950186
s091950186
p03105
p03105
u739371387
u739371387
1,588,766,664
2020-05-06T12:04:24
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { String[] lines = getStdin(); String[] input = lines[0].split(" "); int x = Integer.parseInt(input[0]); int a = ...
Main.java:13: error: cannot find symbol System.out.println(Math.min(c,b/a)); ^ symbol: variable c location: class Main Main.java:13: error: cannot find symbol System.out.println(Math.min(c,b/a)); ^ symbol: variable b l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739371387|p03105|0
u739371387|p03105|0
codenet
Compile Error
709
v2_s860766525
s860766525
s860766525
p03105
p03105
u740667034
u740667034
1,551,643,325
2019-03-03T20:02:05
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); int c=scan.nextInt(); int d=(int)(Math.floor(b/a)); int d=Math.max(d,c); System.out.println(d); } }
Main.java:9: error: variable d is already defined in method main(String[]) int d=Math.max(d,c); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740667034|p03105|0
u740667034|p03105|0
codenet
Compile Error
290
v2_s125727461
s125727461
s125727461
p03105
p03105
u740900993
u740900993
1,584,559,671
2020-03-18T19:27:51
Main.java
import java.util.*; public class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a= sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println(Math.min(a/b,c); } ...
Main.java:13: error: ')' or ',' expected System.out.println(Math.min(a/b,c); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740900993|p03105|0
u740900993|p03105|0
codenet
Compile Error
322
v2_s053588879
s053588879
s053588879
p03105
p03105
u752907799
u752907799
1,554,665,746
2019-04-07T19:35:46
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ public static void start(){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt(); System.out.println(Math.min(C, B/A)); ...
Main.java:4: error: illegal start of expression public static void start(){ ^ Main.java:12: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752907799|p03105|0
u752907799|p03105|0
codenet
Compile Error
330
v2_s231929219
s231929219
s231929219
p03105
p03105
u803314854
u803314854
1,551,653,866
2019-03-03T22:57:46
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String po=sc.next(); int length=po.length(); String p=po.replace("1",""); po=po.replace("0",""); System.out.println(Math.min(p.length()),po.length()))*2); } }
Main.java:9: error: ';' expected System.out.println(Math.min(p.length()),po.length()))*2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03105|0
u803314854|p03105|0
codenet
Compile Error
282
v2_s348537067
s348537067
s348537067
p03105
p03105
u816631826
u816631826
1,588,933,476
2020-05-08T10:24:36
Main.java
class Main { public static void main(String[] args) { int a,b,c,d;/*a=價格 b=預算 c=次數上限 d=購買次數*/ a=10; b=10; c=3; d=b/a; if(d>c){ System.out.println(c); }else{ System.out.println(d); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p03105|1
u816631826|p03105|1
codenet
Compile Error
237
v2_s180386654
s180386654
s180386654
p03105
p03105
u851209387
u851209387
1,551,645,317
2019-03-03T20:35:17
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sn = new Scanner(System.in); ArrayList<Integer> list = new ArrayList<Integer>(); while (sn.hasNextLine()) { String str = sn.nextLine(); list.add(Integer.parseInt(str)); } int A=list.get(0)/list.get(B); System.o...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u851209387|p03105|0
u851209387|p03105|0
codenet
Compile Error
337
v2_s334386911
s334386911
s334386911
p03105
p03105
u851209387
u851209387
1,551,646,920
2019-03-03T21:02:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sn = new Scanner(System.in); ArrayList<Integer> list = new ArrayList<Integer>(); String str = sn.nextLine(); String[] num = str.split(" ", 3); int A=num[0]/num[1]; if(A>num[2]){ A=num[2]; } ...
Main.java:14: error: bad operand types for binary operator '/' int A=num[0]/num[1]; ^ first type: String second type: String Main.java:15: error: bad operand types for binary operator '>' if(A>num[2]){ ^ first type: int second type: String Main.java:16: error: incompatible types: Strin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u851209387|p03105|0
u851209387|p03105|0
codenet
Compile Error
351
v2_s092454382
s092454382
s092454382
p03105
p03105
u900855318
u900855318
1,552,520,850
2019-03-13T23:47:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int cost = scanner.nextInt(); int total = scanner.nextInt(); int max = scanner.nextInt(); if (cost == 0) { return 0; } else { return Math.min(max, total / c...
Main.java:11: error: incompatible types: unexpected return value return 0; ^ Main.java:13: error: incompatible types: unexpected return value return Math.min(max, total / cost); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u900855318|p03105|0
u900855318|p03105|0
codenet
Compile Error
337
v2_s162562218
s162562218
s162562218
p03105
p03105
u992134985
u992134985
1,551,973,817
2019-03-07T15:50:17
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 ans = b/a; if(ans > c) { ans = c; } System.out.println(ans); sc.close(); }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992134985|p03105|0
u992134985|p03105|0
codenet
Compile Error
292
v2_s730793250
s730793250
s730793250
p03106
p03106
u043146101
u043146101
1,558,297,609
2019-05-19T20:26:49
Main.java
import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.StringTokenizer; public class Main { int op1,op2; public static void main(String[] args) throws IOException { abc120_b solution = new abc120_b(); InputReader in = new InputReader(); PrintWri...
Main.java:13: error: cannot find symbol abc120_b solution = new abc120_b(); ^ symbol: class abc120_b location: class Main Main.java:13: error: cannot find symbol abc120_b solution = new abc120_b(); ^ symbol: class abc120_b location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u043146101|p03106|0
u043146101|p03106|0
codenet
Compile Error
3,155
v2_s096359271
s096359271
s096359271
p03106
p03106
u043146101
u043146101
1,558,303,429
2019-05-19T22:03:49
Main.java
import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.StringTokenizer; public class Main { int op1,op2; public static void main(String[] args) throws IOException { abc120_b solution = new abc120_b(); InputReader in = new InputReader(); PrintWrit...
Main.java:12: error: cannot find symbol abc120_b solution = new abc120_b(); ^ symbol: class abc120_b location: class Main Main.java:12: error: cannot find symbol abc120_b solution = new abc120_b(); ^ symbol: class abc120_b location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u043146101|p03106|0
u043146101|p03106|0
codenet
Compile Error
3,154
v2_s109038974
s109038974
s109038974
p03106
p03106
u062736195
u062736195
1,586,177,402
2020-04-06T12:50:02
Main.java
public class Main{ public static void main(String args[]){ int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt(); int cnt = 0; int ans = -1; for(int i = 0; i <= 100; i++){ if ( a % i == 0 && b % i == 0) cnt++; if (cnt == k) ans = i; ...
Main.java:3: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:4: error: cannot find symbol int b = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int k = sc.next...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03106|0
u062736195|p03106|0
codenet
Compile Error
367
v2_s090041168
s090041168
s090041168
p03106
p03106
u062736195
u062736195
1,586,177,440
2020-04-06T12:50:40
Main.java
public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt(); int cnt = 0; int ans = -1; for(int i = 0; i <= 100; i++){ if ( a % i == 0 && b % i == 0) cnt++; ...
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
u062736195|p03106|0
u062736195|p03106|0
codenet
Compile Error
411
v2_s283382092
s283382092
s283382092
p03106
p03106
u090765289
u090765289
1,592,051,573
2020-06-13T12:32:53
Main.java
public class Main{ public static void main(String []args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int K = scan.nextInt(); int count = 0; for(int i=1; count<K; i++){ if(A%i ==0 && B%i==0){ count ...
Main.java:12: error: illegal start of expression count ==; ^ Main.java:12: error: not a statement count ==; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u090765289|p03106|0
u090765289|p03106|0
codenet
Compile Error
415
v2_s430178755
s430178755
s430178755
p03106
p03106
u090765289
u090765289
1,592,051,599
2020-06-13T12:33:19
Main.java
import java.util.Scanner; public class Main{ public static void main(String []args){ Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int K = scan.nextInt(); int count = 0; for(int i=1; count<K; i++){ if(A%i ==0 && B%i==...
Main.java:13: error: illegal start of expression count ==; ^ Main.java:13: error: not a statement count ==; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u090765289|p03106|0
u090765289|p03106|0
codenet
Compile Error
441
v2_s891181701
s891181701
s891181701
p03106
p03106
u151015483
u151015483
1,551,651,091
2019-03-03T22:11:31
Main.java
mport java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int n = sc.nextInt(); int[] l = new int[100]; int cnt= 0; if(A<B){ for(int i=1;i<=A...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u151015483|p03106|0
u151015483|p03106|0
codenet
Compile Error
840
v2_s595371766
s595371766
s595371766
p03106
p03106
u180899411
u180899411
1,557,037,964
2019-05-05T06:32:44
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int t = Math.min(A, B); int cnt = 0; while (cnt < K) { if (A % t == 0 && B % t == 0) cnt++; t--; } System.out.println(t + 1);...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u180899411|p03106|0
u180899411|p03106|0
codenet
Compile Error
340
v2_s883020169
s883020169
s883020169
p03106
p03106
u212397344
u212397344
1,584,731,291
2020-03-20T19:08:11
Main.java
import java.util.Scanner{ class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int i = 1; int cnt = 0; while(true){ if( i%A == 0 && i%B==0){ cnt++; ...
Main.java:1: error: ';' expected import java.util.Scanner{ ^ Main.java:22: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03106|0
u212397344|p03106|0
codenet
Compile Error
448
v2_s801320575
s801320575
s801320575
p03106
p03106
u212397344
u212397344
1,584,731,320
2020-03-20T19:08:40
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int i = 1; int cnt = 0; while(true){ if( i%A == 0 && i%B==0){ cnt++; ...
Main.java:22: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03106|0
u212397344|p03106|0
codenet
Compile Error
449
v2_s589560713
s589560713
s589560713
p03106
p03106
u212397344
u212397344
1,584,731,681
2020-03-20T19:14:41
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int cnt = 0; for(int i=1; i<=100; i++){ if( A%i == 0 && B%i == 0){ cnt++; ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03106|0
u212397344|p03106|0
codenet
Compile Error
430
v2_s575601828
s575601828
s575601828
p03106
p03106
u212397344
u212397344
1,585,392,071
2020-03-28T10:41:11
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int cnt = 0; for(int i = 1; i<=Math.mx(A,B); i++){ if(A%i == 0 && B%i==0){ cnt++; if(cnt == K){ ...
Main.java:9: error: cannot find symbol for(int i = 1; i<=Math.mx(A,B); i++){ ^ symbol: method mx(int,int) location: class Math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p03106|1
u212397344|p03106|1
codenet
Compile Error
398
v2_s865939828
s865939828
s865939828
p03106
p03106
u218740431
u218740431
1,589,136,622
2020-05-10T18:50:22
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt(); int count = 0; int ans = 0; While(count<k){ans++;if(a%ans==0 &&b%ans==0){count++;} ...
Main.java:10: error: ';' expected While(count<k){ans++;if(a%ans==0 &&b%ans==0){count++;} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p03106|0
u218740431|p03106|0
codenet
Compile Error
365
v2_s726260050
s726260050
s726260050
p03106
p03106
u251779460
u251779460
1,566,721,511
2019-08-25T08:25:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int k=sc.nextInt(); int q; int count=0; int answer=0; if(b>a){ q=a; a=b; b=q } for(int i=b;i>0;i--){ if(a%i==0 && b%i==0){ ...
Main.java:17: error: ';' expected b=q ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u251779460|p03106|0
u251779460|p03106|0
codenet
Compile Error
427
v2_s832678632
s832678632
s832678632
p03106
p03106
u266624656
u266624656
1,554,669,876
2019-04-07T20:44:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); int M = Math.min(A, B); List<Integer> list = new ArrayList<>(); for(int i=1; i<=M; i++){ if(A%i==0 && B%i=...
Main.java:4: error: cannot find symbol Scanner sc = Scanner(System.in); ^ symbol: method Scanner(InputStream) location: class Main Main.java:15: error: cannot find symbol System.out.print(list.get(list.sizze() - K)); ^ symbol: method sizze() locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266624656|p03106|0
u266624656|p03106|0
codenet
Compile Error
415
v2_s593529312
s593529312
s593529312
p03106
p03106
u276492340
u276492340
1,553,798,055
2019-03-28T18:34:15
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 K = sc.nextInt(); int S [] = {A,B}; Arrays.sort(S); int L [] = S; ...
Main.java:12: error: cannot find symbol Arrays.sort(S); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u276492340|p03106|0
u276492340|p03106|0
codenet
Compile Error
477
v2_s149995614
s149995614
s149995614
p03106
p03106
u314559067
u314559067
1,551,649,193
2019-03-03T21:39:53
Main.java
import java.util.*; public class Main { public static void main(String[] args) { //変数 int count=0; boolean sw=false; boolean sw2=false; boolean sw3=false; int answer=0; //String answer="Heisei"; //List<Integer> h=new ArrayList<Integer>(); //int t[]=new int[(int)Math.pow(10,5)]; int max=Integer.MIN...
Main.java:48: error: not a statement sw3==false; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314559067|p03106|0
u314559067|p03106|0
codenet
Compile Error
1,627
v2_s884138674
s884138674
s884138674
p03106
p03106
u346307762
u346307762
1,562,632,639
2019-07-09T00:37:19
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int num2 = sc.nextInt(); int order = sc.nextInt(); int div = 1; while(cnt < order){ if(num1 % div == 0 && num2 % d...
Main.java:11: error: cannot find symbol while(cnt < order){ ^ symbol: variable cnt location: class Main Main.java:13: error: cannot find symbol cnt++; ^ symbol: variable cnt location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u346307762|p03106|0
u346307762|p03106|0
codenet
Compile Error
417
v2_s246119942
s246119942
s246119942
p03106
p03106
u400703709
u400703709
1,551,646,578
2019-03-03T20:56:18
Main.java
public class Main { public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = stdIn.nextInt(); int k = stdIn.nextInt(); int count = 0; int min; int[] num = new int[100]; if(a>b) min = b; e...
Main.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u400703709|p03106|0
u400703709|p03106|0
codenet
Compile Error
532
v2_s755871635
s755871635
s755871635
p03106
p03106
u626353997
u626353997
1,557,735,620
2019-05-13T08:20:20
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int k = sc.nextInt(); int cnt = 0; int ans = 0; if(a > b){ for(int i = a;i > 0;i--){ if(a%i ...
Main.java:2: error: illegal character: '\uff5b' class Main? ^ Main.java:3: error: illegal character: '\uff5b' public static void main(String[] args)? ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(Str...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03106|0
u626353997|p03106|0
codenet
Compile Error
740
v2_s683505467
s683505467
s683505467
p03106
p03106
u648912196
u648912196
1,551,648,912
2019-03-03T21:35:12
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a,b,k,r,num; a = sc.nextInt(); b = sc.nextInt(); k = sc.nextInt(); if(a==1&&b==1) System.out.println(1); if(a<b){ num = a; a = b; b = num; } r =...
Main.java:23: error: incompatible types: int cannot be converted to boolean if(k=1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648912196|p03106|0
u648912196|p03106|0
codenet
Compile Error
651
v2_s020660728
s020660728
s020660728
p03106
p03106
u744758583
u744758583
1,557,955,922
2019-05-15T21:32:02
Main.java
import java.util.*; import java.io.*; class Program{ } class Main{ public static void main(String args[]) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); Scanner sc = new Scanner(System.in); int A = sc.nextInt(), B = sc.nextInt(), K = sc.nextInt(); int ...
Main.java:12: error: cannot find symbol if (big%small==0) fact.add(small); ^ symbol: variable fact location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u744758583|p03106|0
u744758583|p03106|0
codenet
Compile Error
752
v2_s873161023
s873161023
s873161023
p03106
p03106
u782733831
u782733831
1,555,604,929
2019-04-18T16:28:49
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { static int A,B,C; //static String ans; public static void main(String[] args) { Scanner sc = new Scanner(System.in); A=sc.nextInt(); B=sc.nextInt(); C=sc.nextInt(); int a[]=new int[101]; for(int i=1;i<=100;i++) { if(A%i==0&&B%i==...
Main.java:20: error: class, interface, enum, or record expected import java.util.Arrays; ^ Main.java:21: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u782733831|p03106|1
u782733831|p03106|1
codenet
Compile Error
776
v2_s979805364
s979805364
s979805364
p03106
p03106
u803314854
u803314854
1,551,652,916
2019-03-03T22:41:56
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); a=sc.nextInt();b=sc.nextInt();int k=sc.nextInt(); int ans=0; for(int i=1;i<1000;i++){ if(a%i==0&&b%i==0){ ans++; } if(ans==k){System.out.println(i); break; } ...
Main.java:5: error: cannot find symbol a=sc.nextInt();b=sc.nextInt();int k=sc.nextInt(); ^ symbol: variable a location: class Main Main.java:5: error: cannot find symbol a=sc.nextInt();b=sc.nextInt();int k=sc.nextInt(); ^ symbol: variable b location: class Main Main.java:8: error: can...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p03106|0
u803314854|p03106|0
codenet
Compile Error
327
v2_s520088044
s520088044
s520088044
p03106
p03106
u960958946
u960958946
1,586,633,367
2020-04-11T19:29:27
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); ArrayList<Integer> al = new ArrayList<>(); int min = A; if(A>B){ min = B; ...
Main.java:20: error: cannot find symbol System.out.println(al.get(al.length()-K+1)); ^ symbol: method length() location: variable al of type ArrayList<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960958946|p03106|0
u960958946|p03106|0
codenet
Compile Error
497
v2_s156425022
s156425022
s156425022
p03106
p03106
u960958946
u960958946
1,586,633,552
2020-04-11T19:32:32
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int K = sc.nextInt(); ArrayList<Integer> al = new ArrayList<>(); al.add(1); int min = A; if(A>B){ min =...
Main.java:20: error: cannot find symbol System.out.println(al.get(al.length()-K+1)); ^ symbol: method length() location: variable al of type ArrayList<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u960958946|p03106|0
u960958946|p03106|0
codenet
Compile Error
509
v2_s336416190
s336416190
s336416190
p03107
p03107
u006971340
u006971340
1,551,645,142
2019-03-03T20:32:22
Main.java
import java.util.Scanner; import java.util.Stack; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); int num = 0; Stack<Character> stack = new Stack<Character>(); for(int i = S.length() - 1; i >=0; i--) { if(stack.isEmpty()) { ...
Main.java:26: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006971340|p03107|0
u006971340|p03107|0
codenet
Compile Error
536
v2_s357080798
s357080798
s357080798
p03107
p03107
u030418119
u030418119
1,556,297,185
2019-04-26T16:46:25
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); String str = s.nextLine(); int k; for(int i=0; i<str.length(); i++){ if(str.charAt(i)=='0'){ k++; } } System.out.print(Math.min(k, (int)str.length()-k)); ...
Main.java:12: error: variable k might not have been initialized k++; ^ Main.java:15: error: variable k might not have been initialized System.out.print(Math.min(k, (int)str.length()-k)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030418119|p03107|0
u030418119|p03107|0
codenet
Compile Error
334
v2_s943616868
s943616868
s943616868
p03107
p03107
u057671932
u057671932
1,595,582,265
2020-07-24T09:17:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); String S = keyboard.next(); int z = 0; int o = 0; for(int s=0; s<S.length(); s++){ if(S.charAt(s) == 0){ z++; }else{ o++; } System.out.println(2*Math.min(z,...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u057671932|p03107|0
u057671932|p03107|0
codenet
Compile Error
354