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_s982063874
s982063874
s982063874
p02595
p02595
u769291367
u769291367
1,597,181,498
2020-08-11T21:31:38
Main.java
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int q = sc.nextInt(); int result = 0; for(int i = 0; i < p; i++) { double x1 = sc.nextDouble(); double x2 = sc.nextDouble(); ...
Main.java:20: error: <identifier> expected System.out.println(result); ^ Main.java:20: error: <identifier> expected System.out.println(result); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u769291367|p02595|0
u769291367|p02595|0
codenet
Compile Error
455
v2_s510027732
s510027732
s510027732
p02595
p02595
u820070387
u820070387
1,596,460,269
2020-08-03T13:11:09
Main.java
class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long d = sc.nextInt(); long[] x = new long[n]; long[] y = new long[n]; int cnt = 0; d *= d; for (int i=0; i<n; i++) { x[i] = sc.nextLong(); x[i] *= x[i]; ...
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
u820070387|p02595|0
u820070387|p02595|0
codenet
Compile Error
452
v2_s416093988
s416093988
s416093988
p02595
p02595
u822502291
u822502291
1,596,420,769
2020-08-03T02:12:49
al2020707.java
import java.util.Scanner; public class al2020707 { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n=scanner.nextInt(); double d=scanner.nextDouble(); Integer[][] m=new Integer[n][2]; int t=0; for(int j=0;j<n;j++) { for(int i=0;i<2;i++) int a=scanner.nextInt(...
al2020707.java:15: error: variable declaration not allowed here int a=scanner.nextInt(); ^ al2020707.java:21: error: ';' expected double s=Math.sqrt(f) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u822502291|p02595|0
u822502291|p02595|0
codenet
Compile Error
539
v2_s253481264
s253481264
s253481264
p02595
p02595
u902482201
u902482201
1,596,418,207
2020-08-03T01:30:07
Main.java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; import java.math.BigInteger; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = s...
Main.java:34: error: class, interface, enum, or record expected import java.util.Scanner; ^ Main.java:35: error: class, interface, enum, or record expected import java.util.List; ^ Main.java:36: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:37: error: class, interface, enum, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902482201|p02595|0
u902482201|p02595|0
codenet
Compile Error
1,700
v2_s078053935
s078053935
s078053935
p02595
p02595
u922537533
u922537533
1,596,420,236
2020-08-03T02:03:56
Main.java
import java.util.*; public class Main{ public static int calculatePoints(int n,int d,int[] a,int[] b){ int ret = 0; for(int i=0;i<n;i++){ if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++; } return ret; } public static void main(String[] args){ Scanne...
Main.java:29: error: variable N might not have been initialized System.out.println(calculatePoints(N,D,X,Y)); ^ Main.java:29: error: variable D might not have been initialized System.out.println(calculatePoints(N,D,X,Y)); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u922537533|p02595|0
u922537533|p02595|0
codenet
Compile Error
958
v2_s759892286
s759892286
s759892286
p02595
p02595
u924711195
u924711195
1,598,791,176
2020-08-30T12:39:36
Main.java
import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt())+Math.pow(s.nextInt()))<=d)k++;}}}
Main.java:1: error: method pow in class Math cannot be applied to given types; import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt())+Math.pow(s.nextInt()))<=d)k++;}}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924711195|p02595|0
u924711195|p02595|0
codenet
Compile Error
229
v2_s155490292
s155490292
s155490292
p02595
p02595
u924711195
u924711195
1,598,791,255
2020-08-30T12:40:55
Main.java
import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)k++;}}}
Main.java:1: error: variable k might not have been initialized import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)k++;}}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924711195|p02595|0
u924711195|p02595|0
codenet
Compile Error
233
v2_s515595692
s515595692
s515595692
p02595
p02595
u982242268
u982242268
1,598,383,169
2020-08-25T19:19:29
Main.java
import java.util.*; import java.math; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int x, y, p=0; for(int i = 0; i < n ; i++){ x = sc.nextInt(); y = sc.nextInt(); int z = (int)Math.sqr...
Main.java:2: error: cannot find symbol import java.math; ^ symbol: class math location: package java 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02595|0
u982242268|p02595|0
codenet
Compile Error
404
v2_s086708802
s086708802
s086708802
p02595
p02595
u982242268
u982242268
1,598,383,473
2020-08-25T19:24:33
Main.java
import java.util.*; import java.lang.Math; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int x, y, p=0; for(int i = 0; i < n ; i++){ x = sc.nextInt(); y = sc.nextInt(); double z = Math...
Main.java:14: error: bad operand types for binary operator '+' int k = (int)z + (z%(2.0)!=0.0); ^ first type: int second type: boolean 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02595|0
u982242268|p02595|0
codenet
Compile Error
449
v2_s074275338
s074275338
s074275338
p02595
p02595
u982242268
u982242268
1,598,383,555
2020-08-25T19:25:55
Main.java
import java.util.*; import java.lang.Math; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int x, y, p=0; for(int i = 0; i < n ; i++){ x = sc.nextInt(); y = sc.nextInt(); double z = Math...
Main.java:14: error: incompatible types: boolean cannot be converted to int int k = (int)z + (int)(z%(2.0)!=0.0); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02595|0
u982242268|p02595|0
codenet
Compile Error
454
v2_s884557751
s884557751
s884557751
p02595
p02595
u982242268
u982242268
1,598,385,640
2020-08-25T20:00:40
Main.java
import java.util.*; import java.math.BigInteger; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int x, y, p=0; BigInteger p1 = BigInteger.valueOf(d); p1 = p1.multiply(p1); for(int i = 0; i < n ; i+...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02595|0
u982242268|p02595|0
codenet
Compile Error
617
v2_s960191179
s960191179
s960191179
p02595
p02595
u982242268
u982242268
1,598,385,708
2020-08-25T20:01:48
Main.java
import java.util.*; import java.math.BigInteger; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int x, y, p=0; BigInteger p1 = BigInteger.valueOf(d); p1 = p1.multiply(p1); for(int i = 0; i < n ; i...
Main.java:16: error: cannot find symbol r = r.multilpy(r); ^ symbol: method multilpy(BigInteger) location: variable r of type BigInteger Main.java:18: error: cannot find symbol s = s.multilpy(s); ^ symbol: method multilpy(BigInteger) location: variable s of type BigInte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982242268|p02595|0
u982242268|p02595|0
codenet
Compile Error
621
v2_s847303662
s847303662
s847303662
p02595
p02595
u994856493
u994856493
1,596,420,082
2020-08-03T02:01:22
Main.java
import java.util.*; import static java.lang.Math.sqrt; class Distance{ public static void main(String[] args){ Scanner s=new Scanner(System.in); int i=0; int N=s.nextInt(); int D=s.nextInt(); int x1,y1=0; float result=0.0; int count=0; while(i<N){ x1=s.nextInt(); y1=s.nextInt(); result=sqr...
Main.java:14: error: incompatible types: possible lossy conversion from double to float float result=0.0; ^ Main.java:19: error: incompatible types: possible lossy conversion from double to float result=sqrt((x1*x1)+(y1*y1)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u994856493|p02595|0
u994856493|p02595|0
codenet
Compile Error
422
v2_s678837628
s678837628
s678837628
p02596
p02596
u007805459
u007805459
1,596,419,122
2020-08-03T01:45:22
Main.java
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public ...
Main.java:72: error: integer number too large while(mod<=77777777777777777) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p02596|0
u007805459|p02596|0
codenet
Compile Error
1,882
v2_s354234163
s354234163
s354234163
p02596
p02596
u007805459
u007805459
1,596,419,325
2020-08-03T01:48:45
Main.java
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public ...
Main.java:72: error: integer number too large while(mod<=77777777777777777777l) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p02596|0
u007805459|p02596|0
codenet
Compile Error
1,886
v2_s370935276
s370935276
s370935276
p02596
p02596
u011775447
u011775447
1,596,421,065
2020-08-03T02:17:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); String seven = 7; int count = 0; if (k % 2 == 0) { System.out.println(-1); } else { while(seven...
Main.java:8: error: incompatible types: int cannot be converted to String String seven = 7; ^ Main.java:14: error: bad operand types for binary operator '%' while(seven % k != 0) { ^ first type: String second type: int Main.java:16: error: bad oper...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011775447|p02596|0
u011775447|p02596|0
codenet
Compile Error
469
v2_s562438775
s562438775
s562438775
p02596
p02596
u071060073
u071060073
1,597,913,682
2020-08-20T08:54:42
Main.java
import.java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int seven = 7; int ans = -1; for(int i = 1; i <= K; ++i) { seven %= K; if(seven == 0) { ans = i; break; } s...
Main.java:1: error: <identifier> expected import.java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u071060073|p02596|1
u071060073|p02596|1
codenet
Compile Error
383
v2_s944104610
s944104610
s944104610
p02596
p02596
u132094168
u132094168
1,596,421,047
2020-08-03T02:17:27
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A; A=new int[100]; double B; B=new double[100]; B[0]=7; for(double i=1;i<100;i++){ B[i]=B[i-1]+7.0*(10.0)^i; ...
Main.java:8: error: incompatible types: int[] cannot be converted to int A=new int[100]; ^ Main.java:10: error: incompatible types: double[] cannot be converted to double B=new double[100]; ^ Main.java:11: error: array required, but double found B[0]=7; ^ Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
661
v2_s255828984
s255828984
s255828984
p02596
p02596
u132094168
u132094168
1,596,421,166
2020-08-03T02:19:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A[]; A=new int[100]; double B[]; B=new double[100]; B[0]=7; for(double i=1;i<100;i++){ B[i]=B[i-1]+7.0*(10.0)^i; ...
Main.java:13: error: incompatible types: possible lossy conversion from double to int B[i]=B[i-1]+7.0*(10.0)^i; ^ Main.java:13: error: incompatible types: possible lossy conversion from double to int B[i]=B[i-1]+7.0*(10.0)^i; ^ Main.java:13: error: bad operand types for bin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
667
v2_s178219795
s178219795
s178219795
p02596
p02596
u132094168
u132094168
1,596,421,247
2020-08-03T02:20:47
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A[]; A=new int[100]; double B[]; B=new double[100]; B[0]=7; for(double i=1.0;i<100.0;i++){ B[i]=B[i-1]+7.0*(10.0)^i;...
Main.java:13: error: incompatible types: possible lossy conversion from double to int B[i]=B[i-1]+7.0*(10.0)^i; ^ Main.java:13: error: incompatible types: possible lossy conversion from double to int B[i]=B[i-1]+7.0*(10.0)^i; ^ Main.java:13: error: bad operand types for bin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
671
v2_s478825011
s478825011
s478825011
p02596
p02596
u132094168
u132094168
1,596,421,321
2020-08-03T02:22:01
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A[]; A=new int[100]; double B[]; B=new double[100]; B[0]=7; for(int i=1;i<100;i++){ B[i]=B[i-1]+7.0*(10.0)^i; ...
Main.java:13: error: bad operand types for binary operator '^' B[i]=B[i-1]+7.0*(10.0)^i; ^ first type: double second type: int Main.java:22: error: incompatible types: int cannot be converted to boolean if (K=0){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
664
v2_s865612708
s865612708
s865612708
p02596
p02596
u132094168
u132094168
1,596,421,805
2020-08-03T02:30:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A[]; A=new int[100]; double B[]; B=new double[100]; B[0]=7; double d; for(int i=1;i<100;i++){ for(int j=0...
Main.java:26: error: incompatible types: int cannot be converted to boolean if (C[i]=0){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
748
v2_s631892787
s631892787
s631892787
p02596
p02596
u132094168
u132094168
1,596,422,238
2020-08-03T02:37:18
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int K = sc.nextInt(); int A[]; A=new int[100]; double B[]; B=new double[100]; B[0]=7; double d; d=1.0; for(int i=1;i<100;i++){ ...
Main.java:30: error: ';' expected ff=1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u132094168|p02596|0
u132094168|p02596|0
codenet
Compile Error
825
v2_s775612035
s775612035
s775612035
p02596
p02596
u135363744
u135363744
1,596,418,060
2020-08-03T01:27:40
Main.java
import java.util.*; class Main (String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int R = -1; int Ar = 7; for(int i = 0;i<=K;i++){ if(Ar%K == 0){ R = i+1; }else{ Ar+= 7*Math.pow(10,i+1); } } }
Main.java:3: error: '{' expected class Main (String[] args){ ^ Main.java:4: error: illegal character: '\u3000' Scanner?sc = new Scanner(System.in); ^ Main.java:4: error: <identifier> expected Scanner?sc = new Scanner(System.in); ^ Main.java:8: error: illegal start of type for(int i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
256
v2_s493688931
s493688931
s493688931
p02596
p02596
u135363744
u135363744
1,596,418,128
2020-08-03T01:28:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int Num = sc.nextInt(); int Dis = sc.nextInt(); int[] Xa = new int[Num]; int[] Ya = new int[Num]; for(int i=0;i<Num;i++){ Xa[i] = sc.nextInt(); Ya[i] = sc.nextInt(); }...
Main.java:16: error: cannot find symbol if(Math.pow(Xa[k],2)+Math.pow(Y[k],2)<=Math.pow(Dis,2))R++; ^ symbol: variable Y location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
468
v2_s441301109
s441301109
s441301109
p02596
p02596
u135363744
u135363744
1,596,418,167
2020-08-03T01:29:27
Main.java
import java.util.*; class Main (String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int R = -1; int Ar = 7; for(int i = 0;i<=K;i++){ if(Ar%K == 0){ R = i+1; }else{ Ar+= 7*Math.pow(10,i+1); } } }
Main.java:3: error: '{' expected class Main (String[] args){ ^ Main.java:4: error: illegal character: '\u3000' Scanner?sc = new Scanner(System.in); ^ Main.java:4: error: <identifier> expected Scanner?sc = new Scanner(System.in); ^ Main.java:8: error: illegal start of type for(int i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
257
v2_s431892710
s431892710
s431892710
p02596
p02596
u135363744
u135363744
1,596,418,232
2020-08-03T01:30:32
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int R = -1; int Ar = 7; for(int i = 0;i<=K;i++){ if(Ar%K == 0){ R = i+1; }else{ Ar+= 7*Math.pow(10,i+1); } } } }
Main.java:5: error: illegal character: '\u3000' Scanner?sc = new Scanner(System.in); ^ Main.java:5: error: not a statement Scanner?sc = new Scanner(System.in); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
298
v2_s829183589
s829183589
s829183589
p02596
p02596
u135363744
u135363744
1,596,418,342
2020-08-03T01:32:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int R = -1; int Ar = 7; for(int i = 0;i<=K;i++){ if(Ar%K == 0){ R = i+1; }else{ Ar+= 7*Math.pow(10,i+1); } System.out,println(R); ...
Main.java:15: error: not a statement System.out,println(R); ^ Main.java:15: error: ';' expected System.out,println(R); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
327
v2_s941143079
s941143079
s941143079
p02596
p02596
u135363744
u135363744
1,596,418,973
2020-08-03T01:42:53
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); String R = "-1"; int Ar = 7; int i =1; while(i<=K){ if(Ar%K == 0){ R = i; i = K+1; }else{ Ar+= 7*Math.pow(10,i); i++; ...
Main.java:12: error: incompatible types: int cannot be converted to String R = i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
364
v2_s998585885
s998585885
s998585885
p02596
p02596
u135363744
u135363744
1,596,419,128
2020-08-03T01:45:28
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long K = sc.nextInt(); int R = -1; int Ar = 7; int i =1; if(K%2!=0){ while(i<=K){ if(Ar%K == 0){ R = i; i = K+1; }else{ Ar+= 7*Math.pow(10,i); ...
Main.java:14: error: incompatible types: possible lossy conversion from long to int i = K+1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
382
v2_s544110347
s544110347
s544110347
p02596
p02596
u135363744
u135363744
1,596,419,182
2020-08-03T01:46:22
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long K = sc.nextInt(); int R = -1; long Ar = 7; long =1; if(K%2!=0){ while(i<=K){ if(Ar%K == 0){ R = i; i = K+1; }else{ Ar+= 7*Math.pow(10,i); ...
Main.java:9: error: not a statement long =1; ^ Main.java:9: error: ';' expected long =1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
382
v2_s469452578
s469452578
s469452578
p02596
p02596
u135363744
u135363744
1,596,419,219
2020-08-03T01:46:59
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long K = sc.nextInt(); int R = -1; long Ar = 7; long i=1; if(K%2!=0){ while(i<=K){ if(Ar%K == 0){ R = i; i = K+1; }else{ Ar+= 7*Math.pow(10,i); ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int R = i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u135363744|p02596|0
u135363744|p02596|0
codenet
Compile Error
383
v2_s172745007
s172745007
s172745007
p02596
p02596
u136477556
u136477556
1,596,468,317
2020-08-03T15:25:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long k = sc.nextLong(); long count = 1; long m = 7 % k; if(k % 2 == 0) { System.out.println(-1); sc.close(); return; } while(true) { if(m == 0) break; ...
Main.java:35: error: class, interface, enum, or record expected package atcoder_174_C; ^ Main.java:37: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136477556|p02596|0
u136477556|p02596|0
codenet
Compile Error
872
v2_s089204826
s089204826
s089204826
p02596
p02596
u218740431
u218740431
1,596,422,951
2020-08-03T02:49:11
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int ans = -1; int d = 7%a; for(int i=0;i<a;i++){if(d==0){ans=i+1;break;} } System.out.println(ans); }
Main.java:11: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02596|0
u218740431|p02596|0
codenet
Compile Error
300
v2_s870217164
s870217164
s870217164
p02596
p02596
u310319383
u310319383
1,596,419,886
2020-08-03T01:58:06
Main.java
// 標準入力から2次元配列 import java.util.*; public class Main { public static void main(String[] args) { int result=-1; Scanner sc = new Scanner(System.in); int K = sc.nextInt(); if(n%2!=0){ String str = "7"; int seven = Integer.parseInt(str); for (int i = 1; i <= 100000...
Main.java:9: error: cannot find symbol if(n%2!=0){ ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u310319383|p02596|0
u310319383|p02596|0
codenet
Compile Error
548
v2_s322521125
s322521125
s322521125
p02596
p02596
u420622981
u420622981
1,596,419,207
2020-08-03T01:46:47
Main.java
import java.util.*; import java.util.function.*; import java.math.*; public class Main { public static void main(String[] args){ int K = Integer.valueOf(s.next()); if(K%2==0) { System.out.println(-1); return; } int cur = 7; int cnt = 1; for(int i = 0; i < 100000000; i++) { if(cur % K == 0) {...
Main.java:6: error: cannot find symbol int K = Integer.valueOf(s.next()); ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420622981|p02596|0
u420622981|p02596|0
codenet
Compile Error
453
v2_s344694151
s344694151
s344694151
p02596
p02596
u431137907
u431137907
1,596,820,339
2020-08-07T17:12:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); String S[]; S = new String[K]; //7,77,777,7777,77777,777777,....一つ前の配列に[7]を足していく for(int i=0; i<K; i++) { S[i] += "7...
Main.java:18: error: bad operand types for binary operator '%' if(S[i] % K == 0) { ^ first type: String second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431137907|p02596|0
u431137907|p02596|0
codenet
Compile Error
608
v2_s263537270
s263537270
s263537270
p02596
p02596
u458268106
u458268106
1,596,422,404
2020-08-03T02:40:04
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ static int repow(int b,int p){ long a = b; long res=1; while(p>0){ if(p%2==1){ res*=a; } a*=a; p/=2; } return (int)res; } static int repow(int b,int p,int modder){ long a = b%modd...
Main.java:703: error: reached end of file while parsing static void solve(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02596|0
u458268106|p02596|0
codenet
Compile Error
15,352
v2_s584771537
s584771537
s584771537
p02596
p02596
u485648967
u485648967
1,597,774,459
2020-08-18T18:14:19
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner (System.in); long k = sc.nextInt(); long seven = 7%k; for(int i=1;i<=k;i++) { if(seven==0) { System.out.println(i); return; } //sevenの桁数が大きくなりす...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485648967|p02596|3
u485648967|p02596|2
codenet
Compile Error
487
v2_s834908689
s834908689
s834908689
p02596
p02596
u565219356
u565219356
1,597,016,113
2020-08-09T23:35:13
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int ans = -1; int num = 1; for (int i = 1; i <= k; i++) { if (num % k == 0) { ans = i; break; } num = (((10 % k) * (num % k)) % k + 7 % k) % k; } System.out.println...
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
u565219356|p02596|0
u565219356|p02596|0
codenet
Compile Error
347
v2_s952300810
s952300810
s952300810
p02596
p02596
u601109825
u601109825
1,596,418,862
2020-08-03T01:41:02
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int last = n%10; if (last == 1 || last == 3 || last == 7 || last ==9) { int wei = String.valueOf(n).length();...
Main.java:17: error: cannot find symbol int yu = Utils.tenMod(big.toString(), n); ^ symbol: variable Utils location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u601109825|p02596|0
u601109825|p02596|0
codenet
Compile Error
648
v2_s444949579
s444949579
s444949579
p02596
p02596
u688579504
u688579504
1,597,101,585
2020-08-10T23:19:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int ans = -1; int num = 7; for (int i = 1; i <= k; i++) { if (num % k == 0) { ans = i; break; } num = (((10 % k) * (num % k)) % k + 7 % k)...
Main.java:22: error: reached end of file while parsing sc.close(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u688579504|p02596|0
u688579504|p02596|0
codenet
Compile Error
376
v2_s729645166
s729645166
s729645166
p02596
p02596
u727995340
u727995340
1,598,310,301
2020-08-24T23:05:01
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(); int mod = sc.nextInt(); int val = 7%mod; for(int i =0;i<1e7; i++){ if(val==0){ System.out.println(i); return; } val = (val*1...
Main.java:5: 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
u727995340|p02596|0
u727995340|p02596|0
codenet
Compile Error
402
v2_s184558238
s184558238
s184558238
p02596
p02596
u785708446
u785708446
1,596,418,420
2020-08-03T01:33:40
Main.java
import java.util.*; import java.io.*; class Main{ public static void main(String args[]){ int n=readI(); if(n%7==0){ n/=7; } if(n%2==0||n%==5){ pl("-1"); System.exit(0); } int k=1,m=0; for(int i=0;;i++){ k=k%n; m+=k; m=m%n; if(m==0){ pl((i+...
Main.java:9: error: illegal start of expression if(n%2==0||n%==5){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785708446|p02596|0
u785708446|p02596|0
codenet
Compile Error
2,437
v2_s306678468
s306678468
s306678468
p02596
p02596
u791317953
u791317953
1,599,253,522
2020-09-04T21:05:22
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int res = 1; long seven = 7; if(K%2==0){ System.out.println("-1"); return; }else{ while(seven!=0){ ...
Main.java:6: error: illegal non-ASCII digit int res = ?; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791317953|p02596|0
u791317953|p02596|0
codenet
Compile Error
452
v2_s716313340
s716313340
s716313340
p02596
p02596
u801296495
u801296495
1,598,404,906
2020-08-26T01:21:46
Main.java
import java.util.Scanner; //解説を参考 public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int[] a = new int[1000001]; a[1] = 7 % k; //初項 if (k % 2 != 0) { for (int i = 2; i <= k; i++) a[i] = (10 * a[i - 1] + 7) % k; for (int i = 1;...
Main.java:23: error: ';' expected System.out.println(-1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u801296495|p02596|0
u801296495|p02596|0
codenet
Compile Error
498
v2_s254222909
s254222909
s254222909
p02596
p02596
u870444278
u870444278
1,596,420,492
2020-08-03T02:08:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner stdinScanner = new Scanner(System.in); int K = stdinScanner.nextInt(); int count = 1; int current = 7; while (count <= K) { if (current % K == 0) { System.out...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u870444278|p02596|0
u870444278|p02596|0
codenet
Compile Error
492
v2_s437872979
s437872979
s437872979
p02596
p02596
u951856302
u951856302
1,596,585,547
2020-08-04T23:59:07
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { Integer input = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine()); Integer SEVEN = 7...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951856302|p02596|0
u951856302|p02596|0
codenet
Compile Error
536
v2_s025909570
s025909570
s025909570
p02597
p02597
u012999123
u012999123
1,596,634,890
2020-08-05T13:41: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(); sc.nextLine(); String s=sc.nextLine(); char[] c=s.toCharArray(); int[] r=new int[n+1]; for(int i=0;i<n;i++){ if(c[i]=='R'){ r[i+1]=r[i]+1; }else{ r[i...
Main.java:35: error: class, interface, enum, or record expected }import java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02597|0
u012999123|p02597|0
codenet
Compile Error
1,158
v2_s387193966
s387193966
s387193966
p02597
p02597
u124212130
u124212130
1,596,418,345
2020-08-03T01:32:25
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args){ // input N Scanner sc = new Scanner(System.in); long N = sc.nextInt(); int ANS = 0; String S = sc.next(); for (int i =0;i < N; i ++){ if ('W' == S.charAt(i))...
Main.java:16: error: incompatible types: possible lossy conversion from long to int String SS = S.substring(N-ANS); ^ Main.java:19: error: cannot find symbol if ('W' == SS.charAt(i)){ ^ symbol: variable i location: class Main No...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124212130|p02597|0
u124212130|p02597|0
codenet
Compile Error
618
v2_s498155785
s498155785
s498155785
p02597
p02597
u218740431
u218740431
1,596,424,716
2020-08-03T03:18:36
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int w = 0; int r = 0; String s = sc.next(); for(int i=0;i<a;i++){if(s.charAt(i)=='R'){r++;} } int ans = r; ...
Main.java:14: error: ')' or ',' expected ans=Math.min(ans,Math.max(w,r); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02597|0
u218740431|p02597|0
codenet
Compile Error
546
v2_s558057139
s558057139
s558057139
p02597
p02597
u354109345
u354109345
1,597,522,323
2020-08-15T20:12:03
Main.java
n = int(input()) c = input() count = 0 while "wr" in c: c = c.replace("w", "r", 1) c = c.replace("wr", "ww", 1) count += 1 print(count)
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354109345|p02597|0
u354109345|p02597|0
codenet
Compile Error
148
v2_s061557675
s061557675
s061557675
p02597
p02597
u398074546
u398074546
1,596,421,499
2020-08-03T02:24:59
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List mojiretsu = Arrays.asList(sc.next().sprit("")); for (int i=0;i<n;i++){ if (mojiretsu.get(i)="W" || mojiretsu.get(i+1)="R"){ if ...
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u398074546|p02597|0
u398074546|p02597|0
codenet
Compile Error
412
v2_s929165998
s929165998
s929165998
p02597
p02597
u420622981
u420622981
1,596,421,490
2020-08-03T02:24:50
Main.java
import java.util.*; import java.util.function.*; import java.math.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int N = Integer.valueOf(s.next()); char[] c = s.next().toCharArray(); int[] C = new int[N]; int left_one = N + 1; int right_zero = -1; for(...
Main.java:26: error: cannot find symbol left_one = nextOne(C, left_one); ^ symbol: method nextOne(int[],int) location: class Main Main.java:27: error: cannot find symbol right_zero = nextZero(C, right_zero); ^ symbol: method nextZero(int[],int) location: class Main 2 erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420622981|p02597|0
u420622981|p02597|0
codenet
Compile Error
715
v2_s058396184
s058396184
s058396184
p02597
p02597
u727995340
u727995340
1,596,418,277
2020-08-03T01:31:17
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] c = sc.nextInt().toCharArray(); int count = 0; int extra = 0; int len = c.length; for(char c: c){ if(c=='W') ...
Main.java:7: error: int cannot be dereferenced char[] c = sc.nextInt().toCharArray(); ^ Main.java:11: error: variable c is already defined in method main(String[]) for(char c: c){ ^ Main.java:16: error: bad operand types for binary operator '==' ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727995340|p02597|0
u727995340|p02597|0
codenet
Compile Error
591
v2_s443743131
s443743131
s443743131
p02597
p02597
u727995340
u727995340
1,596,418,337
2020-08-03T01:32:17
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); char[] c = sc.nextInt().toCharArray(); int count = 0; int extra = 0; int len = c.length; for(char ch: c){ if(ch=='W') ...
Main.java:7: error: int cannot be dereferenced char[] c = sc.nextInt().toCharArray(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727995340|p02597|0
u727995340|p02597|0
codenet
Compile Error
596
v2_s392209188
s392209188
s392209188
p02597
p02597
u854155653
u854155653
1,596,420,292
2020-08-03T02:04:52
Main.java
import java.io.IOException; import java.io.InputStream; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.BitSet; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.ut...
Main.java:293: error: cannot find symbol List<solve_abc174_d_rw> l = new ArrayList<>(); ^ symbol: class solve_abc174_d_rw location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u854155653|p02597|0
u854155653|p02597|0
codenet
Compile Error
7,299
v2_s962190992
s962190992
s962190992
p02597
p02597
u856422788
u856422788
1,597,755,970
2020-08-18T13:06:10
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.nextLine(); char[] chars = new char[n]; String str = sc.nextLine(); for (int i = 0 ; i < n ; i++){ chars[i] = str.charAt(i); ...
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
u856422788|p02597|0
u856422788|p02597|0
codenet
Compile Error
760
v2_s607637355
s607637355
s607637355
p02597
p02597
u856422788
u856422788
1,597,756,616
2020-08-18T13:16:56
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.nextLine(); char[] chars = sc.nextLine().toCharArray(); int count = 0; int backIndex = n - 1; for (int i = 0 ; i < n ; i++){ ...
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
u856422788|p02597|0
u856422788|p02597|0
codenet
Compile Error
729
v2_s714437781
s714437781
s714437781
p02597
p02597
u897853321
u897853321
1,596,419,296
2020-08-03T01:48:16
MainD.java
import java.util.*; public class MainD{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String stone = sc.next(); int sta = 0; count = 0; if(stone.charAt(0).equals("R") && stone.charAt(stone.length() -1).equals("W")){ sta++; } for(int i = ...
MainD.java:9: error: cannot find symbol count = 0; ^ symbol: variable count location: class MainD MainD.java:11: error: char cannot be dereferenced if(stone.charAt(0).equals("R") && stone.charAt(stone.length() -1).equals("W")){ ^ MainD.java:11: error: char cannot be dereferenced if(sto...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02597|0
u897853321|p02597|0
codenet
Compile Error
538
v2_s804009086
s804009086
s804009086
p02597
p02597
u897853321
u897853321
1,596,419,334
2020-08-03T01: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(); String stone = sc.next(); int sta = 0; count = 0; if(stone.charAt(0).equals("R") && stone.charAt(stone.length() -1).equals("W")){ sta++; } for(int i = 0...
Main.java:9: error: cannot find symbol count = 0; ^ symbol: variable count location: class Main Main.java:11: error: char cannot be dereferenced if(stone.charAt(0).equals("R") && stone.charAt(stone.length() -1).equals("W")){ ^ Main.java:11: error: char cannot be dereferenced if(stone.c...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02597|0
u897853321|p02597|0
codenet
Compile Error
537
v2_s057280174
s057280174
s057280174
p02597
p02597
u897853321
u897853321
1,596,419,446
2020-08-03T01:50:46
MainD.java
import java.util.*; public class MainD{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String stone = sc.next(); int sta = 0; int count = 0; for(int i = 0; i < stone.length(); i++){ if(stone.charAt(i) == W){ count++; } } if((stone.c...
MainD.java:12: error: cannot find symbol if(stone.charAt(i) == W){ ^ symbol: variable W location: class MainD MainD.java:17: error: cannot find symbol if((stone.charAt(i)).equals("R") && (stone.charAt(stone.length() -1)).equals("W")){ ^ symbol: variable i loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02597|0
u897853321|p02597|0
codenet
Compile Error
446
v2_s531843861
s531843861
s531843861
p02597
p02597
u897853321
u897853321
1,596,419,478
2020-08-03T01:51: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(); String stone = sc.next(); int sta = 0; int count = 0; for(int i = 0; i < stone.length(); i++){ if(stone.charAt(i) == W){ count++; } } if((stone.ch...
Main.java:12: error: cannot find symbol if(stone.charAt(i) == W){ ^ symbol: variable W location: class Main Main.java:17: error: char cannot be dereferenced if((stone.charAt(0)).equals("R") && (stone.charAt(stone.length() -1)).equals("W")){ ^ Main.java:17: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02597|0
u897853321|p02597|0
codenet
Compile Error
445
v2_s591719749
s591719749
s591719749
p02597
p02597
u897853321
u897853321
1,596,419,537
2020-08-03T01:52:17
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 stone = sc.next(); int sta = 0; int count = 0; for(int i = 0; i < stone.length(); i++){ if(stone.charAt(i) == "W"){ count++; } } if((stone....
Main.java:12: error: bad operand types for binary operator '==' if(stone.charAt(i) == "W"){ ^ first type: char second type: String Main.java:17: error: bad operand types for binary operator '==' if((stone.charAt(0)) == "R" && (stone.charAt(stone.length() -1)) =="W"){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u897853321|p02597|0
u897853321|p02597|0
codenet
Compile Error
436
v2_s169752974
s169752974
s169752974
p02597
p02597
u926632269
u926632269
1,596,532,077
2020-08-04T09:07:57
template1.java
import java.util.*; import java.io.*; public class template1{ public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); ...
template1.java:10: error: ';' expected int numR = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02597|0
u926632269|p02597|0
codenet
Compile Error
650
v2_s934494935
s934494935
s934494935
p02597
p02597
u926632269
u926632269
1,596,532,096
2020-08-04T09:08:16
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); i...
Main.java:10: error: ';' expected int numR = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02597|0
u926632269|p02597|0
codenet
Compile Error
645
v2_s010355706
s010355706
s010355706
p02597
p02597
u926632269
u926632269
1,596,532,119
2020-08-04T09:08:39
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] main) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); PrintWriter out = new PrintWriter(System.out); i...
Main.java:10: error: ';' expected int numR = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926632269|p02597|0
u926632269|p02597|0
codenet
Compile Error
652
v2_s355806417
s355806417
s355806417
p02597
p02597
u995015650
u995015650
1,596,418,609
2020-08-03T01:36:49
Main.java
8 WRWWRWRR 3
Main.java:1: error: class, interface, enum, or record expected 8 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u995015650|p02597|0
u995015650|p02597|0
codenet
Compile Error
13
v2_s019680131
s019680131
s019680131
p02598
p02598
u455911711
u455911711
1,596,419,401
2020-08-03T01:50:01
Main.java
import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.Comparator; import java.util.PriorityQueue; import java.util.StringTokenizer; public class Main { //FastIO io = new FastIO("in.txt"); long[] A; long N, K; long solve...
Main.java:36: error: cannot find symbol N = io.nextLong(); K = io.nextLong(); ^ symbol: variable io location: class Main Main.java:36: error: cannot find symbol N = io.nextLong(); K = io.nextLong(); ^ symbol: variable io location: class Main Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u455911711|p02598|0
u455911711|p02598|0
codenet
Compile Error
2,924
v2_s321725965
s321725965
s321725965
p02598
p02598
u465572759
u465572759
1,596,422,361
2020-08-03T02:39:21
Main.java
import java.util.Scanner; public class Main { static int N; static long K; static long[] A; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); K = sc.nextLong(); A = new long[N + 1]; long max2 = 0; for(int i ...
Main.java:47: error: cannot find symbol if(canSolve2(i)) { ^ symbol: variable i location: class Main Main.java:48: error: cannot find symbol System.out.println(i); ^ symbol: variable i location: class Main Main.java:49: error: break outside s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465572759|p02598|0
u465572759|p02598|0
codenet
Compile Error
1,455
v2_s466929272
s466929272
s466929272
p02598
p02598
u465572759
u465572759
1,596,422,402
2020-08-03T02:40:02
Main.java
import java.util.Scanner; public class Main { static int N; static long K; static long[] A; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); K = sc.nextLong(); A = new long[N + 1]; long max2 = 0; for(int i ...
Main.java:55: error: illegal start of expression static boolean canSolve(long num) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u465572759|p02598|0
u465572759|p02598|0
codenet
Compile Error
1,460
v2_s310835243
s310835243
s310835243
p02598
p02598
u547671064
u547671064
1,598,186,107
2020-08-23T12:35:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int N =sc.nextInt(); long K =sc.nextLong(); double A[] =new double[N]; for(int i=0;i<N;i++){ A[i] =sc.nextDouble();} List<String> B =Arrays.asList(A); Collections.sort(B...
Main.java:10: error: incompatible types: inference variable T has incompatible bounds List<String> B =Arrays.asList(A); ^ equality constraints: String lower bounds: double[] where T is a type-variable: T extends Object declared in method <T>asList(T...) Main.java:13: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02598|0
u547671064|p02598|0
codenet
Compile Error
648
v2_s312989574
s312989574
s312989574
p02598
p02598
u547671064
u547671064
1,598,186,168
2020-08-23T12:36:08
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int N =sc.nextInt(); long K =sc.nextLong(); double A[] =new double[N]; for(int i=0;i<N;i++){ A[i] =sc.nextDouble();} List<Double> B =Arrays.asList(A); Collections.sort(B...
Main.java:10: error: incompatible types: inference variable T has incompatible bounds List<Double> B =Arrays.asList(A); ^ equality constraints: Double lower bounds: double[] where T is a type-variable: T extends Object declared in method <T>asList(T...) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02598|0
u547671064|p02598|0
codenet
Compile Error
648
v2_s237973018
s237973018
s237973018
p02598
p02598
u547671064
u547671064
1,598,186,250
2020-08-23T12:37: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(); long K =sc.nextLong(); double A[] =new double[N]; for(int i=0;i<N;i++){ A[i] =sc.nextDouble();} List<double> B =Arrays.asList(A); Collections.sort(B...
Main.java:10: error: unexpected type List<double> B =Arrays.asList(A); ^ required: reference found: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02598|0
u547671064|p02598|0
codenet
Compile Error
648
v2_s508056142
s508056142
s508056142
p02598
p02598
u673076385
u673076385
1,596,477,809
2020-08-03T18:03:29
Main.java
import java.util.*; import java.io.*; public class Main{ public static int pos(int a[],int l,int c){ for(int i=0;i<a.length;i++){ if(a[i]%l==0)a[i]--; c-=a[i]/l; } return c>=0; } public static void main(String []args) throws IOException{ Reader sc=new...
Main.java:10: error: incompatible types: boolean cannot be converted to int return c>=0; ^ Main.java:25: error: incompatible types: int cannot be converted to boolean if(pos(a,mid,c)){ ^ Main.java:26: error: cannot find symbol l=mid; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u673076385|p02598|0
u673076385|p02598|0
codenet
Compile Error
4,256
v2_s583358270
s583358270
s583358270
p02598
p02598
u752907799
u752907799
1,597,286,980
2020-08-13T02:49:40
Main.java
from sys import stdin rs = stdin.readline ri = lambda : int(rs()) ril = lambda : list(map(int, rs().split())) def main(): N, K = ril() A = ril() l = 1 r = 1000000000 while l < r: m = (l + r) // 2 k = 0 for a in A: k += (a - 1) // m if k <= K: ...
Main.java:1: error: class, interface, enum, or record expected from sys import stdin ^ Main.java:22: error: unclosed character literal if __name__ == '__main__': ^ Main.java:22: error: unclosed character literal if __name__ == '__main__': ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752907799|p02598|0
u752907799|p02598|0
codenet
Compile Error
414
v2_s831300667
s831300667
s831300667
p02598
p02598
u853817705
u853817705
1,596,419,902
2020-08-03T01:58:22
Main.java
//#include<bits/stdc++.h> #include<iostream> #include<algorithm> #include<cmath> #include<vector> #include<queue> #include<set> /* #include<boost/multiprecision/cpp_int.hpp> #include <boost/multiprecision/cpp_dec_float.hpp> #include <boost/rational.hpp> namespace mp = boost::multiprecision; using Real = mp::number<mp:...
Main.java:2: error: illegal character: '#' #include<iostream> ^ Main.java:3: error: illegal character: '#' #include<algorithm> ^ Main.java:4: error: illegal character: '#' #include<cmath> ^ Main.java:5: error: illegal character: '#' #include<vector> ^ Main.java:6: error: illegal character: '#' #include<queue> ^ Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u853817705|p02598|0
u853817705|p02598|0
codenet
Compile Error
1,286
v2_s110789757
s110789757
s110789757
p02598
p02598
u929611589
u929611589
1,596,422,214
2020-08-03T02:36:54
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long[] a = new long[n]; for(int i=0; i<n; i++) { a[i] = sc.nextInt(); } long l = 1; long r = ...
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: 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
u929611589|p02598|0
u929611589|p02598|0
codenet
Compile Error
956
v2_s095430735
s095430735
s095430735
p02599
p02599
u218740431
u218740431
1,596,422,896
2020-08-03T02:48:16
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int q = sc.nextInt(); int [] in = new int [n]; for(int i=0;i<a;i++){ in[i] = sc.nextInt(); } ...
Main.java:8: error: cannot find symbol for(int i=0;i<a;i++){ ^ symbol: variable a location: class Main Main.java:12: error: cannot find symbol System.out.println(b); ^ symbol: variable b location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02599|0
u218740431|p02599|0
codenet
Compile Error
391
v2_s731277874
s731277874
s731277874
p02599
p02599
u222548870
u222548870
1,596,424,461
2020-08-03T03:14:21
Main.java
// Java code to find number of distinct numbers // in a subarray import java.io.*; import java.util.*; class GFG { static int MAX = 1000001; // structure to store queries static class Query { int l, r, idx; } // updating the bit array static void update(int ...
Main.java:92: error: variable q is already defined in method main(String[]) int q = queries.length; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222548870|p02599|0
u222548870|p02599|0
codenet
Compile Error
3,142
v2_s054641252
s054641252
s054641252
p02599
p02599
u273816974
u273816974
1,596,765,228
2020-08-07T01:53:48
Main.java
import java.util.*; import java.util.function.BinaryOperator; import java.util.function.UnaryOperator; public class Main { static int SIZE = 500001; public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int n = sc.nextInt(...
Main.java:63: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class Main Main.java:63: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter loc...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u273816974|p02599|1
u273816974|p02599|1
codenet
Compile Error
2,587
v2_s033521243
s033521243
s033521243
p02599
p02599
u327702064
u327702064
1,596,423,794
2020-08-03T03:03:14
Main.java
#include<iostream> #include<algorithm> #include<cstring> using namespace std; const int N=100010; int a[N],b[N],rt[N*20],ls[N*20],rs[N*20],sum[N*20],vis[N*20]; int id; void build(int &o,int l,int r) { o=++id; sum[o]=0; if(l==r) return; int m=(l+r)>>1; build(ls[o],l,m); build(rs[o],m+1,r); } void update(int ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<algorithm> ^ Main.java:3: error: illegal character: '#' #include<cstring> ^ Main.java:6: error: class, interface, enum, or record expected const int N=100010; ^ Main.java:7: error: class, interface, enum,...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u327702064|p02599|0
u327702064|p02599|0
codenet
Compile Error
1,372
v2_s572625945
s572625945
s572625945
p02599
p02599
u358894498
u358894498
1,596,422,500
2020-08-03T02:41:40
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int q=sc.nextInt(); int arr[]=new int[n+1]; for(int i=0;i<n+1;i++){ arr[i]=sc.nextInt(); } for(int i=0;i<q;i++){...
Main.java:26: error: ';' expected m.add(arr[i]) ^ Main.java:31: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358894498|p02599|0
u358894498|p02599|0
codenet
Compile Error
537
v2_s908388329
s908388329
s908388329
p02599
p02599
u371149954
u371149954
1,596,420,750
2020-08-03T02:12:30
CountRangeCoveringRange.java
import data_structure.fenwick.FenwickTree; import java.util.Arrays; public class CountRangeCoveringRange { /** * Counts how many ranges in [l,r). * Answers multiple query. * * O((n+q)log(n+q) where q = query.length, n = ranges.length * * @param ranges array of [l,r) * @param que...
CountRangeCoveringRange.java:1: error: package data_structure.fenwick does not exist import data_structure.fenwick.FenwickTree; ^ CountRangeCoveringRange.java:30: error: cannot find symbol FenwickTree bit = new FenwickTree(1000010); ^ symbol: class FenwickTree location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371149954|p02599|0
u371149954|p02599|0
codenet
Compile Error
1,368
v2_s976878487
s976878487
s976878487
p02599
p02599
u385461315
u385461315
1,596,419,658
2020-08-03T01:54:18
Main.java
import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.nextLine(); // N と Q の行読み飛ばし String str = scan.nextLine(); String[] array = str.split(" "); ...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u385461315|p02599|0
u385461315|p02599|0
codenet
Compile Error
673
v2_s127229292
s127229292
s127229292
p02599
p02599
u455911711
u455911711
1,596,676,615
2020-08-06T01:16:55
Main.java
//package f; import java.io.*; import java.util.*; public class Main { FastIO io = new FastIO(); int N, Q; int[] C; Qry[] Qs; static BIT bt = new BIT(500005); static int[] mxis = new int[500005]; void solve(){ Arrays.sort(Qs, new Comparator<Qry>() { @Override ...
Main.java:138: error: invalid method declaration; return type required public BIT(int n){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u455911711|p02599|1
u455911711|p02599|1
codenet
Compile Error
4,720
v2_s278351045
s278351045
s278351045
p02599
p02599
u655347112
u655347112
1,600,327,843
2020-09-17T07:30:43
Main.java
class BIT: def __init__(self,n): self.n = n self.tree = [0]*(n+1) def sum(self,x): sum = 0 while(x>0): sum+=self.tree[x] x-=x&(-x) return sum def update(self,x,k): while(x<=self.n): self.tree[x]+=k x+=x&(-x) ...
Main.java:1: error: '{' expected class BIT: ^ Main.java:25: error: '{' expected class Query: ^ Main.java:32: error: class, interface, enum, or record expected n,q = map(int,input().split()) ^ Main.java:54: error: illegal character: '#' # print('\n'.join(str(ans[i]) for i in ran...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655347112|p02599|1
u655347112|p02599|1
codenet
Compile Error
1,329
v2_s534989953
s534989953
s534989953
p02599
p02599
u727995340
u727995340
1,596,419,324
2020-08-03T01:48:44
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 q = sc.nextInt(); int ar[] = new int[n+1]; HashSet<Integer> set = new HashSet<>(); for(int i =0;i<n;i++){ set.add(s.nextIn...
Main.java:11: error: cannot find symbol set.add(s.nextInt()); ^ symbol: variable s location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u727995340|p02599|0
u727995340|p02599|0
codenet
Compile Error
607
v2_s715554660
s715554660
s715554660
p02599
p02599
u729186675
u729186675
1,596,473,887
2020-08-03T16:58:07
Main.java
mport java.util.Arrays; import java.util.PriorityQueue; import java.util.Queue; import java.util.Scanner; /** * 解説通りに実装したソースコード * * https://atcoder.jp/contests/abc174/submissions/15644133 と https://atcoder.jp/contests/abc174/submissions/15644479 * にも参考 */ public class Main { public static void main(String[] ar...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Arrays; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.PriorityQueue; ^ Main.java:3: error: class, interface, enum, or record expected import java.util.Queue; ^ Main.java:4: error: class, interface, enum, o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u729186675|p02599|1
u729186675|p02599|1
codenet
Compile Error
2,258
v2_s079055007
s079055007
s079055007
p02599
p02599
u752129189
u752129189
1,596,420,181
2020-08-03T02:03:01
Main.java
import java.io.*; import java.util.*; class Main { static HashSet<Integer>[] segment; static void build(int i, int s, int e, int[] arr) { if (s == e) { segment[i].add(arr[s]); return; } build(2 * i, s,...
Main.java:51: error: illegal character: '\' \\ ^ Main.java:51: error: illegal character: '\' \\ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u752129189|p02599|0
u752129189|p02599|0
codenet
Compile Error
2,323
v2_s787114965
s787114965
s787114965
p02600
p02600
u141764165
u141764165
1,595,729,294
2020-07-26T02:08:14
Main.java
import java.util.Scanner; Class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int a=0,b=0,c=0; a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); int k=sc.nextInt(); if(a>b&&b>c) System.out.print("Yes"); else System.out.print("No"); } }
Main.java:2: error: class, interface, enum, or record expected Class Main{ ^ 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:15: error: class, interface, enum, o...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u141764165|p02600|0
u141764165|p02600|0
codenet
Compile Error
315
v2_s996697749
s996697749
s996697749
p02600
p02600
u324739185
u324739185
1,595,725,492
2020-07-26T01:04:52
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 x = sc.nextInt(); if (400 <= x < 600) { System.out.println(8); } else if (600 <= x < 800) { System...
Main.java:9: error: bad operand types for binary operator '<' if (400 <= x < 600) { ^ first type: boolean second type: int Main.java:11: error: bad operand types for binary operator '<' } else if (600 <= x < 800) { ^ first type: boolean second type: int Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324739185|p02600|0
u324739185|p02600|0
codenet
Compile Error
725
v2_s093807295
s093807295
s093807295
p02600
p02600
u415478415
u415478415
1,595,725,814
2020-07-26T01:10:14
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); PrintWriter prnt = new PrintWriter(System.out); int x = parseInt(read.readLine()); ...
Main.java:11: error: cannot find symbol int x = parseInt(read.readLine()); ^ symbol: method parseInt(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u415478415|p02600|0
u415478415|p02600|0
codenet
Compile Error
930
v2_s286648572
s286648572
s286648572
p02600
p02600
u420622981
u420622981
1,595,725,437
2020-07-26T01:03:57
Main.java
import java.util.*; import java.util.function.*; import java.math.*; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int N = Integer.valueOf(s.next()); int ret = 0; if(N < 600) { ret = 8; }else if(N < 800) { ret = 7; }else if(N < 1000) { ret = 6;...
Main.java:31: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u420622981|p02600|0
u420622981|p02600|0
codenet
Compile Error
537
v2_s735140277
s735140277
s735140277
p02600
p02600
u461416922
u461416922
1,595,725,726
2020-07-26T01:08:46
Main.java
import java.util.* public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int grade = 0; if(x > 400 && x < 599){ grade = 8; }else if(x >600 && x < 799){ grade = 7; }else if(x > 800 && x < 999){ grade = 6; }else if(x >1...
Main.java:1: error: ';' expected import java.util.* ^ Main.java:23: error: ')' expected }else if(x > 1800 &6 x < 1999){ ^ Main.java:23: error: illegal start of type }else if(x > 1800 &6 x < 1999){ ^ Main.java:23: error: not a statement }else ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u461416922|p02600|0
u461416922|p02600|0
codenet
Compile Error
605
v2_s006370585
s006370585
s006370585
p02600
p02600
u489126017
u489126017
1,596,145,197
2020-07-30T21:39:57
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int X = sc.nextInt(); if(400<= X && X < 600){ System.out.println(8); }elseif(600 <= X && X < 800){ System.out.println(7); }elseif(800<=X && X < 1000){ ...
Main.java:8: error: ';' expected }elseif(600 <= X && X < 800){ ^ Main.java:10: error: ';' expected }elseif(800<=X && X < 1000){ ^ Main.java:12: error: ';' expected }elseif(1000<=X && X<1200){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u489126017|p02600|0
u489126017|p02600|0
codenet
Compile Error
708
v2_s867723178
s867723178
s867723178
p02600
p02600
u540595601
u540595601
1,598,232,151
2020-08-24T01:22:31
Main.java
import java.io.*; class Main() { static void main(String args[])throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int x=Integer.parseInt(br.readLine()); if(x>=400 && x<600) System.out.println("8"); else if(x>=600 && x<800) System.out.println("7"...
Main.java:2: error: '{' expected class Main() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u540595601|p02600|0
u540595601|p02600|0
codenet
Compile Error
719
v2_s926204283
s926204283
s926204283
p02600
p02600
u541055501
u541055501
1,595,725,678
2020-07-26T01:07:58
A.java
import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.Field; import lib.io.ExtendedScanner; import lib.io.Out; public class A { public static void main(String[] args) throws Exception { Field f = System.out.getClass().getDeclaredField("autoFlush"); f.setAccessible(true)...
A.java:5: error: package lib.io does not exist import lib.io.ExtendedScanner; ^ A.java:6: error: package lib.io does not exist import lib.io.Out; ^ A.java:24: error: cannot find symbol public static void solve(ExtendedScanner sc, Out out) { ^ symbol: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u541055501|p02600|0
u541055501|p02600|0
codenet
Compile Error
757
v2_s084921074
s084921074
s084921074
p02600
p02600
u547671064
u547671064
1,595,733,382
2020-07-26T03:16:22
Main.java
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/200; System.out.println(10-b); } }
Main.java:4: error: cannot find symbol Scanner s =new scanner(System.in); ^ symbol: class scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02600|0
u547671064|p02600|0
codenet
Compile Error
197
v2_s872122178
s872122178
s872122178
p02600
p02600
u547671064
u547671064
1,595,733,535
2020-07-26T03:18:55
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner s =new Scanner(System.in); int a =s.nextInt()/200; System.out.println(10-b); } }
Main.java:6: error: cannot find symbol System.out.println(10-b); ^ symbol: variable b location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02600|0
u547671064|p02600|0
codenet
Compile Error
184