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_s735022807
s735022807
s735022807
p02706
p02706
u433339980
u433339980
1,587,494,436
2020-04-21T18:40:36
Dcoder.java
import java.util.*; // Compiler version JDK 11.0.2 public static class Dcoder { public static void main(String args[]) { Scanner sc= new Scanner(System.in); long n = sc.nextLong(); int m = sc.nextInt(); int a[]= new int[m]; long sum =0; for(int i =0;i<m;i ++) { a[i]= sc.nex...
Dcoder.java:5: error: modifier static not allowed here public static class Dcoder ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u433339980|p02706|0
u433339980|p02706|0
codenet
Compile Error
460
v2_s476387851
s476387851
s476387851
p02706
p02706
u433339980
u433339980
1,587,494,453
2020-04-21T18:40:53
Dcoder.java
import java.util.*; // Compiler version JDK 11.0.2 public static class Dcoder { public static void main(String args[]) { Scanner sc= new Scanner(System.in); long n = sc.nextLong(); int m = sc.nextInt(); int a[]= new int[m]; long sum =0; for(int i =0;i<m;i ++) { a[i]= sc.nex...
Dcoder.java:5: error: modifier static not allowed here public static class Dcoder ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u433339980|p02706|0
u433339980|p02706|0
codenet
Compile Error
460
v2_s876988357
s876988357
s876988357
p02706
p02706
u556589653
u556589653
1,597,344,793
2020-08-13T18:53:13
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); int ans = 0: for (int i = 0; i < m; i++){ ans = ans + scan.nextInt(); } if (ans <=n){ System.out.println(n...
Main.java:7: error: ';' expected int ans = 0: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u556589653|p02706|0
u556589653|p02706|0
codenet
Compile Error
381
v2_s479545357
s479545357
s479545357
p02706
p02706
u599968009
u599968009
1,587,345,300
2020-04-20T01:15:00
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int total =0; for(int i=0; i<m; i++) { total += sc.nextInt(); } if ( n > total) { System.out.println(n-total); }else { System.out.println(-1);...
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
u599968009|p02706|0
u599968009|p02706|0
codenet
Compile Error
329
v2_s364012514
s364012514
s364012514
p02706
p02706
u610146401
u610146401
1,596,490,101
2020-08-03T21:28:21
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N=sc.nextInt(); int M=sc.nextInt(); System.out.println(); int A[M]; int total=0; for(int i=0;i<M;i++){ A[i]=sc.nextInt(); total+=A[i]; }...
Main.java:8: error: ']' expected int A[M]; ^ Main.java:8: error: ';' expected int A[M]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u610146401|p02706|0
u610146401|p02706|0
codenet
Compile Error
452
v2_s107902448
s107902448
s107902448
p02706
p02706
u645018082
u645018082
1,587,344,605
2020-04-20T01:03:25
Main.java
#include <bits/stdc++.h> using namespace std; #define all(v) ((v).begin()),((v).end()) #define ll long long #define fastIO cout << fixed << setprecision(12), ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr) double const EPS = 1e-9, PI = acos(-1); const int N = 1e6 + 9, OO = 1e9 + 7, MOD = 1e9 + 7; const...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:3: error: illegal character: '#' #define all(v) ((v).begin()),((v).end()) ^ Main.java:3: error: class, interface, enum, or record expected #d...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u645018082|p02706|0
u645018082|p02706|0
codenet
Compile Error
620
v2_s334146414
s334146414
s334146414
p02706
p02706
u650944975
u650944975
1,587,350,487
2020-04-20T02:41:27
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int a,b; a=sc.nextInt(); b=sc.nextInt(); if((b(b+1))/2 > a) System.out.println("-1"); int c=(b(b+1))/2; System.out.println(c-a);
Main.java:13: error: reached end of file while parsing System.out.println(c-a); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|0
u650944975|p02706|0
codenet
Compile Error
289
v2_s806940680
s806940680
s806940680
p02706
p02706
u650944975
u650944975
1,587,350,539
2020-04-20T02:42:19
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int a,b; a=sc.nextInt(); b=sc.nextInt(); if((b(b+1))/2 > a) System.out.println("-1"); int c=(b(b+1))/2; System.out.println(c-a); } }
Main.java:10: error: cannot find symbol if((b(b+1))/2 > a) ^ symbol: method b(int) location: class Main Main.java:12: error: cannot find symbol int c=(b(b+1))/2; ^ symbol: method b(int) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|0
u650944975|p02706|0
codenet
Compile Error
295
v2_s920621375
s920621375
s920621375
p02706
p02706
u650944975
u650944975
1,587,398,531
2020-04-20T16:02:11
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int sum=0; int a[]=new int[m] for(int i=1;i<=m;i++) { a[i]=sc.nextInt(); } for(int i=1;i<=m;i++) { sum=sum+a[i]; ...
Main.java:10: error: ';' expected int a[]=new int[m] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|1
u650944975|p02706|1
codenet
Compile Error
455
v2_s616743710
s616743710
s616743710
p02706
p02706
u650944975
u650944975
1,587,398,592
2020-04-20T16:03:12
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int sum=0; int a[]=new int[m]; for(int i=1;i<=m;i++) { a[i]=sc.nextInt(); } for(int i=1;i<=m;i++) { sum=sum+a[i]; ...
Main.java:25: error: bad operand types for binary operator '-' System.out.println(a-sum); ^ first type: int[] second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|1
u650944975|p02706|1
codenet
Compile Error
456
v2_s000504282
s000504282
s000504282
p02706
p02706
u650944975
u650944975
1,587,398,640
2020-04-20T16:04:00
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int sum=0; int a[]=new int[m] for(int i=1;i<=m;i++) { a[i]=sc.nextInt(); } for(int i=1;i<=m;i++) { sum=sum+a[i]; ...
Main.java:10: error: ';' expected int a[]=new int[m] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|1
u650944975|p02706|1
codenet
Compile Error
455
v2_s181367145
s181367145
s181367145
p02706
p02706
u650944975
u650944975
1,587,398,827
2020-04-20T16:07:07
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int sum=0; System.out.println(); int a[]=new int[m] for(int i=1;i<=m;i++) { a[i]=sc.nextInt(); } for(int i=1;i<=m;i++) ...
Main.java:11: error: ';' expected int a[]=new int[m] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u650944975|p02706|1
u650944975|p02706|1
codenet
Compile Error
481
v2_s132173506
s132173506
s132173506
p02706
p02706
u655325849
u655325849
1,587,571,712
2020-04-22T16:08:32
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here int N; int M; int i=0; int Sum=0; Scanner scan = new Scanner(System.in); N = scan.nextInt(); Scanner scan2 = new Scanner(System.i...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u655325849|p02706|0
u655325849|p02706|0
codenet
Compile Error
702
v2_s732345125
s732345125
s732345125
p02706
p02706
u664427626
u664427626
1,587,498,617
2020-04-21T19:50:17
Main.java
import java.lang.Math; import java.util.*; public class Main{ public static void main(String[] args){ Scanner v = new Scanner(System.in); int n = v.nextInt(); while(n<1 || n > Math.pow(10,6)){ n = v.nextInt(); } int m = v.nextInt(); while(m<1 || m > Math.pow(10,4)){ ...
Main.java:16: error: variable a might not have been initialized while (a < 1 || a > Math.pow(10,4)){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u664427626|p02706|0
u664427626|p02706|0
codenet
Compile Error
633
v2_s109749902
s109749902
s109749902
p02706
p02706
u700932550
u700932550
1,587,346,189
2020-04-20T01:29:49
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); int n = in.nextInt(); int m = in.nextInt(); int ar[] = new int[n]; int sum=0; for(int i=0;i<m;i++){ ar[i]=in.nextInt();...
Main.java:17: error: ')' expected if(res>0{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u700932550|p02706|0
u700932550|p02706|0
codenet
Compile Error
514
v2_s024872271
s024872271
s024872271
p02706
p02706
u702914680
u702914680
1,587,345,387
2020-04-20T01:16:27
MainTest.java
import static org.hamcrest.CoreMatchers.*; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.junit.Assert; import org.junit.Test; public class MainTest { @Test public void 入力例_1() throws Exception { String input = "41 2" + System.lineSeparator()...
MainTest.java:1: error: package org.hamcrest does not exist import static org.hamcrest.CoreMatchers.*; ^ MainTest.java:7: error: package org.junit does not exist import org.junit.Assert; ^ MainTest.java:8: error: package org.junit does not exist import org.junit.Test; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702914680|p02706|0
u702914680|p02706|0
codenet
Compile Error
1,329
v2_s965084379
s965084379
s965084379
p02706
p02706
u707562002
u707562002
1,587,347,013
2020-04-20T01:43:33
Main.java
public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); long N = scn.nextInt(); int M = scn.nextInt(); long ans = N; for(int i = 0;i<M;i++) { ans -= scn.nextInt(); } scn.close(); if(ans <= 0) { System.out.println("-1"); } else { System.out.println(...
Main.java:4: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scn = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u707562002|p02706|0
u707562002|p02706|0
codenet
Compile Error
336
v2_s286580603
s286580603
s286580603
p02706
p02706
u728468951
u728468951
1,587,346,647
2020-04-20T01:37:27
Main.java
import com.company.LineReader; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) { FastReader s=new FastReader(); int n = s.nextInt(); int m = s.nextInt()...
Main.java:1: error: package com.company does not exist import com.company.LineReader; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u728468951|p02706|0
u728468951|p02706|0
codenet
Compile Error
1,773
v2_s072284524
s072284524
s072284524
p02706
p02706
u751604002
u751604002
1,587,493,658
2020-04-21T18:27:38
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); int a = input.nextInt(); int b =input.nextInt(); for(int i =0; i<b; i++){ int c = input.nextInt(); a = a-c; } if...
Main.java:13: error: not a statement System.out.println "-1"; ^ Main.java:13: error: ';' expected System.out.println "-1"; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751604002|p02706|0
u751604002|p02706|0
codenet
Compile Error
426
v2_s641598921
s641598921
s641598921
p02706
p02706
u755665813
u755665813
1,587,346,663
2020-04-20T01:37:43
Main.java
import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public void main(){ ArrayList<Integer> list = new ArrayList<Integer>(); int N=42; int M=2; int[] Ai = {5, 6}; int Answer; for(int i=0; i<M; i++){ Answer = N - Ai[i]; }...
Main.java:5: error: unnamed classes are a preview feature and are disabled by default. public void main(){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
452
v2_s144631479
s144631479
s144631479
p02706
p02706
u755665813
u755665813
1,587,347,021
2020-04-20T01:43:41
Main.java
public int main(int N,int M){ N=42; M=2; int[] Ai = {5, 6}; int Answer; for(int i=0; i<M; i++){ N = N - Ai[i]; } if(N < 0){ N = -1; } return N; }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public int main(int N,int M){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
249
v2_s517945959
s517945959
s517945959
p02706
p02706
u755665813
u755665813
1,587,350,110
2020-04-20T02:35:10
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int Ai = sc.nextLine(); int Answer; for(int i=0; i<M; i++){ N = N - Ai[i]; } if(N <...
Main.java:8: error: incompatible types: String cannot be converted to int int Ai = sc.nextLine(); ^ Main.java:11: error: array required, but int found N = N - Ai[i]; ^ Main.java:14: error: cannot find symbol System.out.plintln(-1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
424
v2_s941259710
s941259710
s941259710
p02706
p02706
u755665813
u755665813
1,587,350,220
2020-04-20T02:37:00
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); for(int i=0; i<M; i++){ int Ai = sc.next(); N = N - Ai; } if(N < 0){ System.out.p...
Main.java:9: error: incompatible types: String cannot be converted to int int Ai = sc.next(); ^ Main.java:13: error: cannot find symbol System.out.plintln(-1); ^ symbol: method plintln(int) location: variable out of type PrintStream Main.java:15: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
397
v2_s019824474
s019824474
s019824474
p02706
p02706
u755665813
u755665813
1,587,350,299
2020-04-20T02:38:19
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); for(int i=0; i<M; i++){ int Ai = sc.nextInt(); N = N - Ai; } if(N < 0){ System.ou...
Main.java:13: error: cannot find symbol System.out.plintln("-1"); ^ symbol: method plintln(String) location: variable out of type PrintStream Main.java:15: error: cannot find symbol System.out.plintln(N); ^ symbol: method plintln(int) location: var...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
402
v2_s269697843
s269697843
s269697843
p02706
p02706
u755665813
u755665813
1,587,350,364
2020-04-20T02:39:24
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); for(int i=0; i<M; i++){ int Ai = sc.next(); N = N - Ai; } if(N < 0){ System.out.p...
Main.java:9: error: incompatible types: String cannot be converted to int int Ai = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
397
v2_s273187850
s273187850
s273187850
p02706
p02706
u755665813
u755665813
1,587,350,452
2020-04-20T02:40:52
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); for(int i=0; i<M; i++){ int Ai = sc.next(); N = N - Ai; } if(N < 0){ System.out.p...
Main.java:13: error: unclosed character literal System.out.println('-1'); ^ Main.java:13: error: unclosed character literal System.out.println('-1'); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
399
v2_s853633001
s853633001
s853633001
p02706
p02706
u755665813
u755665813
1,587,350,492
2020-04-20T02:41:32
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); for(int i=0; i<M; i++){ int Ai = sc.next(); N = N - Ai; } if(N < 0){ System.out.p...
Main.java:9: error: incompatible types: String cannot be converted to int int Ai = sc.next(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02706|0
u755665813|p02706|0
codenet
Compile Error
399
v2_s931887599
s931887599
s931887599
p02706
p02706
u860874998
u860874998
1,589,131,346
2020-05-10T17:22:26
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int M = sc.nextInt(); int[] A=new int[M] int sum=0; for(i=0;i<M;i++){ A[i]=sc.nextInt(); } for(i=0;i<M;i++){ ...
Main.java:9: error: ';' expected int[] A=new int[M] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02706|0
u860874998|p02706|0
codenet
Compile Error
484
v2_s085251964
s085251964
s085251964
p02706
p02706
u860874998
u860874998
1,589,131,371
2020-05-10T17:22:51
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int M = sc.nextInt(); int[] A=new int[M]; int sum=0; for(i=0;i<M;i++){ A[i]=sc.nextInt(); } for(i=0;i<M;i++){ ...
Main.java:10: error: cannot find symbol for(i=0;i<M;i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i=0;i<M;i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i=0;i<M;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02706|0
u860874998|p02706|0
codenet
Compile Error
483
v2_s181316997
s181316997
s181316997
p02706
p02706
u860874998
u860874998
1,589,131,405
2020-05-10T17:23:25
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); int M = sc.nextInt(); int[] A=new int[M]; int sum=0; for(int i=0;i<M;i++){ A[i]=sc.nextInt(); } for(i=0;i<M;i++...
Main.java:13: error: cannot find symbol for(i=0;i<M;i++){ ^ symbol: variable i location: class Main Main.java:13: error: cannot find symbol for(i=0;i<M;i++){ ^ symbol: variable i location: class Main Main.java:13: error: cannot find symbol for(i=0;i<M;i++)...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02706|0
u860874998|p02706|0
codenet
Compile Error
487
v2_s263550727
s263550727
s263550727
p02706
p02706
u860874998
u860874998
1,589,564,640
2020-05-15T17:44:00
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); int[] A =new int[M];; int sum=0 for(int i=0;i<M;i++){ A[i] = sc.nextInt(); sum=sum+A[i]; } if(sum<N){ System.out....
Main.java:9: error: ';' expected int sum=0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u860874998|p02706|1
u860874998|p02706|1
codenet
Compile Error
390
v2_s351577567
s351577567
s351577567
p02706
p02706
u968862304
u968862304
1,587,379,934
2020-04-20T10:52:14
Main.java
public class Main { private static int error =-1; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (int i = 0; i < b ; i++) { int c = sc.nextInt(); if(a>sum) ...
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
u968862304|p02706|0
u968862304|p02706|0
codenet
Compile Error
594
v2_s152837367
s152837367
s152837367
p02706
p02706
u968862304
u968862304
1,587,379,976
2020-04-20T10:52:56
Test.java
import.java.util.*; public class Test { private static int error =-1; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (int i = 0; i < b ; i++) { int c = sc.nextInt(); ...
Test.java:2: error: <identifier> expected import.java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u968862304|p02706|0
u968862304|p02706|0
codenet
Compile Error
616
v2_s400320279
s400320279
s400320279
p02706
p02706
u968862304
u968862304
1,587,379,995
2020-04-20T10:53:15
Main.java
import.java.util.*; public class Main { private static int error =-1; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (int i = 0; i < b ; i++) { int c = sc.nextInt(); ...
Main.java:2: error: <identifier> expected import.java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u968862304|p02706|0
u968862304|p02706|0
codenet
Compile Error
615
v2_s961127613
s961127613
s961127613
p02706
p02706
u978969246
u978969246
1,587,574,018
2020-04-22T16:46:58
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String[] homework = scanner.nextLine().split(" "); String[] days =scanner.nextLine().split(" "); int daySum = Arrays.stream(days).mapToInt(Integer::parseInt).sum(); int d =...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u978969246|p02706|0
u978969246|p02706|0
codenet
Compile Error
487
v2_s036686577
s036686577
s036686577
p02707
p02707
u009183599
u009183599
1,587,345,188
2020-04-20T01:13:08
Main.java
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); int n = fs.nextInt(); int[] as = new int[n]; for( int i = 1 ; i < n ; i++ ){ in...
Main.java:1: error: package org.omg.PortableInterceptor does not exist import org.omg.PortableInterceptor.SYSTEM_EXCEPTION; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u009183599|p02707|0
u009183599|p02707|0
codenet
Compile Error
3,394
v2_s465331900
s465331900
s465331900
p02707
p02707
u009245552
u009245552
1,587,346,674
2020-04-20T01:37:54
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int employee = sc.nextInt(); int[] results = new int[employee]; for (int i = 0; i < employee - 1; i++) { int boss = sc.nextInt(); results[boss - 1]++; } sc.close(); for (int result : results) { Sys...
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
u009245552|p02707|0
u009245552|p02707|0
codenet
Compile Error
355
v2_s169869587
s169869587
s169869587
p02707
p02707
u076303440
u076303440
1,587,348,099
2020-04-20T02:01:39
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int N = scn.nextInt(); String[] AnString = (scn.nextLine()).split(" "); int[] Aresult = new int[N]; int A = 0; for(int i=1;i<N;i++){ ...
Main.java:10: error: cannot find symbol A = Integer.valueof(AnString[i]); ^ symbol: method valueof(String) location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u076303440|p02707|0
u076303440|p02707|0
codenet
Compile Error
470
v2_s718521916
s718521916
s718521916
p02707
p02707
u186052266
u186052266
1,593,807,816
2020-07-03T20:23:36
main.java
import java.util.Map.Entry; import java.util.*; import java.math.*; import org.w3c.dom.css.Counter; public class main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); //モンスターの体力 //int H = Integer.valueOf(s.next()); //社員番号 int N = Integer.valueO...
main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u186052266|p02707|0
u186052266|p02707|0
codenet
Compile Error
654
v2_s915589488
s915589488
s915589488
p02707
p02707
u232720627
u232720627
1,587,350,815
2020-04-20T02:46:55
Main.java
import sun.management.counter.Counter; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] result = new int[num + 1]; Map<Integer, ...
Main.java:2: error: package sun.management.counter is not visible import sun.management.counter.Counter; ^ (package sun.management.counter is declared in module java.management, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u232720627|p02707|0
u232720627|p02707|0
codenet
Compile Error
794
v2_s878623928
s878623928
s878623928
p02707
p02707
u232720627
u232720627
1,587,350,862
2020-04-20T02:47:42
Main.java
import sun.management.counter.Counter; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] result = new int[num + 1]; Map<Integer, ...
Main.java:2: error: package sun.management.counter is not visible import sun.management.counter.Counter; ^ (package sun.management.counter is declared in module java.management, which does not export it to the unnamed module) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u232720627|p02707|0
u232720627|p02707|0
codenet
Compile Error
794
v2_s729073191
s729073191
s729073191
p02707
p02707
u266264498
u266264498
1,587,349,772
2020-04-20T02:29:32
Main.java
class Solution { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); int[] count=new int[t+1]; for (int i=0;i<t;i++) { count[sc.nextInt()]++; } for (int i=1;i<=t ;i++ ) { System.out.println(count[i]); } } }
Main.java:3: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Solution Main.java:3: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Solution 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266264498|p02707|0
u266264498|p02707|0
codenet
Compile Error
271
v2_s936755402
s936755402
s936755402
p02707
p02707
u266264498
u266264498
1,587,349,814
2020-04-20T02:30:14
Main.java
import java.lang.*; importjava.util.*; class Solution { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); int[] count=new int[t+1]; for (int i=0;i<t;i++) { count[sc.nextInt()]++; } for (int i=1;i<=t ;i++ ) { System.out.print(count[i]+" "); } } }
Main.java:2: error: class, interface, enum, or record expected importjava.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266264498|p02707|0
u266264498|p02707|0
codenet
Compile Error
312
v2_s886139380
s886139380
s886139380
p02707
p02707
u266264498
u266264498
1,587,349,856
2020-04-20T02:30:56
Main.java
import java.lang.*; import java.util.*; class Solution { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int t=sc.nextInt(); int[] count=new int[t+1]; for (int i=0;i<t;i++) { temp=sc.nextInt(); count[temp]++; } for (int i=1;i<=t ;i++ ) { System.out.print(count[i]+" "); ...
Main.java:9: error: cannot find symbol temp=sc.nextInt(); ^ symbol: variable temp location: class Solution Main.java:10: error: cannot find symbol count[temp]++; ^ symbol: variable temp location: class Solution 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u266264498|p02707|0
u266264498|p02707|0
codenet
Compile Error
327
v2_s362668671
s362668671
s362668671
p02707
p02707
u315307508
u315307508
1,587,350,443
2020-04-20T02:40:43
program.java
import java.util.*; public class program{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); Map<Integer,Integer> map = new HashMap<Integer,Integer>(); int n = scn.nextInt(); int []arr = new int[n]; for(int i=1;i<n;i++){ arr[i] = scn.nextInt(); } for(int i=...
program.java:12: error: ')' expected if(map.containsKey(arr[i]){ ^ program.java:38: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u315307508|p02707|0
u315307508|p02707|0
codenet
Compile Error
645
v2_s325087172
s325087172
s325087172
p02707
p02707
u315307508
u315307508
1,587,350,516
2020-04-20T02:41:56
program.java
import java.util.*; public class program{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); Map<Integer,Integer> map = new HashMap<Integer,Integer>(); int n = scn.nextInt(); int []arr = new int[n]; for(int i=1;i<n;i++){ arr[i] = scn.nextInt(); } for(int i=...
program.java:13: error: cannot find symbol int val = map.get(x) + 1; ^ symbol: variable x location: class program program.java:14: error: cannot find symbol map.put(x,val); ^ symbol: variable x location: class program program.java:16: error: cannot f...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u315307508|p02707|0
u315307508|p02707|0
codenet
Compile Error
648
v2_s318342664
s318342664
s318342664
p02707
p02707
u486466217
u486466217
1,587,345,475
2020-04-20T01:17:55
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力 int syaink = sc.nextInt(); int[] buka=new int[syaink]; for(int i=0;i<buka.length;i++){ buka[i]=0; } for(int i=0;i<syaink-2;i++){ int a=sc.n...
Main.java:16: error: cannot find symbol println(buka[i]); ^ symbol: method println(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02707|0
u486466217|p02707|0
codenet
Compile Error
460
v2_s783380580
s783380580
s783380580
p02707
p02707
u486466217
u486466217
1,587,345,518
2020-04-20T01:18:38
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スペース区切りの整数の入力 int syaink = sc.nextInt(); int[] buka=new int[syaink]; for(int i=0;i<buka.length;i++){ buka[i]=0; } for(int i=0;i<syaink-2;i++){ int a=sc.n...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u486466217|p02707|0
u486466217|p02707|0
codenet
Compile Error
461
v2_s517947465
s517947465
s517947465
p02707
p02707
u495314970
u495314970
1,587,347,552
2020-04-20T01:52:32
Main.java
import java.util.*; class Main{ public static void main(String[] args) { Scanner reader=new Scanner(System.in); int n=reader.nextInt(); int buka[]=new int[n+1]; int number[]=new int[n+1]; buka[0]=0; for(int i=0;i<n;i++) { number[i]=0; } for(int i=2;i<=n;i++) { buka...
Main.java:22: error: reached end of file while parsing System.out.println(number[i]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495314970|p02707|0
u495314970|p02707|0
codenet
Compile Error
433
v2_s550506423
s550506423
s550506423
p02707
p02707
u599968009
u599968009
1,587,346,808
2020-04-20T01:40:08
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a[] = new int[n]; for(int i=1; i<n; i++) { a[i-1] = sc.nextInt(); } int b[] = new int[n]; for(int i=0; i<n;i++) { b[i]=0; } for(int i=0; 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
u599968009|p02707|0
u599968009|p02707|0
codenet
Compile Error
428
v2_s204509407
s204509407
s204509407
p02707
p02707
u639376944
u639376944
1,591,759,893
2020-06-10T03:31:33
Main.java
import java.util.Scanner; import java.util.ArrayList; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); ArrayList <Integer> li = new ArrayList <Integer>(); ArrayList <Integer> lili = new ArrayList <Integer>(); for(int i=0; i<number-...
Main.java:21: error: ';' expected System.out.println(lili.get(1)) ^ Main.java:23: error: ';' expected System.out.println(0) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u639376944|p02707|1
u639376944|p02707|1
codenet
Compile Error
647
v2_s341158078
s341158078
s341158078
p02707
p02707
u657818166
u657818166
1,587,346,765
2020-04-20T01:39:25
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; class Main{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(bf.readLine()); int[] ls = Arrays.stream(bf.readLine().split(" ")).mapToInt(Inte...
Main.java:10: error: illegal start of type for (int i = 0; i < n; i++) ^ Main.java:10: error: > or ',' expected for (int i = 0; i < n; i++) ^ Main.java:10: error: <identifier> expected for (int i = 0; i < n; i++) ^ Main.java:11...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u657818166|p02707|0
u657818166|p02707|0
codenet
Compile Error
606
v2_s249342928
s249342928
s249342928
p02707
p02707
u658696523
u658696523
1,587,930,256
2020-04-26T19:44:16
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int ans[n] = new int[n]; ans = {0}; for(int i = 0; i < n; i++){ ans[stdIn.nextInt()] ++; } for(int i = 0; i < n; i++){ System....
Main.java:9: error: ']' expected int ans[n] = new int[n]; ^ Main.java:9: error: ';' expected int ans[n] = new int[n]; ^ Main.java:9: error: not a statement int ans[n] = new int[n]; ^ Main.java:10: error: illegal start of expression ans = {0}; ^ Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u658696523|p02707|0
u658696523|p02707|0
codenet
Compile Error
352
v2_s431050305
s431050305
s431050305
p02707
p02707
u700932550
u700932550
1,587,347,544
2020-04-20T01:52:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); HashMap<Integer, Integer> hm = new HashMap<>(); int n = in.nextInt(); int ar[] = new int[n-1]; for(int i=0;i<n-1;i++){ ar[i...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u700932550|p02707|0
u700932550|p02707|0
codenet
Compile Error
761
v2_s705194083
s705194083
s705194083
p02707
p02707
u700932550
u700932550
1,587,347,652
2020-04-20T01:54:12
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner in = new Scanner(System.in); HashMap<Integer, Integer> hm = new HashMap<>(); int n = in.nextInt(); int ar[] = new int[n-1]; for(int i=0;i<n-1;i++){ ar[i...
Main.java:30: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u700932550|p02707|0
u700932550|p02707|0
codenet
Compile Error
730
v2_s478148136
s478148136
s478148136
p02707
p02707
u733654888
u733654888
1,587,690,904
2020-04-24T01:15:04
Main.java
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i++) { map.put(i, 0); } for (int j = 0; j < n; j++) { int s = sc.nextI...
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
u733654888|p02707|0
u733654888|p02707|0
codenet
Compile Error
476
v2_s412353780
s412353780
s412353780
p02707
p02707
u733654888
u733654888
1,587,690,952
2020-04-24T01:15:52
Main.java
public static void Main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < n; i++) { map.put(i, 0); } for (int j = 0; j < n; j++) { int s = sc.nextI...
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
u733654888|p02707|0
u733654888|p02707|0
codenet
Compile Error
476
v2_s118206617
s118206617
s118206617
p02707
p02707
u733654888
u733654888
1,587,691,368
2020-04-24T01:22:48
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int arr[] = new int[n]; for(int i = 0; i < n - 1; i++) { int value = scanner.nextInt(); arr[value - 1] += 1; } for(int value : arr) System....
Main.java:23: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:45: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u733654888|p02707|0
u733654888|p02707|0
codenet
Compile Error
749
v2_s136366678
s136366678
s136366678
p02707
p02707
u733654888
u733654888
1,587,691,397
2020-04-24T01:23:17
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int arr[] = new int[n]; for(int i = 0; i < n - 1; i++) { int value = scanner.nextInt(); arr[value - 1] += 1; } for(int value : arr) System.out.println(value);...
Main.java:23: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:45: error: reached end of file while parsing ???? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u733654888|p02707|0
u733654888|p02707|0
codenet
Compile Error
730
v2_s216876259
s216876259
s216876259
p02707
p02707
u734986528
u734986528
1,587,347,419
2020-04-20T01:50:19
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); ArrayList<Integer> hey = new ArrayList<Integer>(); for(int i=0;i<a-1;i++){ int b = sc.nextInt(); ...
Main.java:48: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u734986528|p02707|0
u734986528|p02707|0
codenet
Compile Error
1,273
v2_s091619481
s091619481
s091619481
p02707
p02707
u755665813
u755665813
1,587,353,521
2020-04-20T03:32:01
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); for(int i=1; i<=N; i++){ list = list.add(0); } for(int i=1; i<N; i++){ i...
Main.java:9: error: incompatible types: boolean cannot be converted to List<Integer> list = list.add(0); ^ Main.java:13: error: array required, but List<Integer> found list[i-1] += 1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02707|0
u755665813|p02707|0
codenet
Compile Error
463
v2_s535398046
s535398046
s535398046
p02707
p02707
u755665813
u755665813
1,587,356,768
2020-04-20T04:26:08
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); List<String> listAns = new ArrayList<String>(); Map<int,int> map = new HashMap<>(); for(int i=1; i...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02707|0
u755665813|p02707|0
codenet
Compile Error
597
v2_s466430476
s466430476
s466430476
p02707
p02707
u755665813
u755665813
1,587,356,846
2020-04-20T04:27:26
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); List<String> listAns = new ArrayList<String>(); for(int i=1; i<=N; i++){ int Ai = sc.nextInt(); ...
Main.java:11: error: incompatible types: boolean cannot be converted to List<Integer> list = list.add(Ai); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02707|0
u755665813|p02707|0
codenet
Compile Error
564
v2_s752701327
s752701327
s752701327
p02707
p02707
u755665813
u755665813
1,587,356,909
2020-04-20T04:28:29
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); List<Integer> listAns = new ArrayList<Integer>(); for(int i=1; i<=N; i++){ int Ai = sc.nextInt()...
Main.java:11: error: incompatible types: boolean cannot be converted to List<Integer> list = list.add(Ai); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02707|0
u755665813|p02707|0
codenet
Compile Error
566
v2_s285810352
s285810352
s285810352
p02707
p02707
u755665813
u755665813
1,587,357,066
2020-04-20T04:31:06
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); List<Integer> listAns = new ArrayList<Integer>(); for(int i=1; i<=N; i++){ list = list.add(sc.ne...
Main.java:10: error: incompatible types: boolean cannot be converted to List<Integer> list = list.add(sc.nextInt()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u755665813|p02707|0
u755665813|p02707|0
codenet
Compile Error
545
v2_s741221824
s741221824
s741221824
p02707
p02707
u823885866
u823885866
1,591,572,861
2020-06-07T23:34:21
Main.java
import java.util.Scanner; import java.util.ArrayList; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); ArrayList <Integer> li = new ArrayList <Integer>(); ArrayList <Integer> lili = new ArrayList <Integer>(); for(int i=0; i<number-...
Main.java:17: error: ';' expected a = li.get(i) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u823885866|p02707|0
u823885866|p02707|0
codenet
Compile Error
645
v2_s295331711
s295331711
s295331711
p02707
p02707
u823885866
u823885866
1,591,572,887
2020-06-07T23:34:47
Main.java
import java.util.Scanner; import java.util.ArrayList; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); ArrayList <Integer> li = new ArrayList <Integer>(); ArrayList <Integer> lili = new ArrayList <Integer>(); for(int i=0; i<number-...
Main.java:17: error: cannot find symbol a = li.get(i); ^ symbol: variable a location: class Main Main.java:18: error: cannot find symbol lili.set(a-1,lili.get(a)+1); ^ symbol: variable a location: class Main Main.java:18: error: cannot find symbol lili.set(a-1,lili.get...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u823885866|p02707|0
u823885866|p02707|0
codenet
Compile Error
646
v2_s580215257
s580215257
s580215257
p02707
p02707
u852139086
u852139086
1,587,352,929
2020-04-20T03:22:09
Main.java
import java.util.Scanner; class Main{ public static void main(String args[]){ int N; int[] josi; Scanner sc = new Scanner(System.in) josi = new Int[sc.nextInt()]; for(int i =0;i<josi.length-1;i++){ josi[sc.nextInt()-1]++; } for(int i = 0;i<josi.length;i++){ System.out.println(j...
Main.java:6: error: ';' expected Scanner sc = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u852139086|p02707|0
u852139086|p02707|0
codenet
Compile Error
340
v2_s063786225
s063786225
s063786225
p02707
p02707
u857143297
u857143297
1,587,351,656
2020-04-20T03:00:56
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); Integer a[] = new Integer[N]; for (int i=0; i<N-1; i++) { a[i] = FastScanner.nextInt(); } Intege...
Main.java:28: error: cannot find symbol private final InputStream in = System.in; ^ symbol: class InputStream location: class FastScanner Main.java:9: error: non-static method nextInt() cannot be referenced from a static context a[i] = FastScanner.nextInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u857143297|p02707|0
u857143297|p02707|0
codenet
Compile Error
2,701
v2_s091467300
s091467300
s091467300
p02707
p02707
u857143297
u857143297
1,587,351,760
2020-04-20T03:02:40
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); Integer a[] = new Integer[N]; for (int i=0; i<N-1; i++) { a[i] = Integer.parseInt(sc.next()); } ...
Main.java:14: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter location: class Main Main.java:14: error: cannot find symbol PrintWriter out = new PrintWriter(System.out); ^ symbol: class PrintWriter locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u857143297|p02707|0
u857143297|p02707|0
codenet
Compile Error
686
v2_s205655382
s205655382
s205655382
p02707
p02707
u868996139
u868996139
1,587,348,155
2020-04-20T02:02:35
Main.java
import java.util.Scanner; public static void main(String[] args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int sup[] = new int[n]; int ans[] = new int[n]; for(int i = 0; i<n; i++){ //初期化 sup[i] = scan.nextInt(); ans[i] = 0; } for(int i = 0; i< n; i++){ ans[sup[i]]++; ...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02707|0
u868996139|p02707|0
codenet
Compile Error
396
v2_s172299221
s172299221
s172299221
p02707
p02707
u868996139
u868996139
1,587,348,255
2020-04-20T02:04:15
Main.java
import java.util.Scanner; public static void main(String args[]){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int sup[] = new int[n]; int ans[] = new int[n]; for(int i = 0; i<n; i++){ //初期化 sup[i] = scan.nextInt(); ans[i] = 0; } for(int i = 0; i< n; i++){ ans[sup[i]]++; ...
Main.java:2: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u868996139|p02707|0
u868996139|p02707|0
codenet
Compile Error
396
v2_s859964816
s859964816
s859964816
p02708
p02708
u105921924
u105921924
1,600,320,297
2020-09-17T05:24:57
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); long n = sc.nextLong(); long k = sc.nextLong(); long WARI = 1000000007L; long result = 0L; for (long i = k; i <= n + 1; i++) { long l = sumN(0, i - 1); ...
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
u105921924|p02708|0
u105921924|p02708|0
codenet
Compile Error
555
v2_s207264621
s207264621
s207264621
p02708
p02708
u316069805
u316069805
1,587,350,472
2020-04-20T02:41:12
Main.java
import java.util.*; public class Main { static final int MOD = 1000000007; static int N; static int K; static int ans = 0; static int[][] memo = new int[N+2][Integer.MAX_VLUE]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); N = sc.nextInt(); K = sc.nextInt(); dfs(0, 0, 0)...
Main.java:9: error: cannot find symbol static int[][] memo = new int[N+2][Integer.MAX_VLUE]; ^ symbol: variable MAX_VLUE location: class Integer 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u316069805|p02708|0
u316069805|p02708|0
codenet
Compile Error
592
v2_s415476370
s415476370
s415476370
p02708
p02708
u406121417
u406121417
1,597,762,967
2020-08-18T15:02:47
Main.java
import java.util.*; public clss Main { public static void main(String[] args) { Scanner cs = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); int count = 0; int small = 0; int smallCount = 0; int big = 0; int bigCount = 0; w...
Main.java:3: error: class, interface, enum, or record expected public clss Main { ^ Main.java:4: 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:30: error: class...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u406121417|p02708|0
u406121417|p02708|0
codenet
Compile Error
802
v2_s899274376
s899274376
s899274376
p02708
p02708
u547671064
u547671064
1,587,347,625
2020-04-20T01:53: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(); int K =sc.nextInt(); int x=N;int y=0;int z=0; for(int i=0;i<=N-K;i++){ y=y+(N-i)*(N-K+1-i); y=y%1000000007} if(y==0){System.out.println(1);System.ex...
Main.java:10: error: ';' expected y=y%1000000007} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02708|0
u547671064|p02708|0
codenet
Compile Error
366
v2_s667694868
s667694868
s667694868
p02708
p02708
u547671064
u547671064
1,587,347,737
2020-04-20T01:55:37
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 y=0; for(int i=0;i<=N-K;i++){ y=y+(N-i)*(N-K+1-i); y=y%1000000007} if(y==0){System.out.println(1);System.exit(0);} ...
Main.java:10: error: ';' expected y=y%1000000007} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547671064|p02708|0
u547671064|p02708|0
codenet
Compile Error
356
v2_s049378828
s049378828
s049378828
p02708
p02708
u609711801
u609711801
1,587,350,342
2020-04-20T02:39:02
Main.java
import java.util.*; public class Main { //途中まで public static void main(String[] args) { Scanner scan = new Scanner(System.in); long n = scan.nextLong(); long k = scan.nextLong(); long count = 0; long sum = 0; List<Long> list = new ArrayList<Long>(); //listに計算...
Main.java:19: error: incompatible types: double cannot be converted to Long list.add(2*Math.pow(10,100)+i+j); ^ Main.java:30: error: incompatible types: double cannot be converted to Long list.add(3*2*Math.pow(10,100)+i+j+s); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u609711801|p02708|0
u609711801|p02708|0
codenet
Compile Error
1,008
v2_s944101929
s944101929
s944101929
p02708
p02708
u609711801
u609711801
1,587,350,382
2020-04-20T02:39:42
Main.java
import java.util.*; public class Main { //途中まで public static void main(String[] args) { Scanner scan = new Scanner(System.in); long n = scan.nextLong(); long k = scan.nextLong(); long count = 0; long sum = 0; List<Long> list = new ArrayList<Long>(); //listに計算...
Main.java:19: error: incompatible types: double cannot be converted to Long list.add(2*Math.pow(10,100)+i+j); ^ Main.java:30: error: incompatible types: double cannot be converted to Long list.add(3*Math.pow(10,100)+i+j+s); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u609711801|p02708|0
u609711801|p02708|0
codenet
Compile Error
1,006
v2_s192167384
s192167384
s192167384
p02708
p02708
u671432311
u671432311
1,587,347,934
2020-04-20T01:58:54
Main.java
import java.util.*; import java.io.PrintWriter; public class Main { { final int MAX = 1000; int[] f; // Constructor public gcdOfFibonacci(){ // Create an array for memoization f = new int[MAX]; } // Returns n'th Fibonacci number using table f[]. // Refer method 6...
Main.java:9: error: illegal start of expression public gcdOfFibonacci(){ ^ Main.java:9: error: invalid method declaration; return type required public gcdOfFibonacci(){ ^ Main.java:60: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u671432311|p02708|0
u671432311|p02708|0
codenet
Compile Error
1,619
v2_s606082498
s606082498
s606082498
p02708
p02708
u671432311
u671432311
1,587,348,117
2020-04-20T02:01:57
Main.java
import java.util.*; import java.io.PrintWriter; public class Main { final int MAX = 1000; int[] f; // Constructor public gcdOfFibonacci(){ // Create an array for memoization f = new int[MAX]; } // Returns n'th Fibonacci number using table f[]. // Refer method 6 of...
Main.java:8: error: invalid method declaration; return type required public gcdOfFibonacci(){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u671432311|p02708|0
u671432311|p02708|0
codenet
Compile Error
1,611
v2_s974312480
s974312480
s974312480
p02708
p02708
u784982404
u784982404
1,587,864,319
2020-04-26T01:25:19
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); long N = sc.nextInt(); long K = sc.nextInt(); long ans = 0; long nSum = (N+1)*N/2+1; for(long k = K; k<=N...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784982404|p02708|0
u784982404|p02708|0
codenet
Compile Error
486
v2_s162616397
s162616397
s162616397
p02708
p02708
u854155653
u854155653
1,587,350,710
2020-04-20T02:45:10
Main.java
import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Ma...
Main.java:129: error: cannot find symbol long tmpans = solve_abc163_d_mod((((long)i * n)%mod - ((long)i * (long)(i - 1))%mod + 1), mod); ^ symbol: method solve_abc163_d_mod(long,long) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u854155653|p02708|0
u854155653|p02708|0
codenet
Compile Error
2,939
v2_s172568796
s172568796
s172568796
p02708
p02708
u980607863
u980607863
1,587,346,567
2020-04-20T01:36:07
Main.java
import java.util.*; public class Main{ long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = Math.pow(10^9)+7; long an...
Main.java:11: error: method pow in class Math cannot be applied to given types; long mod = Math.pow(10^9)+7; ^ required: double,double found: int reason: actual and formal argument lists differ in length Main.java:14: error: non-static method factorial(int,long) cannot be referenced from...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
681
v2_s046798028
s046798028
s046798028
p02708
p02708
u980607863
u980607863
1,587,346,739
2020-04-20T01:38:59
Main.java
import java.util.*; public class Main{ static long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = Math.pow(10^9)+7; ...
Main.java:11: error: method pow in class Math cannot be applied to given types; long mod = Math.pow(10^9)+7; ^ required: double,double found: int reason: actual and formal argument lists differ in length Main.java:18: error: cannot find symbol ans += factorial[n+1]/(fact[k+i]*fact[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
689
v2_s351844132
s351844132
s351844132
p02708
p02708
u980607863
u980607863
1,587,346,802
2020-04-20T01:40:02
Main.java
import java.util.*; public class Main{ static long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = Math.pow(10^9)+7; ...
Main.java:11: error: method pow in class Math cannot be applied to given types; long mod = Math.pow(10^9)+7; ^ required: double,double found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
684
v2_s036372633
s036372633
s036372633
p02708
p02708
u980607863
u980607863
1,587,346,836
2020-04-20T01:40:36
Main.java
import java.util.*; public class Main{ static long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = Math.pow(10, 9)+7; ...
Main.java:11: error: incompatible types: possible lossy conversion from double to long long mod = Math.pow(10, 9)+7; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
685
v2_s353398810
s353398810
s353398810
p02708
p02708
u980607863
u980607863
1,587,346,908
2020-04-20T01:41:48
Main.java
import java.util.*; public class Main{ static long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = Math.pow(10^9).longVa...
Main.java:11: error: method pow in class Math cannot be applied to given types; long mod = Math.pow(10^9).longValue()+7; ^ required: double,double found: int reason: actual and formal argument lists differ in length 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
696
v2_s644476609
s644476609
s644476609
p02708
p02708
u980607863
u980607863
1,587,346,956
2020-04-20T01:42:36
Main.java
import java.util.*; public class Main{ static long factorial(int n, long ans){ if(n <= 1) return ans; return factorial(n-1, ans*n); } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int k = sc.nextInt(); long mod = (Math.pow(10,9)).long...
Main.java:11: error: double cannot be dereferenced long mod = (Math.pow(10,9)).longValue()+7; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u980607863|p02708|0
u980607863|p02708|0
codenet
Compile Error
698
v2_s934605042
s934605042
s934605042
p02709
p02709
u535555850
u535555850
1,587,870,670
2020-04-26T03:11:10
Main.java
#include <bits/stdc++.h> using namespace std; #define rep(i,x,y) for(ll i=(x);i<(y);i++) #define rrep(i,x,y) for(ll i=(ll)(y)-1;i>=(x);i--) #define all(x) (x).begin(),(x).end() #ifdef LOCAL #define dump(x) cerr << #x << " = " << (x) << endl #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " ...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:4: error: illegal character: '#' #define rep(i,x,y) for(ll i=(x);i<(y);i++) ^ Main.java:4: error: class, interface, enum, or record expected ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u535555850|p02709|0
u535555850|p02709|0
codenet
Compile Error
1,389
v2_s929585036
s929585036
s929585036
p02709
p02709
u654809285
u654809285
1,587,349,698
2020-04-20T02:28:18
Main.java
import java.util.*; import javafx.util.Pair; import java.io.*; public class Main { public static void main(String args[]) throws IOException{ BufferedReader in = new BufferedReader(); int n =in.nextInt(); // boolean x[] = new boolean[n]; Pair<Integer, Integer> arr[] = new Pair[n]; for(int i=0; i<n; i++){ ...
Main.java:2: error: package javafx.util does not exist import javafx.util.Pair; ^ Main.java:10: error: cannot find symbol Pair<Integer, Integer> arr[] = new Pair[n]; ^ symbol: class Pair location: class Main Main.java:10: error: cannot find symbol Pair<Integer, Integer> arr[] = new Pair[n]...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u654809285|p02709|0
u654809285|p02709|0
codenet
Compile Error
1,860
v2_s969615283
s969615283
s969615283
p02709
p02709
u689082549
u689082549
1,587,349,141
2020-04-20T02:19:01
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); long[] a = new long[n]; for(int i=0; i<n; i++){ a[i] = stdIn.nextLong(); } Integer[] seed = new Intege...
Main.java:35: error: cannot find symbol class Permutation<T> extends Serializable { ^ symbol: class Serializable Main.java:88: error: method does not override or implement a method from a supertype @Override ^ Note: Main.java uses unchecked or unsafe operations. Note: Recompile wi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u689082549|p02709|0
u689082549|p02709|0
codenet
Compile Error
2,240
v2_s334033075
s334033075
s334033075
p02709
p02709
u981808900
u981808900
1,588,445,049
2020-05-02T18:44:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Arrays; import java.util.Comparator; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryO...
Main.java:12: error: package com.yu212 does not exist import static com.yu212.Utils.println; ^ Main.java:12: error: static import only from classes and interfaces import static com.yu212.Utils.println; ^ Main.java:39: error: cannot find symbol println(i, j, r, l); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p02709|1
u981808900|p02709|1
codenet
Compile Error
4,371
v2_s174315549
s174315549
s174315549
p02710
p02710
u495186373
u495186373
1,587,902,368
2020-04-26T11:59:28
Main.java
public static ArrayList<Integer>[] old; public static int[] preMap; public static ArrayList<Integer>[] tree; public static int[] children; public static int[] parent; public static int[][] ranges; public static int[] total; public static long[] ans; public static ArrayList<long[]>[] indices; public static vo...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static ArrayList<Integer>[] old; ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u495186373|p02710|0
u495186373|p02710|0
codenet
Compile Error
4,972
v2_s574742451
s574742451
s574742451
p02711
p02711
u018773111
u018773111
1,593,004,898
2020-06-24T13:21:38
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String N = sc.next(); System.out.println(contains("7") ? "Yes" : "No"); } }
Main.java:7: error: cannot find symbol System.out.println(contains("7") ? "Yes" : "No"); ^ symbol: method contains(String) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02711|0
u018773111|p02711|0
codenet
Compile Error
208
v2_s375920182
s375920182
s375920182
p02711
p02711
u020449748
u020449748
1,586,966,293
2020-04-15T15:58:13
Main.java
public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); String N = input.next(); System.out.println(N.indexOf('7')); if (N.indexOf('7') >= 0) { System.out.println("Yes"); } else { System.out.println("No"); ...
Main.java:3: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner input = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u020449748|p02711|0
u020449748|p02711|0
codenet
Compile Error
337
v2_s148468400
s148468400
s148468400
p02711
p02711
u038290713
u038290713
1,586,753,565
2020-04-13T04:52:45
a.java
public class a { public static void main(String[] arg) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> num = new ArrayList<>(); while (N >0){ num.add(0,N % 10); N /= 10; } int flag = 0; for (Integer integer...
a.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class a a.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class a a.java:6: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038290713|p02711|0
u038290713|p02711|0
codenet
Compile Error
568
v2_s410182150
s410182150
s410182150
p02711
p02711
u052509991
u052509991
1,586,875,202
2020-04-14T14:40:02
Main.java
import java.util.Scanner; public class Main { Scanner in = new Scanner(System.in); int n = in.nextInt(); while (n != 0) { if (n%10 == 7) { System.out.println("Yes"); break; } n /= 10; } System.out.println("No"); }
Main.java:7: error: illegal start of type while (n != 0) { ^ Main.java:7: error: <identifier> expected while (n != 0) { ^ Main.java:15: error: <identifier> expected System.out.println("No"); ^ Main.java:15: error: illegal start of type System.out.println("No"); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02711|0
u052509991|p02711|0
codenet
Compile Error
274
v2_s956469273
s956469273
s956469273
p02711
p02711
u052509991
u052509991
1,586,876,446
2020-04-14T15:00:46
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); if (str.contains("7")) { System.out.println("Yes"); } else { System.out.println...
Main.java:9: error: illegal start of type if (str.contains("7")) { ^ Main.java:9: error: <identifier> expected if (str.contains("7")) { ^ Main.java:9: error: illegal start of type if (str.contains("7")) { ^ Main.java:11: error: illegal start of type } else { ^ 4 errors...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02711|0
u052509991|p02711|0
codenet
Compile Error
333
v2_s924688140
s924688140
s924688140
p02711
p02711
u052509991
u052509991
1,586,878,800
2020-04-14T15:40:00
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String str = reader.readLine(); int n = Integer.parseInt(str); in...
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown String str = reader.readLine(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052509991|p02711|0
u052509991|p02711|0
codenet
Compile Error
482