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_s300582871
s300582871
s300582871
p02818
p02818
u686373805
u686373805
1,577,671,146
2019-12-30T01:59:06
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); int t = std.nextInt(); int a = std.nextInt(); do { if(t > 0) { t--; } else if(a > 0) { a--; } else { ...
Main.java:25: error: ';' expected }while(t > 0) ^ Main.java:27: error: reached end of file while parsing System.out.println(t + " " + a); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02818|0
u686373805|p02818|0
codenet
Compile Error
399
v2_s129586119
s129586119
s129586119
p02818
p02818
u686373805
u686373805
1,577,671,197
2019-12-30T01:59:57
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); int t = std.nextInt(); int a = std.nextInt(); do { if(t > 0) { t--; } else if(a > 0) { a--; } else {...
Main.java:27: error: reached end of file while parsing System.out.println(t + " " + a); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02818|0
u686373805|p02818|0
codenet
Compile Error
401
v2_s016832586
s016832586
s016832586
p02818
p02818
u686373805
u686373805
1,577,673,442
2019-12-30T02:37:22
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); long t = std.nextLong(); long a = std.nextLong(); long k = std.nextLong(); long a = t - k; if(a <= 0) { t = 0; k -= a; } System.out....
Main.java:19: error: reached end of file while parsing System.out.println(t + " " + k); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02818|0
u686373805|p02818|0
codenet
Compile Error
341
v2_s836528942
s836528942
s836528942
p02818
p02818
u686373805
u686373805
1,577,673,481
2019-12-30T02:38:01
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); long t = std.nextLong(); long a = std.nextLong(); long k = std.nextLong(); long a = t - k; if(a <= 0) { t = 0; k -= a; } System.out...
Main.java:12: error: variable a is already defined in method main(String[]) long a = t - k; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02818|0
u686373805|p02818|0
codenet
Compile Error
348
v2_s661767581
s661767581
s661767581
p02818
p02818
u739508435
u739508435
1,597,012,450
2020-08-09T22:34: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 N = sc.nextInt(); while(N > 0){ if(A > 0){ A--; N--; }else{ B--; N--; } if(...
Main.java:17: error: bad operand types for binary operator '&&' if(A = 0 && B = 0){ ^ first type: int second type: int Main.java:17: error: incompatible types: int cannot be converted to boolean if(A = 0 && B = 0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739508435|p02818|0
u739508435|p02818|0
codenet
Compile Error
429
v2_s117479319
s117479319
s117479319
p02818
p02818
u739508435
u739508435
1,597,012,654
2020-08-09T22:37:34
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(); while(N > 0){ if(A > 0){ A--; K--; }else{ B--; K--; } if(...
Main.java:10: error: cannot find symbol while(N > 0){ ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739508435|p02818|0
u739508435|p02818|0
codenet
Compile Error
431
v2_s652114554
s652114554
s652114554
p02818
p02818
u739508435
u739508435
1,597,014,667
2020-08-09T23:11:07
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(); if(A + B <= K){ System.out.println("0 0"); }else if(A >= K){ System.out.println((A...
Main.java:17: error: ')' expected System.out.println("0 " + (B - ((K - A)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739508435|p02818|0
u739508435|p02818|0
codenet
Compile Error
417
v2_s074161664
s074161664
s074161664
p02818
p02818
u739508435
u739508435
1,597,467,703
2020-08-15T05:01:43
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(); if(K <= A){ System.out.println(A - K + " " + B); }else if(K <= A + B){ System.out....
Main.java:14: error: bad operand types for binary operator '-' System.out.println(0 + " " + B - (K - A)); ^ first type: String second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u739508435|p02818|1
u739508435|p02818|1
codenet
Compile Error
444
v2_s330831575
s330831575
s330831575
p02818
p02818
u740551476
u740551476
1,586,979,020
2020-04-15T19:30:20
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(); for (int i = 0; i < K; i++) { if (A = 0) { A--; } else { B--; } } ...
Main.java:11: error: incompatible types: int cannot be converted to boolean if (A = 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u740551476|p02818|0
u740551476|p02818|0
codenet
Compile Error
356
v2_s607623482
s607623482
s607623482
p02818
p02818
u751716395
u751716395
1,593,197,324
2020-06-26T18:48:44
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B= sc.nextLong(); long C = sc.nextLong(); A -= K; if(A<0) { B += A; A = 0; } if(B < 0) { ...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751716395|p02818|0
u751716395|p02818|0
codenet
Compile Error
404
v2_s429027460
s429027460
s429027460
p02818
p02818
u751716395
u751716395
1,593,197,457
2020-06-26T18:50:57
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B= sc.nextLong(); long C = sc.nextLong(); A -= K; if(A<0) { B += A; A = 0; } if(B < 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 Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751716395|p02818|0
u751716395|p02818|0
codenet
Compile Error
406
v2_s919681237
s919681237
s919681237
p02818
p02818
u751716395
u751716395
1,593,197,513
2020-06-26T18:51:53
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B= sc.nextLong(); long C = sc.nextLong(); A -= K; if(A<0) { B += A; A = 0; } if(B < 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 Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751716395|p02818|0
u751716395|p02818|0
codenet
Compile Error
406
v2_s350083025
s350083025
s350083025
p02818
p02818
u751716395
u751716395
1,593,197,637
2020-06-26T18:53:57
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B= sc.nextLong(); long C = sc.nextLong(); A -= K; if(A<0) { B += A; A = 0; } if(B < 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 Main.java:7: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751716395|p02818|0
u751716395|p02818|0
codenet
Compile Error
381
v2_s745040361
s745040361
s745040361
p02818
p02818
u759551844
u759551844
1,577,697,060
2019-12-30T09:11:00
A1283.java
import java.io.*; import java.util.StringTokenizer; public class A1283 { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); PrintWriter pw = new PrintWriter(System.out); int a = in.nextInt (); int b = in.nextInt (); int k = in.n...
A1283.java:19: error: cannot find symbol pw.println(ans); ^ symbol: variable ans location: class A1283 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759551844|p02818|0
u759551844|p02818|0
codenet
Compile Error
2,313
v2_s071124321
s071124321
s071124321
p02818
p02818
u759551844
u759551844
1,577,698,321
2019-12-30T09:32:01
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner (System.in); int a = in.nextInt (); int b = in.nextInt (); int k = in.nextInt (); if(k <= a){ ...
Main.java:13: error: ')' or ',' expected System.out.println (a-k+" "+ b - (k-a); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759551844|p02818|0
u759551844|p02818|0
codenet
Compile Error
557
v2_s196989915
s196989915
s196989915
p02818
p02818
u795978684
u795978684
1,580,917,431
2020-02-05T15:43:51
Main.java
class Main { static int mod = (int) (Math.pow(10,9)+7); static List<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(); public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = sc.nextLong(); long K = sc.ne...
Main.java:3: error: cannot find symbol static List<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(); ^ symbol: class List location: class Main Main.java:3: error: cannot find symbol static List<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>(); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u795978684|p02818|0
u795978684|p02818|0
codenet
Compile Error
505
v2_s596163229
s596163229
s596163229
p02818
p02818
u818640918
u818640918
1,577,674,117
2019-12-30T02:48:37
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextInt(); long B = sc.nextInt(); long K = sc.nextInt(); for (int i=0;i<K;i++){ if(A==0){ if(B==0){ }else{ B=B-1; }else{ A=A-1; } System.out.println(A+""+B); } }
Main.java:14: error: 'else' without 'if' }else{ ^ Main.java:19: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02818|0
u818640918|p02818|0
codenet
Compile Error
293
v2_s704101908
s704101908
s704101908
p02818
p02818
u818640918
u818640918
1,577,674,189
2019-12-30T02:49:49
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long A = sc.nextInt(); long B = sc.nextInt(); long K = sc.nextInt(); for (int i=0;i<K;i++){ if(A==0){ if(B==0){ }else{ B=B-1; } }else{ A=A-1; } System.out.println(A+""+B); ...
Main.java:20: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02818|0
u818640918|p02818|0
codenet
Compile Error
323
v2_s104316057
s104316057
s104316057
p02818
p02818
u818640918
u818640918
1,577,674,602
2019-12-30T02:56:42
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(); for (int i=0;i<K;i++){ if(A==0){ if(B==0){ }else{ B=B-1; } }else{ A=A-1; } System.out.println(A); System...
Main.java:6: error: cannot find symbol Int A = sc.nextInt(); ^ symbol: class Int location: class Main Main.java:7: error: cannot find symbol Int B = sc.nextInt(); ^ symbol: class Int location: class Main Main.java:8: error: cannot find symbol Int K = sc.nextInt(); ^ symbol: class Int location: class M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02818|0
u818640918|p02818|0
codenet
Compile Error
373
v2_s124725066
s124725066
s124725066
p02818
p02818
u818640918
u818640918
1,577,674,916
2019-12-30T03:01:56
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Long A = sc.nextLong(); Long B = sc.nextLong(); Long K = sc.nextLong(); if(k==0){ System.out.println(A+" "+B); }else{ for (int i=0;i<K;i++){ if(A==0){ if(B==0){ }else{ B=B-1; } }...
Main.java:9: error: cannot find symbol if(k==0){ ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02818|0
u818640918|p02818|0
codenet
Compile Error
428
v2_s899941492
s899941492
s899941492
p02818
p02818
u866088236
u866088236
1,578,680,612
2020-01-10T18:23:32
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); inr A,B,K; A=sc.nextInt(); B=sc.nextInt(); K=sc.nextInt() for(int i=0;i<K;i++){ if(A>0){ A--; }else{ B--; } } System.out.println(...
Main.java:9: error: ';' expected K=sc.nextInt() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u866088236|p02818|0
u866088236|p02818|0
codenet
Compile Error
356
v2_s353090030
s353090030
s353090030
p02818
p02818
u866088236
u866088236
1,578,680,754
2020-01-10T18:25:54
Main.java
public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A,B,K; A=sc.nextInt(); B=sc.nextInt(); K=sc.nextInt(); for(int i=0;i<K;i++){ if(A>0){ A--; }else{ B--; } } System.out.println(A+" "+B); sc.clos...
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
u866088236|p02818|0
u866088236|p02818|0
codenet
Compile Error
330
v2_s391820979
s391820979
s391820979
p02818
p02818
u890331732
u890331732
1,577,667,987
2019-12-30T01:06:27
Main.java
#include<bits/stdc++.h> using namespace std; int main(){ long long A,B,K; cin >> A >> B >> K; long long taka,aoki; taka=A-K; aoki=B; if(taka<0){ aoki+=taka; if(aoki<0){ aoki=0; } taka=0; } cout << taka << " " << aoki << endl; }
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:5: error: not a statement long long A,B,K; ^ Main.java:6: error: not a statement cin >> A >> B >> K; ^ Main.java:7: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u890331732|p02818|0
u890331732|p02818|0
codenet
Compile Error
266
v2_s138257676
s138257676
s138257676
p02818
p02818
u903788002
u903788002
1,577,670,920
2019-12-30T01:55:20
Main.java
import java.util.Scanner;; public class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); int A = Integer.parseInt(sc.next()); if(A>=1000000000000){ A=0; } int B = Integer.parseInt(sc.next()); ...
Main.java:6: error: integer number too large if(A>=1000000000000){ ^ Main.java:10: error: integer number too large if(B>=1000000000000){ ^ Main.java:14: error: integer number too large if(K>=1000000000000){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u903788002|p02818|0
u903788002|p02818|0
codenet
Compile Error
803
v2_s202602680
s202602680
s202602680
p02818
p02818
u970774223
u970774223
1,578,174,699
2020-01-04T21:51:39
Main.java
public static void main(String[] args) { new Main().run(); } public void run() { Scanner sc = new Scanner(System.in); long A = sc.nextLong(); long B = sc.nextLong(); long K = sc.nextLong(); for (long i = 0; i < K; i++) { if (A >= 1) { ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u970774223|p02818|0
u970774223|p02818|0
codenet
Compile Error
498
v2_s232481302
s232481302
s232481302
p02819
p02819
u018679195
u018679195
1,581,748,216
2020-02-15T06:30:16
Solution.java
public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int x = nextInt(); int flag = 0; for(int i=x; i<2*x; i++){ for(int j=2; j/x<x; j++){ if(i%j == 0){ flag = 0; break; } else{ flag = 1; } } if(flag == 1) break; } System.out.print(i); } }
Solution.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Solution.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Solution.java:4: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02819|0
u018679195|p02819|0
codenet
Compile Error
285
v2_s487612400
s487612400
s487612400
p02819
p02819
u018679195
u018679195
1,581,748,270
2020-02-15T06:31:10
Solution.java
import java.util.*; public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int x = nextInt(); int flag = 0; for(int i=x; i<2*x; i++){ for(int j=2; j/x<x; j++){ if(i%j == 0){ flag = 0; break; } else{ flag = 1; } } if(flag == 1) break; } System.out.print(i); } }
Solution.java:5: error: cannot find symbol int x = nextInt(); ^ symbol: method nextInt() location: class Solution Solution.java:20: error: cannot find symbol System.out.print(i); ^ symbol: variable i location: class Solution 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02819|0
u018679195|p02819|0
codenet
Compile Error
305
v2_s241393613
s241393613
s241393613
p02819
p02819
u290461783
u290461783
1,593,244,515
2020-06-27T07:55:15
Main.java
import java.math.*; import java.util.*; public class Main { public static void main(String args[]) { BigInteger b=in.nextBigInteger(); if(b.isProbablePrime(70)==true) { System.out.println(b); } else { System.out.println(b.nextProbablePrime()); } } }
Main.java:7: error: cannot find symbol BigInteger b=in.nextBigInteger(); ^ symbol: variable in location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u290461783|p02819|0
u290461783|p02819|0
codenet
Compile Error
295
v2_s506987797
s506987797
s506987797
p02819
p02819
u292902179
u292902179
1,577,674,075
2019-12-30T02:47:55
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int x=scan.nextInt(); int Ans=0, x1=0; boolean flag=false; if(x%2==0){ x1=x+1; }else if(x=2){ Ans=2; flag=true; }else{ x1=x; } while(!flag){ ...
Main.java:11: error: incompatible types: int cannot be converted to boolean }else if(x=2){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u292902179|p02819|0
u292902179|p02819|0
codenet
Compile Error
556
v2_s300032195
s300032195
s300032195
p02819
p02819
u324881146
u324881146
1,577,668,629
2019-12-30T01:17:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] prime = new int[101000]; boolean[] isp = new boolean[101000]; int x = sc.nextInt(); for (int i = 0; i < isp.length; i++) { isp[i] = true; } int p = 0; isp[0] = false; i...
Main.java:32: error: reached end of file while parsing sc.close(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p02819|0
u324881146|p02819|0
codenet
Compile Error
621
v2_s011399815
s011399815
s011399815
p02819
p02819
u353919145
u353919145
1,581,748,079
2020-02-15T06:27:59
Solution.java
public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int x = nextInt(); int flag = 0; for(int i=x; i<2*x; i++){ for(int j=2; j/x<x; j++){ if(i%j == 0){ flag = 0; break; } else{ flag = 1; } } if(flag == 1) break; } } System.out.print(i); } }
Solution.java:20: error: <identifier> expected System.out.print(i); ^ Solution.java:20: error: <identifier> expected System.out.print(i); ^ Solution.java:22: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p02819|0
u353919145|p02819|0
codenet
Compile Error
287
v2_s834304933
s834304933
s834304933
p02819
p02819
u397933464
u397933464
1,577,678,887
2019-12-30T04:08:07
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int [] arr = new int[10e5+10]; int size = arr.length(); arr[1]=1; arr[2]=1; arr[3]=1; for(int i=4;i<size;i++){ boolean ...
Main.java:23: error: ')' expected for(int i = x;i<size;i++{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397933464|p02819|0
u397933464|p02819|0
codenet
Compile Error
710
v2_s917074085
s917074085
s917074085
p02819
p02819
u397933464
u397933464
1,577,678,922
2019-12-30T04:08:42
Main.java
import java.util.*; public class Main{ public static void main(String [] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int [] arr = new int[10e5+10]; int size = arr.length(); arr[1]=1; arr[2]=1; arr[3]=1; for(int i=4;i<size;i++){ boolean ...
Main.java:6: error: incompatible types: possible lossy conversion from double to int int [] arr = new int[10e5+10]; ^ Main.java:7: error: cannot find symbol int size = arr.length(); ^ symbol: method length() location: variable arr of type int[] 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397933464|p02819|0
u397933464|p02819|0
codenet
Compile Error
711
v2_s567854530
s567854530
s567854530
p02819
p02819
u411318935
u411318935
1,588,712,911
2020-05-05T21:08:31
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner in=new Scanner(System.in); long x,num,i,a; boolean b=false; x=in.nextInt(); if(x==2) { System.out.println("2"); System.exit(0); } num=x; for(i=num;i>0;i++,num++) { for(a...
Main.java:18: error: cannot find symbol for(a=2;a<n;a++) ^ symbol: variable n location: class Main Main.java:20: error: cannot find symbol if(n%a==0) ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u411318935|p02819|0
u411318935|p02819|0
codenet
Compile Error
511
v2_s596471793
s596471793
s596471793
p02819
p02819
u532667821
u532667821
1,593,357,164
2020-06-28T15:12:44
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int X = scan.nextInt(); boolean ans = false; while(!(ans)) { if(PrimeNumber(X)) { ans = true; System.out.println...
Main.java:19: error: cannot find symbol for(int i = 2; i < x/2; i++) { ^ symbol: variable x location: class Main Main.java:20: error: cannot find symbol if(x % i == 0){ ^ symbol: variable x location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532667821|p02819|0
u532667821|p02819|0
codenet
Compile Error
570
v2_s419744812
s419744812
s419744812
p02819
p02819
u537070292
u537070292
1,578,163,423
2020-01-04T18:43:43
Main.java
import java.util.Scanner; public class Main{ public static void main(string[] args){ Scanner scan = new Scanner(System.in); int x = new scan.nextInt(); if(x == 2){ System.out.println(x); } boolean s = false; while(s == false){ for(int i = 2; i < n; i ++...
Main.java:3: error: cannot find symbol public static void main(string[] args){ ^ symbol: class string location: class Main Main.java:5: error: package scan does not exist int x = new scan.nextInt(); ^ Main.java:16: error: cannot find symbol for(int i = 2; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02819|0
u537070292|p02819|0
codenet
Compile Error
506
v2_s799133198
s799133198
s799133198
p02819
p02819
u537070292
u537070292
1,578,163,626
2020-01-04T18:47:06
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int x = scan.nextInt(); if(x == 2){ System.out.println(x); return 0; } boolean s = false; while(s == false){ for(int i = 2;...
Main.java:9: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u537070292|p02819|0
u537070292|p02819|0
codenet
Compile Error
519
v2_s671263480
s671263480
s671263480
p02819
p02819
u547671064
u547671064
1,583,371,230
2020-03-05T01:20:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc= sc.nextInt(); int a =sc.nextInt(); int s =0; if((a==2)||(a==3)){System.out.println(a);}else{ for(int j =a;j<100000;j++){ for(int i=2;i<j;i++){ int L = a%i; if(L==0){break;} s = s+1;} ...
Main.java:4: error: incompatible types: int cannot be converted to Scanner Scanner sc= sc.nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02819|0
u547671064|p02819|0
codenet
Compile Error
391
v2_s814270100
s814270100
s814270100
p02819
p02819
u594862874
u594862874
1,577,670,449
2019-12-30T01:47:29
Main.java
def check(num): if num > 1: for i in range(2, num): if (num % i) == 0: return False break else: return True else: return False a = int(input()) for i in range(a, 100500): if check(i): print(i) break
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def check(num): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def check(num): ^ Main.java:1: error: ';' expected def check(num): ^ Main.java:13: error: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u594862874|p02819|0
u594862874|p02819|0
codenet
Compile Error
309
v2_s912888971
s912888971
s912888971
p02819
p02819
u594862874
u594862874
1,577,670,767
2019-12-30T01:52:47
Main.java
def check(num): if num > 1: for i in range(2, num): if (num % i) == 0: return False break else: return True else: return False a = int(input()) for i in range(a, 100500): if check(i): print(i) break
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def check(num): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def check(num): ^ Main.java:1: error: ';' expected def check(num): ^ Main.java:13: error: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u594862874|p02819|0
u594862874|p02819|0
codenet
Compile Error
309
v2_s981873701
s981873701
s981873701
p02819
p02819
u594862874
u594862874
1,577,670,800
2019-12-30T01:53:20
Main.java
def is_prime(num): i = 5 while (i * i <= num): if num % i == 0 or num % (i+2) ==0: return False i+=6 return True if num > 1 and num <=3 else False if num % 2 == 0 or num % 3 == 0 or num <=1 else True k = int(input()) if is_prime(k): print(k) else: while(not is_prime(k)): k +=1 pri...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. def is_prime(num): ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected def is_prime(num): ^ Main.java:1: error: ';' expected def is_prime(num): ^ Main.java:9...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u594862874|p02819|0
u594862874|p02819|0
codenet
Compile Error
325
v2_s356789182
s356789182
s356789182
p02819
p02819
u595289165
u595289165
1,577,670,208
2019-12-30T01:43:28
Main.java
public static void main(String[] args) {       Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(!isprime(n)){ n++; } System.out.println(n); }
Main.java:2: error: illegal character: '\u3000' ??????Scanner sc = new Scanner(System.in); ^ Main.java:2: error: illegal character: '\u3000' ??????Scanner sc = new Scanner(System.in); ^ Main.java:2: error: illegal character: '\u3000' ??????Scanner sc = new Scanner(System.in); ^ Main.java:2: error: illegal character:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u595289165|p02819|0
u595289165|p02819|0
codenet
Compile Error
234
v2_s811039952
s811039952
s811039952
p02819
p02819
u665090185
u665090185
1,577,673,050
2019-12-30T02:30:50
Main.java
import java.util.*; class PrimeNumbers{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int x=scan.nextInt(); if(2<=x<=100000){ if(x/x==1&&x/1==x){ System.out.println(x); } else{ for(int i=x;i/i==1&&i/1==i;i++){ System.out.println(i); } } } ...
Main.java:6: error: bad operand types for binary operator '<=' if(2<=x<=100000){ ^ first type: boolean second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u665090185|p02819|0
u665090185|p02819|0
codenet
Compile Error
402
v2_s414350546
s414350546
s414350546
p02819
p02819
u686373805
u686373805
1,577,671,740
2019-12-30T02:09:00
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); int n = std.nextInt(); end:while(true) { for(int i = 2; i < n; i++) { if(n % i != 0) { System.out.println(n); return...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02819|0
u686373805|p02819|0
codenet
Compile Error
364
v2_s067370486
s067370486
s067370486
p02819
p02819
u686373805
u686373805
1,577,671,789
2019-12-30T02:09:49
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner std = new Scanner(System.in); int n = std.nextInt(); end:while(true) { for(int i = 2; i < n; i++) { if(n % i != 0) { System.out.println(n); retur...
Main.java:17: error: incompatible types: unexpected return value return end; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u686373805|p02819|0
u686373805|p02819|0
codenet
Compile Error
366
v2_s301780990
s301780990
s301780990
p02819
p02819
u754114382
u754114382
1,582,415,846
2020-02-22T23:57:26
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); sc.close(); int a = 1; while (a != 0) { a=0; for (int i = 2; i <= X / 2; i++) { if (X % i == 0) { a++; } } if (a != 0) { X++; } } System.out.println(X);...
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
u754114382|p02819|0
u754114382|p02819|0
codenet
Compile Error
325
v2_s326605497
s326605497
s326605497
p02819
p02819
u816631826
u816631826
1,581,748,045
2020-02-15T06:27:25
Main.java
public Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int x = nextInt(); int flag = 0; for(int i=x; i<2*x; i++){ for(int j=2; j/x<x; j++){ if(i%j == 0){ flag = 0; break; } else{ flag = 1; } } if(flag == 1) break; } } System.out.print(i); } }
Main.java:1: error: class, interface, enum, or record expected public Solution{ ^ 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:20: error: class, interface...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u816631826|p02819|0
u816631826|p02819|0
codenet
Compile Error
281
v2_s208490355
s208490355
s208490355
p02819
p02819
u863370423
u863370423
1,581,747,980
2020-02-15T06:26:20
Main.java
Scanner in = new Scanner(System.in); int x = nextInt(); int flag = 0; for(int i=x; i<2*x; i++){ for(int j=2; j/x<x; j++){ if(i%j == 0){ flag = 0; break; } else{ flag = 1; } } if(flag == 1) break; } } System.out.print(i);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner in = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:4: error: class, interface, enum, or record expected for(int i=x; i<2*x; i++){ ^ Main.java:4: error: class, interface, enum, or recor...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02819|0
u863370423|p02819|0
codenet
Compile Error
220
v2_s106801421
s106801421
s106801421
p02819
p02819
u872474958
u872474958
1,577,917,067
2020-01-01T22:17:47
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scanner= new Scanner(System.in); long X=scanner.nextLong(); long i=0; long l=X+i; while(l%2!=0){ i++; } System.out.println(l); }
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u872474958|p02819|0
u872474958|p02819|0
codenet
Compile Error
218
v2_s719629753
s719629753
s719629753
p02820
p02820
u345932819
u345932819
1,578,370,795
2020-01-07T04:19:55
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) thro...
Main.java:151: error: cannot find symbol return r; ^ symbol: variable r location: class Main Main.java:153: error: cannot find symbol return s; ^ symbol: variable s location: class Main Main.java:155: error: cannot find symbol return p; ^ symbol: variable p locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p02820|0
u345932819|p02820|0
codenet
Compile Error
8,764
v2_s605922880
s605922880
s605922880
p02820
p02820
u345932819
u345932819
1,578,370,811
2020-01-07T04:20:11
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.math.BigInteger; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) thro...
Main.java:151: error: cannot find symbol return r; ^ symbol: variable r location: class Main Main.java:153: error: cannot find symbol return s; ^ symbol: variable s location: class Main Main.java:155: error: cannot find symbol return p; ^ symbol: variable p locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345932819|p02820|0
u345932819|p02820|0
codenet
Compile Error
8,764
v2_s178642385
s178642385
s178642385
p02820
p02820
u387109968
u387109968
1,578,500,302
2020-01-08T16:18:22
Main.java
class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int k = scanner.nextInt(); int r = scanner.nextInt(); // グー int s = scanner.nextInt(); // チョキ int p = scanner.nextInt(); // パー String str = scanner.next(); char[] b = n...
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 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387109968|p02820|0
u387109968|p02820|0
codenet
Compile Error
706
v2_s184152341
s184152341
s184152341
p02820
p02820
u678345830
u678345830
1,582,439,057
2020-02-23T06:24:17
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc = new Scanner(); HashMap<char,char> hm = new HashMap<>(); char arr[] = new char[] { 'r','p','s' }; hm.put('r', 'p'); hm.put('p','s'); hm.put('s', 'r'); int n = sc.nextInt(); int k = sc.nextInt()...
Main.java:4: error: no suitable constructor found for Scanner(no arguments) Scanner sc = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u678345830|p02820|0
u678345830|p02820|0
codenet
Compile Error
1,277
v2_s143483886
s143483886
s143483886
p02820
p02820
u771276542
u771276542
1,577,977,320
2020-01-02T15:02:00
Main.java
#include <bits/stdc++.h> using namespace std; using int64 = long long; constexpr int DEBUG = 0; template<typename T> vector<vector<T>> MakeVector2D(int d1, int d2, T default_value) { return vector<vector<T>>(d1, vector<T>(d2, default_value)); } template<class T> inline bool UpdateMin(T& a, T b) { if (a > b) { a...
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: unnamed classes are a preview feature and are disabled by default. using int64 = long long; ^ (use --enable-preview to enable unn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771276542|p02820|0
u771276542|p02820|0
codenet
Compile Error
1,456
v2_s922172480
s922172480
s922172480
p02820
p02820
u890331732
u890331732
1,578,939,727
2020-01-13T18:22:07
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); long N=scan.nextLong(); long K=scan.nextLong(); long R=scan.nextLong(); long S=scan.nextLong(); long P=scan.nextLong(); scan.nextLine(); String[] T=scan.nextLine().split(""); ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int String[] before=new String[N]; ^ Main.java:16: error: incompatible types: possible lossy conversion from long to int if(T[i].equals("r")){ ^ Main.java:17: error: incompatible types...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u890331732|p02820|0
u890331732|p02820|0
codenet
Compile Error
1,368
v2_s490160529
s490160529
s490160529
p02820
p02820
u890331732
u890331732
1,578,939,766
2020-01-13T18:22:46
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); long N=scan.nextLong(); long K=scan.nextLong(); long R=scan.nextLong(); long S=scan.nextLong(); long P=scan.nextLong(); scan.nextLine(); String[] T=scan.nextLine().split(""); ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int String[] before=new String[N]; ^ Main.java:16: error: incompatible types: possible lossy conversion from long to int if(T[i].equals("r")){ ^ Main.java:17: error: incompatible types...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u890331732|p02820|0
u890331732|p02820|0
codenet
Compile Error
1,368
v2_s306886973
s306886973
s306886973
p02820
p02820
u920212194
u920212194
1,577,681,699
2019-12-30T04:54:59
Main.java
import java.util.Scanner; public class Main { static int r; static int s; static int p; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int k = Integer.parseInt(sc.next()); r = Integer.parseInt(sc.next()); // グー s = Integer.par...
Main.java:59: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u920212194|p02820|0
u920212194|p02820|0
codenet
Compile Error
1,106
v2_s862263006
s862263006
s862263006
p02821
p02821
u316432228
u316432228
1,577,670,857
2019-12-30T01:54:17
Main.java
import java.io.BufferedReader; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import...
Main.java:53: error: incompatible types: possible lossy conversion from long to int final int s_size = Math.min(M - glob_count, prefix_sums.length - (s_begin + 1)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u316432228|p02821|0
u316432228|p02821|0
codenet
Compile Error
3,031
v2_s041324177
s041324177
s041324177
p02821
p02821
u726872801
u726872801
1,584,757,619
2020-03-21T02:26:59
E.java
import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.util.*; public class E { long MOD = (long) 1e9 + 7; InputStream in; OutputStream out; public Main() { this(System.in, System.out); } public Main(InputStream in, OutputStream out) { ...
E.java:14: error: invalid method declaration; return type required public Main() { ^ E.java:18: error: invalid method declaration; return type required public Main(InputStream in, OutputStream out) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u726872801|p02821|0
u726872801|p02821|0
codenet
Compile Error
2,561
v2_s773218713
s773218713
s773218713
p02821
p02821
u982630224
u982630224
1,577,675,884
2019-12-30T03:18:04
Main.java
import java.util.*; class Main { static int N; static int[] A, B; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = 100005; int n = sc.nextInt(); long M = sc.nextLong(); A = new int[N+1]; B = new int[N+1]; for (int i =...
Main.java:24: error: incompatible types: possible lossy conversion from long to int int tmp_M = M; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982630224|p02821|0
u982630224|p02821|0
codenet
Compile Error
3,751
v2_s786991424
s786991424
s786991424
p02822
p02822
u324669236
u324669236
1,595,808,480
2020-07-27T00:08:00
Main.java
#include<bits/stdc++.h> #define int long long using namespace std; const int maxn = 2e5 + 10; const int mod = 1e9 + 7; int pow_mod(int a, int n, int mod) { if (n == 0) return 1; int ans = pow_mod(a, n / 2, mod); ans = ans * ans % mod; if (n % 2 == 1) ans = ans * a % mod; return ans; } //扩展GCD int ex_gcd(int a,...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define int long long ^ Main.java:4: error: class, interface, enum, or record expected const int maxn = 2e5 + 1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324669236|p02822|0
u324669236|p02822|0
codenet
Compile Error
1,906
v2_s937138850
s937138850
s937138850
p02823
p02823
u011996008
u011996008
1,584,135,631
2020-03-13T21:40:31
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long N = sc.nextLong(); long A = sc.nextLong(); long B = sc.nextLong(); long ans = 0; if ((A-B)%2 == 0) { ans = (A-B)/2; } else { ans = N-1-Math.max(A-1, N-B)); } System.out.println(an...
Main.java:13: error: ';' expected ans = N-1-Math.max(A-1, N-B)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02823|0
u011996008|p02823|0
codenet
Compile Error
328
v2_s006622664
s006622664
s006622664
p02823
p02823
u099910634
u099910634
1,577,585,246
2019-12-29T02:07:26
Main.java
import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner s=new Scanner(System.in); long n=s.nextLong(); long a=s.nextLong); long b=s.nextL...
Main.java:13: error: ';' expected long a=s.nextLong); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u099910634|p02823|0
u099910634|p02823|0
codenet
Compile Error
454
v2_s202056500
s202056500
s202056500
p02823
p02823
u243078991
u243078991
1,577,586,256
2019-12-29T02:24:16
smallestnum.java
import java.url.*; public class smallestnum{ public static void main(String[] args){ int A,B,C; Scanner scan = new Scanner(System.in); if(A==true && B == false) { System.out.println("A is winner"); } else if(B==true && A == false) { System.out.println(...
smallestnum.java:1: error: package java.url does not exist import java.url.*; ^ smallestnum.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class smallestnum smallestnum.java:5: error: cannot find symbol Scanner scan = new ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u243078991|p02823|0
u243078991|p02823|0
codenet
Compile Error
540
v2_s807086461
s807086461
s807086461
p02823
p02823
u253726906
u253726906
1,577,585,156
2019-12-29T02:05:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args)throws Exception{ Scanner stdIn=new Scanner(System.in); long N=stdIn.nextLong(); long A=stdIn.nextLong(); long B=stdIn.nextLong(); if((B-A)%2==0){ System.out.println((B-A)/2); } else{ int X=Math.max(A-1,B-1); int...
Main.java:12: error: incompatible types: possible lossy conversion from long to int int X=Math.max(A-1,B-1); ^ Main.java:13: error: incompatible types: possible lossy conversion from long to int int Y=Math.max(N-A,N-B); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u253726906|p02823|0
u253726906|p02823|0
codenet
Compile Error
389
v2_s225832934
s225832934
s225832934
p02823
p02823
u277325668
u277325668
1,584,228,470
2020-03-14T23:27:50
Tenis.java
public class Tenis { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); double sa = |a - b|; int ans = 0; for(t=1,2t>n,t++){ double ans = sa/2; Sys...
Tenis.java:9: error: illegal start of expression double sa = |a - b|; ^ Tenis.java:9: error: illegal start of expression double sa = |a - b|; ^ Tenis.java:14: error: not a statement for(t=1,2t>n,t++){ ^ Tenis.java:14: error: ';' expected f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u277325668|p02823|0
u277325668|p02823|0
codenet
Compile Error
364
v2_s077136669
s077136669
s077136669
p02823
p02823
u288042356
u288042356
1,577,585,345
2019-12-29T02:09:05
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main { public static void main(String args[]) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); long N = sc.nextLong(); int A = sc.nextI...
Main.java:22: error: cannot find symbol out.println(result); ^ symbol: variable result location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02823|0
u288042356|p02823|0
codenet
Compile Error
2,220
v2_s181730539
s181730539
s181730539
p02823
p02823
u288042356
u288042356
1,577,585,366
2019-12-29T02:09:26
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; public class Main { public static void main(String args[]) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); long N = sc.nextLong(); int A = sc.nextI...
Main.java:22: error: cannot find symbol out.println(result); ^ symbol: variable result location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288042356|p02823|0
u288042356|p02823|0
codenet
Compile Error
2,220
v2_s521002127
s521002127
s521002127
p02823
p02823
u314087694
u314087694
1,577,587,202
2019-12-29T02:40:02
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); long nik=scan.nextInt(); long na=scan.nextInt(); long nb=scan.nextInt(); if((na-nb)%2==0){ System.out.println(Math.abs(na-nb)/2); }else{ int nc=((na-1)+(nb-1)+1)/2; int nd=((nik-na)+(n...
Main.java:13: error: incompatible types: possible lossy conversion from long to int int nc=((na-1)+(nb-1)+1)/2; ^ Main.java:14: error: incompatible types: possible lossy conversion from long to int int nd=((nik-na)+(nik-nb)+1)/2; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314087694|p02823|0
u314087694|p02823|0
codenet
Compile Error
379
v2_s920225826
s920225826
s920225826
p02823
p02823
u314087694
u314087694
1,577,587,747
2019-12-29T02:49:07
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); long nik=scan.nextInt(); long na=scan.nextInt(); long nb=scan.nextInt(); if((na-nb)%2==0){ System.out.println(Math.abs(long na-nb)/2); }else{ long nc=((na-1)+(nb-1)+1)/2; long nd=((nik...
Main.java:11: error: '.class' expected System.out.println(Math.abs(long na-nb)/2); ^ Main.java:11: error: not a statement System.out.println(Math.abs(long na-nb)/2); ^ Main.java:11: error: ';' expected System.out.println(Math.abs(lo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u314087694|p02823|0
u314087694|p02823|0
codenet
Compile Error
396
v2_s666153978
s666153978
s666153978
p02823
p02823
u348114918
u348114918
1,579,125,198
2020-01-15T21:53:18
Main.java
class Solution { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); long N = scanner.nextLong(); long A = scanner.nextLong() - 1; long B = scanner.nextLong() - 1; long d = Math.abs(A - B); if (d % 2 == 0) { System.out.printl...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Sol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u348114918|p02823|0
u348114918|p02823|0
codenet
Compile Error
462
v2_s186327271
s186327271
s186327271
p02823
p02823
u392376796
u392376796
1,577,586,982
2019-12-29T02:36:22
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int num = 0; while (a != b) { if (a > b) { ...
Main.java:21: error: ';' expected num++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u392376796|p02823|0
u392376796|p02823|0
codenet
Compile Error
649
v2_s250558800
s250558800
s250558800
p02823
p02823
u551325550
u551325550
1,591,749,245
2020-06-10T00:34:05
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n =sc.nextLong(),a=sc.nextLong(),b=sc.nextLong(); if((a+b)%2==0){ System.out.println((a+b)/2-a); } else { if(a-1>n-b){ long ans =...
Main.java:16: error: <identifier> expected ans += Math.,max((tmpA+tmpB)/2-tmpB,0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u551325550|p02823|0
u551325550|p02823|0
codenet
Compile Error
1,045
v2_s643218798
s643218798
s643218798
p02823
p02823
u593014976
u593014976
1,590,419,455
2020-05-25T15:10:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int A = scan.nextInt(); int B = scan.nextInt(); if(Math.abs(A - B) % 2 == 0){ System.out.println(Math.abs(A - B) / 2); }else{ ...
Main.java:14: error: ';' expected System.out.println(Math.abs(A - B) / 2 + 1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593014976|p02823|0
u593014976|p02823|0
codenet
Compile Error
378
v2_s078363017
s078363017
s078363017
p02823
p02823
u593014976
u593014976
1,590,419,494
2020-05-25T15:11:34
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int A = scan.nextInt(); int B = scan.nextInt(); if(Math.abs(A - B) % 2 == 0){ System.out.println(Math.abs(A - B) / 2); }else{ ...
Main.java:15: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593014976|p02823|0
u593014976|p02823|0
codenet
Compile Error
374
v2_s710224703
s710224703
s710224703
p02823
p02823
u660444966
u660444966
1,577,588,344
2019-12-29T02:59:04
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); long diff = a - b; if(diff < 0) diff *= -1L; long ans = 0L; if(diff % 2L == 0){ ...
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
u660444966|p02823|0
u660444966|p02823|0
codenet
Compile Error
803
v2_s379562764
s379562764
s379562764
p02823
p02823
u689981148
u689981148
1,577,587,669
2019-12-29T02:47:49
Main.java
import java.util.*; class AtCoder { public static void main(String[] args) { Scanner in = new Scanner(System.in); ty{ long n, a, b; n = in.nextLong(); a = in.nextLong(); b = in.nextLong(); if ((b - a) % 2 == 0) System.out.println((b - a) / 2); ...
Main.java:7: error: not a statement ty{ ^ Main.java:7: error: ';' expected ty{ ^ Main.java:18: error: 'catch' without 'try' }catch(Ecxrption e) ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689981148|p02823|0
u689981148|p02823|0
codenet
Compile Error
454
v2_s050058519
s050058519
s050058519
p02823
p02823
u689981148
u689981148
1,577,649,485
2019-12-29T19:58:05
Main.java
import java.util.*; class AtCoder { public static void main(String[] args) { Scanner in = new Scanner(System.in); try{ long n, a, b; n = in.nextLong(); a = in.nextLong(); b = in.nextLong(); if ((b - a) % 2 == 0) System.out.println((b - a) / 2);...
Main.java:18: error: cannot find symbol }catch(Ecxrption e) ^ symbol: class Ecxrption location: class AtCoder 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689981148|p02823|1
u689981148|p02823|1
codenet
Compile Error
458
v2_s693734141
s693734141
s693734141
p02823
p02823
u689981148
u689981148
1,577,649,519
2019-12-29T19:58:39
Main.java
import java.util.*; class AtCoder { public static void main(String[] args) { Scanner in = new Scanner(System.in); try{ long n, a, b; n = in.nextLong(); a = in.nextLong(); b = in.nextLong(); if ((b - a) % 2 == 0) System.out.println((b - a) / 2);...
Main.java:18: error: cannot find symbol }catch(Ecxeption e) ^ symbol: class Ecxeption location: class AtCoder 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689981148|p02823|1
u689981148|p02823|1
codenet
Compile Error
458
v2_s399258223
s399258223
s399258223
p02823
p02823
u711620077
u711620077
1,588,614,992
2020-05-04T17:56:32
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); if ((a - b) % 2 == 0) { System.out.print...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u711620077|p02823|0
u711620077|p02823|0
codenet
Compile Error
460
v2_s768209261
s768209261
s768209261
p02823
p02823
u746641209
u746641209
1,577,585,734
2019-12-29T02:15:34
Main.java
import java.util.*; import javax.lang.model.util.ElementScanner6; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 入力 long n = sc.nextLong(); long a = sc.nextLong(); long b = sc.nextLong(); // 処理 long out ...
Main.java:15: error: ';' expected long tmp = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u746641209|p02823|0
u746641209|p02823|0
codenet
Compile Error
609
v2_s365555145
s365555145
s365555145
p02823
p02823
u786768376
u786768376
1,578,529,769
2020-01-09T00:29:29
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 a=sc.nextLomg(); long b=sc.nextLong(); if((b-a)%2==1 && ((a-1)>=(n-b))){ System.out.println(n-a); }else if((b-a)%2==1 && ((a-1)<(n-b))){ System.out.println(b-1); ...
Main.java:9: error: cannot find symbol long a=sc.nextLomg(); ^ symbol: method nextLomg() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786768376|p02823|1
u786768376|p02823|1
codenet
Compile Error
382
v2_s728146629
s728146629
s728146629
p02823
p02823
u818640918
u818640918
1,577,585,122
2019-12-29T02:05:22
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(); int b = sc.nextInt(); if ((b-a) % 2 == 0){ System.out.println(b-a/2); }else{ System.out.println((a+b-2); } } }
Main.java:13: error: ')' or ',' expected System.out.println((a+b-2); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02823|0
u818640918|p02823|0
codenet
Compile Error
268
v2_s343459671
s343459671
s343459671
p02823
p02823
u856005964
u856005964
1,595,949,769
2020-07-28T15:22:49
Main.java
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,x) for(int i=0;i<x;i++) #define put(ans) cout << ans << endl; int main(){ ll a,b,n; cin >> n >> a >> b; if((b-a)%2==0) cout << (b-a)/2 << endl; else cout << min(a-1,n-b)+1+(b-a-1)/2 << endl; retu...
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 typedef long long ll; ^ Main.java:5: error: illegal character: '#' #define rep(i,x) for(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u856005964|p02823|0
u856005964|p02823|0
codenet
Compile Error
328
v2_s062765193
s062765193
s062765193
p02823
p02823
u889604426
u889604426
1,577,586,613
2019-12-29T02:30:13
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); int diff = Math.abs(a - b); if (diff % 2 == 0) { System.out.println(diff / 2); } else { int cente...
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
u889604426|p02823|0
u889604426|p02823|0
codenet
Compile Error
549
v2_s779592193
s779592193
s779592193
p02824
p02824
u050229977
u050229977
1,577,721,927
2019-12-30T16:05:27
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int v = sc.nextInt(); int p = sc.nextInt(); Integer[] a = new Integer[n]; for (int i = 0; i < a.length; i++) { a[i] = sc.nextInt(); } sc.close(); Arrays.sort(a, Collections.re...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u050229977|p02824|0
u050229977|p02824|0
codenet
Compile Error
930
v2_s170060426
s170060426
s170060426
p02824
p02824
u059234158
u059234158
1,578,027,336
2020-01-03T04:55:36
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ System.err.println(); Scanner s=new Scanner(System.in); int n=s.nextInt(); int judges=s.nextInt(); int choice=s.nextInt(); int set=s.nextInt(); HashMap<Integer,Boolean> cache=new HashMap<>(n); int[] a=new int[n]; Array...
Main.java:48: error: reached end of file while parsing ?? ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u059234158|p02824|0
u059234158|p02824|0
codenet
Compile Error
953
v2_s660734422
s660734422
s660734422
p02824
p02824
u154898295
u154898295
1,584,156,508
2020-03-14T03:28:28
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int m = scanner.nextInt(); int v = scanner.nextInt(); int p = scanner.nextInt(); int[] a = new int[n]; for (int i = 0; i <...
Main.java:54: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154898295|p02824|0
u154898295|p02824|0
codenet
Compile Error
1,036
v2_s371327258
s371327258
s371327258
p02824
p02824
u324881146
u324881146
1,577,599,410
2019-12-29T06:03:30
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long m = sc.nextLong(); int v = sc.nextInt(); int p = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = (-1)*sc...
Main.java:4: error: illegal character: '\u3000' public class?Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324881146|p02824|0
u324881146|p02824|0
codenet
Compile Error
795
v2_s711619732
s711619732
s711619732
p02824
p02824
u397763977
u397763977
1,577,729,998
2019-12-30T18:19:58
Main.java
import java.util.*; public class Main{ static int n; static long m; static int v; static int p; static long[] a; public static void main(String[] args){ Scanner sc = new Scanner(System.in); n = Integer.parseInt(sc.next()); m = Long.parseLong(sc.next()); ...
Main.java:45: error: not a statement return false;d ^ Main.java:45: error: ';' expected return false;d ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397763977|p02824|1
u397763977|p02824|1
codenet
Compile Error
1,329
v2_s724746606
s724746606
s724746606
p02824
p02824
u409962311
u409962311
1,577,592,598
2019-12-29T04:09:58
Main.java
import java.util.*; //update 2019/12/13 public class Main{ static Scanner sc = new Scanner(System.in); public static void main(String[] args) { // n m v p // a[0] a[1] ... a[n-1] long n = nextLong(); long m = nextLong(); long v = nextLong(); long p = nextLong(); long[] a = new lon...
Main.java:62: error: cannot find symbol long ans = n-x; ^ symbol: variable x location: class Main Main.java:65: error: cannot find symbol for(int i=0;i<x;i++){ ^ symbol: variable x location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u409962311|p02824|0
u409962311|p02824|0
codenet
Compile Error
2,614
v2_s651988039
s651988039
s651988039
p02825
p02825
u650154918
u650154918
1,577,607,151
2019-12-29T08:12:31
Main.java
import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import java.util.*; public class Main { final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null; BufferedReader in; PrintWriter out; StringTokenizer tok = new StringTokenizer(""); public static void mai...
Main.java:14: error: cannot find symbol new Task().run(); ^ symbol: class Task location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650154918|p02825|0
u650154918|p02825|0
codenet
Compile Error
5,505
v2_s062471209
s062471209
s062471209
p02829
p02829
u010415482
u010415482
1,583,013,625
2020-02-29T22:00:25
Main.java
import java.util.*; import java.util.Collections; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int ans = 6 - A - B; System.out.println(ans); } } }
Main.java:13: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u010415482|p02829|0
u010415482|p02829|0
codenet
Compile Error
271
v2_s605646278
s605646278
s605646278
p02829
p02829
u018679195
u018679195
1,595,908,099
2020-07-28T03:48:19
A.java
import java.util.Scanner; public class A - Hanif Sir { public static void main(String[] args) { Scanner in =new Scanner(System.in); int a=in.nextInt(); int b=in.nextInt(); System.out.print(6-(a+b)); } }
A.java:2: error: '{' expected public class A - Hanif Sir { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02829|1
u018679195|p02829|1
codenet
Compile Error
242
v2_s540129491
s540129491
s540129491
p02829
p02829
u018773111
u018773111
1,593,082,729
2020-06-25T10:58:49
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(); if (a + b == 3){ System.out.println(3); }else if (a + b = 4){ System.out.println(2); }else{ System.out.println(1); ...
Main.java:10: error: unexpected type }else if (a + b = 4){ ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02829|0
u018773111|p02829|0
codenet
Compile Error
332
v2_s584837422
s584837422
s584837422
p02829
p02829
u055125625
u055125625
1,581,799,035
2020-02-15T20:37:15
Main.java
import java.util.*; class Main{ public static void main(String[]args){ Scanner in = new Scanner(System.in); int x = in.nextInt(), y = in.nextInt(), z; if(x==1&&y==2||x==2&&y==1) z = 3; else if(x==2&&y==3||x==3&&y==2) z = 1; else if(x==3&&y==1||x==1&&y==3) ...
Main.java:12: error: variable z might not have been initialized System.out.println(z); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u055125625|p02829|0
u055125625|p02829|0
codenet
Compile Error
366
v2_s799068066
s799068066
s799068066
p02829
p02829
u062736195
u062736195
1,582,240,543
2020-02-20T23:15:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a = sc.nextLong(); long b = sc.nextLong(); long x = a * b; rong = r; if(a<b){ long tmp = a; a = b; b = tmp; } /* ユークリッドの互除法 */ r = a % b; while...
Main.java:8: error: cannot find symbol rong = r; ^ symbol: variable rong location: class Main Main.java:8: error: cannot find symbol rong = r; ^ symbol: variable r location: class Main Main.java:17: error: cannot find symbol r = a % b; ^ symbol: variable r location: class Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p02829|0
u062736195|p02829|0
codenet
Compile Error
434
v2_s453423087
s453423087
s453423087
p02829
p02829
u073606136
u073606136
1,587,874,858
2020-04-26T04:20:58
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num1 = sc.nextInt(); int sum2 = sc.nextInt(); System.out.println(6 - num1 - num2); } }
Main.java:8: error: cannot find symbol System.out.println(6 - num1 - num2); ^ symbol: variable num2 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u073606136|p02829|0
u073606136|p02829|0
codenet
Compile Error
274
v2_s243301730
s243301730
s243301730
p02829
p02829
u104195322
u104195322
1,577,381,752
2019-12-26T17:35:52
Main.java
import java.util.*; import java.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int line = sc.nextInt(); int line2 = sc.nextInt(); if(line == 1 && line2 == 2){ System.out.print(3); }else if(line == 1 && line2 == 3){ System...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u104195322|p02829|0
u104195322|p02829|0
codenet
Compile Error
606
v2_s642598191
s642598191
s642598191
p02829
p02829
u104195322
u104195322
1,577,381,822
2019-12-26T17:37:02
Main.java
import java.util.*; import java.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int line = sc.nextInt(); int line2 = sc.nextInt(); if(line == 1 && line2 == 2){ System.out.print(3); }else if(line == 1 && line2 == 3){ System...
Main.java:2: error: cannot find symbol import java.Scanner; ^ symbol: class Scanner location: package java 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u104195322|p02829|0
u104195322|p02829|0
codenet
Compile Error
612