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_s687959641
s687959641
s687959641
p02713
p02713
u052509991
u052509991
1,586,902,778
2020-04-14T22:19:38
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int k = Integer.parseInt(br.readLine()); int sum = 0; for (int i = 1; i ...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown int k = Integer.parseInt(br.readLine()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02713|0
u052509991|p02713|0
codenet
Compile Error
693
v2_s377162888
s377162888
s377162888
p02713
p02713
u052509991
u052509991
1,587,092,819
2020-04-17T03:06:59
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main throws IOException(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int k = Integer.parseInt(br.readLine()); long sum = 0L...
Main.java:6: error: '(' expected public static void main throws IOException(String[] args) { ^ Main.java:6: error: invalid method declaration; return type required public static void main throws IOException(String[] args) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02713|1
u052509991|p02713|1
codenet
Compile Error
585
v2_s212691082
s212691082
s212691082
p02713
p02713
u052509991
u052509991
1,587,093,212
2020-04-17T03:13:32
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int k = Integer.parseInt(br.readLine()); long sum = 0L...
Main.java:20: error: cannot find symbol while (b != 0) { ^ symbol: variable b location: class Main Main.java:21: error: cannot find symbol int t = b; ^ symbol: variable b location: class Main Main.java:22: error: cannot find symbol b = a % b; ^ symbol: variab...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02713|1
u052509991|p02713|1
codenet
Compile Error
641
v2_s383218223
s383218223
s383218223
p02713
p02713
u114473786
u114473786
1,586,743,926
2020-04-13T02:12:06
Main.java
mport java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); //繰り返す回数 int a; //割られる数_最大公約数 int b; //割る数 int c; //あまり int max; //最大公約数 int sum = 0; for(int i=1;i<=k;i++){ for(int j=1;j<=k;j++){ for(...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ Main.java:15: error: ';' expected for(int l=1,l<=k;l++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114473786|p02713|0
u114473786|p02713|0
codenet
Compile Error
1,048
v2_s250537042
s250537042
s250537042
p02713
p02713
u114473786
u114473786
1,586,743,961
2020-04-13T02:12:41
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); //繰り返す回数 int a; //割られる数_最大公約数 int b; //割る数 int c; //あまり int max; //最大公約数 int sum = 0; for(int i=1;i<=k;i++){ for(int j=1;j<=k;j++){ for...
Main.java:15: error: ';' expected for(int l=1,l<=k;l++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u114473786|p02713|0
u114473786|p02713|0
codenet
Compile Error
1,049
v2_s409023127
s409023127
s409023127
p02713
p02713
u134743507
u134743507
1,590,184,373
2020-05-22T21:52:53
Main.java
import java.util.Scanner; class main{ static int gcd_2(int a,int b){ if(b > a){ int tmp = a; a = b; b = tmp; } if(b == 0){ return a; } return gcd_2(a,a%b) } static int gcd_3(int a,int b,int c){ int x = gcd_2(a,b); return gcd_2(x,c); } static int sum_gc...
Main.java:12: error: ';' expected return gcd_2(a,a%b) ^ Main.java:22: error: illegal start of expression for(int i = 1;i < = number;i++){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134743507|p02713|0
u134743507|p02713|0
codenet
Compile Error
714
v2_s686678623
s686678623
s686678623
p02713
p02713
u134743507
u134743507
1,590,184,406
2020-05-22T21:53:26
Main.java
import java.util.Scanner; class main{ static int gcd_2(int a,int b){ if(b > a){ int tmp = a; a = b; b = tmp; } if(b == 0){ return a; } return gcd_2(a,a%b); } static int gcd_3(int a,int b,int c){ int x = gcd_2(a,b); return gcd_2(x,c); } static int sum_g...
Main.java:22: error: illegal start of expression for(int i = 1;i < = number;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u134743507|p02713|0
u134743507|p02713|0
codenet
Compile Error
716
v2_s993422412
s993422412
s993422412
p02713
p02713
u143866860
u143866860
1,589,123,372
2020-05-10T15:09:32
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int sum = 0; for (int a = 1; a <= k; a++) { for (int b = 1; b <= k; b++) { for (int c = 1; c <= k; c++) { ...
Main.java:12: error: cannot find symbol sum += gcd(a, gcd(b,c)); ^ symbol: method gcd(int,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u143866860|p02713|0
u143866860|p02713|0
codenet
Compile Error
443
v2_s862511124
s862511124
s862511124
p02713
p02713
u153302617
u153302617
1,586,741,445
2020-04-13T01:30:45
Main.java
public class Main { static Scanner sc = new Scanner(System.in); public static int gcd (int a, int b) { int temp; while((temp = a%b)!=0) { a = b; b = temp; } return b; } public static void main(String[] args) { int N = sc.nextInt(); int answer = 0; ...
Main.java:2: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol static Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153302617|p02713|0
u153302617|p02713|0
codenet
Compile Error
605
v2_s572254778
s572254778
s572254778
p02713
p02713
u167206842
u167206842
1,586,747,402
2020-04-13T03:10:02
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 ans = 0; for(int a=1;a<=K;a++){ for(int b=1;b<=K;b++){ for(int c=1;c<=K;c++){ ans=ans+Math.gcd(Math.gcd(a,b),c); } } ...
Main.java:11: error: cannot find symbol ans=ans+Math.gcd(Math.gcd(a,b),c); ^ symbol: method gcd(int,int) location: class Math 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u167206842|p02713|1
u167206842|p02713|0
codenet
Compile Error
366
v2_s370874387
s370874387
s370874387
p02713
p02713
u285237428
u285237428
1,586,742,552
2020-04-13T01:49:12
Main.java
import java.math.BigInteger; import java.util.*; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); List<Integer> lis...
Main.java:52: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u285237428|p02713|0
u285237428|p02713|0
codenet
Compile Error
1,519
v2_s218819583
s218819583
s218819583
p02713
p02713
u374018235
u374018235
1,586,828,419
2020-04-14T01:40:19
Main.java
import java.io.*; class Calc{ public static int gcd(int a, int b, int c) { int r; while (b > 0) { r = a % b; a = b; b = r; } while (c > 0) { r = a % c; a = c; c = r; } return a; } } class M...
Main.java:34: error: variable ans might not have been initialized ans += Calc.gcd(i,j,k); ^ Main.java:39: error: variable ans might not have been initialized System.out.println(Integer.toString(ans)); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374018235|p02713|0
u374018235|p02713|0
codenet
Compile Error
955
v2_s165642825
s165642825
s165642825
p02713
p02713
u435051977
u435051977
1,586,740,733
2020-04-13T01:18:53
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int sum = 0; for(int i = 1; i <= K; i ++) { for(int j = 1; j <= K; j ++) { for(int k = 1; k <= K; k ++) { sum += gcd(gcd(i, j), k); } } } System.out.println(sum); } ...
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
u435051977|p02713|0
u435051977|p02713|0
codenet
Compile Error
588
v2_s358301278
s358301278
s358301278
p02713
p02713
u499889187
u499889187
1,587,252,349
2020-04-18T23:25:49
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { int K- int a,b,c; try (Scanner sc = new Scanner(System.in)) { K = sc.nextInt(); } a = b = c = K; long result = 0; for (int i = 1; i <= a; i++) { fo...
Main.java:5: error: ';' expected int K- ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u499889187|p02713|0
u499889187|p02713|0
codenet
Compile Error
818
v2_s482497795
s482497795
s482497795
p02713
p02713
u547671064
u547671064
1,586,741,339
2020-04-13T01:28:59
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 x=0; static int gcd (int a, int b) { int r; while((r = a%b)!=0) { a = b; b = r; } return b; } for(int i=0;i<K+1;i++){ x=x+i; for(int j=i+1;...
Main.java:7: error: illegal start of expression static int gcd (int a, int b) { ^ Main.java:15: error: illegal start of type for(int i=0;i<K+1;i++){ ^ Main.java:15: error: > or ',' expected for(int i=0;i<K+1;i++){ ^ Main.java:15: error: <identifier> expected for(int i=0;i<K+1;...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02713|0
u547671064|p02713|0
codenet
Compile Error
499
v2_s190531541
s190531541
s190531541
p02713
p02713
u551325550
u551325550
1,588,737,176
2020-05-06T03:52:56
Main.java
import java.util.*; import java.util.function.LongUnaryOperator; class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); n = sc.nextInt(); ans = 0; for(int i = 1;i<=n;i++){ for(int j =1; i<=n;j++){ for(int k =1;i<=n;k++){ ...
Main.java:6: error: cannot find symbol n = sc.nextInt(); ^ symbol: variable n location: class Main Main.java:7: error: cannot find symbol ans = 0; ^ symbol: variable ans location: class Main Main.java:8: error: cannot find symbol for(int i = 1;i<=n;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u551325550|p02713|0
u551325550|p02713|0
codenet
Compile Error
891
v2_s525118759
s525118759
s525118759
p02713
p02713
u641393644
u641393644
1,586,808,010
2020-04-13T20:00:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String line = scanner.next(); int N = Integer.parseInt(line); int sum = 0; for (int i =1; i<=K; i++){ for (int j = 1; j<=K; j++){ for (int l = 1; l<=K; l++){ ...
Main.java:9: error: cannot find symbol for (int i =1; i<=K; i++){ ^ symbol: variable K location: class Main Main.java:10: error: cannot find symbol for (int j = 1; j<=K; j++){ ^ symbol: variable K location: class Main Main.java:11: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u641393644|p02713|0
u641393644|p02713|0
codenet
Compile Error
392
v2_s092102110
s092102110
s092102110
p02713
p02713
u657818166
u657818166
1,586,884,357
2020-04-14T17:12:37
Main.java
class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = (int) scanner.nextInt(); int ans = 0; for (int i = 1; i <= n; i++){ for (int j = 1; j <= n; j++){ for (int k = 1; k <= n; k++){ int c = gcd(i, j); ans+...
Main.java:14: error: ';' expected System.out.println(ans) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u657818166|p02713|0
u657818166|p02713|0
codenet
Compile Error
582
v2_s070682609
s070682609
s070682609
p02713
p02713
u657818166
u657818166
1,586,884,385
2020-04-14T17:13:05
Main.java
class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = (int) scanner.nextInt(); int ans = 0; for (int i = 1; i <= n; i++){ for (int j = 1; j <= n; j++){ for (int k = 1; k <= n; k++){ int c = gcd(i, j); 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 Main.java:9: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u657818166|p02713|0
u657818166|p02713|0
codenet
Compile Error
583
v2_s351254274
s351254274
s351254274
p02713
p02713
u690844139
u690844139
1,588,528,065
2020-05-03T17:47:45
Main.java
import java.util.*; import java.utii.Arrays; public class Main{ private static int euclid(int m, int n) { if(n==0){ return m; } else{ return euclid(n, m%n); } } public static void main(String[] args){ Scanner sc = new Scanner(System.in); ...
Main.java:2: error: package java.utii does not exist import java.utii.Arrays; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u690844139|p02713|0
u690844139|p02713|0
codenet
Compile Error
641
v2_s215143240
s215143240
s215143240
p02713
p02713
u699628455
u699628455
1,587,582,211
2020-04-22T19:03:31
Main.java
import java.util.*; class Main{ private static int gcd(int a,int b){ if(a<b) return gcd(b,a); if(b==1) return a; return (b,b%a); } static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int N = sc.nextInt(); int ans=0; for(int a=...
Main.java:6: error: ')' expected return (b,b%a); ^ Main.java:6: error: ';' expected return (b,b%a); ^ Main.java:16: error: illegal start of expression } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02713|2
u699628455|p02713|2
codenet
Compile Error
534
v2_s218099300
s218099300
s218099300
p02713
p02713
u699628455
u699628455
1,587,582,299
2020-04-22T19:04:59
Main.java
import java.util.*; class Main{ private static int gcd(int a,int b){ if(a<b) return gcd(b,a); if(b==1) return a; return gcd(b,b%a); } static Scanner sc=new Scanner(System.in); public static void main(String[] args){ int N = sc.nextInt(); int ans=0; for(int...
Main.java:12: error: cannot find symbol for(int a=1;i<=N;i++){ ^ symbol: variable i location: class Main Main.java:12: error: cannot find symbol for(int a=1;i<=N;i++){ ^ symbol: variable i location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699628455|p02713|2
u699628455|p02713|2
codenet
Compile Error
537
v2_s858645385
s858645385
s858645385
p02713
p02713
u733654888
u733654888
1,587,698,951
2020-04-24T03:29:11
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int result = 0; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { for(int k = 1; k <= n; k++) { r...
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
u733654888|p02713|0
u733654888|p02713|0
codenet
Compile Error
715
v2_s024263414
s024263414
s024263414
p02713
p02713
u753092134
u753092134
1,586,741,588
2020-04-13T01:33:08
Main.java
import java.util.*; import java.lang.*; public class Main{ public static int hcf(int a, int b) { if (b == 0) return a; else return hcf(b, a % b); } public static int hcf(int a, int b, int c) { return hcf(hcf(a, b), c) public static void main(String[]args){ Scanner sc=new Scanner(System.in); int ...
Main.java:13: error: ';' expected return hcf(hcf(a, b), c) ^ Main.java:14: error: illegal start of expression public static void main(String[]args){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u753092134|p02713|0
u753092134|p02713|0
codenet
Compile Error
661
v2_s541146503
s541146503
s541146503
p02713
p02713
u753092134
u753092134
1,586,741,649
2020-04-13T01:34:09
Main.java
import java.util.*; import java.lang.*; public class Main{ public static int hcf(int a, int b) { if (b == 0) return a; else return hcf(b, a % b); } public static int hcf(int a, int b, int c) { return hcf(hcf(a, b), c);} public static void main(String[]args){ Scanner sc=new Scanner(System.in); in...
Main.java:17: error: unexpected type ArrayList<int> val = new ArrayList<int>(); ^ required: reference found: int Main.java:17: error: unexpected type ArrayList<int> val = new ArrayList<int>(); ^ required: reference found: int 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u753092134|p02713|0
u753092134|p02713|0
codenet
Compile Error
664
v2_s057219036
s057219036
s057219036
p02713
p02713
u753092134
u753092134
1,586,742,182
2020-04-13T01:43:02
Main.java
import java.util.*; import java.lang.*; public class Main{ public static int hcf(int a, int b) { if (b == 0) return a; else return hcf(b, a % b);} public static void main(String[]args){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); ArrayList<Integer> val = new ArrayList<Integer>() ...
Main.java:13: error: ';' expected ArrayList<Integer> val = new ArrayList<Integer>() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u753092134|p02713|0
u753092134|p02713|0
codenet
Compile Error
600
v2_s826651922
s826651922
s826651922
p02713
p02713
u935077873
u935077873
1,591,298,235
2020-06-04T19:17:15
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long a = 1; long b = 1; long c = 1; //gvd(a,b,c)のような形にする long N = sc.nextLong(); long total = 0; String OK = ""; //メソッドインスタンス化 sample gcd1 = new sample(); //(1,1,1)(1,1,2)...
Main.java:17: error: cannot find symbol sample gcd1 = new sample(); ^ symbol: class sample location: class Main Main.java:17: error: cannot find symbol sample gcd1 = new sample(); ^ symbol: class sample location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935077873|p02713|0
u935077873|p02713|0
codenet
Compile Error
1,284
v2_s719607150
s719607150
s719607150
p02713
p02713
u980607863
u980607863
1,586,740,497
2020-04-13T01:14:57
Main.java
import java.util.*; public class Main(){ static int gcd (int a, int b) {return b>0 ? gcd(b, a%b) : a;} public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); long ans = 0; for(int a = 1 ; a <= k ; a++){ for(int b = 1; b <= k ; b++){ for(i...
Main.java:3: error: '{' expected public class Main(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02713|0
u980607863|p02713|0
codenet
Compile Error
436
v2_s222733631
s222733631
s222733631
p02713
p02713
u997997339
u997997339
1,586,811,923
2020-04-13T21:05:23
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(); short n; short gcd; int sum = 0; for (int x = 1; x <= k; x++) { for (int y = 1; y <= k; y++) { ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997997339|p02713|0
u997997339|p02713|0
codenet
Compile Error
908
v2_s162856955
s162856955
s162856955
p02714
p02714
u000109808
u000109808
1,586,744,404
2020-04-13T02:20:04
Main.java
39 RBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBB
Main.java:1: error: class, interface, enum, or record expected 39 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u000109808|p02714|0
u000109808|p02714|0
codenet
Compile Error
42
v2_s359471723
s359471723
s359471723
p02714
p02714
u012999123
u012999123
1,586,743,325
2020-04-13T02:02:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int l= sc.nextInt(); String s = sc.next(); //System.out.println(s); char[] c=s.toCharArray(); int r=0; int g=0; int b=0; for(int i=0;i<l;i++){ if(c[i]=='R'){ r++; }...
Main.java:43: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02714|0
u012999123|p02714|0
codenet
Compile Error
851
v2_s517092629
s517092629
s517092629
p02714
p02714
u012999123
u012999123
1,586,745,081
2020-04-13T02:31:21
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int l= sc.nextInt(); String s = sc.next(); //System.out.println(s); char[] c=s.toCharArray(); int r=0; int g=0; int b=0; for(int i=0;i<l;i++){ if(c[i]=='R'){ r++; }...
Main.java:49: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02714|0
u012999123|p02714|0
codenet
Compile Error
972
v2_s741804193
s741804193
s741804193
p02714
p02714
u087672117
u087672117
1,586,742,094
2020-04-13T01:41:34
Main.java
import java.lang.reflect.Array; import java.util.Arrays; import java.util.Scanner; import java.util.stream.Stream; import com.sun.xml.internal.ws.message.ByteArrayAttachment; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); ...
Main.java:6: error: package com.sun.xml.internal.ws.message does not exist import com.sun.xml.internal.ws.message.ByteArrayAttachment; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u087672117|p02714|0
u087672117|p02714|0
codenet
Compile Error
913
v2_s651886876
s651886876
s651886876
p02714
p02714
u168952263
u168952263
1,586,746,790
2020-04-13T02:59:50
Main.java
import java.io.BufferedInputStream; import java.util.Scanner; public class Main { private static long slove(String p,long all){ char m[]=p.toCharArray(); for(int k=1;k<=p.length()/2;k++){ for(int i=0;i<m.length;i++){ if(i+2*k>=p.length()) break; ...
Main.java:38: error: cannot find symbol System.out.println(D.slove(p,all)); ^ symbol: variable D location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u168952263|p02714|0
u168952263|p02714|0
codenet
Compile Error
1,106
v2_s054284256
s054284256
s054284256
p02714
p02714
u186052266
u186052266
1,586,745,199
2020-04-13T02:33:19
Main.java
public class Main { //public class App { public static void main(String[] args){ //スキャン Scanner s = new Scanner(System.in); // 入力 int n = Integer.parseInt(s.next()); String text =s.next(); HashSet<String> A = new HashSet<String>(); int an = 0; for(int i = 3 ...
Main.java:6: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: error: cannot find...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02714|0
u186052266|p02714|0
codenet
Compile Error
958
v2_s830768556
s830768556
s830768556
p02714
p02714
u226917791
u226917791
1,586,743,426
2020-04-13T02:03:46
Main.java
import java.util.HashMap; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); String s = sc.next(); int ans = 0; //0R, 1G, 2B boolean[] rgb = new boolean[3]; ...
Main.java:31: error: reached end of file while parsing System.out.println(ans); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u226917791|p02714|0
u226917791|p02714|0
codenet
Compile Error
789
v2_s670592359
s670592359
s670592359
p02714
p02714
u236027776
u236027776
1,587,108,659
2020-04-17T07:30:59
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String st = sc.next(); char [] S = st.toCharArray(); int sum =0; for(int i=0;i<N;i++){ for(int j=1;j<N;j++){ for(int k=2;j<N;j++){ i...
Main.java:16: error: ';' expected sum+=1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u236027776|p02714|0
u236027776|p02714|0
codenet
Compile Error
543
v2_s468467777
s468467777
s468467777
p02714
p02714
u236027776
u236027776
1,587,108,695
2020-04-17T07:31:35
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String st = sc.next(); char [] S = st.toCharArray(); int sum =0; for(int i=0;i<N;i++){ for(int j=1;j<N;j++){ for(int k=2;j<N;j++){ i...
Main.java:14: error: cannot find symbol if(S[i]!=S[J]&&S[i]!=S[k]){ ^ symbol: variable J location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u236027776|p02714|0
u236027776|p02714|0
codenet
Compile Error
544
v2_s472398056
s472398056
s472398056
p02714
p02714
u236027776
u236027776
1,587,108,779
2020-04-17T07:32:59
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String st = sc.next(); char [] S = st.toCharArray(); int sum =0; for(int i=0;i<N;i++){ for(int j=i+1;j<N;j++){ for(int k=j+1;j<N;j++){ ...
Main.java:14: error: cannot find symbol if(S[i]!=S[J]&&S[i]!=S[k]){ ^ symbol: variable J location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u236027776|p02714|0
u236027776|p02714|0
codenet
Compile Error
548
v2_s430038238
s430038238
s430038238
p02714
p02714
u238640707
u238640707
1,586,833,176
2020-04-14T02:59:36
Main.java
import java.util.*; import java.util.Map.Entry; import javax.swing.text.Segment; import javax.xml.ws.WebEndpoint; import java.io.*; import java.lang.reflect.Array; import java.math.BigInteger; import static java.lang.Math.*; import static java.util.Arrays.*; import static java.util.Collections.*; public class Main ...
Main.java:5: error: package javax.xml.ws does not exist import javax.xml.ws.WebEndpoint; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u238640707|p02714|0
u238640707|p02714|0
codenet
Compile Error
3,190
v2_s940332495
s940332495
s940332495
p02714
p02714
u374018235
u374018235
1,586,829,977
2020-04-14T02:06:17
Main.java
import java.io.*; class Main { public static void main(String args[]) { String buf; int num; int ans; try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); buf = br.readLine(); num = Integer.parseInt( br.readLine() );...
Main.java:16: error: ';' expected char g = 'G': ^ Main.java:17: error: ';' expected char b = 'B': ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u374018235|p02714|0
u374018235|p02714|0
codenet
Compile Error
1,203
v2_s761890010
s761890010
s761890010
p02714
p02714
u402526481
u402526481
1,587,351,532
2020-04-20T02:58:52
Main.java
public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); String N = scan.nextLine(); scan = new Scanner(System.in); String S= scan.nextLine(); int n = Integer.parseInt(N); int cnt = 0; for (int i=1; i < n-1; i++) for (int j=...
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
u402526481|p02714|0
u402526481|p02714|0
codenet
Compile Error
590
v2_s670802050
s670802050
s670802050
p02714
p02714
u495314970
u495314970
1,587,762,016
2020-04-24T21:00:16
main.java
import java.util.*; public class main{ public static void main(String[] args) { Scanner reader=new Scanner(System.in); int n=reader.nextInt(); String a=reader.next(); int counter=0; int R=0; int B=0; int G=0; for(int j=0;j<n;j++) { if(a.charAt(j)=='R') R++; ...
main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495314970|p02714|0
u495314970|p02714|0
codenet
Compile Error
707
v2_s058388392
s058388392
s058388392
p02714
p02714
u495314970
u495314970
1,587,762,043
2020-04-24T21:00:43
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner reader=new Scanner(System.in); int n=reader.nextInt(); String a=reader.next(); int counter=0; int R=0; int B=0; int G=0; for(int j=0;j<n;j++) { if(a.charAt(j)=='R') R++; ...
Main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495314970|p02714|0
u495314970|p02714|0
codenet
Compile Error
707
v2_s186094439
s186094439
s186094439
p02714
p02714
u547671064
u547671064
1,586,868,530
2020-04-14T12:48:50
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 S = sc.next(); String s[] =S.split("",0); int t[] =new int[N]; int x=0; for(int i=0;i<N;i++){ if(s[i].equals("R")){t[i]=1;} else if(s[i]...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02714|0
u547671064|p02714|0
codenet
Compile Error
613
v2_s053829007
s053829007
s053829007
p02714
p02714
u547671064
u547671064
1,586,878,227
2020-04-14T15:30:27
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 S = sc.next(); String s[] =S.split("",0); int t[] =new int[N]; long w=0;int a=0;int b=0; int c=0; for(int i=0;i<N;i++){ if(s[i].equals("R")){t...
Main.java:16: error: cannot find symbol for(int j=k+1;j<=p;j++){ ^ symbol: variable p location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02714|0
u547671064|p02714|0
codenet
Compile Error
646
v2_s563460528
s563460528
s563460528
p02714
p02714
u568787360
u568787360
1,587,127,086
2020-04-17T12:38:06
Main.java
int N = sc.nextInt(); StringBuilder S = new StringBuilder(); S.append("i"); S.append(sc.next()); long r =0,g=0,b=0; for(int i=1;i<=N;i++){ if(S.charAt(i)=='R') r++; else if(S.charAt(i)=='G')g++; else if(S.charAt(i)=='B')b++; } ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int N = sc.nextInt(); ^ (use --enable-preview to enable unnamed classes) Main.java:3: error: class, interface, enum, or record expected S.append("i"); ^ Main.java:4: error: class, interface, enum, or...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u568787360|p02714|1
u568787360|p02714|1
codenet
Compile Error
657
v2_s479827027
s479827027
s479827027
p02714
p02714
u589479963
u589479963
1,586,834,635
2020-04-14T03:23:55
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String s = sc.next(); char[] c = s.toCharArray(); int r = 0; int g = 0; int b = 0; // for (int i = 0; i < c.leng...
Main.java:18: error: variable c is already defined in method main(String[]) char c = s.charAt(i); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u589479963|p02714|1
u589479963|p02714|1
codenet
Compile Error
1,385
v2_s361589550
s361589550
s361589550
p02714
p02714
u617002802
u617002802
1,586,744,510
2020-04-13T02:21:50
Main.java
import java.io.*; import java.util.*; public class Main { public static ArrayList<Long> r; public static ArrayList<Long> g; public static ArrayList<Long> b; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); scanner.ne...
Main.java:108: error: cannot find symbol System.out.prLongln(ans); ^ symbol: method prLongln(long) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u617002802|p02714|0
u617002802|p02714|0
codenet
Compile Error
6,295
v2_s669323089
s669323089
s669323089
p02714
p02714
u649769812
u649769812
1,586,745,451
2020-04-13T02:37:31
Main.java
import java.util.*; import java.util.concurrent.atomic.AtomicInteger; class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args) { Main m = new Main(); m.run(); } private void run() { int n = sc.nextInt(); AtomicInteger ans = new AtomicInt...
Main.java:49: error: variable ans is already defined in method run() int ans = 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u649769812|p02714|0
u649769812|p02714|0
codenet
Compile Error
1,904
v2_s109244397
s109244397
s109244397
p02714
p02714
u659156129
u659156129
1,598,557,207
2020-08-27T19:40:07
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); String s = scn.Next(); int r = 0; int g = 0; int b = 0; for(int i=0; i<n; i++){ if(s.charAt(i)=='R'){ r++; }else if(...
Main.java:7: error: cannot find symbol String s = scn.Next(); ^ symbol: method Next() location: variable scn of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p02714|0
u659156129|p02714|0
codenet
Compile Error
714
v2_s330895669
s330895669
s330895669
p02714
p02714
u702156442
u702156442
1,586,744,824
2020-04-13T02:27:04
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 S = sc.next(); // RGBリストを作成 List<Integer> listR = new ArrayList<Integer>(); List<Integer> listG = new ArrayList<Int...
Main.java:14: error: cannot find symbol String color = strAt(S, i); ^ symbol: method strAt(String,int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702156442|p02714|0
u702156442|p02714|0
codenet
Compile Error
2,394
v2_s519910804
s519910804
s519910804
p02714
p02714
u760656796
u760656796
1,587,938,682
2020-04-26T22:04:42
Main.java
import static com.oracle.jrockit.jfr.ContentType.Timestamp; import java.util.*; import java.io.*; import java.math.*; //294784RY public class Main { static PrintStream out = new PrintStream(System.out); static LinkedList<Integer> adj[]; static boolean[] vis; static final int nINF = Integer.MIN_VALUE...
Main.java:1: error: package com.oracle.jrockit.jfr does not exist import static com.oracle.jrockit.jfr.ContentType.Timestamp; ^ Main.java:1: error: static import only from classes and interfaces import static com.oracle.jrockit.jfr.ContentType.Timestamp; ^ Note: Main.java uses unchec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760656796|p02714|0
u760656796|p02714|0
codenet
Compile Error
9,016
v2_s989480801
s989480801
s989480801
p02714
p02714
u760656796
u760656796
1,587,938,707
2020-04-26T22:05:07
Main.java
import static com.oracle.jrockit.jfr.ContentType.Timestamp; import java.util.*; import java.io.*; import java.math.*; //294784RY public class Main { static PrintStream out = new PrintStream(System.out); static LinkedList<Integer> adj[]; static boolean[] vis; static final int nINF = Integer.MIN_VALUE...
Main.java:1: error: package com.oracle.jrockit.jfr does not exist import static com.oracle.jrockit.jfr.ContentType.Timestamp; ^ Main.java:1: error: static import only from classes and interfaces import static com.oracle.jrockit.jfr.ContentType.Timestamp; ^ Note: Main.java uses unchec...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760656796|p02714|0
u760656796|p02714|0
codenet
Compile Error
9,016
v2_s728279906
s728279906
s728279906
p02714
p02714
u764902390
u764902390
1,586,744,923
2020-04-13T02:28:43
Main.java
mport java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); String S = scan.next(); char a; char b; char c; int sum = 0; if(N==1 || N==2){ System.out.println("0"); } if(N>=3){ ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.lang.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764902390|p02714|0
u764902390|p02714|0
codenet
Compile Error
660
v2_s224806318
s224806318
s224806318
p02714
p02714
u784982404
u784982404
1,587,938,698
2020-04-26T22:04:58
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scanner = new Scanner(System.in); BufferedReader in = new BufferedReader(new Input...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784982404|p02714|1
u784982404|p02714|1
codenet
Compile Error
816
v2_s331513896
s331513896
s331513896
p02714
p02714
u785061386
u785061386
1,586,775,113
2020-04-13T10:51:53
RGBTriples.java
public class RGBTriples { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); char[] rgb = scan.next().toCharArray(); scan.close(); int numR = 0; int numG = 0; int numB = 0; for(char c : rgb) { switch(c) { case 'R' : numR++; break; case...
RGBTriples.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class RGBTriples RGBTriples.java:3: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class RGBTriples 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u785061386|p02714|1
u785061386|p02714|1
codenet
Compile Error
627
v2_s440322506
s440322506
s440322506
p02714
p02714
u818498408
u818498408
1,586,830,777
2020-04-14T02:19:37
Main.java
RBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBB...
Main.java:1: error: reached end of file while parsing RBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBGBRBGBRBBBGBBBBRBRBGRBGGBBRRGBBRRRBGGBRBG...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818498408|p02714|1
u818498408|p02714|1
codenet
Compile Error
4,054
v2_s587471165
s587471165
s587471165
p02714
p02714
u836207173
u836207173
1,586,762,186
2020-04-13T07:16:26
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ int N = Integer.parseInt(br.readLine()); String S = br.readLine(); long r = 0, g = 0, b = 0; ...
Main.java:40: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:41: error: class, interface, enum, or record expected import java.io.*; ^ Main.java:77: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u836207173|p02714|2
u836207173|p02714|0
codenet
Compile Error
1,908
v2_s079718693
s079718693
s079718693
p02714
p02714
u904730393
u904730393
1,586,807,961
2020-04-13T19:59:21
Main.java
/*****Author: Satyajeet Singh, Delhi Technological University************************************/ import java.io.*; import java.util.*; import java.text.*; import java.lang.*; import java.math.*; public class Main{ /*********************************************Constants****************************...
Main.java:31: error: non-static variable dp cannot be referenced from a static context dp[i][j-i][input[j]]++; ^ Main.java:31: error: incompatible types: possible lossy conversion from long to int dp[i][j-i][input[j]]++; ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u904730393|p02714|1
u904730393|p02714|1
codenet
Compile Error
7,136
v2_s982654853
s982654853
s982654853
p02714
p02714
u904730393
u904730393
1,586,808,008
2020-04-13T20:00:08
Main.java
/*****Author: Satyajeet Singh, Delhi Technological University************************************/ import java.io.*; import java.util.*; import java.text.*; import java.lang.*; import java.math.*; public class Main{ /*********************************************Constants****************************...
Main.java:31: error: incompatible types: possible lossy conversion from long to int dp[i][j-i][input[j]]++; ^ Main.java:32: error: incompatible types: possible lossy conversion from long to int dp[i][n][input[j]]++; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u904730393|p02714|1
u904730393|p02714|1
codenet
Compile Error
7,143
v2_s237388603
s237388603
s237388603
p02714
p02714
u909323623
u909323623
1,586,745,472
2020-04-13T02:37:52
Main.java
import java.util.*; class Judge{ boolean jud(String text,int a,int b,int c){ if(b-a==c-b) return false; String str1,str2,str3; str1 = text.substring(a-1,a); str2 = text.substring(b-1,b); str3 = text.substring(c-1,c); if(!(str1.equals(str2))&&!(str2.equals(str3))&&!(str1.equals(str3)){ ...
Main.java:11: error: ')' expected if(!(str1.equals(str2))&&!(str2.equals(str3))&&!(str1.equals(str3)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u909323623|p02714|0
u909323623|p02714|0
codenet
Compile Error
773
v2_s859354295
s859354295
s859354295
p02714
p02714
u909323623
u909323623
1,586,745,677
2020-04-13T02:41:17
Main.java
import java.util.*; class Judge{ boolean jud(char str1,char str2,char str3,int a,int b,int c){ if(b-a==c-b) return false; if(a!=b&&a!=c&&b!=c){ return true; } else return false; } } class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); ...
Main.java:19: error: ']' expected char s[n] = sc.next(); ^ Main.java:19: error: ';' expected char s[n] = sc.next(); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u909323623|p02714|0
u909323623|p02714|0
codenet
Compile Error
629
v2_s516277394
s516277394
s516277394
p02714
p02714
u909323623
u909323623
1,586,757,876
2020-04-13T06:04:36
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long r=0,g=0,b=0; String text = sc.next(); char str[] = text.toCharArray(); for(int i=0;i<n;i++){ switch(str[i]){ case 'R': r++; break; case 'G': g++...
Main.java:23: error: incompatible types: possible lossy conversion from long to int int pair = r*g*b; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u909323623|p02714|0
u909323623|p02714|0
codenet
Compile Error
596
v2_s088003469
s088003469
s088003469
p02714
p02714
u979552932
u979552932
1,586,783,362
2020-04-13T13:09:22
Main.java
n = gets.to_i s = gets ans = r = g = b = 0 0.upto(n-1) do |i| r += 1 if s[i] == "R" g += 1 if s[i] == "G" b += 1 if s[i] == "B" (i+1).upto(n-1) do |j| k = j + j - i if k < n && s[i] != s[j] && s[i] != s[k] && s[j] != s[k] ans += 1 end end end puts (r * g * b - ans)
Main.java:1: error: class, interface, enum, or record expected n = gets.to_i ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u979552932|p02714|1
u979552932|p02714|1
codenet
Compile Error
293
v2_s821244755
s821244755
s821244755
p02714
p02714
u980607863
u980607863
1,586,744,178
2020-04-13T02:16: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(); char[] s = sc.next().ToCharArray(); long ans = 0; for(int i = 0; i < n-2 ; i++){ for(int j = i+1 ; j < n-1 ; j++){ if(s[i]...
Main.java:7: error: cannot find symbol char[] s = sc.next().ToCharArray(); ^ symbol: method ToCharArray() location: class String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02714|0
u980607863|p02714|0
codenet
Compile Error
535
v2_s798396652
s798396652
s798396652
p02714
p02714
u980607863
u980607863
1,586,744,265
2020-04-13T02:17:45
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String ss = sc.next(); char[] s = ss.ToCharArray(); long ans = 0; for(int i = 0; i < n-2 ; i++){ for(int j = i+1 ; j < n-1 ; j++){...
Main.java:8: error: cannot find symbol char[] s = ss.ToCharArray(); ^ symbol: method ToCharArray() location: variable ss of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02714|0
u980607863|p02714|0
codenet
Compile Error
558
v2_s222052077
s222052077
s222052077
p02714
p02714
u981808900
u981808900
1,586,740,079
2020-04-13T01:07:59
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import static com.yu212.Utils.println; publ...
Main.java:10: error: package com.yu212 does not exist import static com.yu212.Utils.println; ^ Main.java:10: error: static import only from classes and interfaces import static com.yu212.Utils.println; ^ Main.java:43: error: cannot find symbol println(i, j, nk, ci, cj, ck, sum...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02714|0
u981808900|p02714|0
codenet
Compile Error
4,083
v2_s946972367
s946972367
s946972367
p02714
p02714
u981808900
u981808900
1,586,740,816
2020-04-13T01:20:16
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOperator; import static com.yu212.Utils.println; publ...
Main.java:10: error: package com.yu212 does not exist import static com.yu212.Utils.println; ^ Main.java:10: error: static import only from classes and interfaces import static com.yu212.Utils.println; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02714|0
u981808900|p02714|0
codenet
Compile Error
4,020
v2_s881799093
s881799093
s881799093
p02715
p02715
u218740431
u218740431
1,586,745,505
2020-04-13T02:38:25
Main.java
import java.util.*; public class Main { public static long gcd(long x,long y){ if(x < y) return gcd(y, x); if(y == 0) return x; return gcd(y, x % y); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int n = sc.nextI...
Main.java:15: error: incompatible types: possible lossy conversion from double to long long mod = 1e9+7; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02715|0
u218740431|p02715|0
codenet
Compile Error
496
v2_s128501692
s128501692
s128501692
p02715
p02715
u653981267
u653981267
1,586,832,064
2020-04-14T02:41:04
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long k = sc.nextLong(); long MOD = (long)Math.pow(10, 9) + 7; long[] dp = new long[(int)k + 1]; for(long i = k; i >= 1; i--) { long t = k / i; ...
Main.java:15: error: incompatible types: possible lossy conversion from long to int u = (u + dp[j]) % MOD; ^ Main.java:31: error: cannot find symbol return (t * t) % MOD; ^ symbol: variable MOD location: class Main Main.java:33: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02715|0
u653981267|p02715|0
codenet
Compile Error
872
v2_s297093066
s297093066
s297093066
p02715
p02715
u912599273
u912599273
1,588,994,750
2020-05-09T03:25:50
Main.java
import java.math.BigInteger; import java.util.*; public class Main { static int MOD = 1000000007; static long modpow(int N, int K) { return BigInteger.valueOf(N).modPow(BigInteger.valueOf(K), BigInteger.valueOf(MOD)).longValue(); } public static void main(String[] args) { Scanner sc = new Scanner(System.in...
Main.java:18: error: incompatible types: possible lossy conversion from long to int x[i] = modpow(K/i, N); ^ Main.java:18: error: incompatible types: possible lossy conversion from long to int x[i] = modpow(K/i, N); ^ Main.java:19: error: incompatible types: possible lossy conversion from l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u912599273|p02715|0
u912599273|p02715|0
codenet
Compile Error
599
v2_s899842173
s899842173
s899842173
p02716
p02716
u243078991
u243078991
1,586,745,479
2020-04-13T02:37:59
Main.java
public class Main { int FindMaxSum(int arr[], int n) { int incl = arr[0]; int excl = 0; int excl_new; int i; for (i = 1; i < n; i++) { excl_new = (incl > excl) ? incl : excl; incl = excl + arr[i]; excl = excl_new; ...
Main.java:20: error: cannot find symbol MaximumSum sum = new MaximumSum(); ^ symbol: class MaximumSum location: class Main Main.java:20: error: cannot find symbol MaximumSum sum = new MaximumSum(); ^ symbol: class MaximumSum location: class Main 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u243078991|p02716|0
u243078991|p02716|0
codenet
Compile Error
607
v2_s662450897
s662450897
s662450897
p02716
p02716
u243078991
u243078991
1,586,745,602
2020-04-13T02:40:02
Main.java
class Main { int FindMaxSum(int arr[], int n) { int incl = arr[0]; int excl = 0; int excl_new; int i; for (i = 1; i < n; i++) { excl_new = (incl > excl) ? incl : excl; incl = excl + arr[i]; excl = e...
Main.java:24: error: cannot find symbol MaximumSum sum = new MaximumSum(); ^ symbol: class MaximumSum location: class Main Main.java:24: error: cannot find symbol MaximumSum sum = new MaximumSum(); ^ symbol: class MaximumSum location: class Main 2 error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u243078991|p02716|0
u243078991|p02716|0
codenet
Compile Error
621
v2_s060797186
s060797186
s060797186
p02716
p02716
u324739185
u324739185
1,586,745,513
2020-04-13T02:38:33
scratch.java
import java.util.*; import java.lang.Math; public class scratch { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); List<Long> a = new ArrayList<>(); for (int i = 0; i < n; i++) { a.add(sc.nextLong()); } if (n % 2 == 0) { ...
scratch.java:27: error: ')' or ',' expected System.out.println(Math.max(culc(a, n - 1, true, 2), culc(a, n - 1, false, 2)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u324739185|p02716|0
u324739185|p02716|0
codenet
Compile Error
1,840
v2_s837677605
s837677605
s837677605
p02716
p02716
u518946745
u518946745
1,586,743,981
2020-04-13T02:13:01
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.Collection; import java.util.Collections; import java.util.List; import sun.util.logging.resources.logging; public class Main{ public static Scanner scan = new Scanner(System.in); public static void main(String[]ar...
Main.java:8: error: package sun.util.logging.resources is not visible import sun.util.logging.resources.logging; ^ (package sun.util.logging.resources is declared in module java.logging, which does not export it) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u518946745|p02716|0
u518946745|p02716|0
codenet
Compile Error
1,765
v2_s362957194
s362957194
s362957194
p02716
p02716
u881359256
u881359256
1,586,747,513
2020-04-13T03:11:53
Main.java
mport java.io.*; import java.util.*; public class Main { static InputStream is; static PrintWriter out; static String INPUT = ""; static final long mod = (long) 1e9 + 7; static final int dx[] = { -1, 0, 1, 0 }, dy[] = { 0, -1, 0, 1 }; static final int[] dx8 = { -1, -1, -1, 0, 0, 1, 1, 1 }, dy8 = { -1, 0, 1, -1,...
Main.java:1: error: class, interface, enum, or record expected mport java.io.*; ^ Main.java:2: error: class, interface, enum, or record expected import java.util.*; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u881359256|p02716|0
u881359256|p02716|0
codenet
Compile Error
7,658
v2_s181992880
s181992880
s181992880
p02717
p02717
u012999123
u012999123
1,586,048,540
2020-04-05T01:02:20
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); System.out.println(c+" "+a+" "+b); } } }
Main.java:13: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012999123|p02717|0
u012999123|p02717|0
codenet
Compile Error
233
v2_s174682286
s174682286
s174682286
p02717
p02717
u018773111
u018773111
1,593,008,970
2020-06-24T14:29:30
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); List<int> list = new ArrayList<int>(); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); list.add(X); list.add(Y); list.add(0, Z); for(int i : list){...
Main.java:6: error: unexpected type List<int> list = new ArrayList<int>(); ^ required: reference found: int Main.java:6: error: unexpected type List<int> list = new ArrayList<int>(); ^ required: reference found: int 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02717|0
u018773111|p02717|0
codenet
Compile Error
372
v2_s603221711
s603221711
s603221711
p02717
p02717
u018773111
u018773111
1,593,009,007
2020-06-24T14:30:07
Main.java
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); List<int> list = new ArrayList<int>(); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); list.add(X); list.add(Y); list.add(0, Z); ...
Main.java:7: error: unexpected type List<int> list = new ArrayList<int>(); ^ required: reference found: int Main.java:7: error: unexpected type List<int> list = new ArrayList<int>(); ^ required: reference found: int 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02717|0
u018773111|p02717|0
codenet
Compile Error
391
v2_s046824396
s046824396
s046824396
p02717
p02717
u019117875
u019117875
1,586,048,647
2020-04-05T01:04:07
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner scc=new Scanner (System.in); int a,b,c; a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); t=a; a=b; b=t; t=a; a=c; c=t; System.out.println(a+" "+b+" "+c); } }
Main.java:8: error: cannot find symbol a=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:9: error: cannot find symbol b=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:10: error: cannot find symbol c=sc.nextInt(); ^ symbol: variable sc ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02717|0
u019117875|p02717|0
codenet
Compile Error
292
v2_s263092682
s263092682
s263092682
p02717
p02717
u019117875
u019117875
1,586,048,703
2020-04-05T01:05:03
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner scc=new Scanner (System.in); int a,b,c,t; a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); t=a; a=b; b=t; t=a; a=c; c=t; ...
Main.java:8: error: cannot find symbol a=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:9: error: cannot find symbol b=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:10: error: cannot find symbol c=sc.nextInt(); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019117875|p02717|0
u019117875|p02717|0
codenet
Compile Error
370
v2_s485292516
s485292516
s485292516
p02717
p02717
u047630381
u047630381
1,586,049,582
2020-04-05T01:19:42
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int X = sc.nextInt(); int Y = sc.nextInt(); int Z = sc.nextInt(); int A = Z; int B = X; int C = Y; System.out.println(A + " " + B +" " +C); }
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047630381|p02717|0
u047630381|p02717|0
codenet
Compile Error
320
v2_s129169577
s129169577
s129169577
p02717
p02717
u052509991
u052509991
1,587,094,724
2020-04-17T03:38:44
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] str = br.readLine(); int x = Integer.parseInt(str...
Main.java:8: error: incompatible types: String cannot be converted to String[] String[] str = br.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02717|0
u052509991|p02717|0
codenet
Compile Error
543
v2_s212855163
s212855163
s212855163
p02717
p02717
u052509991
u052509991
1,587,094,894
2020-04-17T03:41:34
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] str = br.readLine().split(); System.out.prin...
Main.java:8: error: no suitable method found for split(no arguments) String[] str = br.readLine().split(); ^ method String.split(String,int) is not applicable (actual and formal argument lists differ in length) method String.split(String,int,boolean) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02717|0
u052509991|p02717|0
codenet
Compile Error
369
v2_s188309479
s188309479
s188309479
p02717
p02717
u079009389
u079009389
1,586,056,336
2020-04-05T03:12:16
Main.java
import java.util.stream.IntStream; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A = IntStream.range(0, N).map(i -> sc.nextInt()).toArray(); int all_point = Arrays.stream(...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:11: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079009389|p02717|0
u079009389|p02717|0
codenet
Compile Error
593
v2_s585173647
s585173647
s585173647
p02717
p02717
u103586009
u103586009
1,586,049,565
2020-04-05T01:19:25
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(system.in); int a = stdIn.nextInt(); int b = stdin.nextInt(); int c = stdIn.nextInt(); int a2 = a; a = b; b = a2; a = c; c = a2; System.out.println(a + ...
Main.java:4: error: cannot find symbol Scanner stdIn = new Scanner(system.in); ^ symbol: variable system location: class Main Main.java:7: error: cannot find symbol int b = stdin.nextInt(); ^ symbol: variable stdin location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u103586009|p02717|0
u103586009|p02717|0
codenet
Compile Error
345
v2_s783508244
s783508244
s783508244
p02717
p02717
u159310216
u159310216
1,586,051,349
2020-04-05T01:49:09
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int X = stdIn.nextInt(); int Y = stdIn.nextInt(); int Z = stdin.nextInt(); System.out.println(Z+" "+X+" "+Y); } }
Main.java:7: error: cannot find symbol int Z = stdin.nextInt(); ^ symbol: variable stdin location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u159310216|p02717|0
u159310216|p02717|0
codenet
Compile Error
255
v2_s081430246
s081430246
s081430246
p02717
p02717
u179053337
u179053337
1,586,048,472
2020-04-05T01:01:12
Main.java
x, y, z = list(map(int, input().split())) print(" ".join([str(z), str(x), str(y)]))
Main.java:2: error: class, interface, enum, or record expected x, y, z = list(map(int, input().split())) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u179053337|p02717|0
u179053337|p02717|0
codenet
Compile Error
88
v2_s945468162
s945468162
s945468162
p02717
p02717
u187491596
u187491596
1,586,144,739
2020-04-06T03:45:39
Main.java
public static void main(String[] args) { int a, b, c, tmp; scanInt = new java.util.Scanner(System.in); a = scanInt.nextInt; b = scanInt.nextInt; c = scanInt.nextInt; tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; System.out.println(a + " " + b + " " + c); }
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
u187491596|p02717|0
u187491596|p02717|0
codenet
Compile Error
299
v2_s553590874
s553590874
s553590874
p02717
p02717
u187491596
u187491596
1,586,144,852
2020-04-06T03:47:32
Main.java
public class Main { public static void main(String[] args) { int a, b, c, tmp; scanInt = new java.util.Scanner(System.in); a = scanInt.nextInt; b = scanInt.nextInt; c = scanInt.nextInt; tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; System.out.println(a + " " + b + " " + c); } }
Main.java:5: error: cannot find symbol scanInt = new java.util.Scanner(System.in); ^ symbol: variable scanInt location: class Main Main.java:6: error: cannot find symbol a = scanInt.nextInt; ^ symbol: variable scanInt location: class Main Main.java:7: error: cannot find symbol b = scanInt.next...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u187491596|p02717|0
u187491596|p02717|0
codenet
Compile Error
319
v2_s653553291
s653553291
s653553291
p02717
p02717
u187491596
u187491596
1,586,144,932
2020-04-06T03:48:52
Main.java
public class Main { public static void main(String[] args) { int a, b, c, tmp; Scanner scanInt = new java.util.Scanner(System.in); a = scanInt.nextInt; b = scanInt.nextInt; c = scanInt.nextInt; tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; System.out.println(a + " " + b + " " + c);...
Main.java:5: error: cannot find symbol Scanner scanInt = new java.util.Scanner(System.in); ^ symbol: class Scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u187491596|p02717|0
u187491596|p02717|0
codenet
Compile Error
327
v2_s721500537
s721500537
s721500537
p02717
p02717
u187491596
u187491596
1,586,144,978
2020-04-06T03:49:38
Main.java
public class Main { public static void main(String[] args) { int a, b, c, tmp; java.util.Scanner scanInt = new java.util.Scanner(System.in); a = scanInt.nextInt; b = scanInt.nextInt; c = scanInt.nextInt; tmp = a; a = b; b = tmp; tmp = a; a = c; c = tmp; System.out.println(a + " " + b +...
Main.java:6: error: cannot find symbol a = scanInt.nextInt; ^ symbol: variable nextInt location: variable scanInt of type Scanner Main.java:7: error: cannot find symbol b = scanInt.nextInt; ^ symbol: variable nextInt location: variable scanInt of type Scanner Main.java:8: error...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u187491596|p02717|0
u187491596|p02717|0
codenet
Compile Error
337
v2_s826575987
s826575987
s826575987
p02717
p02717
u204830879
u204830879
1,586,081,400
2020-04-05T10:10:00
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp = 0; System.out.println("input 1st integer"); int a = sc.nextInt(); System.out.println("input 2nd integer"); int b = sc.nextInt(); System.out.println("input 3rd integer"); ...
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
u204830879|p02717|0
u204830879|p02717|0
codenet
Compile Error
507
v2_s546968578
s546968578
s546968578
p02717
p02717
u212367495
u212367495
1,587,092,543
2020-04-17T03:02:23
Main.java
import java.util.*; pubic class Main{ public static void main(String[] args){ Scanner scn=new Scanner(System.in); int a=scn.nextInt(); int b=scn.nextInt(); int c=scn.nextInt(); int t1=a; a=b; b=t1; int t2=a; a=c; c=t2; System.out.print(a+" "+b+" "+c); } }
Main.java:2: error: class, interface, enum, or record expected pubic class Main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212367495|p02717|0
u212367495|p02717|0
codenet
Compile Error
319
v2_s299159431
s299159431
s299159431
p02717
p02717
u212397344
u212397344
1,586,616,216
2020-04-11T14:43:36
Main.java
import java.util*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = sc.nextInt(); System.out.print(C +" " + A + " " + B); } }
Main.java:1: error: ';' expected import java.util*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u212397344|p02717|0
u212397344|p02717|0
codenet
Compile Error
241
v2_s436617438
s436617438
s436617438
p02717
p02717
u228492295
u228492295
1,586,048,580
2020-04-05T01:03:00
Main.java
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << c << " " << a << " " << b; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:6: error: not a statement cin >> a >> b >> c; ^ Main.java:8: error: not a statement cout << c << " " << a << " " << b; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228492295|p02717|0
u228492295|p02717|0
codenet
Compile Error
133
v2_s867698619
s867698619
s867698619
p02717
p02717
u228492295
u228492295
1,586,048,766
2020-04-05T01:06:06
Main.java
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << c << " " << a << " " << b; return 0; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:6: error: not a statement cin >> a >> b >> c; ^ Main.java:8: error: not a statement cout << c << " " << a << " " << b; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228492295|p02717|0
u228492295|p02717|0
codenet
Compile Error
146
v2_s232550994
s232550994
s232550994
p02717
p02717
u228888478
u228888478
1,586,048,544
2020-04-05T01:02:24
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); System.out.printf("%d %d %d",c a b); } }
Main.java:9: error: ')' or ',' expected System.out.printf("%d %d %d",c a b); ^ Main.java:9: error: ';' expected System.out.printf("%d %d %d",c a b); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u228888478|p02717|0
u228888478|p02717|0
codenet
Compile Error
264
v2_s323957882
s323957882
s323957882
p02717
p02717
u229130623
u229130623
1,586,543,940
2020-04-10T18:39:00
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringJoiner; public class Main{ public static void main(String[] args){ InputStreamReader inputStreamReader = new InputStreamReader(System.in); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); ...
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown String input = bufferedReader.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u229130623|p02717|0
u229130623|p02717|0
codenet
Compile Error
531