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_s806633421
s806633421
s806633421
p02608
p02608
u461416922
u461416922
1,594,520,239
2020-07-12T02:17:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i = 1; i <= N;i++){ int count = 0; for(int x = 1; x < i-1;x++){ for(int y =1;y < i-x; y++){ for(int z = 1; z...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461416922|p02608|0
u461416922|p02608|0
codenet
Compile Error
509
v2_s359266846
s359266846
s359266846
p02608
p02608
u667937724
u667937724
1,594,518,860
2020-07-12T01:54: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(); for(int i = 0;i<N;i++){ int count = 0; for(int j = 0;j < Math.sqrt(N);j++){ for(int k = 0;k<Math.sqrt(N);k++){ ...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u667937724|p02608|0
u667937724|p02608|0
codenet
Compile Error
543
v2_s168155918
s168155918
s168155918
p02608
p02608
u699628455
u699628455
1,594,521,337
2020-07-12T02:35:37
Main.java
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int N=sc.nextInt(); for(int i=1;i<=N;i++) { int c=-1; int re=0; for(int x=1;c<=i;x++) { for(int y=x;c<=i;y++) { for(int z=y;true;z++) { c=x*x+y*y+z*z+x*y+y*z+z*x; ...
Main.java:28: error: ';' expected long t=x*x+y*y*3+x*y*2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02608|0
u699628455|p02608|0
codenet
Compile Error
732
v2_s111901740
s111901740
s111901740
p02608
p02608
u857143297
u857143297
1,594,520,957
2020-07-12T02:29:17
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N+1]; for (int i=1; i<=N; i++) { a[i] = 0; } if(N == 10000){ System.out.println("0...
Main.java:13: error: ';' expected System.out.println("0 0 0 0 0 1 0 0 0 0 3 0 0 0 0 0 3 3 0 0 0 0 0 1 6 0 3 0 0 0 0 0 3 3 6 0 0 3 0 0 0 0 3 3 6 0 6 0 0 0 3 0 0 1 6 0 6 6 0 0 6 0 0 0 0 3 3 3 6 0 6 3 6 0 0 0 6 0 0 0 3 3 9 0 6 3 6 0 3 6 0 0 0 0 6 1 6 0 6 6 0 3 12 0 6 0 0 3 6 0 0 0 3 3 12 0 6 3 6 0 3 6 9 0 6 0 0 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u857143297|p02608|0
u857143297|p02608|0
codenet
Compile Error
28,268
v2_s378497913
s378497913
s378497913
p02608
p02608
u886450127
u886450127
1,594,516,905
2020-07-12T01:21:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int count = 0; for(int cnt = 0;cnt < n;cnt++){ for(int i = 1;i * j * k < cnt;i++){ for(int j = 1;i * j * k < cnt;j++)...
Main.java:9: error: cannot find symbol for(int i = 1;i * j * k < cnt;i++){ ^ symbol: variable j location: class Main Main.java:9: error: cannot find symbol for(int i = 1;i * j * k < cnt;i++){ ^ symbol: variable k location: class Mai...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02608|0
u886450127|p02608|0
codenet
Compile Error
608
v2_s862627984
s862627984
s862627984
p02608
p02608
u886450127
u886450127
1,594,517,164
2020-07-12T01:26:04
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int count = 0,j = 1,k = 1; for(int cnt = 0;cnt < n;cnt++){ for(int i = 1;i * j * k < cnt;i++){ for(int j = 1;i * j * ...
Main.java:10: error: variable j is already defined in method main(String[]) for(int j = 1;i * j * k < cnt;j++){ ^ Main.java:11: error: variable k is already defined in method main(String[]) for(int k = 1;i * j * k < cnt;k++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02608|0
u886450127|p02608|0
codenet
Compile Error
620
v2_s920198356
s920198356
s920198356
p02608
p02608
u886450127
u886450127
1,594,517,312
2020-07-12T01:28:32
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int count = 0,jc = 1,jk = 1; for(int cnt = 0;cnt < n;cnt++){ for(int i = 1;i * jc * jk < cnt;i++){ for(int j = 1;i * ...
Main.java:10: error: cannot find symbol for(int j = 1;i * j * k < cnt;j++){ ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886450127|p02608|0
u886450127|p02608|0
codenet
Compile Error
624
v2_s133273472
s133273472
s133273472
p02608
p02608
u891427914
u891427914
1,594,518,027
2020-07-12T01:40:27
Main.java
//package AtCoder; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.StringTokenizer; import Puplis.zsort; public class Main { static int INF = (int) 1e9; static ArrayList<...
Main.java:11: error: package Puplis does not exist import Puplis.zsort; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891427914|p02608|0
u891427914|p02608|0
codenet
Compile Error
2,215
v2_s890044148
s890044148
s890044148
p02608
p02608
u899828212
u899828212
1,594,650,276
2020-07-13T14:24:36
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] answer = new int[10050]; for(int i=0;i<106;i++){ for(int j=0;j<106;j++){ for(int k=0;k<106;k++){ int v =...
Main.java:12: error: cannot find symbol int v = i*i+j*j+k*K+i*j+j*k+k*i; ^ symbol: variable K location: class Main Main.java:21: error: cannot find symbol System.out.println(String.valueOf(answer[v])); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899828212|p02608|0
u899828212|p02608|0
codenet
Compile Error
547
v2_s796121586
s796121586
s796121586
p02608
p02608
u995664161
u995664161
1,594,519,113
2020-07-12T01:58:33
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int anc = 0; int count = 0; for(int N = 1;N <= L;N++){ for(int x = 1;x <= 99;x++){ for(int y = 1;y <= 99;y++)...
Main.java:14: error: unreachable statement if(N == x*x + y*y + z*z + x*y + y*z + z*x){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u995664161|p02608|0
u995664161|p02608|0
codenet
Compile Error
779
v2_s570879949
s570879949
s570879949
p02609
p02609
u082512804
u082512804
1,597,238,091
2020-08-12T13:14:51
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigInteger; import java.util.*; public class Main { void solve() throws IOException { int N = ni(); String s = ns(); int popc = 0; for (int i ...
Main.java:35: error: cannot find symbol if(popc==1&&X.charAt(i)=='1'){ ^ symbol: variable X location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u082512804|p02609|1
u082512804|p02609|1
codenet
Compile Error
4,505
v2_s390165446
s390165446
s390165446
p02609
p02609
u194809675
u194809675
1,595,517,189
2020-07-23T15:13:09
Main.java
#include <iostream> using namespace std; typedef long long ll; const int N=2e5+5; int ans[N]; int pow(ll x,int y,int mod){ ll ans=1; while(y){ if(y&1) ans=ans*x%mod; x=x*x%mod; } return ans; } ll x1[N],x2[N]; void init(){ for(int i=1; i<N; i++) { int y=i,z=0; while(y)...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:3: error: class, interface, enum, or record expected typedef long long ll; ^ Main.java:4: error: class, interface, enum, or record expected const int N...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u194809675|p02609|0
u194809675|p02609|0
codenet
Compile Error
1,098
v2_s633575936
s633575936
s633575936
p02609
p02609
u563321291
u563321291
1,594,522,050
2020-07-12T02:47:30
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { for(int i=0;i<1;i++) { slover(); out.flu...
Main.java:431: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563321291|p02609|0
u563321291|p02609|0
codenet
Compile Error
9,234
v2_s128943338
s128943338
s128943338
p02609
p02609
u587100042
u587100042
1,594,518,534
2020-07-12T01:48:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),f,ans; char[] c=sc.next().toCharArray(); for(int i=0;i<n;i++){ if(c[i]=='1'){ f++; } } int d; for(int i=0;i<n;i++){ d=f; ...
Main.java:18: error: not a statement c[i]=='0'; ^ Main.java:20: error: not a statement }else(c[i]=='0'){ ^ Main.java:20: error: ';' expected }else(c[i]=='0'){ ^ Main.java:21: error: not a statement c[i]=='1'; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02609|0
u587100042|p02609|0
codenet
Compile Error
554
v2_s930989154
s930989154
s930989154
p02609
p02609
u587100042
u587100042
1,594,518,587
2020-07-12T01:49:47
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),f,ans; char[] c=sc.next().toCharArray(); for(int i=0;i<n;i++){ if(c[i]=='1'){ f++; } } int d; for(int i=0;i<n;i++){ d=f; ...
Main.java:20: error: not a statement }else(c[i]=='0'){ ^ Main.java:20: error: ';' expected }else(c[i]=='0'){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02609|0
u587100042|p02609|0
codenet
Compile Error
552
v2_s376224611
s376224611
s376224611
p02609
p02609
u587100042
u587100042
1,594,518,618
2020-07-12T01:50:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(),f,ans; char[] c=sc.next().toCharArray(); for(int i=0;i<n;i++){ if(c[i]=='1'){ f++; } } int d; for(int i=0;i<n;i++){ d=f; ...
Main.java:11: error: variable f might not have been initialized f++; ^ Main.java:16: error: variable f might not have been initialized d=f; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587100042|p02609|0
u587100042|p02609|0
codenet
Compile Error
541
v2_s853919050
s853919050
s853919050
p02609
p02609
u653564828
u653564828
1,594,520,051
2020-07-12T02:14:11
task.java
import java.lang.*; import java.util.scanner.*; public class task{ public static void main(String[] args) { scanner sc=new scanner(system.in); int n=sc.nextInt(); int count=0; System.out.println(Integer.toBinaryString(n)); System.out.println(Integer.bitCount(n)); do(n--!=0){ ...
task.java:13: error: not a statement do(n--!=0){ ^ task.java:13: error: ';' expected do(n--!=0){ ^ task.java:19: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653564828|p02609|0
u653564828|p02609|0
codenet
Compile Error
472
v2_s164548160
s164548160
s164548160
p02609
p02609
u786645058
u786645058
1,594,867,871
2020-07-16T02:51:11
Main.java
import java.math.BigDecimal; import java.util.Scanner; public class Main { public static void main(String[] args) { long start = System.currentTimeMillis(); // 引数で標準入力System.inを指定する Scanner scanner = new Scanner(System.in); try { // 1行目を取得(a) int n = scanner.nextInt(); scanner.nextLine();...
Main.java:147: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u786645058|p02609|1
u786645058|p02609|1
codenet
Compile Error
3,507
v2_s374631476
s374631476
s374631476
p02609
p02609
u899828212
u899828212
1,594,649,130
2020-07-13T14:05:30
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String X = sc.next(); for(int i=0;i<N;i++){ int count=0; String input = ""; //ビット反転 if(input.subs...
Main.java:14: error: ')' expected if(input.substring(i,i+1)equals("0")){ ^ Main.java:14: error: ';' expected if(input.substring(i,i+1)equals("0")){ ^ Main.java:16: error: 'else' without 'if' } else { ^ 3 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u899828212|p02609|0
u899828212|p02609|0
codenet
Compile Error
875
v2_s564473717
s564473717
s564473717
p02609
p02609
u983711104
u983711104
1,594,605,367
2020-07-13T01:56:07
Main.java
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) typedef long long ll; int calc(int d) { if (d == 0) { return 1; } else { bitset<30> b(d); return calc(d % b.count()) + 1; } } int main() { int n; string s; cin >> n >> s; bitset<2 * (int) pow(10, ...
Main.java:1: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define rep(i, n) for (int i = 0; i < (int)(n); ++i) ^ Main.java:3: error: class, interface, enum, or record ex...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u983711104|p02609|1
u983711104|p02609|1
codenet
Compile Error
1,330
v2_s987046529
s987046529
s987046529
p02612
p02612
u003493134
u003493134
1,593,997,347
2020-07-06T01:02:27
Main.java
class ViewController: UIViewController { var loginButton: UIButton! var nameTextField: UITextField! var passwordTextField: UITextField! override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .white loginButton = UIButton(type: .system) loginButton.setTitle("Login", for: .nor...
Main.java:1: error: '{' expected class ViewController: UIViewController { ^ Main.java:3: error: 'var' is not allowed here var loginButton: UIButton! ^ Main.java:3: error: ';' expected var loginButton: UIButton! ^ Main.java:3: error: <identifier> expected var loginButton: UIB...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003493134|p02612|0
u003493134|p02612|0
codenet
Compile Error
2,231
v2_s230079849
s230079849
s230079849
p02612
p02612
u006728642
u006728642
1,594,001,596
2020-07-06T02:13:16
B.java
import java.util.Scanner; public class B { int A=0,W=0,T=0,R=0; void main(){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); for(int i = 0;i < N;i++){ String txt = scan.next; if(txt == "AC"){ A++; }else if(txt == "WA"){ ...
B.java:8: error: cannot find symbol String txt = scan.next; ^ symbol: variable next location: variable scan of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006728642|p02612|0
u006728642|p02612|0
codenet
Compile Error
654
v2_s988306337
s988306337
s988306337
p02612
p02612
u006728642
u006728642
1,594,001,728
2020-07-06T02:15:28
B.java
import java.util.Scanner; public class B { int A=0,W=0,T=0,R=0; void main(){ Scanner scan = new Scanner(System.in); String txt = new String(); int N = scan.nextInt(); for(int i = 0;i < N;i++){ txt = scan.next; if(txt == "AC"){ A++; ...
B.java:21: error: not a statement System.out,println("WA x " + W); ^ B.java:21: error: ';' expected System.out,println("WA x " + W); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006728642|p02612|0
u006728642|p02612|0
codenet
Compile Error
682
v2_s815500737
s815500737
s815500737
p02612
p02612
u027620874
u027620874
1,594,008,146
2020-07-06T04:02:26
Main.java
public class Main{ public static void main(String[] args){ int sum = new java.util.Scanner(System.in).nextInt(); while(){ int i = 1; int pay = 1000*i; if(pay >= sum){ int oturi = pay - sum; break; }else{ i++; } } System.out.println(oturi); } }
Main.java:5: error: illegal start of expression while(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u027620874|p02612|0
u027620874|p02612|0
codenet
Compile Error
285
v2_s503148666
s503148666
s503148666
p02612
p02612
u030636212
u030636212
1,595,949,732
2020-07-28T15:22:12
Main.java
import java.util.Scanner; public static void main (String[] args) { Scanner sc = new Scanner (System.in); System.out.println("いくら?:); int N = sc.nextInt(); int k = 1; do { k += 1; }while (N-1000*k > 0); System.out.println("おつりは"+(1000*k-N)+"です"); }
Main.java:4: error: unclosed string literal System.out.println("????:); ^ 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) 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030636212|p02612|0
u030636212|p02612|0
codenet
Compile Error
289
v2_s898664620
s898664620
s898664620
p02612
p02612
u030636212
u030636212
1,595,950,000
2020-07-28T15:26:40
Main.java
import java.util.Scanner; public static void main (String args[]) { Scanner sc = new Scanner (System.in); System.out.println("いくら?:"); int N = sc.nextInt(); int k = 1; do { k += 1; }while (N-1000*k > 0); System.out.println("おつりは"+(1000*k-N)+"です"); }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030636212|p02612|0
u030636212|p02612|0
codenet
Compile Error
298
v2_s739041001
s739041001
s739041001
p02612
p02612
u030636212
u030636212
1,595,950,136
2020-07-28T15:28:56
Main.java
import java.util.Scanner; class A-Payment { public static void main (String args[]) { Scanner sc = new Scanner (System.in); System.out.println("いくら?:"); int N = sc.nextInt(); int k = 1; do { k += 1; }while (N-1000*k > 0); System.out.println("おつりは"+(1000*k-N)+"です"); } }
Main.java:2: error: '{' expected class A-Payment { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030636212|p02612|0
u030636212|p02612|0
codenet
Compile Error
317
v2_s096966368
s096966368
s096966368
p02612
p02612
u030636212
u030636212
1,595,950,256
2020-07-28T15:30:56
Main.java
import java.util.Scanner; class A-Payment { public static void main (String args[]) { Scanner sc = new Scanner (System.in); System.out.println("いくら?:"); int N = sc.nextInt(); int k = 1; do { k += 1; }while (N-1000*k > 0); System.out.println("おつりは"+(1000*k-N)+"です"); } }
Main.java:2: error: '{' expected class A-Payment { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030636212|p02612|0
u030636212|p02612|0
codenet
Compile Error
317
v2_s747973147
s747973147
s747973147
p02612
p02612
u030636212
u030636212
1,595,950,391
2020-07-28T15:33:11
Main.java
import java.util.Scanner; class A - Payment { public static void main (String args[]) { Scanner sc = new Scanner (System.in); System.out.println("いくら?:"); int N = sc.nextInt(); int k = 1; do { k += 1; }while (N-1000*k > 0); System.out.println("おつりは"+(1000*k-N)+"です"); } }
Main.java:2: error: '{' expected class A - Payment { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u030636212|p02612|0
u030636212|p02612|0
codenet
Compile Error
319
v2_s352795454
s352795454
s352795454
p02612
p02612
u034882933
u034882933
1,595,259,724
2020-07-20T15:42:04
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); n %= 1000; if(n==0||n==1000) { System.out.println(0); } else{ System.out.println(1000-n); } }
Main.java:3: 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
u034882933|p02612|0
u034882933|p02612|0
codenet
Compile Error
264
v2_s809021905
s809021905
s809021905
p02612
p02612
u067730489
u067730489
1,595,339,962
2020-07-21T13:59: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(); sc.close(); int maisu = 0; if(n%1000=0) { maisu = n / 1000; } else { maisu = n % 1000 + 1; } System.out.p...
Main.java:9: error: unexpected type if(n%1000=0) { ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067730489|p02612|0
u067730489|p02612|0
codenet
Compile Error
343
v2_s125146751
s125146751
s125146751
p02612
p02612
u067730489
u067730489
1,595,340,120
2020-07-21T14:02:00
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int maisu = 0; if(n%1000=0) { maisu = n / 1000; System.out.println(maisu); } else { maisu = n % 1000...
Main.java:9: error: unexpected type if(n%1000=0) { ^ required: variable found: value 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067730489|p02612|0
u067730489|p02612|0
codenet
Compile Error
380
v2_s773202896
s773202896
s773202896
p02612
p02612
u089715854
u089715854
1,594,003,089
2020-07-06T02:38:09
Test1.java
public class Test1{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); if(N) System.out.println(N); } }
Test1.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Test1 Test1.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Test1 Test1.java:5: error: in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u089715854|p02612|0
u089715854|p02612|0
codenet
Compile Error
177
v2_s641835396
s641835396
s641835396
p02612
p02612
u098094844
u098094844
1,593,997,577
2020-07-06T01:06:17
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int ans = N / 1000; System.out.println(1000-ans); } }
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u098094844|p02612|0
u098094844|p02612|0
codenet
Compile Error
224
v2_s306690327
s306690327
s306690327
p02612
p02612
u103132397
u103132397
1,594,295,532
2020-07-09T11:52:12
Payment.java
import java.util.Scanner; public class Payment{ public static public void main(String[] args){ Scanner sc = new Scanner(System.in); int n; System.out.print("N:"); n = sc.nextInt(); int x = (n+1000-1)/1000; int change = x*1000 - n; System.out.println(change); } }
Payment.java:4: error: repeated modifier public static public void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103132397|p02612|0
u103132397|p02612|0
codenet
Compile Error
319
v2_s538627556
s538627556
s538627556
p02612
p02612
u103132397
u103132397
1,594,295,590
2020-07-09T11:53:10
Payment.java
import java.util.Scanner; public class Payment{ public static public void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = (n+1000-1)/1000; int change = x*1000 - n; System.out.println(change); } }
Payment.java:4: error: repeated modifier public static public void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103132397|p02612|0
u103132397|p02612|0
codenet
Compile Error
280
v2_s940736670
s940736670
s940736670
p02612
p02612
u103132397
u103132397
1,594,295,622
2020-07-09T11:53:42
Payment.java
import java.util.Scanner; public class Payment{ public static public void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = (n+1000-1)/1000; int change = x*1000 - n; System.out.println(change); sc.close(); } }
Payment.java:4: error: repeated modifier public static public void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103132397|p02612|0
u103132397|p02612|0
codenet
Compile Error
298
v2_s540498570
s540498570
s540498570
p02612
p02612
u103132397
u103132397
1,594,295,757
2020-07-09T11:55:57
Payment.java
import java.util.Scanner; public class Payment{ public static public void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println((10000-n)/1000); sc.close(); } }
Payment.java:4: error: repeated modifier public static public void main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103132397|p02612|0
u103132397|p02612|0
codenet
Compile Error
249
v2_s996784492
s996784492
s996784492
p02612
p02612
u114496237
u114496237
1,594,307,548
2020-07-09T15:12:28
Main.java
import java.util.Scanner; public static void main(String[] args) { var key = new Scanner(System.in); var n = key.nextInt(); if (n % 1000 == 0) { System.out.println(0); } else { System.out.println(1000-n%1000); } }
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) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114496237|p02612|0
u114496237|p02612|0
codenet
Compile Error
278
v2_s569985377
s569985377
s569985377
p02612
p02612
u125209121
u125209121
1,594,001,155
2020-07-06T02:05:55
Main.java
import math n = int(input()) x = math.ceil(n/1000) s = 1000*x if n > m: result = n - m else: result = m - n print(result)
Main.java:1: error: '.' expected import math ^ Main.java:3: error: ';' expected n = int(input()) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u125209121|p02612|0
u125209121|p02612|0
codenet
Compile Error
136
v2_s408815018
s408815018
s408815018
p02612
p02612
u135363744
u135363744
1,593,997,830
2020-07-06T01:10:30
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); System.out.println(1000-N%1000); }
Main.java:8: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02612|0
u135363744|p02612|0
codenet
Compile Error
183
v2_s802260952
s802260952
s802260952
p02612
p02612
u135363744
u135363744
1,593,998,160
2020-07-06T01:16:00
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int answer = 1000-N%1000 System.out.println(answer); } }
Main.java:7: error: ';' expected int answer = 1000-N%1000 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02612|0
u135363744|p02612|0
codenet
Compile Error
209
v2_s702273208
s702273208
s702273208
p02612
p02612
u135363744
u135363744
1,593,999,127
2020-07-06T01:32:07
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if (N<=1000){ System.put.println(1000-N); }else{ System.out.println(answer); } } }
Main.java:8: error: cannot find symbol System.put.println(1000-N); ^ symbol: variable put location: class System Main.java:10: error: cannot find symbol System.out.println(answer); ^ symbol: variable answer location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02612|0
u135363744|p02612|0
codenet
Compile Error
252
v2_s435223959
s435223959
s435223959
p02612
p02612
u135363744
u135363744
1,593,999,413
2020-07-06T01:36:53
Main.java
import java.util.*; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); if (N%1000 == 0){ System.out.println(0) }else if (N<=1000&&0<N){ System.out.println(1000-N); }else if(1000<N&&N<10000){ System.out.println(1000-N%...
Main.java:8: error: ';' expected System.out.println(0) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02612|0
u135363744|p02612|0
codenet
Compile Error
338
v2_s172114154
s172114154
s172114154
p02612
p02612
u155394291
u155394291
1,594,608,376
2020-07-13T02:46:16
Main.java
import java.util.Scanner; Scanner scan = new Scanner(System.in); String str = scan.nextLine(); price = Integer.parseInt(str); System.out.println(price % 1000); scan.close();
Main.java:4: error: unnamed classes are a preview feature and are disabled by default. Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:7: error: class, interface, enum, or record expected price = Integer.parseInt(str); ^ Main.java:8: error: class, in...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u155394291|p02612|0
u155394291|p02612|0
codenet
Compile Error
200
v2_s465148708
s465148708
s465148708
p02612
p02612
u155394291
u155394291
1,594,608,515
2020-07-13T02:48:35
Main.java
import java.util.Scanner; Scanner scan = new Scanner(System.in); String str = scan.nextLine(); int price = Integer.parseInt(str); System.out.println(price % 1000); scan.close();
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:7: error: class, interface, enum, or record expected System.out.println(price % 1000); ^ Main.java:9: error: class, interface, enum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u155394291|p02612|0
u155394291|p02612|0
codenet
Compile Error
181
v2_s739061111
s739061111
s739061111
p02612
p02612
u155394291
u155394291
1,594,609,080
2020-07-13T02:58:00
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String price = scan.nextLine(); scan.close(); otsuri = Integer.parseInt(price) % 1000; if (otsuri == 0)...
Main.java:10: error: cannot find symbol otsuri = Integer.parseInt(price) % 1000; ^ symbol: variable otsuri location: class Main Main.java:11: error: cannot find symbol if (otsuri == 0) { ^ symbol: variable otsuri location: class Main Main.java:12: error: c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u155394291|p02612|0
u155394291|p02612|0
codenet
Compile Error
468
v2_s186714116
s186714116
s186714116
p02612
p02612
u171945635
u171945635
1,594,770,513
2020-07-14T23:48:33
Main.java
import java.util.*; class Main { public static void main(String args[]) throws Exception { Scanner in = new Scanner(System.in); int n=in.nextInt(); System.out.println(ans%1000); } }
Main.java:9: error: cannot find symbol System.out.println(ans%1000); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u171945635|p02612|0
u171945635|p02612|0
codenet
Compile Error
191
v2_s231684039
s231684039
s231684039
p02612
p02612
u223969160
u223969160
1,594,001,175
2020-07-06T02:06:15
Main.java
class { public static void main(String args[]) { Scanner s=new Scanner(System.in); int yen=1000,n,r; n=s.nextInt(); r=n%yen; if(r==0) System.out.println("0"); else { r=yen-r; System.oout.println(r); } } }
Main.java:1: error: <identifier> expected class ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223969160|p02612|0
u223969160|p02612|0
codenet
Compile Error
294
v2_s420237660
s420237660
s420237660
p02612
p02612
u223969160
u223969160
1,594,001,229
2020-07-06T02:07:09
Main.java
class abc { public static void main(String args[]) { Scanner s=new Scanner(System.in); int yen=1000,n,r; n=s.nextInt(); r=n%yen; if(r==0) System.out.println("0"); else { r=yen-r; System.oout.println(r); } } }
Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class abc Main.java:5: error: cannot find symbol Scanner s=new Scanner(System.in); ^ symbol: class Scanner location: class abc Main.java:14: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223969160|p02612|0
u223969160|p02612|0
codenet
Compile Error
261
v2_s155330879
s155330879
s155330879
p02612
p02612
u223969160
u223969160
1,594,001,337
2020-07-06T02:08:57
Main.java
import java.util.Scanner; class abc { public static void main(String args[]) { Scanner s=new Scanner(System.in); int yen=1000,n,r; n=s.nextInt(); r=n%yen; if(r==0) System.out.println("0"); else { r=yen-r; System.oout.println(r); } } }
Main.java:15: error: cannot find symbol System.oout.println(r); ^ symbol: variable oout location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u223969160|p02612|0
u223969160|p02612|0
codenet
Compile Error
287
v2_s342554295
s342554295
s342554295
p02612
p02612
u232860859
u232860859
1,594,000,776
2020-07-06T01:59:36
Main.java
public static void main (String[] args) { Scanner sc = new Scanner(System.in); Integer N = sc.nextInt(); Integer ans = 0; if (N%1000 != 0) {// N が1000で割り切れないとき ans = (N/1000 + 1)*1000 - N; } System.out.println(ans); }
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
u232860859|p02612|0
u232860859|p02612|0
codenet
Compile Error
258
v2_s891252992
s891252992
s891252992
p02612
p02612
u232860859
u232860859
1,594,000,819
2020-07-06T02:00:19
Main.java
public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); Integer N = sc.nextInt(); Integer ans = 0; if (N%1000 != 0) {// N が1000で割り切れないとき ans = (N/1000 + 1)*1000 - N; } 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
u232860859|p02612|0
u232860859|p02612|0
codenet
Compile Error
328
v2_s687419438
s687419438
s687419438
p02612
p02612
u252072308
u252072308
1,594,095,385
2020-07-07T04:16:25
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i = 1; i < 11; i++) { int bill = 1000*i if (num > bill) { continue; } else { return bill-num; ...
Main.java:9: error: ';' expected int bill = 1000*i ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252072308|p02612|0
u252072308|p02612|0
codenet
Compile Error
335
v2_s977286115
s977286115
s977286115
p02612
p02612
u252072308
u252072308
1,594,095,423
2020-07-07T04:17:03
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i = 1; i < 11; i++) { int bill = 1000*i; if (num > bill) { continue; } else { return bill-num; ...
Main.java:13: error: incompatible types: unexpected return value return bill-num; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252072308|p02612|0
u252072308|p02612|0
codenet
Compile Error
337
v2_s618082926
s618082926
s618082926
p02612
p02612
u252072308
u252072308
1,594,095,462
2020-07-07T04:17:42
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i = 1; i < 11; i++) { int bill = 1000*i; if (num > bill) { continue; } else { int answer = bill-n...
Main.java:14: error: incompatible types: unexpected return value return answer; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u252072308|p02612|0
u252072308|p02612|0
codenet
Compile Error
366
v2_s416726365
s416726365
s416726365
p02612
p02612
u271171365
u271171365
1,593,998,170
2020-07-06T01:16:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(); int N = sc.nextInt(); if (N % 1000 == 0) { System.out.println(0); } else { System.out.println(((Math.ceil(N / 1000)) * 1000) - N); } } }
Main.java:6: 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
u271171365|p02612|0
u271171365|p02612|0
codenet
Compile Error
290
v2_s295068034
s295068034
s295068034
p02612
p02612
u282011939
u282011939
1,596,649,198
2020-08-05T17:39:58
Main.java
package game; import java.util.Scanner; public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int c = 0; while(N > 1000) { c = c + 1000; } if(c > N) { c= N-c; } System.out.println(c); } }
Main.java:5: 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:19: error: class, interface, enum, or record expected } ^ Main.java:1: error: unnamed class should not have packa...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u282011939|p02612|0
u282011939|p02612|0
codenet
Compile Error
318
v2_s384715043
s384715043
s384715043
p02612
p02612
u282011939
u282011939
1,596,651,266
2020-08-05T18:14:26
Main.java
public class Main { import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N =sc.nextInt(); int count = 0; int count2 = 0; int count3= 0; int count4 = 0; for(int i = 0;i < N;i++) { String H = sc.next(); if(H.equals("AC")) { count++; ...
Main.java:2: error: illegal start of type import java.util.Scanner; ^ Main.java:2: error: <identifier> expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u282011939|p02612|0
u282011939|p02612|0
codenet
Compile Error
646
v2_s490171199
s490171199
s490171199
p02612
p02612
u284795785
u284795785
1,596,942,803
2020-08-09T03:13:23
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=n%1000; if(a==0){ ans=0; }else{ int ans=1000-a; } System.out.println(ans); } }
Main.java:9: error: cannot find symbol ans=0; ^ symbol: variable ans location: class Main Main.java:15: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02612|0
u284795785|p02612|0
codenet
Compile Error
283
v2_s125507137
s125507137
s125507137
p02612
p02612
u284795785
u284795785
1,596,942,840
2020-08-09T03:14:00
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=n%1000; if(a==0){ ans=0; }else{ int ans=1000-a; } System.out.println(ans); } } import java.util.*; class Main{ p...
Main.java:18: error: class, interface, enum, or record expected import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02612|0
u284795785|p02612|0
codenet
Compile Error
572
v2_s782662310
s782662310
s782662310
p02612
p02612
u284795785
u284795785
1,596,942,861
2020-08-09T03:14:21
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=n%1000; if(a==0){ int ans=0; }else{ int ans=1000-a; } System.out.println(ans); } }
Main.java:15: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02612|0
u284795785|p02612|0
codenet
Compile Error
288
v2_s170709393
s170709393
s170709393
p02612
p02612
u285734280
u285734280
1,595,308,914
2020-07-21T05:21:54
Main.java
import java.util.*; public class Main(String[] args){ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int oturi = 0; //for(int i = N; i > 1000;i++) { oturi = N % 1000; //} System.out.println(oturi); } }
Main.java:3: error: '{' expected public class Main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285734280|p02612|0
u285734280|p02612|0
codenet
Compile Error
273
v2_s301368365
s301368365
s301368365
p02612
p02612
u308372419
u308372419
1,594,416,051
2020-07-10T21:20:51
Main.java
class java3 { public static void main(int n) { int d= n/1000; int m= 1000-d; break; System.out.println(m); } }
Main.java:7: error: break outside switch or loop break; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u308372419|p02612|0
u308372419|p02612|0
codenet
Compile Error
132
v2_s635185132
s635185132
s635185132
p02612
p02612
u308736928
u308736928
1,593,999,466
2020-07-06T01:37:46
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int total = scan.nextInt(); if(noguti%1000!=0){ int noguti = (total/1000)+ 1; }else{ int noguti = (total/1000); } System.out.print(1000*noguti - total); } }
Main.java:7: error: cannot find symbol if(noguti%1000!=0){ ^ symbol: variable noguti location: class Main Main.java:12: error: cannot find symbol System.out.print(1000*noguti - total); ^ symbol: variable noguti location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u308736928|p02612|0
u308736928|p02612|0
codenet
Compile Error
317
v2_s596252890
s596252890
s596252890
p02612
p02612
u322953890
u322953890
1,593,998,006
2020-07-06T01:13:26
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(); sc.close(); int b = a%1000 System.out.println(1000-b); } }
Main.java:10: error: ';' expected int b = a%1000 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u322953890|p02612|0
u322953890|p02612|0
codenet
Compile Error
219
v2_s389603199
s389603199
s389603199
p02612
p02612
u322953890
u322953890
1,593,998,025
2020-07-06T01:13:45
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(); sc.close(); int b = a%1000 System.out.println(1000-b); } }
Main.java:10: error: ';' expected int b = a%1000 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u322953890|p02612|0
u322953890|p02612|0
codenet
Compile Error
219
v2_s584152529
s584152529
s584152529
p02612
p02612
u324739185
u324739185
1,593,997,357
2020-07-06T01:02:37
Main.java
import java.math.BigInteger; import java.util.*; import java.util.stream.Collectors; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.println(n % 1000 ? 0 : 1000 - (n % 1000)); } }
Main.java:9: error: incompatible types: int cannot be converted to boolean System.out.println(n % 1000 ? 0 : 1000 - (n % 1000)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324739185|p02612|0
u324739185|p02612|0
codenet
Compile Error
279
v2_s291071355
s291071355
s291071355
p02612
p02612
u330907398
u330907398
1,597,897,499
2020-08-20T04:24:59
Main.java
public class Main { public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); if (N == 1000 || 2000 || 3000 || 4000 || 5000 || 6000 || 7000 || 8000 || 9000 || 10000) { int A = 0; } else { int A = 1000 - (N % 1000); } System.out.println(A); } }
Main.java:4: error: bad operand types for binary operator '||' if (N == 1000 || 2000 || 3000 || 4000 || 5000 || 6000 || 7000 || 8000 || 9000 || 10000) { ^ first type: boolean second type: int Main.java:9: error: cannot find symbol System.out.println(A); ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02612|0
u330907398|p02612|0
codenet
Compile Error
314
v2_s527347773
s527347773
s527347773
p02612
p02612
u330907398
u330907398
1,597,897,600
2020-08-20T04:26:40
Main.java
public class Main { public static void main(String[] args) { int N = new java.util.Scanner(System.in).nextInt(); if (N == 1000 || N == 2000 || N == 3000 || N == 4000 || N == 5000 || N == 6000 || N == 7000 || N == 8000 || N == 9000 || N == 10000) { int A = 0; } else { int A = 1000 - (N % 1000); ...
Main.java:9: error: cannot find symbol System.out.println(A); ^ symbol: variable A location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u330907398|p02612|0
u330907398|p02612|0
codenet
Compile Error
359
v2_s501722035
s501722035
s501722035
p02612
p02612
u331337510
u331337510
1,594,697,378
2020-07-14T03:29:38
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); if(number == 10000) { System.out.println(0); } int ans = number/1000; if(number%1000 == 0) { System.out.println(0); ...
Main.java:25: error: class, interface, enum, or record expected import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u331337510|p02612|0
u331337510|p02612|0
codenet
Compile Error
878
v2_s508410204
s508410204
s508410204
p02612
p02612
u340344530
u340344530
1,595,877,887
2020-07-27T19:24:47
Calc.java
import java.util.Scanner; public class Calc{ public static void main(String[] args){ Scanner a = new Scanner(System.in); int p = a.nextInt(); if(p>0 && P =<10000){ System.out.println(p%1000); }else{ } }
Calc.java:6: error: illegal start of type if(p>0 && P =<10000){ ^ Calc.java:6: error: ';' expected if(p>0 && P =<10000){ ^ Calc.java:8: error: 'else' without 'if' }else{ ^ Calc.java:11: error: reached end of file while parsing } ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340344530|p02612|0
u340344530|p02612|0
codenet
Compile Error
220
v2_s100170418
s100170418
s100170418
p02612
p02612
u347043439
u347043439
1,594,290,565
2020-07-09T10:29:25
Main.java
public class 173_a { public static void main(String args[]){ int n; int x = (n+1000-1)/1000; int ans = x*1000 - n; return 0; } }
Main.java:1: error: illegal underscore public class 173_a { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|0
u347043439|p02612|0
codenet
Compile Error
148
v2_s867722259
s867722259
s867722259
p02612
p02612
u347043439
u347043439
1,594,290,900
2020-07-09T10:35:00
at173_a.java
public class at173_a { public static void main(String args[]){ int n; int x = (n+1000-1)/1000; int ans = x*1000 - n; } }
at173_a.java:4: error: variable n might not have been initialized int x = (n+1000-1)/1000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|0
u347043439|p02612|0
codenet
Compile Error
137
v2_s412303238
s412303238
s412303238
p02612
p02612
u347043439
u347043439
1,594,514,844
2020-07-12T00:47:24
at173_a.java
public class at173_a { public static void main(String args[]){ int n = 10; cin >> n; int x = (n+1000-1)/1000; int ans = x*1000 - n; System.out.println(ans); } }
at173_a.java:4: error: not a statement cin >> n; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|1
u347043439|p02612|1
codenet
Compile Error
185
v2_s926866560
s926866560
s926866560
p02612
p02612
u347043439
u347043439
1,594,515,104
2020-07-12T00:51:44
Main.java
import java.util.*; public class 173_A_1 { public static void main(String args[]) { // 入力 Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); sc.close(); // 主処理 while (0 < n) { n -= 1000; } int result = Math.abs(n)...
Main.java:3: error: illegal underscore public class 173_A_1 { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|1
u347043439|p02612|1
codenet
Compile Error
395
v2_s539248669
s539248669
s539248669
p02612
p02612
u347043439
u347043439
1,594,515,125
2020-07-12T00:52:05
Main.java
import java.util.*; public class 173_A_1 { public static void main(String args[]) { // 入力 Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); // 主処理 while (0 < n) { n -= 1000; } int result = Math.abs(n); // 出力 ...
Main.java:3: error: illegal underscore public class 173_A_1 { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|1
u347043439|p02612|1
codenet
Compile Error
375
v2_s331673963
s331673963
s331673963
p02612
p02612
u347043439
u347043439
1,594,515,503
2020-07-12T00:58:23
Main.java
import java.until.Scanner; public class 173_a { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextLine(); int x = (n+1000-1)/1000; int ans = x*1000 - n; System.out.println(ans); } }
Main.java:3: error: illegal underscore public class 173_a { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|1
u347043439|p02612|1
codenet
Compile Error
249
v2_s453710842
s453710842
s453710842
p02612
p02612
u347043439
u347043439
1,594,515,559
2020-07-12T00:59:19
Main.java
import java.until.Scanner; public class 173a { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextLine(); int x = (n+1000-1)/1000; int ans = x*1000 - n; System.out.println(ans); } }
Main.java:3: error: <identifier> expected public class 173a { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347043439|p02612|1
u347043439|p02612|1
codenet
Compile Error
248
v2_s779714848
s779714848
s779714848
p02612
p02612
u397330502
u397330502
1,594,088,911
2020-07-07T02:28:31
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while (n > 0) { n -= 1000; } System.out.println(Math.abs(n)); } }
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
u397330502|p02612|0
u397330502|p02612|0
codenet
Compile Error
245
v2_s042714447
s042714447
s042714447
p02612
p02612
u416439192
u416439192
1,595,405,275
2020-07-22T08:07:55
Main.java
import com.sun.prism.shader.Solid_TextureYV12_AlphaTest_Loader; import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int bill = 1000; if(N%bill==0) { System.out.print...
Main.java:1: error: package com.sun.prism.shader does not exist import com.sun.prism.shader.Solid_TextureYV12_AlphaTest_Loader; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u416439192|p02612|0
u416439192|p02612|0
codenet
Compile Error
461
v2_s493553723
s493553723
s493553723
p02612
p02612
u423072369
u423072369
1,597,046,342
2020-08-10T07:59:02
Main.java
import java.util.Scanner; public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the the value for n") double userInput = sc.nextDouble(); System.out.println(n%1000); }
Main.java:3: 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:6: error: ';' expected System.out.println("Enter the the value for n") ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423072369|p02612|0
u423072369|p02612|0
codenet
Compile Error
233
v2_s822324067
s822324067
s822324067
p02612
p02612
u423072369
u423072369
1,597,046,392
2020-08-10T07:59:52
Main.java
import java.util.Scanner; public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the the value for n") double userInput = sc.nextDouble(); System.out.println(userInput % 1000); }
Main.java:3: 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:6: error: ';' expected System.out.println("Enter the the value for n") ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423072369|p02612|0
u423072369|p02612|0
codenet
Compile Error
244
v2_s271368366
s271368366
s271368366
p02612
p02612
u423072369
u423072369
1,597,046,473
2020-08-10T08:01:13
Main.java
import java.util.Scanner; public class Main{ public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the the value for n") double userInput = sc.nextDouble(); System.out.println(userInput%1000); } }
Main.java:7: error: ';' expected System.out.println("Enter the the value for n") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423072369|p02612|0
u423072369|p02612|0
codenet
Compile Error
267
v2_s643275403
s643275403
s643275403
p02612
p02612
u423072369
u423072369
1,597,046,626
2020-08-10T08:03:46
Main.java
import java.util.Scanner; public class Main{ public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the the value for n"); int userInput = sc.nextDouble(); int change = userInput % 1000; System.out.println(change); } }
Main.java:8: error: incompatible types: possible lossy conversion from double to int int userInput = sc.nextDouble(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423072369|p02612|0
u423072369|p02612|0
codenet
Compile Error
292
v2_s148436160
s148436160
s148436160
p02612
p02612
u423072369
u423072369
1,597,047,063
2020-08-10T08:11:03
Main.java
import java.util.Scanner; public class Main{ public static void main(String [] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the the value for n"); int n = sc.nextInt(); if(n < 1 || n > 10000) { System.exit(1) } int change = n % 1000; System.out.println...
Main.java:12: error: ';' expected System.exit(1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u423072369|p02612|0
u423072369|p02612|0
codenet
Compile Error
334
v2_s165430021
s165430021
s165430021
p02612
p02612
u440208522
u440208522
1,594,085,387
2020-07-07T01:29:47
Main.java
public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner=new Scanner(System.in); int a=scanner.nextInt(); // int b=scanner.nextInt(); if(a%1000!=0) { System.out.println(1000-a%1000); }else { System.out.println(0); } } }
Main.java:8: error: cannot find symbol Scanner scanner=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: 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
u440208522|p02612|0
u440208522|p02612|0
codenet
Compile Error
346
v2_s147742106
s147742106
s147742106
p02612
p02612
u440208522
u440208522
1,594,085,471
2020-07-07T01:31:11
Main.java
public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner=new Scanner(System.in); int a=scanner.nextInt(); // int b=scanner.nextInt(); if(a%1000!=0) { System.out.println(1000-a%1000); }else { System.out.println(0); } } }
Main.java:8: error: cannot find symbol Scanner scanner=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: 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
u440208522|p02612|0
u440208522|p02612|0
codenet
Compile Error
346
v2_s685557908
s685557908
s685557908
p02612
p02612
u445950987
u445950987
1,594,042,236
2020-07-06T13:30:36
Main.java
import java.util.*; public class Main { public static void main(String args[] ) throws Exception { Scanner sc = new Scanner(System.in); int money = sc.nextint(); int souzond = (money / 1000);1; System.out.print((souzond*1000)-money); } }
Main.java:7: error: not a statement int souzond = (money / 1000);1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445950987|p02612|0
u445950987|p02612|0
codenet
Compile Error
262
v2_s241322375
s241322375
s241322375
p02612
p02612
u445950987
u445950987
1,594,042,335
2020-07-06T13:32:15
Main.java
import java.util.*; public class Main { public static void main(String args[] ) throws Exception { Scanner sc = new Scanner(System.in); int money = sc.nextint(); int souzond = (money / 1000)+1; System.out.print((souzond*1000)-money); } }
Main.java:6: error: cannot find symbol int money = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445950987|p02612|0
u445950987|p02612|0
codenet
Compile Error
263
v2_s184508606
s184508606
s184508606
p02612
p02612
u445950987
u445950987
1,594,042,379
2020-07-06T13:32:59
Main.java
import java.util.*; public class Main { public static void main(String args[] ) throws Exception { Scanner sc = new Scanner(System.in); int money = sc.nextINT(); int souzond = (money / 1000)+1; System.out.print((souzond*1000)-money); } }
Main.java:6: error: cannot find symbol int money = sc.nextINT(); ^ symbol: method nextINT() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u445950987|p02612|0
u445950987|p02612|0
codenet
Compile Error
263
v2_s324003518
s324003518
s324003518
p02612
p02612
u451719960
u451719960
1,594,424,191
2020-07-10T23:36:31
Main.java
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; public class Main { public static void main(String args[]) { Scanner s = new Scanner(System.in); int x =s.nextInt(); if(x%1000==0) System.out.println(x%1000); ...
Main.java:16: error: ';' expected System.out.println(1000-x%1000) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451719960|p02612|0
u451719960|p02612|0
codenet
Compile Error
380
v2_s143295724
s143295724
s143295724
p02612
p02612
u459250870
u459250870
1,594,191,412
2020-07-08T06:56:52
Main.java
public class Main { public static void main(String[] args){ try { PrintWriter out=new PrintWriter(System.out,true); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int t=Integer.parseInt(br.readLine()); t=t%1000; t=1000-t; ...
Main.java:4: error: cannot find symbol PrintWriter out=new PrintWriter(System.out,true); ^ symbol: class PrintWriter location: class Main Main.java:4: error: cannot find symbol PrintWriter out=new PrintWriter(System.out,true); ^ symbol: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u459250870|p02612|0
u459250870|p02612|0
codenet
Compile Error
539
v2_s684149785
s684149785
s684149785
p02612
p02612
u484373118
u484373118
1,594,693,997
2020-07-14T02:33:17
Main.java
//package beg_173; import java.util.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = a%100; System.out.println(Math.min(b,1000-b))); } }
Main.java:8: error: ';' expected System.out.println(Math.min(b,1000-b))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u484373118|p02612|0
u484373118|p02612|0
codenet
Compile Error
257
v2_s391420642
s391420642
s391420642
p02612
p02612
u515576936
u515576936
1,595,970,789
2020-07-28T21:13:09
Main.java
int n = null; int i = mull; x = 1000*i; while(n > x){ i = i + 1; x = 1000*i; } int j = x % n ; System.out.print(j);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n = null; ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected x = 1000*i; ^ Main.java:5: error: class, interface, enum, or record expected while(n > x){ ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u515576936|p02612|0
u515576936|p02612|0
codenet
Compile Error
121
v2_s163258831
s163258831
s163258831
p02612
p02612
u515576936
u515576936
1,595,988,648
2020-07-29T02:10:48
Main.java
int n = 0; int i = 0; int x = 0; while(n > x) { i = i+1; x=1000*i; } int y = x % n; System.out.print(y);
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n = 0; ^ (use --enable-preview to enable unnamed classes) Main.java:5: error: class, interface, enum, or record expected while(n > x) { ^ Main.java:7: error: class, interface, enum, or record expected x=1000*i; ^ Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u515576936|p02612|1
u515576936|p02612|0
codenet
Compile Error
115
v2_s495875367
s495875367
s495875367
p02612
p02612
u530710595
u530710595
1,594,307,455
2020-07-09T15:10:55
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int C1=0,C2=0,C3=0,C4=0; for(int i=1;i<n;i++){ String result = sc.next(); switch (result){ case "AC": C1++; case "WA": C2++; case "TLE": C3+...
Main.java:22: error: cannot find symbol System.out.printaln("WA x "+ String.valueOf(C2)); ^ symbol: method printaln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u530710595|p02612|0
u530710595|p02612|0
codenet
Compile Error
578
v2_s622966178
s622966178
s622966178
p02612
p02612
u530710595
u530710595
1,594,307,698
2020-07-09T15:14:58
Main.java
10 AC AC AC AC AC AC AC AC AC AC
Main.java:1: error: class, interface, enum, or record expected 10 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u530710595|p02612|0
u530710595|p02612|0
codenet
Compile Error
32
v2_s697725752
s697725752
s697725752
p02612
p02612
u550014122
u550014122
1,593,999,249
2020-07-06T01:34:09
Main.java
#include <iostream> // cout, endl, cin #include <string> // string, to_string, stoi #include <vector> // vector #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, make_tuple #include <cstdint> // int64_t, int*_t #include <cstd...
Main.java:1: error: illegal character: '#' #include <iostream> // cout, endl, cin ^ Main.java:2: error: illegal character: '#' #include <string> // string, to_string, stoi ^ Main.java:3: error: illegal character: '#' #include <vector> // vector ^ Main.java:4: error: illegal character: '#' #include <algorithm> // min, m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u550014122|p02612|0
u550014122|p02612|0
codenet
Compile Error
3,595
v2_s672919781
s672919781
s672919781
p02612
p02612
u594462334
u594462334
1,596,402,726
2020-08-02T21:12:06
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String args[]) throws IOException { FastScanner fs = new FastScanner(); int T = fs.nextInt(); while(T-- >0) { int n = fs.nextInt()...
Main.java:65: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u594462334|p02612|0
u594462334|p02612|0
codenet
Compile Error
1,133