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_s076674580
s076674580
s076674580
p03434
p03434
u891161439
u891161439
1,521,494,716
2018-03-19T21:25:16
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i = 0;i < N;i++){ a[i] = sc.nextInt(); } Arrays.sort(a); int sumA = 0; int sumB = 0; for(int i = 0;i < N;i = i+2){int sumA += i;} for(int i = 1;i < N;i...
Main.java:13: error: ';' expected for(int i = 0;i < N;i = i+2){int sumA += i;} ^ Main.java:13: error: not a statement for(int i = 0;i < N;i = i+2){int sumA += i;} ^ Main.java:14: error: ';' expected for(int i = 1;i < N;i = i+2){int sumB += i;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03434|0
u891161439|p03434|0
codenet
Compile Error
381
v2_s794126381
s794126381
s794126381
p03434
p03434
u933994576
u933994576
1,530,887,708
2018-07-06T14:35:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { int n; int[] numbers; try (Scanner scanner = new Scanner(System.in)) { n = scanner.nextInt(); numbers = new int[n]; for (int i = 0; i < n; i++) { numbers[i] = scanner.nextInt(); } } Arrays.sort(numbers);...
Main.java:16: error: cannot find symbol Arrays.sort(numbers); ^ symbol: variable Arrays location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u933994576|p03434|1
u933994576|p03434|1
codenet
Compile Error
460
v2_s550879320
s550879320
s550879320
p03434
p03434
u958757097
u958757097
1,570,127,986
2019-10-03T18:39:46
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[] nums = new int[n + 1]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums); int...
Main.java:24: error: incompatible types: unexpected return value return aliceSum - bobSum; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958757097|p03434|0
u958757097|p03434|0
codenet
Compile Error
710
v2_s479972642
s479972642
s479972642
p03434
p03434
u958757097
u958757097
1,570,128,182
2019-10-03T18:43: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[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums, Collections.reve...
Main.java:11: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(nums, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958757097|p03434|0
u958757097|p03434|0
codenet
Compile Error
622
v2_s477027671
s477027671
s477027671
p03434
p03434
u958757097
u958757097
1,570,128,334
2019-10-03T18:45:34
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[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums); Collcti...
Main.java:12: error: cannot find symbol Collctions.reverse(nums); ^ symbol: variable Collctions location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958757097|p03434|0
u958757097|p03434|0
codenet
Compile Error
628
v2_s592900925
s592900925
s592900925
p03434
p03434
u958757097
u958757097
1,570,128,358
2019-10-03T18:45:58
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[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums); Collect...
Main.java:12: error: incompatible types: int[] cannot be converted to List<?> Collections.reverse(nums); ^ 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
u958757097|p03434|0
u958757097|p03434|0
codenet
Compile Error
629
v2_s710531666
s710531666
s710531666
p03434
p03434
u958757097
u958757097
1,570,128,440
2019-10-03T18:47:20
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[] nums = new int[n]; for (int i = 0; i < n; i++) { nums[i] = sc.nextInt(); } Arrays.sort(nums, Collections.reve...
Main.java:11: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(nums, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u958757097|p03434|0
u958757097|p03434|0
codenet
Compile Error
622
v2_s000774384
s000774384
s000774384
p03434
p03434
u992297405
u992297405
1,567,637,805
2019-09-04T22:56:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> cards = new ArrayList<>(); int alliceSum = 0; int bobSum = 0; for (int i = 0; i <= n; i++) { cards.add(s...
Main.java:16: error: cannot find symbol while (cards.length > 0) { ^ symbol: variable length location: variable cards of type List<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992297405|p03434|0
u992297405|p03434|0
codenet
Compile Error
738
v2_s713366810
s713366810
s713366810
p03435
p03435
u371791265
u371791265
1,594,232,363
2020-07-08T18:19:23
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); //取得 int[][] c = new int[3][3]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ c[i][j]=sc.nextInt(); } } String ans; for(int i=0;i<2;i++){ ...
Main.java:21: error: variable ans might not have been initialized System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03435|0
u371791265|p03435|0
codenet
Compile Error
556
v2_s697652478
s697652478
s697652478
p03435
p03435
u458154895
u458154895
1,519,009,606
2018-02-19T03:06:46
Main.java
import java.io.IOException; import java.io.PrintWriter; import java.util.Arrays; import template.io.InputUtil; public class Main { public static void main(String[] args) throws IOException { Main m = new Main(); //* m.input(); m.solve(); m.output(); /*/ m.debug(); //*/ } public void debug(...
Main.java:5: error: package template.io does not exist import template.io.InputUtil; ^ Main.java:30: error: cannot find symbol InputUtil in = new InputUtil(); ^ symbol: class InputUtil location: class Main Main.java:30: error: cannot find symbol InputUtil in = new InputUtil(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458154895|p03435|0
u458154895|p03435|0
codenet
Compile Error
3,089
v2_s727181094
s727181094
s727181094
p03435
p03435
u521029897
u521029897
1,524,760,909
2018-04-26T16:41:49
Main.java
public class Main { final int _intMax = Integer.MAX_VALUE; // =2147483647>10^9 final int _intMin = Integer.MIN_VALUE; final long _longMax = Long.MAX_VALUE; // =9223372036854775807L>10^18 final long _longMin = Long.MIN_VALUE; static boolean bElapsed = false; void solve() { int[][] map = new int[3][3]; for (in...
Main.java:113: error: cannot find symbol static BufferedReader _in; ^ symbol: class BufferedReader location: class Main Main.java:114: error: cannot find symbol static PrintWriter _out; ^ symbol: class PrintWriter location: class Main Main.java:57: error: cannot find symbol } catch (IOEx...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521029897|p03435|1
u521029897|p03435|1
codenet
Compile Error
2,287
v2_s250263219
s250263219
s250263219
p03435
p03435
u784448849
u784448849
1,544,295,640
2018-12-08T19:00:40
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { solve(sc); } } public static void solve(Scanner sc) { int[][] matrix = new int[3][3]; for (int i = 0; i < 3; i++) { fo...
Main.java:20: error: ']' expected int a[0] = 0; ^ Main.java:21: error: ']' expected int b[0] = matrix[0][0] - a1; ^ Main.java:21: error: not a statement int b[0] = matrix[0][0] - a1; ^ Main.java:22: error: ']' expected int b[1] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03435|0
u784448849|p03435|0
codenet
Compile Error
997
v2_s773647559
s773647559
s773647559
p03436
p03436
u288042356
u288042356
1,586,388,121
2020-04-08T23:22:01
Main.java
import java.util.*; import java.io.*; import java.util.function.*; // import lib.graph.*; // import lib.io.*; // import lib.math.*; import lib.graph.UnionFindTree; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(Sys...
Main.java:8: error: package lib.graph does not exist import lib.graph.UnionFindTree; ^ Main.java:20: error: cannot find symbol UnionFindTree t = new UnionFindTree(H * W); ^ symbol: class UnionFindTree location: class Main Main.java:20: error: cannot find symbol UnionFindTre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p03436|0
u288042356|p03436|0
codenet
Compile Error
14,098
v2_s287397417
s287397417
s287397417
p03436
p03436
u428922728
u428922728
1,594,246,375
2020-07-08T22:12:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); char s[][] = new char[H][W]; for(int i = 0; i < H; i++) { s[i] = sc.next()....
Main.java:31: error: illegal start of expression if( grid.i - 1 => 0 && s[grid.i - 1][grid.j] == '.' && distance[grid.i - 1][grid.j] > grid.val + 1 ) { ^ Main.java:37: error: illegal start of expression if( grid.j - 1 => 0 && s[grid.i][grid.j - 1] == '.' && distance[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u428922728|p03436|0
u428922728|p03436|0
codenet
Compile Error
2,637
v2_s660389549
s660389549
s660389549
p03436
p03436
u489316980
u489316980
1,551,590,667
2019-03-03T05:24:27
Main.java
import java.util.*; public class Main{ public static void main(String[]args){ Scanner sc = new Scanner(System.in); String[] s = sc.nextLine().split(" "); int H = Integer.parseInt(s[0]); int W = Integer.parseInt(s[1]); char[][] map = new char[H][W]; int[][] route = new int[H][W]; ...
Main.java:40: error: cannot find symbol int nh = qx.poll(); ^ symbol: variable qx location: class Main Main.java:41: error: cannot find symbol int nw = qy.poll(); ^ symbol: variable qy location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489316980|p03436|0
u489316980|p03436|0
codenet
Compile Error
1,412
v2_s963125798
s963125798
s963125798
p03436
p03436
u504228740
u504228740
1,549,138,930
2019-02-02T20:22:10
Main.java
import java.util.Scanner; import java.util.ArrayDeque; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); char[][] a = new char[h][w]; long black=0; ArrayDeque<Integer> queueh = new ArrayDeque<Integer>(); ArrayDeque<...
Main.java:22: error: incompatible types: int[] cannot be converted to Integer queueh.add(start); ^ Main.java:26: error: incompatible types: Integer cannot be converted to int[] int[] now = queueh.poll(); ^ Main.java:32: error: incompatible types: int[] cannot be converted to ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u504228740|p03436|0
u504228740|p03436|0
codenet
Compile Error
1,301
v2_s686738494
s686738494
s686738494
p03436
p03436
u555577504
u555577504
1,519,159,590
2018-02-20T20:46:30
Main.java
import java.util.ArrayDeque; import java.util.Arrays; import java.util.Deque; import java.util.Scanner; class Main{ static int[][] path=new int[50][50]; public static void main(String[] args){ Scanner scan = new Scanner(System.in); int H=scan.nextInt(); int W=scan.nextInt(); ...
Main.java:20: error: cannot find symbol if(s.charAt(j)=='.')++cnt; ^ symbol: variable j location: class Main Main.java:37: error: package Systme does not exist Systme.out.println(cnt - path[H-1][W-1]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555577504|p03436|0
u555577504|p03436|0
codenet
Compile Error
1,165
v2_s423735173
s423735173
s423735173
p03436
p03436
u648824183
u648824183
1,519,544,373
2018-02-25T07:39:33
Main.java
import java.util.LinkedList; import java.util.Scanner; import javafx.util.Pair; public class Main { public static int boardBfs(char[][] a) { LinkedList<Pair> q = new LinkedList<Pair>(); boolean[][] visited = new boolean[a.length][a[0].length]; Pair[][] prev = new Pair [a.length][a[0].length]; q.add(ne...
Main.java:4: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:9: error: cannot find symbol LinkedList<Pair> q = new LinkedList<Pair>(); ^ symbol: class Pair location: class Main Main.java:9: error: cannot find symbol LinkedList<Pair> q = new Link...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648824183|p03436|0
u648824183|p03436|0
codenet
Compile Error
1,776
v2_s098259830
s098259830
s098259830
p03436
p03436
u874996917
u874996917
1,524,621,174
2018-04-25T01:52:54
Main.java
import java.io.File; import java.io.FileNotFoundException; import java.util.Arrays; import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class Main { int Rows,Columns; Point start,goal; String[][] board; Boolean[][] checked; int[][] distancefromstart; static final String kab...
Main.java:56: error: cannot find symbol scanner=new Scanner(System.in); ^ symbol: variable scanner location: class Main Main.java:58: error: cannot find symbol Rows=scanner.nextInt(); ^ symbol: variable scanner location: class Main Main.java:59: error: cannot find symbol Columns=scanner.nextI...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874996917|p03436|0
u874996917|p03436|0
codenet
Compile Error
2,933
v2_s140030515
s140030515
s140030515
p03436
p03436
u903215911
u903215911
1,521,084,688
2018-03-15T03:31:28
Main.java
#include <iostream> #include <vector> #include <string.h> #include <stack> #include <queue> #include <algorithm> #include <climits> #include <cmath> #include <map> #include <set> #include <assert.h> #define REP(i,n) for(ll i=0;i<(n);i++) #define MOD 1000000007 //#define int long long #ifdef int const long long INF = LL...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <vector> ^ Main.java:3: error: illegal character: '#' #include <string.h> ^ Main.java:4: error: illegal character: '#' #include <stack> ^ Main.java:5: error: illegal character: '#' #include <queue> ^ Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903215911|p03436|0
u903215911|p03436|0
codenet
Compile Error
1,513
v2_s267101427
s267101427
s267101427
p03436
p03436
u941274418
u941274418
1,600,400,278
2020-09-18T03:37:58
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { //int t = sc.nextInt(); //while(t-- > 0) solve(); out.close(); } static int MAX_SIZE = 100; private static void solve() { int n = sc.nextInt(); int m = sc.nextInt()...
Main.java:24: error: variable rows is already defined in method solve() int[] rows = new int[]{-1, 1, 0, 0}; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p03436|1
u941274418|p03436|1
codenet
Compile Error
9,861
v2_s323170550
s323170550
s323170550
p03436
p03436
u981808900
u981808900
1,557,164,059
2019-05-06T17:34:19
Main.java
import java.util.stream.*; import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int h = scanner.nextInt(); int w = scanner.nextInt(); char[][] s = IntStream.range(0, h).mapToObj(i -> scanner.next().toCharArray())....
Main.java:21: error: cannot find symbol Util.println(i, y, x); ^ symbol: variable Util location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03436|0
u981808900|p03436|0
codenet
Compile Error
1,733
v2_s344612558
s344612558
s344612558
p03436
p03436
u981808900
u981808900
1,557,164,240
2019-05-06T17:37:20
Main.java
import java.util.stream.*; import java.util.*; public class Main { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { int h = scanner.nextInt(); int w = scanner.nextInt(); char[][] s = IntStream.range(0, h).mapToObj(i -> scanner.next().toCharArray())....
Main.java:21: error: cannot find symbol Util.println(i, y, x); ^ symbol: variable Util location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03436|0
u981808900|p03436|0
codenet
Compile Error
1,928
v2_s534213903
s534213903
s534213903
p03437
p03437
u228127260
u228127260
1,517,717,507
2018-02-04T04:11:47
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); long ans = x; if (x % y == 0) { ans = -1; } System.out.println(ans); } }
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
u228127260|p03437|0
u228127260|p03437|0
codenet
Compile Error
299
v2_s127041952
s127041952
s127041952
p03437
p03437
u257201274
u257201274
1,517,718,773
2018-02-04T04:32:53
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int y = sc.nextInt(); List<Integer> xPrimes = primeFactors(x); List<Integer> y...
Main.java:13: error: cannot find symbol System.out.println(x * p); ^ symbol: variable p location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u257201274|p03437|0
u257201274|p03437|0
codenet
Compile Error
1,203
v2_s139312005
s139312005
s139312005
p03437
p03437
u356084326
u356084326
1,517,720,631
2018-02-04T05:03:51
Main.java
public class Main { public static void main(String arg[]) { int a,b; Scanner scan=new Scanner(System.in); a=scan.nextInt(); b=scan.nextInt(); if(a==b) System.out.println("-1"); int c=a>b?a:b; c=c+1; while(2>1) { if(c%a=...
Main.java:7: error: cannot find symbol Scanner scan=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:7: error: cannot find symbol Scanner scan=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u356084326|p03437|0
u356084326|p03437|0
codenet
Compile Error
450
v2_s777746007
s777746007
s777746007
p03437
p03437
u356084326
u356084326
1,517,720,733
2018-02-04T05:05:33
Main.java
import java.util,Scanner; public class Main { public static void main(String arg[]) { int a,b; Scanner scan=new Scanner(System.in); a=scan.nextInt(); b=scan.nextInt(); if(a==b) System.out.println("-1"); int c=a>b?a:b; c=c+1; while(2>1) ...
Main.java:1: error: ';' expected import java.util,Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u356084326|p03437|0
u356084326|p03437|0
codenet
Compile Error
476
v2_s626436318
s626436318
s626436318
p03437
p03437
u356084326
u356084326
1,517,721,451
2018-02-04T05:17:31
Main.java
import java.util.Scanner; public class Main { public static void main(String arg[]) { int a,b; Scanner scan=new Scanner(System.in); a=scan.nextInt(); b=scan.nextInt(); if(a%b==0) return -1; if(a==b) System.out.println("-1"); int c=a; ...
Main.java:12: error: incompatible types: unexpected return value return -1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u356084326|p03437|0
u356084326|p03437|0
codenet
Compile Error
499
v2_s622130611
s622130611
s622130611
p03437
p03437
u547167033
u547167033
1,569,968,328
2019-10-01T22:18:48
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long x = sc.nextLong(); long y = sc.nextLong(); for(long i = x;i <= (long)Math.pow(10,18),i+=x){ if(i%y!=0){ System.out.println(i); return; } }...
Main.java:7: error: ';' expected for(long i = x;i <= (long)Math.pow(10,18),i+=x){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03437|0
u547167033|p03437|0
codenet
Compile Error
358
v2_s991136516
s991136516
s991136516
p03437
p03437
u555577504
u555577504
1,518,282,156
2018-02-10T17:02:36
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(Systme.in); int X = scan.nextInt(); int Y = scan.nextInt(); if(X%Y==0)System.out.println(-1); else System.out.println(X); } }
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(Systme.in); ^ symbol: variable Systme location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555577504|p03437|0
u555577504|p03437|0
codenet
Compile Error
280
v2_s538209056
s538209056
s538209056
p03437
p03437
u863370423
u863370423
1,533,822,799
2018-08-09T13:53:19
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner in=new Scanner(System.in); long x=in.nextLong(); long y=in.nextLong(); long p=gcd(x,y); long lcm= x*y/p; int ok=1; long ans=-1; for(long i=x;i<lcm;i+=x) { if(i%y==0) { ok=0; break; } else {ans=i;bre...
Main.java:20: error: ';' expected else {ans=i;break} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03437|0
u863370423|p03437|0
codenet
Compile Error
489
v2_s828205660
s828205660
s828205660
p03438
p03438
u010089782
u010089782
1,522,707,949
2018-04-02T22:25:49
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { private static Scanner scan; private static void start() { scan = new Scanner(java.lang.System.in); scan = Input.getScanner(); System.init(); } private static void finish() { ...
Main.java:12: error: cannot find symbol scan = Input.getScanner(); ^ symbol: variable Input location: class Main Main.java:13: error: cannot find symbol System.init(); ^ symbol: method init() location: class System Main.java:17: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u010089782|p03438|0
u010089782|p03438|0
codenet
Compile Error
1,097
v2_s531510432
s531510432
s531510432
p03438
p03438
u222822036
u222822036
1,599,318,230
2020-09-05T15:03:50
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ static void solve(){//Here is the main function int N = nextInt(); ArrayList<Integer> alist = nextIntArray(); ArrayList<Integer> blist = nextIntArray(); int aSum = 0; int bSum = 0; for(int i = 0; i < N; i++){ aSum += alist.get(i); b...
Main.java:33: error: illegal start of expression static class InputIterator{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03438|0
u222822036|p03438|0
codenet
Compile Error
3,305
v2_s794959847
s794959847
s794959847
p03438
p03438
u222822036
u222822036
1,599,318,261
2020-09-05T15:04:21
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ static void solve(){//Here is the main function int N = nextInt(); ArrayList<Integer> alist = nextIntArray(); ArrayList<Integer> blist = nextIntArray(); int aSum = 0; int bSum = 0; for(int i = 0; i < N; i++){ aSum += alist.get(i); b...
Main.java:33: error: illegal start of expression static class InputIterator{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03438|0
u222822036|p03438|0
codenet
Compile Error
3,297
v2_s551187713
s551187713
s551187713
p03438
p03438
u228127260
u228127260
1,517,953,881
2018-02-06T21:51:21
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } long sumA = 0; // a[i] - b[i] が正の時、それを集計(必要な操作の回数) ...
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
u228127260|p03438|1
u228127260|p03438|1
codenet
Compile Error
838
v2_s066403527
s066403527
s066403527
p03438
p03438
u234826697
u234826697
1,544,690,635
2018-12-13T08:43:55
Main.java
import java.util.Map.Entry; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException {Scanner sc = new Scanner(file); FastScanner sc = new FastScanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i = 0; i < N; i++) a[i] = sc.ne...
Main.java:7: error: cannot find symbol public static void main(String[] args) throws IOException {Scanner sc = new Scanner(file); ^ symbol: variable file location: class Main Main.java:8: error: variable sc is already defined in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u234826697|p03438|0
u234826697|p03438|0
codenet
Compile Error
2,828
v2_s610206044
s610206044
s610206044
p03438
p03438
u298980954
u298980954
1,517,729,713
2018-02-04T07:35:13
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[] hai1=new int[n]; int[] hai2=new int[n]; int[] hai3=new int[n]; boolean han=true; for(int i:hai1) hai1[i]=sc.nextInt(); for(int i:hai2) ...
Main.java:17: error: not a statement else hai3[i]==0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u298980954|p03438|0
u298980954|p03438|0
codenet
Compile Error
650
v2_s542135391
s542135391
s542135391
p03438
p03438
u341347211
u341347211
1,517,770,548
2018-02-04T18:55:48
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; int[] sub = new int[n]; int sum_a = 0, sum_b = 0; int num; int ans = 0; ...
Main.java:25: error: cannot find symbol lim = sum_b - sum_a; ^ symbol: variable lim location: class Main Main.java:27: error: cannot find symbol if (lim < 0) { ^ symbol: variable lim location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u341347211|p03438|1
u341347211|p03438|1
codenet
Compile Error
983
v2_s144202299
s144202299
s144202299
p03438
p03438
u341347211
u341347211
1,517,771,127
2018-02-04T19:05:27
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int[] b = new int[n]; int sum_a = 0, sum_b = 0; for (int i = 0; i < n; i++) { a[i] = Integer.parse...
Main.java:31: error: cannot find symbol ans += (diff + 1) / 2; ^ symbol: variable ans location: class Main Main.java:35: error: cannot find symbol if (ans > opt) { ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u341347211|p03438|1
u341347211|p03438|1
codenet
Compile Error
933
v2_s270761014
s270761014
s270761014
p03438
p03438
u406060664
u406060664
1,517,732,423
2018-02-04T08:20:23
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); int value = 0, count = 0; int[] A = new int[num]; int[] B = new int[num]; for(int i = 0; i < num; i++){ A[i] = scan.ne...
Main.java:39: error: ')' expected if((value - count) >= 0 && (value - count) <= 1; ){ ^ Main.java:39: error: illegal start of expression if((value - count) >= 0 && (value - count) <= 1; ){ ^ Main.java...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u406060664|p03438|0
u406060664|p03438|0
codenet
Compile Error
1,168
v2_s185300425
s185300425
s185300425
p03438
p03438
u406060664
u406060664
1,517,735,343
2018-02-04T09:09:03
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num = scan.nextInt(); int value = 0, count = 0, t; long[] A = new long[num]; long[] B = new long[num]; for(int i = 0; i < num; i++){ A[i] = ...
Main.java:24: error: ';' expected value = (B[i] + 1 - A[i]) / 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u406060664|p03438|0
u406060664|p03438|0
codenet
Compile Error
1,176
v2_s093158144
s093158144
s093158144
p03438
p03438
u611513861
u611513861
1,518,810,350
2018-02-16T19:45:50
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); long [] A = new long[N]; for (int i=0; i<N; i++) A[i] = scanner.nextLong(); ...
Main.java:29: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u611513861|p03438|1
u611513861|p03438|1
codenet
Compile Error
887
v2_s732276516
s732276516
s732276516
p03438
p03438
u611513861
u611513861
1,518,810,420
2018-02-16T19:47:00
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); long [] A = new long[N]; for (int i=0; i<N; i++) A[i] = scanner.nextLong(); ...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u611513861|p03438|1
u611513861|p03438|1
codenet
Compile Error
882
v2_s690707463
s690707463
s690707463
p03438
p03438
u814169215
u814169215
1,518,137,646
2018-02-09T00:54:06
Main.java
import java.util.*; public class Main { public static void main(String...args) { final int N = sc.nextInt(); final int[] a = new int[N]; for(int i = 0; i < N; i++) a[i] = sc.nextInt(); final int[] b = new int[N]; for(int i = 0; i < N; i++) b[i] = sc.nextInt(); Arrays.sort(a); A...
Main.java:4: error: cannot find symbol final int N = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol a[i] = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:10: error: cannot find symbol b[i] = s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814169215|p03438|0
u814169215|p03438|0
codenet
Compile Error
478
v2_s244049475
s244049475
s244049475
p03439
p03439
u222822036
u222822036
1,579,236,611
2020-01-17T04:50:11
Main.java
import java.util.*; public class Main { static void myout(Object t){System.out.println(t);}//standard output static void myerr(Object t){System.err.println(t);}//standard error static String getStr(){return sc.next();} static int getInt(){return Integer.parseInt(getStr());} ...
Main.java:17: error: not a statement int++; ^ Main.java:17: error: ';' expected int++; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03439|0
u222822036|p03439|0
codenet
Compile Error
997
v2_s774221019
s774221019
s774221019
p03439
p03439
u222822036
u222822036
1,579,236,637
2020-01-17T04:50:37
Main.java
import java.util.*; public class Main { static void myout(Object t){System.out.println(t);}//standard output static void myerr(Object t){System.err.println(t);}//standard error static String getStr(){return sc.next();} static int getInt(){return Integer.parseInt(getStr());} ...
Main.java:6: error: cannot find symbol static String getStr(){return sc.next();} ^ symbol: variable sc location: class Main Main.java:9: error: cannot find symbol static boolean isNext(){return sc.hasNext();} ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03439|0
u222822036|p03439|0
codenet
Compile Error
999
v2_s036127193
s036127193
s036127193
p03439
p03439
u222822036
u222822036
1,596,515,801
2020-08-04T04:36:41
Main.java
import java.util.*;import java.io.*;import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(0); sc = new Scanner(System.in); String last = sc.next(); i...
Main.java:26: error: cannot find symbol if(last.equlas("Male")){ ^ symbol: method equlas(String) location: variable last of type String Main.java:32: error: cannot find symbol if(last.equlas("Female")){ ^ symbol: method equl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03439|1
u222822036|p03439|1
codenet
Compile Error
1,312
v2_s583542442
s583542442
s583542442
p03439
p03439
u222822036
u222822036
1,596,516,546
2020-08-04T04:49:06
Main.java
import java.util.*;import java.io.*;import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(0); sc = new Scanner(System.in); String mae = sc.next(); if...
Main.java:9: error: cannot find symbol if(last.equals("Vacant")){ ^ symbol: variable last location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03439|1
u222822036|p03439|1
codenet
Compile Error
1,231
v2_s446910031
s446910031
s446910031
p03439
p03439
u482226328
u482226328
1,578,872,869
2020-01-12T23:47:49
Main.java
static void solve(InputStream is, PrintStream os) { Scanner sc = new Scanner(is); /* read */ int n = sc.nextInt(); boolean[] gender = new boolean[n]; os.println(0); gender[0] = read(0, sc, os); gender[n - 1] = read(n - 1, sc, os); int l = 0; int r = n - 1; while (1 < r - l) ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. static void solve(InputStream is, PrintStream os) { ^ (use --enable-preview to enable unnamed classes) Main.java:216: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u482226328|p03439|0
u482226328|p03439|0
codenet
Compile Error
4,751
v2_s461467345
s461467345
s461467345
p03439
p03439
u487252913
u487252913
1,586,820,484
2020-04-13T23:28:04
AssignD.java
public class AssignD { private static final int MOD = 1_000_000_007; private static final String YES = "Yes"; private static final String NO = "No"; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); solve(sc, N); } priv...
AssignD.java:13: error: cannot find symbol private static void solve(Scanner sc, int N) { ^ symbol: class Scanner location: class AssignD AssignD.java:7: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class A...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487252913|p03439|0
u487252913|p03439|0
codenet
Compile Error
1,495
v2_s979941577
s979941577
s979941577
p03439
p03439
u795978684
u795978684
1,589,721,323
2020-05-17T13:15:23
Main.java
class Main { static int mod = (int) (Math.pow(10,9)+7); // static int mod = (int) 998244353; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(0); String pre="-1"; String tmp = sc.next()...
Main.java:27: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795978684|p03439|0
u795978684|p03439|0
codenet
Compile Error
711
v2_s296463089
s296463089
s296463089
p03439
p03439
u795978684
u795978684
1,590,238,860
2020-05-23T13:01:00
Main.java
import java.util.*; import java.util.Map.Entry; class Main { static int mod = (int) (Math.pow(10,9)+7); // static int mod = (int) 998244353; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(N-1)...
Main.java:36: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795978684|p03439|1
u795978684|p03439|1
codenet
Compile Error
926
v2_s257054430
s257054430
s257054430
p03439
p03439
u941274418
u941274418
1,586,503,175
2020-04-10T07:19:35
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(true) { int i = sc.nextInt(); if(i == n - 1) { System.out.println("Vacant"); return; } if(i % 2 == 0...
Main.java:18: error: unreachable statement System.out.flush(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p03439|0
u941274418|p03439|0
codenet
Compile Error
453
v2_s211007841
s211007841
s211007841
p03439
p03439
u986437843
u986437843
1,536,818,479
2018-09-13T06:01:19
Main.java
import static java.lang.Math.*; import static java.lang.Math.min; import java.math.BigDecimal; import java.util.*; import java.util.stream.*; import static java.util.Arrays.*; /** * @author baito */ @SuppressWarnings("unchecked") public class Main { static boolean DEBUG = true; static StringBuilder sb =...
Main.java:174: error: cannot find symbol public static long[][] matMul(long[][] l, long[][] r) throws IOException { ^ symbol: class IOException location: class Main Main.java:192: error: cannot find symbol public static long[][] matPow(long[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u986437843|p03439|0
u986437843|p03439|0
codenet
Compile Error
44,211
v2_s342048725
s342048725
s342048725
p03440
p03440
u059234158
u059234158
1,517,718,495
2018-02-04T04:28:15
Main.java
import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; import java.util.PrimitiveIterator; import java.util.PriorityQueue; import java.util.Scanner; import java.util.stream.IntStream; import java.util.stream.Stream; class Main{ static class UF{ public int[] uni; public UF(int size){ uni=...
Main.java:59: error: ';' expected .add(null) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p03440|0
u059234158|p03440|0
codenet
Compile Error
2,438
v2_s768864481
s768864481
s768864481
p03440
p03440
u491383360
u491383360
1,517,719,294
2018-02-04T04:41:34
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; import java.util.Collections; import java.util.TreeSet; import java.util.ArrayList; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { ...
Main.java:34: error: array required, but ArrayList<Integer> found for (int y : e[x]) { ^ Main.java:48: error: incompatible types: ArrayList[] cannot be converted to ArrayList<Integer> e = new ArrayList[n]; ^ Main.java:50: error: array required, but Array...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u491383360|p03440|0
u491383360|p03440|0
codenet
Compile Error
3,474
v2_s799204422
s799204422
s799204422
p03440
p03440
u818335176
u818335176
1,518,100,559
2018-02-08T14:35:59
D_Forest.java
import java.io.*; import java.util.*; public class D_Forest { class DisjointSets { int[] parent; int[] rank; public DisjointSets(int size) { parent = new int[size]; for (int i = 0; i < size; i++) parent[i] = i; rank = new int[size]; } ...
D_Forest.java:124: error: cannot find symbol Main problem = new Main(); ^ symbol: class Main location: class D_Forest D_Forest.java:124: error: cannot find symbol Main problem = new Main(); ^ symbol: class Main location: class D_Forest Note: D_Forest.java u...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818335176|p03440|1
u818335176|p03440|1
codenet
Compile Error
4,931
v2_s026732112
s026732112
s026732112
p03440
p03440
u982630224
u982630224
1,581,989,684
2020-02-18T01:34:44
Main.java
import java.util.*; public class Main { static class UnionFind { List<Integer> Parent; UnionFind(int N) { Parent = new ArrayList<Integer>(); Integer[] values = new Integer[N]; Arrays.fill(values, -1); Parent.addAll(Arrays.asList(values)); } ...
Main.java:108: error: illegal start of expression if (N-1-M)*2>N { ^ Main.java:108: error: not a statement if (N-1-M)*2>N { ^ Main.java:108: error: ';' expected if (N-1-M)*2>N { ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p03440|0
u982630224|p03440|0
codenet
Compile Error
3,522
v2_s686546615
s686546615
s686546615
p03447
p03447
u018679195
u018679195
1,587,075,155
2020-04-16T22:12:35
Main.java
import java.util.*; public class Main {// Main public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int x = scanner.nextInt(); int a = scanner.nextInt(); int b = scanner.nextInt(); int y = (x-a); int n = int...
Main.java:9: error: '.class' expected int n = int(y/b); ^ Main.java:9: error: not a statement int n = int(y/b); ^ Main.java:9: error: ';' expected int n = int(y/b); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p03447|0
u018679195|p03447|0
codenet
Compile Error
394
v2_s119499629
s119499629
s119499629
p03447
p03447
u019098614
u019098614
1,517,198,476
2018-01-29T04:01:16
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println((X-A)%B); } }
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
u019098614|p03447|0
u019098614|p03447|0
codenet
Compile Error
209
v2_s614774176
s614774176
s614774176
p03447
p03447
u073606136
u073606136
1,588,440,438
2020-05-02T17:27:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next(); int b = sc.next(); int c = sc.next(); System.out.println((a - b) % c); } }
Main.java:6: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int b = sc.next(); ^ Main.java:8: error: incompatible types: String canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p03447|0
u073606136|p03447|0
codenet
Compile Error
287
v2_s125345483
s125345483
s125345483
p03447
p03447
u073606136
u073606136
1,588,440,464
2020-05-02T17:27:44
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next(); int b = sc.next(); int c = sc.next(); System.out.println((a - b) % c); } }
Main.java:6: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int b = sc.next(); ^ Main.java:8: error: incompatible types: String canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p03447|0
u073606136|p03447|0
codenet
Compile Error
287
v2_s456759154
s456759154
s456759154
p03447
p03447
u082512804
u082512804
1,518,057,209
2018-02-08T02:33: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 X = sc.nextInt(); int out =0; //最小のコイン数で払う int num500 = X/500; int num100 = (X%500)/100; int num50 = (X-num5...
Main.java:21: error: method exit in class System cannot be applied to given types; System.exit(); ^ required: int found: no arguments reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03447|1
u082512804|p03447|1
codenet
Compile Error
737
v2_s955190648
s955190648
s955190648
p03447
p03447
u089230684
u089230684
1,560,366,591
2019-06-12T19:09:51
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int x,a,b; cin >> x >> a >> b; int c=x-a; int d=c/b; cout << c-b*d << 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:8: error: not a statement cin >> x >> a >> b; ^ Main.java:11: error: not a statement cout << c-b*d << endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03447|5
u089230684|p03447|5
codenet
Compile Error
172
v2_s908581374
s908581374
s908581374
p03447
p03447
u089230684
u089230684
1,587,073,586
2020-04-16T21:46:26
Main.java
import java.util.*; class Ideone { public static long answer=0; public static int longvalue=1000000007; public static void main(String args[]) { Scanner s=new Scanner(System.in); int n=s.nextInt(); int a[]=new int[n]; for(int i=0;i<n;i++) a[i]=s.nextInt(); ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089230684|p03447|6
u089230684|p03447|6
codenet
Compile Error
998
v2_s628754721
s628754721
s628754721
p03447
p03447
u143495079
u143495079
1,586,311,870
2020-04-08T02:11:10
MainTest.java
import static org.hamcrest.CoreMatchers.is; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.junit.Assert; import org.junit.Test; public class MainTest { @Test public void 入力例_1() throws Exception { String input = "1234" + System.lineSeparator...
MainTest.java:1: error: package org.hamcrest does not exist import static org.hamcrest.CoreMatchers.is; ^ MainTest.java:1: error: static import only from classes and interfaces import static org.hamcrest.CoreMatchers.is; ^ MainTest.java:7: error: package org.junit does not exist import org.jun...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u143495079|p03447|0
u143495079|p03447|0
codenet
Compile Error
1,449
v2_s240333467
s240333467
s240333467
p03447
p03447
u153556810
u153556810
1,555,938,458
2019-04-22T13:07:38
Main.java
import java.util.Scanner; public class { 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 = sc.nextInt(); int pattern = 0; for(int i = 0; i < A + 1; i++) { int sumi = 500 * i; if(!(sumi > X)) { ...
Main.java:5: error: <identifier> expected public class { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153556810|p03447|0
u153556810|p03447|0
codenet
Compile Error
582
v2_s585177444
s585177444
s585177444
p03447
p03447
u157348006
u157348006
1,600,202,441
2020-09-15T20:40:41
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 = sc.nextInt(); int count=0; boolean fragJ = true; boolean fragK =...
Main.java:60: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u157348006|p03447|0
u157348006|p03447|0
codenet
Compile Error
1,216
v2_s729499201
s729499201
s729499201
p03447
p03447
u190395363
u190395363
1,596,249,625
2020-08-01T02:40:25
Main.java
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 C = Integer.parseInt(sc.next()); int X = Integer.parseInt(sc.next()); int res = 0; ...
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
u190395363|p03447|0
u190395363|p03447|0
codenet
Compile Error
578
v2_s887626723
s887626723
s887626723
p03447
p03447
u257201274
u257201274
1,517,244,972
2018-01-29T16:56:12
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(); ArrayList<LinkedList<Tuple>> list = new ArrayList<>(); for(int i = 0; i <= n; i++) list.add(new LinkedList<>());...
Main.java:28: error: cannot find symbol int curr = queue.poll(); ^ symbol: method poll() location: variable queue of type Stack<Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u257201274|p03447|1
u257201274|p03447|1
codenet
Compile Error
1,947
v2_s549101232
s549101232
s549101232
p03447
p03447
u332344081
u332344081
1,517,644,313
2018-02-03T07:51:53
Main.java
import java.*; class Main{ public static void main(String[] args) { Scanner in=new Scanner(System.in); int t=in.nextInt(); int u=in.nextInt(); int s=in.nextInt(); System.out.println((t-u)%s); } }
Main.java:1: error: package java does not exist import java.*; ^ Main.java:4: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner in=new Scanner(System.in); ^ symbol: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u332344081|p03447|0
u332344081|p03447|0
codenet
Compile Error
220
v2_s460446658
s460446658
s460446658
p03447
p03447
u334656323
u334656323
1,517,201,673
2018-01-29T04:54:33
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner scan=new Scanner(System.in); int X,A,B=scan.next(); Y=X-A*100; Z=Y-B; if (Z>B){ Z=Z-B; } System.out.println(Z); } }
Main.java:6: error: incompatible types: String cannot be converted to int int X,A,B=scan.next(); ^ Main.java:7: error: cannot find symbol Y=X-A*100; ^ symbol: variable Y location: class Main Main.java:8: error: cannot find symbol Z=Y-B; ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|0
u334656323|p03447|0
codenet
Compile Error
286
v2_s119194084
s119194084
s119194084
p03447
p03447
u334656323
u334656323
1,517,524,493
2018-02-01T22:34:53
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 X=sc.nextInt(); X=X-A; for(i=0;X<B;i++){ X=X-B; if(X<B){ System...
Main.java:11: error: cannot find symbol for(i=0;X<B;i++){ ^ symbol: variable i location: class Main Main.java:11: error: cannot find symbol for(i=0;X<B;i++){ ^ symbol: variable i location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
389
v2_s251831900
s251831900
s251831900
p03447
p03447
u334656323
u334656323
1,517,524,823
2018-02-01T22:40:23
at.java
import java.util.scanner; public class at{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); int X=sc.nextInt(); X=X-A; for(int i=0;X<B;i++){ X=X-B; if(X<B){ System...
at.java:1: error: cannot find symbol import java.util.scanner; ^ symbol: class scanner location: package java.util at.java:4: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class at at.java:4: error: cannot find symbol S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
409
v2_s575417880
s575417880
s575417880
p03447
p03447
u334656323
u334656323
1,517,525,182
2018-02-01T22:46:22
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 X=sc.nextInt(); Y=X-A; for(int i=0;Y<B;i++){ Y=Y-B; if(Y<B){ Syst...
Main.java:8: error: cannot find symbol Y=X-A; ^ symbol: variable Y location: class Main Main.java:9: error: cannot find symbol for(int i=0;Y<B;i++){ ^ symbol: variable Y location: class Main Main.java:10: error: cannot find symbol Y=Y-B; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
403
v2_s317451258
s317451258
s317451258
p03447
p03447
u334656323
u334656323
1,517,525,350
2018-02-01T22:49:10
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int A=sc.nextI;nt(); int B=sc.nextInt(); int X=sc.nextInt(); int Y=X-A; int Z=Y; for(int i=0;Z<B;i++){ Z=Z-B; if(Y<B)...
Main.java:5: error: cannot find symbol int A=sc.nextI;nt(); ^ symbol: variable nextI location: variable sc of type Scanner Main.java:5: error: cannot find symbol int A=sc.nextI;nt(); ^ symbol: method nt() location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
425
v2_s822685878
s822685878
s822685878
p03447
p03447
u334656323
u334656323
1,517,525,591
2018-02-01T22:53:11
Main.java
import java.util.Scanner; public class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int A=sc.nextI;nt(); int B=sc.nextInt(); int X=sc.nextInt(); int Y=X-A; while(Y>B){ Y=Y-B; if(Y<B){ System.ou...
Main.java:5: error: cannot find symbol int A=sc.nextI;nt(); ^ symbol: variable nextI location: variable sc of type Scanner Main.java:5: error: cannot find symbol int A=sc.nextI;nt(); ^ symbol: method nt() location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
398
v2_s759136955
s759136955
s759136955
p03447
p03447
u334656323
u334656323
1,517,525,768
2018-02-01T22:56:08
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 X=sc.nextInt(); X=X-A; while(X>B){ X=X-B; if(X<B){ System.out.pri...
Main.java:12: error: cannot find symbol System.out.println(Y); ^ symbol: variable Y location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
393
v2_s212557230
s212557230
s212557230
p03447
p03447
u334656323
u334656323
1,517,526,671
2018-02-01T23:11:11
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 X=sc.nextInt(); int l=0; for(i=0;i<=A;i++){ for(j=0;j<=B;j++){ ...
Main.java:10: error: cannot find symbol for(i=0;i<=A;i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i=0;i<=A;i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i=0;i<=A;i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03447|1
u334656323|p03447|1
codenet
Compile Error
594
v2_s071045898
s071045898
s071045898
p03447
p03447
u430222675
u430222675
1,518,594,811
2018-02-14T07:53:31
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); x = x - a*1 - ((x - a*1) / b)*b; System.out.println(x); } }
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
u430222675|p03447|0
u430222675|p03447|0
codenet
Compile Error
275
v2_s228464883
s228464883
s228464883
p03447
p03447
u434662823
u434662823
1,540,098,027
2018-10-21T05:00:27
Main.java
import java.util.*; class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(), b = sc.nextInt(); ystem.out.println((n - a) % b); } }
Main.java:9: error: package ystem does not exist ystem.out.println((n - a) % b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03447|0
u434662823|p03447|0
codenet
Compile Error
253
v2_s891096943
s891096943
s891096943
p03447
p03447
u528124741
u528124741
1,595,460,017
2020-07-22T23:20:17
Main.java
import java.util.*; import java.lang.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int b_num = (int)(x-a)/b int result = x - a - b * b_num; ...
Main.java:11: error: ';' expected int b_num = (int)(x-a)/b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u528124741|p03447|0
u528124741|p03447|0
codenet
Compile Error
357
v2_s450337778
s450337778
s450337778
p03447
p03447
u547167033
u547167033
1,561,663,720
2019-06-27T19:28:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(system.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); x = x-a; while(x>=0){ x -= b } System.out.println(x+b); sc.close(); } }
Main.java:10: error: ';' expected x -= b ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03447|0
u547167033|p03447|0
codenet
Compile Error
317
v2_s639226608
s639226608
s639226608
p03447
p03447
u547167033
u547167033
1,561,663,749
2019-06-27T19:29:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(system.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); x = x-a; while(x>=0){ x -= b; } System.out.println(x+b); sc.close(); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(system.in); ^ symbol: variable system location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p03447|0
u547167033|p03447|0
codenet
Compile Error
319
v2_s337761480
s337761480
s337761480
p03447
p03447
u626353997
u626353997
1,565,820,355
2019-08-14T22:05:55
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in) int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int ans = x-a; while(ans > 0){ ans -= b; } System.out.println(a...
Main.java:5: error: ';' expected Scanner sc = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03447|0
u626353997|p03447|0
codenet
Compile Error
332
v2_s252211000
s252211000
s252211000
p03447
p03447
u643840641
u643840641
1,537,276,912
2018-09-18T13:21:52
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); System,out.println(x-((x-a)/b)*b); } }
Main.java:8: error: not a statement System,out.println(x-((x-a)/b)*b); ^ Main.java:8: error: ';' expected System,out.println(x-((x-a)/b)*b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u643840641|p03447|0
u643840641|p03447|0
codenet
Compile Error
232
v2_s539976015
s539976015
s539976015
p03447
p03447
u776202654
u776202654
1,524,791,907
2018-04-27T01:18:27
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Iterator; import java.util.Collections; import java.util.Comparator; import java.util.Random; class Main{ public static void main(String args[]){ Scanner = sc = new Scanner(Sys...
Main.java:12: error: cannot find symbol Scanner = sc = new Scanner(System.in); ^ symbol: variable Scanner location: class Main Main.java:12: error: cannot find symbol Scanner = sc = new Scanner(System.in); ^ symbol: variable sc locati...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u776202654|p03447|0
u776202654|p03447|0
codenet
Compile Error
530
v2_s398391392
s398391392
s398391392
p03447
p03447
u816631826
u816631826
1,587,073,635
2020-04-16T21:47:15
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){     int X,A,B,m;     Scanner scan=new Scanner(System.in);     X=scan.nextInt();     A=scan.nextInt();     B=scan.nextInt();     m=(X-A)%B;     if(A+B<=X){      System.out.println(m);     }     else{      System.out.print("input error!...
Main.java:4: error: illegal character: '\u00a0' ??? int X,A,B,m; ^ Main.java:4: error: illegal character: '\u00a0' ??? int X,A,B,m; ^ Main.java:4: error: illegal character: '\u00a0' ??? int X,A,B,m; ^ Main.java:5: error: illegal character: '\u00a0' ??? Scanner scan=new Scanner(System.in); ^ Main.java:5: error: illeg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p03447|2
u816631826|p03447|2
codenet
Compile Error
375
v2_s424589174
s424589174
s424589174
p03447
p03447
u816631826
u816631826
1,587,073,980
2020-04-16T21:53:00
Main.java
import java.util.*; public class Main {// Main public static void main(String[] args){ Scanner scanner = new Scanner(System.in) int x = scanner.nextInt(); int a = scanner.nextInt(); int b = scanner.nextInt(); x = x-a; while(x>0) { ...
Main.java:4: error: ';' expected Scanner scanner = new Scanner(System.in) ^ Main.java:12: error: ';' expected System.out.println(x) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p03447|2
u816631826|p03447|2
codenet
Compile Error
396
v2_s993004924
s993004924
s993004924
p03447
p03447
u824327681
u824327681
1,518,325,670
2018-02-11T05:07:50
Main.java
class Main{ public static void main(String... args){ Scanner sc = new Scanner(System.in); int money = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println((money - a) % b); } }
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
u824327681|p03447|0
u824327681|p03447|0
codenet
Compile Error
200
v2_s363176094
s363176094
s363176094
p03447
p03447
u824327681
u824327681
1,518,325,704
2018-02-11T05:08:24
Main.java
import java.util.Scanner class Main{ public static void main(String... args){ Scanner sc = new Scanner(System.in); int money = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println((money - a) % b); } }
Main.java:1: error: ';' expected import java.util.Scanner ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u824327681|p03447|0
u824327681|p03447|0
codenet
Compile Error
226
v2_s956988402
s956988402
s956988402
p03447
p03447
u901728983
u901728983
1,522,320,585
2018-03-29T10:49:45
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int oturi = (x-a) % b; System.out.println(oturi); } }
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
u901728983|p03447|0
u901728983|p03447|0
codenet
Compile Error
260
v2_s624658742
s624658742
s624658742
p03447
p03447
u981767024
u981767024
1,562,801,215
2019-07-10T23:26:55
Main.java
// 2019/07/10 // AtCoder Beginner Contest 087 - A import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // Input int x = sc.nextInt(); int a = sc.next(); int b = sc.nextInt(); int ans; // Calc ...
Main.java:10: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981767024|p03447|0
u981767024|p03447|0
codenet
Compile Error
408
v2_s239707894
s239707894
s239707894
p03447
p03447
u981808900
u981808900
1,559,780,622
2019-06-06T00:23:42
AtCoder.java
import java.util.*; public class AtCoder { static Scanner scanner = new Scanner(System.in); public static void main(String[]$) { System.out.println(Math.max(0, scanner.nextInt() - scanner.nextInt()) % scanner.nextInt()) } }
AtCoder.java:7: error: ';' expected System.out.println(Math.max(0, scanner.nextInt() - scanner.nextInt()) % scanner.nextInt()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03447|0
u981808900|p03447|0
codenet
Compile Error
244
v2_s079806210
s079806210
s079806210
p03448
p03448
u024824950
u024824950
1,556,467,690
2019-04-28T16:08:10
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 = sc.nextInt(); int cnt = 0; for(int i=0; i<a; i++){ for(int j=...
Main.java:17: error: cannot find symbol if(nd_c<c){ ^ symbol: variable nd_c location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03448|1
u024824950|p03448|1
codenet
Compile Error
638
v2_s663292967
s663292967
s663292967
p03448
p03448
u050763225
u050763225
1,563,606,779
2019-07-20T07:12:59
Main.java
import java.util.Scanner; import java.lang.*; public class Main { public static int count = 0; public static void counter(int fh, int hd, int ft, int goal) { int maxFH = Math.min(goal / 500, fh); for (int i = 0; i <= maxFH; i++) { int postFH = goal - i * 500; int maxHD = 0; if (pos...
Main.java:29: 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:38: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u050763225|p03448|0
u050763225|p03448|0
codenet
Compile Error
1,188
v2_s389978334
s389978334
s389978334
p03448
p03448
u074720991
u074720991
1,580,166,782
2020-01-27T23:13:02
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int 500yen = sc.nextInt(); int 100yen = sc.nextInt(); int 50yen = sc.nextInt(); int value = sc.nextInt(); int max500 = value / 500; int max100; int result = 0; int nokori500...
Main.java:6: error: not a statement int 500yen = sc.nextInt(); ^ Main.java:6: error: ';' expected int 500yen = sc.nextInt(); ^ Main.java:7: error: not a statement int 100yen = sc.nextInt(); ^ Main.java:7: error: ';' expected int 100yen = sc.nextInt(); ^ Main.java:8: error: not a statement int 50...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074720991|p03448|0
u074720991|p03448|0
codenet
Compile Error
625
v2_s614938534
s614938534
s614938534
p03448
p03448
u082512804
u082512804
1,518,056,951
2018-02-08T02:29: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 C = sc.nextInt(); int X = sc.nextInt(); int out =0; //最小のコイン数で払う int num500 = X/500; int num100 = (X%500)/100; int num50 = (X-num5...
Main.java:21: error: cannot find symbol exit(); ^ symbol: method exit() location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03448|0
u082512804|p03448|0
codenet
Compile Error
730
v2_s311293411
s311293411
s311293411
p03448
p03448
u082512804
u082512804
1,518,057,228
2018-02-08T02:33:48
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 = sc.nextInt(); int out =0; //最小のコイン数で払う int num500 = X/500; int num100 = (X%500)/100; int num50 = (X-num5...
Main.java:21: error: method exit in class System cannot be applied to given types; System.exit(); ^ required: int found: no arguments reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03448|0
u082512804|p03448|0
codenet
Compile Error
737
v2_s763294449
s763294449
s763294449
p03448
p03448
u082512804
u082512804
1,518,057,335
2018-02-08T02:35:35
Main.java
import java.util.*; import java.lang.*; 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 = sc.nextInt(); int out =0; //最小のコイン数で払う int num500 = X/500; int num100 = (X%500)/100; ...
Main.java:22: error: method exit in class System cannot be applied to given types; System.exit(); ^ required: int found: no arguments reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p03448|0
u082512804|p03448|0
codenet
Compile Error
757