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_s390777266
s390777266
s390777266
p02258
p02258
u928579315
u928579315
1,515,097,894
2018-01-04T20:31:34
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] array = new int[num]; for(int i = 0; i < num; i++){ array[i] = sc.nextInt(); } int max = array[1] - arr...
Main.java:20: error: variable max is already defined in method main(String[]) int max = -2000000000; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02258|0
u928579315|p02258|0
codenet
Compile Error
872
v2_s348736454
s348736454
s348736454
p02258
p02258
u938767283
u938767283
1,478,979,661
2016-11-12T19:41:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] R = new int[n]; for (int i=0; i < n; i++) { R[i] = sc.nextInt(); } // // int max = R[1] - R[0...
Main.java:39: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u938767283|p02258|1
u938767283|p02258|0
codenet
Compile Error
701
v2_s159991819
s159991819
s159991819
p02258
p02258
u944658202
u944658202
1,524,210,363
2018-04-20T07:46:03
Main.java
import java.util.Scanner; public class 00_sample_00{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int num[]=new int[n]; for(int i=0;i<n;i++){ num[i]=sc.nextInt(); } for(int i=0;i<n;i++){ num[i]...
Main.java:3: error: illegal underscore public class 00_sample_00{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
353
v2_s291429939
s291429939
s291429939
p02258
p02258
u944658202
u944658202
1,524,210,554
2018-04-20T07:49:14
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); } } }
Main.java:9: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
160
v2_s362190456
s362190456
s362190456
p02258
p02258
u944658202
u944658202
1,524,210,600
2018-04-20T07:50:00
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int num[]=new Int[n]; } }
Main.java:7: error: cannot find symbol int num[]=new Int[n]; ^ symbol: class Int location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
208
v2_s520628429
s520628429
s520628429
p02258
p02258
u944658202
u944658202
1,524,210,883
2018-04-20T07:54:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int max=-1000000000,res; int n=sc.nextInt(); int num[]=new int[n]; for(int i=0;i<n;i++){ num[i]=sc.nextInt(); } for(int i=0;i<n...
Main.java:20: error: variable res might not have been initialized System.out.println(res); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
538
v2_s194400579
s194400579
s194400579
p02258
p02258
u944658202
u944658202
1,524,211,270
2018-04-20T08:01:10
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int max=-1000000000,res,min; int n=sc.nextInt(); int num[]=new int[n]; for(int i=0;i<n;i++){ num[i]=sc.nextInt(); } min=num[0];...
Main.java:17: error: array required, but int found res=min[i]-min[j]; ^ Main.java:17: error: cannot find symbol res=min[i]-min[j]; ^ symbol: variable j location: class Main Main.java:17: error: array required, but int found res=min[...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
567
v2_s679751479
s679751479
s679751479
p02258
p02258
u944658202
u944658202
1,524,211,885
2018-04-20T08:11:25
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int max=-1000000000,res,min,num; int n=sc.nextInt(); for(int i=1;i<n;i++){ num=sc.nextInt(); if(i==0){ min=num; ...
Main.java:13: error: variable min might not have been initialized res=num-min; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
574
v2_s925092123
s925092123
s925092123
p02258
p02258
u944658202
u944658202
1,524,211,932
2018-04-20T08:12:12
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int max=-1000000000,res,min,num; int n=sc.nextInt(); for(int i=0;i<n;i++){ num=sc.nextInt(); if(i==0){ min=num; ...
Main.java:13: error: variable min might not have been initialized res=num-min; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u944658202|p02258|0
u944658202|p02258|0
codenet
Compile Error
574
v2_s093483901
s093483901
s093483901
p02258
p02258
u953426798
u953426798
1,529,312,809
2018-06-18T09:06:49
Main.java
#include<stdio.h> int main(){ int i,j; int n,r,res; int min,min_n,max; int data[200000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&data[i]); } min=data[0]; min_n=0; for(i=0;i<n;i++){ if(min>data[i]){ min=data[i]; min_n=i; } } if(min_n==n-1){ res=min; min=d...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected int n,r,res; ^ Main.java:6: error: class, interface, enum, or record expected int min,min_n,max; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u953426798|p02258|0
u953426798|p02258|0
codenet
Compile Error
609
v2_s480294943
s480294943
s480294943
p02258
p02258
u990787357
u990787357
1,546,015,482
2018-12-28T16:44:42
Main.java
public class Main { private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws NumberFormatException, IOException { int n = Integer.parseInt(br.readLine()); int maxv = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; for(in...
Main.java:3: error: cannot find symbol private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.java:6: error: cannot find symbol public static void main(String[] args) throws NumberFormatException, IOExcept...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990787357|p02258|0
u990787357|p02258|0
codenet
Compile Error
491
v2_s471265424
s471265424
s471265424
p02259
p02259
u021078771
u021078771
1,555,900,318
2019-04-22T02:31:58
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int[] array = new int[n]; String[] input = sc.nextLine().split(" "); for(int i = 0; i < n; i++){ ...
Main.java:13: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02259|0
u021078771|p02259|0
codenet
Compile Error
369
v2_s828043056
s828043056
s828043056
p02259
p02259
u021078771
u021078771
1,555,900,328
2019-04-22T02:32:08
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); int[] array = new int[n]; String[] input = sc.nextLine().split(" "); for(int i = 0; i < n; i++){ ...
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02259|0
u021078771|p02259|0
codenet
Compile Error
375
v2_s137760710
s137760710
s137760710
p02259
p02259
u021078771
u021078771
1,555,900,655
2019-04-22T02:37:35
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = 0; int n = Integer.parseInt(sc.nextLine()); int[] array = new int[n]; String[] input = sc.nextLine().split(" "); for(int i = 0; i ...
Main.java:17: error: bad operand types for binary operator '>' if(input[j] > input[j+1]){ ^ first type: String second type: String Main.java:18: error: incompatible types: String cannot be converted to int int tmp = input[j]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021078771|p02259|0
u021078771|p02259|0
codenet
Compile Error
800
v2_s240344858
s240344858
s240344858
p02259
p02259
u047818749
u047818749
1,523,862,045
2018-04-16T07:00:45
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A[] = new int[N]; for(int i = 0; i < N; i++) A[i] = sc.nextInt(); int count = 0; int flag = 1; ...
Main.java:35: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047818749|p02259|0
u047818749|p02259|0
codenet
Compile Error
854
v2_s103401368
s103401368
s103401368
p02259
p02259
u121559572
u121559572
1,487,291,185
2017-02-17T00:26:25
Main.java
import java.io.* public class Main{ public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int data [] = int[n]; int count = 0; for(int i=0; i<n; i++){ for(int j=0; j<n-i; j++){ if(da...
Main.java:1: error: ';' expected import java.io.* ^ Main.java:6: error: ']' expected int data [] = int[n]; ^ Main.java:6: error: ';' expected int data [] = int[n]; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|0
u121559572|p02259|0
codenet
Compile Error
586
v2_s890186957
s890186957
s890186957
p02259
p02259
u121559572
u121559572
1,487,291,642
2017-02-17T00:34:02
Main.java
import java.io.* ; public class Main{ public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int data [] = new int[n]; int count = 0; for(int i=0; i<n; i++){ for(int j=0; j<n-i; j++){ ...
Main.java:5: error: unreported exception IOException; must be caught or declared to be thrown int n = Integer.parseInt(br.readLine()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|0
u121559572|p02259|0
codenet
Compile Error
592
v2_s599383925
s599383925
s599383925
p02259
p02259
u121559572
u121559572
1,487,291,779
2017-02-17T00:36:19
Main.java
import java.io.* ; public class Main{ public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); int data [] = new data [n]; int count = 0; for(int i=0; i<n; i++){ for(int j=0;...
Main.java:6: error: cannot find symbol int data [] = new data [n]; ^ symbol: class data location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|0
u121559572|p02259|0
codenet
Compile Error
613
v2_s749391593
s749391593
s749391593
p02259
p02259
u121559572
u121559572
1,487,501,854
2017-02-19T10:57:34
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) thorows IOException{ int n =0; int [] suuji; int count =0; Scanner scanner = new Scanner(System.int); int n = scanner.nexrInt(); int [] suuji = new int[n]; for(in...
Main.java:6: error: ';' expected public static void main(String[] args) thorows IOException{ ^ Main.java:11: error: <identifier> expected Scanner scanner = new Scanner(System.int); ^ Main.java:11: error: ';' expecte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
852
v2_s607479200
s607479200
s607479200
p02259
p02259
u121559572
u121559572
1,487,502,035
2017-02-19T11:00:35
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws IOException{ int n =0; int [] suuji; int narabi =0; int count =0; Scanner scanner = new Scanner(System.in); int n = scanner.nexrInt(); int [] suuji = new int[...
Main.java:32: error: not a statement System,out.print(narbai+ " "); ^ Main.java:32: error: ';' expected System,out.print(narbai+ " "); ^ Main.java:37: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
910
v2_s462348072
s462348072
s462348072
p02259
p02259
u121559572
u121559572
1,487,504,058
2017-02-19T11:34:18
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) { int count =0; Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); int [] array = new int[n]; for(int i=0; i<n-1; i++){ array[i...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
844
v2_s197734131
s197734131
s197734131
p02259
p02259
u121559572
u121559572
1,487,504,094
2017-02-19T11:34:54
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) { int count =0; Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); int [] array = new int[n]; for(int i=0; i<n-1; i++){ array[i...
Main.java:16: error: cannot find symbol for(int j=0; j<array.length-1; j++){ ^ symbol: variable array location: class Main Main.java:17: error: cannot find symbol for(int k=n-1; j<k; k--){ ^ symbol: variable n location: class Main Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
846
v2_s111628990
s111628990
s111628990
p02259
p02259
u121559572
u121559572
1,487,504,128
2017-02-19T11:35:28
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) { int count =0; Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int n = sc.nextInt(); int [] array = new int[n]; for(int i=0; i<n-1; i++){ array[i...
Main.java:27: error: cannot find symbol System.out.print(" " + a[i]); ^ symbol: variable a location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
845
v2_s472081431
s472081431
s472081431
p02259
p02259
u121559572
u121559572
1,487,504,426
2017-02-19T11:40:26
Main.java
class Main extends MyUtil{ // public static ArrayList<ArrayList<Integer>> g; public static Graph g; public static void main(String[] args) throws Exception{ int n = readInt(); int[] a = readIntMap(); int count = 0; for (int i = 0; i < n-1; i++) { for (int j ...
Main.java:1: error: cannot find symbol class Main extends MyUtil{ ^ symbol: class MyUtil Main.java:3: error: cannot find symbol public static Graph g; ^ symbol: class Graph location: class Main Main.java:6: error: cannot find symbol int n = readInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
746
v2_s193145407
s193145407
s193145407
p02259
p02259
u121559572
u121559572
1,487,504,503
2017-02-19T11:41:43
Main.java
import java.io.*; import java.math.*; import java.util.*; class Main extends MyUtil{ // public static ArrayList<ArrayList<Integer>> g; public static Graph g; public static void main(String[] args) throws Exception{ int n = readInt(); int[] a = readIntMap(); int count = 0; ...
Main.java:5: error: cannot find symbol class Main extends MyUtil{ ^ symbol: class MyUtil Main.java:7: error: cannot find symbol public static Graph g; ^ symbol: class Graph location: class Main Main.java:10: error: cannot find symbol int n = readInt(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
806
v2_s478220281
s478220281
s478220281
p02259
p02259
u121559572
u121559572
1,487,506,533
2017-02-19T12:15:33
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) { int narabi =0; int count =0; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int [] array = new int[n]; for(int i=0; i<n; i++){ array[i] = sc.n...
Main.java:28: error: empty character literal System.out.print(number + ''); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u121559572|p02259|1
u121559572|p02259|1
codenet
Compile Error
924
v2_s659973976
s659973976
s659973976
p02259
p02259
u139791751
u139791751
1,530,608,263
2018-07-03T08:57:43
Main.java
#include<stdio.h> #include<stdlib.h> int main(void) { int temp, i, cnt = 0, flag, j; int numbers[100]; scanf("%d", &j); for(i = 0;i < j;i++){ scanf("%d", &numbers[i]); } flag = 1; while(flag) { flag = 0; for( i = j-1; i>=1; i--) { if(numbers[j] < numbers[j-1] ) { temp = numbers[...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:5: error: class, interface, enum, or record expected int numbers[100]; ^ Main.java:7: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139791751|p02259|0
u139791751|p02259|0
codenet
Compile Error
555
v2_s095017006
s095017006
s095017006
p02259
p02259
u139791751
u139791751
1,530,608,272
2018-07-03T08:57:52
Main.java
#include<stdio.h> #include<stdlib.h> int main(void) { int temp, i, cnt = 0, flag, j; int numbers[100]; scanf("%d", &j); for(i = 0;i < j;i++){ scanf("%d", &numbers[i]); } flag = 1; while(flag) { flag = 0; for( i = j-1; i>=1; i--) { if(numbers[j] < numbers[j-1] ) { temp = numbers[...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:5: error: class, interface, enum, or record expected int numbers[100]; ^ Main.java:7: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139791751|p02259|0
u139791751|p02259|0
codenet
Compile Error
555
v2_s643814462
s643814462
s643814462
p02259
p02259
u154732449
u154732449
1,529,382,606
2018-06-19T04:30:06
Main.java
#include <stdio.h> int main(){ int n, a[100], i, count=0, flag=1, b; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &a[i]); } while(flag==1){ flag=0; for(i=n-1; i>0; i--){ if(a[i]<a[i-1]){ b=a[i]; a[i]=a[i-1]; a[i-1]=b; count++; flag=1; } } } for(i=0; i<n-1; i++){ ...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected scanf("%d", &n); ^ Main.java:6: error: class, interface, enum, or record expected for(i=0; i<n...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154732449|p02259|0
u154732449|p02259|0
codenet
Compile Error
412
v2_s222071037
s222071037
s222071037
p02259
p02259
u154732449
u154732449
1,529,382,623
2018-06-19T04:30:23
Main.java
#include <stdio.h> int main(){ int n, a[100], i, count=0, flag=1, b; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &a[i]); } while(flag==1){ flag=0; for(i=n-1; i>0; i--){ if(a[i]<a[i-1]){ b=a[i]; a[i]=a[i-1]; a[i-1]=b; count++; flag=1; } } } for(i=0; i<n-1; i++){ ...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected scanf("%d", &n); ^ Main.java:6: error: class, interface, enum, or record expected for(i=0; i<n...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u154732449|p02259|0
u154732449|p02259|0
codenet
Compile Error
412
v2_s914847007
s914847007
s914847007
p02259
p02259
u162151793
u162151793
1,508,840,345
2017-10-24T10:19:05
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args)throws Exception{ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] numbers = new int[n]; int couont = 0; int temp = ...
Main.java:15: error: cannot find symbol while(frag == 1){ ^ symbol: variable frag location: class Main Main.java:16: error: cannot find symbol frag = 0; ^ symbol: variable frag location: class Main Main.java:18: error: incompatible types: int cannot be converted to boolean if(numbers[i] ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u162151793|p02259|0
u162151793|p02259|0
codenet
Compile Error
768
v2_s645403753
s645403753
s645403753
p02259
p02259
u196269386
u196269386
1,507,845,251
2017-10-12T21:54:11
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for(int arrayIndex = 0; arrayIndex < n; arrayIndex++) { nums[arrayIndex] = sc.nextInt(); } boolean flag = true; int swapCount = 0;...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u196269386|p02259|0
u196269386|p02259|0
codenet
Compile Error
839
v2_s358694966
s358694966
s358694966
p02259
p02259
u213503793
u213503793
1,409,381,971
2014-08-30T06:59:31
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamRe...
Main.java:15: error: cannot find symbol StringTokenizer st=new StringTokenizer(br.readLine()); ^ symbol: class StringTokenizer location: class Main Main.java:15: error: cannot find symbol StringTokenizer st=new StringTokenizer(br.readLine()); ^ symbol: class StringTokenizer location: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02259|0
u213503793|p02259|0
codenet
Compile Error
947
v2_s269488308
s269488308
s269488308
p02259
p02259
u213503793
u213503793
1,409,382,026
2014-08-30T07:00:26
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedRead...
Main.java:29: error: variable i might not have been initialized for(int i=i;i<n;i++)stb.append(Integer.toString(in[i])); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02259|0
u213503793|p02259|0
codenet
Compile Error
967
v2_s770987725
s770987725
s770987725
p02259
p02259
u213503793
u213503793
1,409,382,051
2014-08-30T07:00:51
Main.java
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.StringTokenizer; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = ne...
Main.java:29: error: variable i might not have been initialized for(int i=i;i<n;i++)stb.append(Integer.toString(in[i])); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02259|0
u213503793|p02259|0
codenet
Compile Error
981
v2_s406006694
s406006694
s406006694
p02259
p02259
u221198783
u221198783
1,455,352,383
2016-02-13T08:33:03
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] strs = br.readLine().split(" "); int[] inputData = new int[n]; for (int i = 0; i < n; i++) { inputDat...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u221198783|p02259|1
u221198783|p02259|1
codenet
Compile Error
1,044
v2_s667569452
s667569452
s667569452
p02259
p02259
u352522848
u352522848
1,446,731,374
2015-11-05T13:49:34
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); String[] arrStr = in.readLine().split(" "); for(int i=0; i<count; i++) { arrInt[i] = ...
Main.java:9: error: cannot find symbol for(int i=0; i<count; i++) { arrInt[i] = Integer.parseInt(arrStr[i]); } ^ symbol: variable arrInt location: class Main Main.java:12: error: incompatible types: int cannot be converted to boolean while(flag) { ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02259|0
u352522848|p02259|0
codenet
Compile Error
927
v2_s302431953
s302431953
s302431953
p02259
p02259
u352522848
u352522848
1,446,731,427
2015-11-05T13:50:27
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); String[] arrStr = in.readLine().split(" "); int[] arrInt = new int[count]; for(...
Main.java:13: error: incompatible types: int cannot be converted to boolean while(flag) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02259|0
u352522848|p02259|0
codenet
Compile Error
964
v2_s441781020
s441781020
s441781020
p02259
p02259
u354136358
u354136358
1,510,083,385
2017-11-07T19:36:25
Main.java
import java.util.List; class Main { public static void main(String[] args) { Input stdIn = new Input(); int n = stdIn.getValue(); List<Integer> values = stdIn.getLine(); bubbleSort(values, n); stdIn.close(); } public static void bubbleSort(List<Integer> values, int n) { int count = 0; for (in...
Main.java:7: error: cannot find symbol Input stdIn = new Input(); ^ symbol: class Input location: class Main Main.java:7: error: cannot find symbol Input stdIn = new Input(); ^ symbol: class Input location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02259|0
u354136358|p02259|0
codenet
Compile Error
758
v2_s006140098
s006140098
s006140098
p02259
p02259
u354136358
u354136358
1,510,083,471
2017-11-07T19:37:51
Main.java
import java.util.List; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public Main { public static void main(String[] args) { Input stdIn = new Input(); int n = stdIn.getValue(); List<Integer> values = stdIn.getL...
Main.java:9: error: class, interface, enum, or record expected public Main { ^ Main.java:11: 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:47: error: class, interfac...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02259|0
u354136358|p02259|0
codenet
Compile Error
1,838
v2_s404538757
s404538757
s404538757
p02259
p02259
u399851654
u399851654
1,529,923,972
2018-06-25T10:52:52
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception{ int i = 0; int tmp; int Count_Sort = 0; boolean flag = true; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N_str = br.readLine(); int N = Integer.parseInt(N_str); ...
Main.java:50: error: illegal start of type return ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399851654|p02259|0
u399851654|p02259|0
codenet
Compile Error
857
v2_s647669158
s647669158
s647669158
p02259
p02259
u399851654
u399851654
1,529,924,045
2018-06-25T10:54:05
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception{ int i = 0; int tmp; int Count_Sort = 0; boolean flag = true; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N_str = br.readLine(); int N = Integer.parseInt(N_str); ...
Main.java:50: error: illegal start of type return ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399851654|p02259|0
u399851654|p02259|0
codenet
Compile Error
857
v2_s147935096
s147935096
s147935096
p02259
p02259
u435226340
u435226340
1,528,953,095
2018-06-14T05:11:35
Main.java
#include<stdio.h> int main(){ int A[100], n, i, j, t, sw = 0; scanf("%d", &n); for ( i = 0; i < n; i++ ) scanf("%d", &A[i]); for ( i = 0; i < n; i++ ){ for ( j = n-1; j >= i+1; j-- ){ if ( A[j] < A[j-1] ){ t = A[j]; A[j] = A[j-1]; A[j-1] = t; sw++; } } } for ( i = 0; i < n; i++ ){ ...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:6: error: class, interface, enum, or record expected scanf("%d", &n); ^ Main.java:7: error: class, interface, enum, or record expected for ( i = 0; i ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u435226340|p02259|0
u435226340|p02259|0
codenet
Compile Error
426
v2_s497003093
s497003093
s497003093
p02259
p02259
u457728280
u457728280
1,450,613,114
2015-12-20T12:05:14
Main.java
public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); int[] sortList = new int[count]; for(int i = 0; i < count; i++){ sortList[i] = scanner.nextInt(); } int anser = bubbleSort(sortList, count); for(int i = 0; i < count; i+...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u457728280|p02259|0
u457728280|p02259|0
codenet
Compile Error
847
v2_s544748038
s544748038
s544748038
p02259
p02259
u484493436
u484493436
1,492,254,796
2017-04-15T11:13:16
Main.java
import java.io.*; class Main{ public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(system.in)); int n=br.readLine(); int[] arr=new int[n]; String[] ip=br.readLine().split(" "); for(int i=0;i<n;i++) arr[i]=Integer.parseInt(ip[i]); int swap=0; for(int i=0;i<n-1;i++) for(in...
Main.java:6: error: cannot find symbol BufferedReader br=new BufferedReader(new InputStreamReader(system.in)); ^ symbol: variable system location: class Main Main.java:7: error: incompatible types: String cannot be converted to int int n=br.readLine(); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u484493436|p02259|0
u484493436|p02259|0
codenet
Compile Error
549
v2_s667583717
s667583717
s667583717
p02259
p02259
u566436587
u566436587
1,529,377,058
2018-06-19T02:57:38
Solution.java
public class Solution{ public static void main(String[] ar){ int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0; for(i=0;i<N-1;i++){ for(j=0;j<N-(i+1);j++){ if(A[j] > A[j+1]){ tm...
Solution.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Solution Solution.java:4: 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
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
504
v2_s059067839
s059067839
s059067839
p02259
p02259
u566436587
u566436587
1,529,377,319
2018-06-19T03:01:59
Main.java
import java.util.*; public static void main(String[] ar){ int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0; for(i=0;i<N-1;i++){ for(j=0;j<N-(i+1);j++){ if(A[j] > A[j+1]){ tmp ...
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] ar){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
501
v2_s430452712
s430452712
s430452712
p02259
p02259
u566436587
u566436587
1,529,377,332
2018-06-19T03:02:12
Solution.java
import java.util.*; public static class Solution{ public static void main(String[] ar){ int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0; for(i=0;i<N-1;i++){ for(j=0;j<N-(i+1);j++){ ...
Solution.java:2: error: modifier static not allowed here public static class Solution{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
531
v2_s585465750
s585465750
s585465750
p02259
p02259
u566436587
u566436587
1,529,377,348
2018-06-19T03:02:28
Solution.java
import java.util.*; public static class Solution { public static void main(String[] ar){ int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0; for(i=0;i<N-1;i++){ for(j=0;j<N-(i+1);j++){ ...
Solution.java:2: error: modifier static not allowed here public static class Solution { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
532
v2_s796804120
s796804120
s796804120
p02259
p02259
u566436587
u566436587
1,529,378,306
2018-06-19T03:18:26
BubbleSort.java
package ex2; import java.util.Scanner; public static class BubbleSort { public static void main(String[] args) { // TODO Auto-generated method stub int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0...
BubbleSort.java:3: error: modifier static not allowed here public static class BubbleSort { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
584
v2_s303836491
s303836491
s303836491
p02259
p02259
u566436587
u566436587
1,529,379,218
2018-06-19T03:33:38
BubbleSort.java
import java.util.Scanner; public class BubbleSort { public static void main(String[] args) { // TODO Auto-generated method stub int i,j,N,tmp,cnt; Scanner sc = new Scanner(System.in); N = sc.nextInt(); int [] A = new int [N]; for(i=0; i<N; i++){ A[i] =sc.nextInt(); } cnt =0; for(i=0;i<N-1;i+...
BubbleSort.java:35: error: class, interface, enum, or record expected A[j+1] = tmp; ^ BubbleSort.java:36: error: class, interface, enum, or record expected cnt++; ^ BubbleSort.java:37: error: class, interface, enum, or record expected } ^ BubbleSort.java:41: error: class, interface, enum, or...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u566436587|p02259|0
u566436587|p02259|0
codenet
Compile Error
738
v2_s870981795
s870981795
s870981795
p02259
p02259
u577681189
u577681189
1,559,183,346
2019-05-30T02:29:06
Main.java
#include <iostream> using namespace std; int bubbleSort(int a[],int n){ int flag=1; int c=0; for(int i=0;flag;i++){ flag=0; for(int j=n-1;j>i;j--){ if(a[j-1]>a[j]){ swap(a[j],a[j-1]); flag=1; c++; } } } ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int bubbleSort(int a[],int n){ ^ (use --enable-preview to enable unnamed...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577681189|p02259|1
u577681189|p02259|1
codenet
Compile Error
563
v2_s142468652
s142468652
s142468652
p02259
p02259
u635209856
u635209856
1,540,989,420
2018-10-31T12:37:00
Main.java
import java.io.BufferReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static final int BIG_NUM= 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { BufferReader br=new BufferReader(new InputStreamReader(System.in)); ...
Main.java:40: error: 'catch' without 'try' }catch (NumberFormatException e) { ^ Main.java:42: error: 'catch' without 'try' } catch (IOException e) { ^ Main.java:12: error: 'try' without 'catch', 'finally' or resource declarations try{ ^ Main.java:46: error: reached end of file whi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u635209856|p02259|0
u635209856|p02259|0
codenet
Compile Error
1,273
v2_s274987481
s274987481
s274987481
p02259
p02259
u676874280
u676874280
1,527,163,465
2018-05-24T12:04: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[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); } int b = 1; int count = 0; boolean sort = true; while(true) { ...
Main.java:31: error: package Sytem does not exist Sytem.out.print(a[i] + " "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676874280|p02259|2
u676874280|p02259|2
codenet
Compile Error
759
v2_s667346924
s667346924
s667346924
p02259
p02259
u676874280
u676874280
1,527,163,497
2018-05-24T12:04:57
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); } int b = 1; int count = 0; boolean sort = true; while(true) { ...
Main.java:27: error: unreachable statement for(int i = 0; i < n; i++) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u676874280|p02259|2
u676874280|p02259|2
codenet
Compile Error
760
v2_s467776893
s467776893
s467776893
p02259
p02259
u699160354
u699160354
1,519,887,666
2018-03-01T07:01:06
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc= new Scanner (System.in); final int n = Integer.parseInt(sc.nextLine()); String[] s = sc.nextLine().split(); int[] num = new num[n]; int cnt=0; for(int i=0;i<n;i++){ num[i]=Integer.parseInt(s[i]); } ...
Main.java:9: error: no suitable method found for split(no arguments) String[] s = sc.nextLine().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 (ac...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u699160354|p02259|0
u699160354|p02259|0
codenet
Compile Error
658
v2_s168935169
s168935169
s168935169
p02259
p02259
u754727064
u754727064
1,424,167,083
2015-02-17T09:58:03
Main.java
for(int j = array.length-1; j > i; j--){ if( array[j] < array[j-1]){ t = array[j]; array[j] = array[j-1]; array[j-1] = t; cnt++; } } } for(int x : array) System.out.print(x+" "); System.out.println(); System.out.println(cnt); } }
Main.java:1: error: class, interface, enum, or record expected for(int j = array.length-1; j > i; j--){ ^ Main.java:1: error: class, interface, enum, or record expected for(int j = array.length-1; j > i; j--){ ^ Main.java:1: error: class, interface, enum, or record expect...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u754727064|p02259|0
u754727064|p02259|0
codenet
Compile Error
280
v2_s100416296
s100416296
s100416296
p02259
p02259
u768361792
u768361792
1,512,440,070
2017-12-05T02:14:30
Main.java
import java.util.Scanner; public class Main { // define variables & initialize private static int cnt = 0; // how many bubbleSort is used // sort method :: sort given array using insertion Sort public static void sort(int[] _A, int _n) { int flg = 1; while (flg != 0) { flg = 0; for (int i = _n - 1; i ...
Main.java:53: error: cannot find symbol _bubbleSort.sort(A, n); ^ symbol: variable _bubbleSort location: class Main Main.java:54: error: cannot find symbol _bubbleSort.print(A); ^ symbol: variable _bubbleSort location: class Main Main.java:55: error: cannot find symbol System.out.println(_bubbleSo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768361792|p02259|0
u768361792|p02259|0
codenet
Compile Error
1,241
v2_s997096012
s997096012
s997096012
p02259
p02259
u768361792
u768361792
1,512,440,094
2017-12-05T02:14:54
Main.java
import java.util.Scanner; public class Main { // define variables & initialize private static int cnt = 0; // how many bubbleSort is used // sort method :: sort given array using insertion Sort public static void sort(int[] _A, int _n) { int flg = 1; while (flg != 0) { flg = 0; for (int i = _n - 1; i ...
Main.java:55: error: cannot find symbol System.out.println(_bubbleSort.get()); ^ symbol: variable _bubbleSort location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u768361792|p02259|0
u768361792|p02259|0
codenet
Compile Error
1,217
v2_s931726432
s931726432
s931726432
p02259
p02259
u771374202
u771374202
1,492,998,795
2017-04-24T01:53:15
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[] nums =new int[n]; bubbleSort(nums); } public static void bubbleSort(int[] A){ for(int i=0;i<N;i++){ for(int j=1;j<N-i;j++){ if(A[j]<A[j-1]){ int t = A[...
Main.java:10: error: cannot find symbol for(int i=0;i<N;i++){ ^ symbol: variable N location: class Main Main.java:11: error: cannot find symbol for(int j=1;j<N-i;j++){ ^ symbol: variable N location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771374202|p02259|0
u771374202|p02259|0
codenet
Compile Error
381
v2_s598621734
s598621734
s598621734
p02259
p02259
u771374202
u771374202
1,495,374,046
2017-05-21T13:40:46
Main.java
mport java.util.*; public class Main { public static void main(String args[]){ Scanner sc =new Scanner(System.in); int n = sc.nextInt(); int[] nums = new int[n]; for(int i=0;i<n;i++){ nums[i] = sc.nextInt(); } BubbleSort(nums); } public static void BubbleSort(int[] nums){ int swap_count =0; ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771374202|p02259|1
u771374202|p02259|1
codenet
Compile Error
767
v2_s165798641
s165798641
s165798641
p02259
p02259
u827820084
u827820084
1,529,599,441
2018-06-21T16:44:01
Main.java
import java.util.*; import java.io.*; class test01{ public static void main(String[] args){ int count; int[] array = new int[100]; int key; int counter = 0; try{ Scanner scan = new Scanner(System.in); String str = scan.next(); count = In...
Main.java:48: error: incompatible types: unexpected return value return(0); ^ Main.java:48: error: incompatible types: int cannot be converted to void return(0); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u827820084|p02259|0
u827820084|p02259|0
codenet
Compile Error
1,265
v2_s525147423
s525147423
s525147423
p02259
p02259
u910402677
u910402677
1,486,168,254
2017-02-04T00:30:54
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++){ arr[i] = scan.nextInt(); } int count = 0; boolean flag = 1; int i = 0; while(flag)...
Main.java:13: error: incompatible types: int cannot be converted to boolean boolean flag = 1; ^ Main.java:16: error: incompatible types: int cannot be converted to boolean flag = 0; ^ Main.java:23: error: incompatible types: int cannot be converted to boolean flag = 1; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02259|0
u910402677|p02259|0
codenet
Compile Error
612
v2_s019025299
s019025299
s019025299
p02259
p02259
u928579315
u928579315
1,515,113,362
2018-01-05T00:49:22
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner; int num = sc.nextInt(); int[] array = new int[num]; for(int i = 0; i < num; i++){ array[i] = sc.nextInt(); } int count = 0; boolean flag...
Main.java:5: error: '(' or '[' expected Scanner sc = new Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u928579315|p02259|0
u928579315|p02259|0
codenet
Compile Error
902
v2_s917723045
s917723045
s917723045
p02259
p02259
u929447360
u929447360
1,540,431,269
2018-10-25T01:34:29
Main.java
import java.util.Arrays;public class Main { int[] random(int n) { int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = (int)(Math.random() * 1000); } return a; } void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } void bubbleSort(int[] a) { ...
Main.java:31: error: illegal start of expression public static void main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929447360|p02259|0
u929447360|p02259|0
codenet
Compile Error
919
v2_s292753069
s292753069
s292753069
p02259
p02259
u935042117
u935042117
1,527,683,737
2018-05-30T12:35:37
Main.java
import java.io.PrintWriter; import java.util.Scanner; public class Main { static int cnt = 0; static PrintWriter out =new PrintWriter(System.out); public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int array[] = new int[n]; for(int i=0;i...
Main.java:27: error: cannot find symbol for(int i=0;i<a.length();i++) { ^ symbol: method length() location: variable a of type int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u935042117|p02259|0
u935042117|p02259|0
codenet
Compile Error
821
v2_s683216476
s683216476
s683216476
p02260
p02260
u003091509
u003091509
1,457,375,700
2016-03-07T18:35:00
Main.java
??? import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] A = new int[N]; for (int i = 0; i < N; i++) { A[i] = scan.nextInt(); } selectionSrot(A, N); scan.close(); } pub...
Main.java:1: error: class, interface, enum, or record expected ??? ^ Main.java:4: error: class, interface, enum, or record expected import java.util.Scanner; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003091509|p02260|0
u003091509|p02260|0
codenet
Compile Error
1,002
v2_s062988946
s062988946
s062988946
p02260
p02260
u046558305
u046558305
1,529,573,589
2018-06-21T09:33:09
Main.java
#include <stdio.h> int x[100]; int main(){ int i,j; int tem; int n; int cnt = 0; int minj; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x[i]); } for(i=0;i<n-1;i++){ minj = i; for(j=i;j<n-1;j++){ if(x[j] < x[minj]){ minj = j; } } tem = x[i]; x[i] =...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046558305|p02260|0
u046558305|p02260|0
codenet
Compile Error
521
v2_s833681463
s833681463
s833681463
p02260
p02260
u046558305
u046558305
1,529,573,673
2018-06-21T09:34:33
Main.java
#include <stdio.h> int x[100]; int main(){ int i,j; int tem; int n; int cnt = 0; int minj; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x[i]); } for(i=0;i<n-2;i++){ minj = i; for(j=i;j<n-1;j++){ if(x[j] < x[minj]){ minj = j; } } tem = x[i]; x[i] =...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: unnamed classes are a preview feature and are disabled by default. int main(){ ^ (use --enable-preview to enable unnamed classes) Main.java:1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u046558305|p02260|0
u046558305|p02260|0
codenet
Compile Error
521
v2_s740846595
s740846595
s740846595
p02260
p02260
u047929551
u047929551
1,477,717,680
2016-10-29T05:08:00
Main.java
import java.lang.StringBuilder; import java.lang.Math; public class Main { private static int N; private static int[] a; private static void print() { StringBuilder result = new StringBuilder(); for (int i = 0; i < N; i++) { result.append(a[i]); result.append(" "); } System.out.print...
Main.java:45: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:45: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u047929551|p02260|0
u047929551|p02260|0
codenet
Compile Error
1,122
v2_s161151568
s161151568
s161151568
p02260
p02260
u107562958
u107562958
1,523,862,347
2018-04-16T07:05:47
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N[] = new int[100]; int n = sc.nextInt(); int m = 0; for (int i = 0; i < n; i++) N[i] = sc.nextInt(); for (int i = 0; i < n-1; i++) { int min = i; fo...
Main.java:12: error: cannot find symbol for (j = i+1; j < n; j++) { ^ symbol: variable j location: class Main Main.java:12: error: cannot find symbol for (j = i+1; j < n; j++) { ^ symbol: variable j location: class Main Main.java:12: error: cannot find symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u107562958|p02260|0
u107562958|p02260|0
codenet
Compile Error
700
v2_s649109795
s649109795
s649109795
p02260
p02260
u107562958
u107562958
1,523,862,347
2018-04-16T07:05:47
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N[] = new int[100]; int n = sc.nextInt(); int m = 0; for (int i = 0; i < n; i++) N[i] = sc.nextInt(); for (int i = 0; i < n-1; i++) { int min = i; fo...
Main.java:12: error: cannot find symbol for (j = i+1; j < n; j++) { ^ symbol: variable j location: class Main Main.java:12: error: cannot find symbol for (j = i+1; j < n; j++) { ^ symbol: variable j location: class Main Main.java:12: error: cannot find symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u107562958|p02260|0
u107562958|p02260|0
codenet
Compile Error
700
v2_s420031954
s420031954
s420031954
p02260
p02260
u121559572
u121559572
1,487,810,206
2017-02-23T00:36:46
Main.java
mport java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { int count = 0; Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[n]; for(int i = 0; i<n; i++){ arr...
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
u121559572|p02260|0
u121559572|p02260|0
codenet
Compile Error
993
v2_s747266168
s747266168
s747266168
p02260
p02260
u158979022
u158979022
1,528,734,788
2018-06-11T16:33:08
Main.java
#include <iostream> using namespace std; int selectionSort(int A[], int N){ int i, j, s, tmp, minj; for(i=0; i<N-1; i++){ minj = i; for(j=i; j<N; j++){ if(A[j]<A[minj]) minj = j; } tmp = A[i]; A[i] = A[minj]; A[minj] = tmp; if(i != min...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. int selectionSort(int A[], int N){ ^ (use --enable-preview to enable unn...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u158979022|p02260|0
u158979022|p02260|0
codenet
Compile Error
643
v2_s804092775
s804092775
s804092775
p02260
p02260
u211138527
u211138527
1,439,563,520
2015-08-14T14:45:20
Main.java
import java.io.*; import java.util.StringTokenizer; class Main{ static final PrintWriter out=new PrintWriter(System.out); static int ans=0; public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String line=""; while((line=br.readLine())!...
Main.java:29: error: cannot find symbol for(int i=0;i<n;i++){ ^ symbol: variable n location: class Main Main.java:31: error: cannot find symbol for(int j=i;j<n;j++){ ^ symbol: variable n location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p02260|0
u211138527|p02260|0
codenet
Compile Error
940
v2_s818398782
s818398782
s818398782
p02260
p02260
u304205753
u304205753
1,492,076,017
2017-04-13T09:33:37
Main.java
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static void checkArray(int[] a){ int i ; for( i = 0; i < a.length -1; i++){ System.out.print(a[i] +" "); } System.out.print(a[i]); System.out.println(); } ...
Main.java:55: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u304205753|p02260|0
u304205753|p02260|0
codenet
Compile Error
1,344
v2_s568500824
s568500824
s568500824
p02260
p02260
u352522848
u352522848
1,446,870,105
2015-11-07T04:21:45
Main.java
import java.io.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); int[] iArr; String[] sArr = in.readLine().split(" "); for(int i=0; i<sArr.lengt...
Main.java:11: error: variable iArr might not have been initialized iArr[i] = Integer.parseInt(sArr[i]); ^ Main.java:14: error: variable iArr might not have been initialized for(int i = 0; i < iArr.length-1; i++) { ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02260|0
u352522848|p02260|0
codenet
Compile Error
950
v2_s835038219
s835038219
s835038219
p02260
p02260
u354136358
u354136358
1,510,085,960
2017-11-07T20:19:20
Main.java
import java.util.List; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { int count = 0; public static void main(String[] args) { InputOutput stdIO = new InputOutput(); int n = stdIO.getValue(); List...
Main.java:21: error: cannot find symbol ALDS1_2_B_Selection_Sort my = new ALDS1_2_B_Selection_Sort(); ^ symbol: class ALDS1_2_B_Selection_Sort location: class Main Main.java:21: error: cannot find symbol ALDS1_2_B_Selection_Sort my = new ALDS1_2_B_Selection_Sort(); ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02260|0
u354136358|p02260|0
codenet
Compile Error
2,106
v2_s240033412
s240033412
s240033412
p02260
p02260
u354136358
u354136358
1,510,086,027
2017-11-07T20:20:27
Main.java
import java.util.List; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; class Main { int count = 0; public static void main(String[] args) { InputOutput stdIO = new InputOutput(); int n = stdIO.getValue(); List<...
Main.java:20: error: cannot find symbol ALDS1_2_B_Selection_Sort my = new ALDS1_2_B_Selection_Sort(); ^ symbol: class ALDS1_2_B_Selection_Sort location: class Main Main.java:20: error: cannot find symbol ALDS1_2_B_Selection_Sort my = new ALDS1_2_B_Selection_Sort(); ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u354136358|p02260|0
u354136358|p02260|0
codenet
Compile Error
2,105
v2_s811156820
s811156820
s811156820
p02260
p02260
u399851654
u399851654
1,529,970,283
2018-06-25T23:44:43
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception{ int i=0; int tmp; int[] A; int Count_Sort = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N_str = br.readLine(); String A_str = br.readLine(); int N = Intege...
Main.java:29: error: cannot find symbol for(j=i;j<N-1;j++){ ^ symbol: variable j location: class Main Main.java:29: error: cannot find symbol for(j=i;j<N-1;j++){ ^ symbol: variable j location: class Main Main.java:29: error: cannot find symbol for(j=i;j<N-1;j++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399851654|p02260|0
u399851654|p02260|0
codenet
Compile Error
838
v2_s223796693
s223796693
s223796693
p02260
p02260
u399851654
u399851654
1,529,970,366
2018-06-25T23:46:06
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception{ int i=0,j=0; int tmp; int[] A; int Count_Sort = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N_str = br.readLine(); String A_str = br.readLine(); int N = In...
Main.java:37: error: cannot find symbol A[minj] = temp; ^ symbol: variable temp location: class Main Main.java:42: error: package Syhstem does not exist Syhstem.out.print(A[i]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399851654|p02260|0
u399851654|p02260|0
codenet
Compile Error
842
v2_s481712651
s481712651
s481712651
p02260
p02260
u399851654
u399851654
1,529,973,042
2018-06-26T00:30:42
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws Exception{ int i=0; int j=0; int tmp; int Count_Sort = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String N_str = br.readLine(); int N = Integer.parseInt(N_str); int[] A; A...
Main.java:37: error: ';' expected Count_Sort++: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u399851654|p02260|0
u399851654|p02260|0
codenet
Compile Error
860
v2_s464033317
s464033317
s464033317
p02260
p02260
u564767946
u564767946
1,510,805,607
2017-11-16T04:13:27
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); String[] line = sc.nextLine().split(" "); int[] arr = new int[n]; int temp; int count = 0; for(int x = 0; x <...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u564767946|p02260|0
u564767946|p02260|0
codenet
Compile Error
1,044
v2_s158973438
s158973438
s158973438
p02260
p02260
u564767946
u564767946
1,510,805,740
2017-11-16T04:15: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.nextLine()); String[] line = sc.nextLine().split(" "); int[] arr = new int[n]; int temp; int count = 0; for(int x = 0; x <...
Main.java:41: error: illegal start of type ??? ^ Main.java:41: error: reached end of file while parsing ??? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u564767946|p02260|0
u564767946|p02260|0
codenet
Compile Error
1,048
v2_s324215740
s324215740
s324215740
p02260
p02260
u648085996
u648085996
1,424,650,108
2015-02-23T00:08:28
Main.java
a
Main.java:1: error: reached end of file while parsing a ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648085996|p02260|1
u648085996|p02260|1
codenet
Compile Error
1
v2_s478503071
s478503071
s478503071
p02260
p02260
u705352026
u705352026
1,523,873,923
2018-04-16T10:18:43
Main.java
import java.awt.datatransfer.FlavorEvent; import java.util.Scanner; import javax.sound.midi.SysexMessage; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); String str = sc.nextLine(); String str2[] = str.spl...
Main.java:28: error: cannot find symbol if(minj!=j){ ^ symbol: variable j location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u705352026|p02260|0
u705352026|p02260|0
codenet
Compile Error
1,121
v2_s289514149
s289514149
s289514149
p02260
p02260
u710383977
u710383977
1,418,953,507
2014-12-19T01:45:07
Main.java
import java.io.*; import java.util.*; /* SelectionSort(A) 1 for i = 0 to A.length-1 2 mini = i 3 for j = i to A.length-1 4 if A[j] < A[mini] 5 mini = j 6 swap A[i] and A[mini] 入力例 1 5 5 3 2 4 1 */ public class Main{ public static void main(String args[]){ Scanner scan = new Sca...
Main.java:24: error: cannot find symbol BubbleSort sort = new BubbleSort(scan.nextInt()); ^ symbol: class BubbleSort location: class Main Main.java:24: error: cannot find symbol BubbleSort sort = new BubbleSort(scan.nextInt()); ^ symbol: class BubbleSort location: class Main 2 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u710383977|p02260|0
u710383977|p02260|0
codenet
Compile Error
1,304
v2_s959185430
s959185430
s959185430
p02260
p02260
u760351030
u760351030
1,429,412,534
2015-04-19T03:02:14
Main.java
public class Main { Scanner sc = new Scanner(System.in); StringBuilder out; void run() { int N = sc.nextInt(); int[] A = new int[N]; for (int i = 0; i < A.length; i++) { A[i] = sc.nextInt(); } int cnt = 0; for (int i = 0; i < N; i++) { boolean swap = false; int min = i; for (int j = i + 1; ...
Main.java:2: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: 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
u760351030|p02260|0
u760351030|p02260|0
codenet
Compile Error
687
v2_s015869565
s015869565
s015869565
p02260
p02260
u770145133
u770145133
1,529,378,482
2018-06-19T03:21:22
Main.java
#include<stdio.h> #include<stdlib.h> int main(){ int i; int j; int change = 0; int num = 0; int count = 0; int min = 0; int *data; scanf("%d",&num); data = (int *)malloc(sizeof(int)*num); for(j = 0;j < num;j++){ scanf("%d",&data[j]); } for(i = 0;i < num - 1;i++){ min = i; for(j = i;j < num;j++){...
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<stdlib.h> ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int j; ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770145133|p02260|0
u770145133|p02260|0
codenet
Compile Error
625
v2_s835445272
s835445272
s835445272
p02260
p02260
u910402677
u910402677
1,486,256,815
2017-02-05T01:06:55
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int n = scan.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++){ arr[i] = scan.nextInt(); } int count = 0; for(int i = 0; i < n; i++){ int minj = i...
Main.java:21: error: ';' expected int small = arr[minj] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p02260|0
u910402677|p02260|0
codenet
Compile Error
620
v2_s032864345
s032864345
s032864345
p02260
p02260
u929447360
u929447360
1,540,429,938
2018-10-25T01:12:18
Main.java
import java.util.Arrays; public class Main { int[] random(int n) { int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = (int)(Math.random() * 1000); } return a; } void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929447360|p02260|0
u929447360|p02260|0
codenet
Compile Error
616
v2_s263700740
s263700740
s263700740
p02260
p02260
u929447360
u929447360
1,540,430,635
2018-10-25T01:23:55
Main.java
import java.util.Arrays;public class Main { int[] random(int n) { int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = (int)(Math.random() * 1000); } return a; } void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } void bubbleSort(int[] a) { ...
Main.java:36: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929447360|p02260|0
u929447360|p02260|0
codenet
Compile Error
1,012
v2_s629942420
s629942420
s629942420
p02260
p02260
u929447360
u929447360
1,540,430,661
2018-10-25T01:24:21
Main.java
import java.util.Arrays;public class Main { int[] random(int n) { int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = (int)(Math.random() * 1000); } return a; } void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } void bubbleSort(int[] a) { ...
Main.java:36: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929447360|p02260|0
u929447360|p02260|0
codenet
Compile Error
1,012
v2_s217512453
s217512453
s217512453
p02260
p02260
u929447360
u929447360
1,540,430,721
2018-10-25T01:25:21
Main.java
package day6; import java.util.Arrays;public class Main { int[] random(int n) { int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = (int)(Math.random() * 1000); } return a; } void swap(int[] a, int i, int j) { int temp = a[i]; a[i] = a[j]; a[j] = temp; } void bubbleSort(i...
Main.java:37: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u929447360|p02260|0
u929447360|p02260|0
codenet
Compile Error
1,026
v2_s090651961
s090651961
s090651961
p02260
p02260
u968362241
u968362241
1,529,420,027
2018-06-19T14:53:47
Main.java
#include <stdio.h> int main(){ int minj,i,j,n,tmp; int count=0; scanf("%d",&n); int A[n]; for(i=0; i<n; i++) scanf("%d",&A[i]); for(i=0; i<=n-1; i++){ minj = i; for(j=i; j<=n-1; j++){ if(A[j]<A[minj]){ minj = j; } } if(A[i]>A[minj]){ tmp = A[i]; A[i] = A[minj]; A[mi...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. int count=0; ^ (use --enable-preview to enable unnamed classes) Main.jav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u968362241|p02260|0
u968362241|p02260|0
codenet
Compile Error
473
v2_s663005358
s663005358
s663005358
p02261
p02261
u065450711
u065450711
1,428,210,423
2015-04-05T05:07:03
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { String[] inputs = input(); String[] inputs = mockup(); String[] inputs4S = inputs.clone(); int swapCount = bubbleSort(inputs); output(inputs); System.out.println("stable"); ...
Main.java:8: error: variable inputs is already defined in method main(String[]) String[] inputs = mockup(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u065450711|p02261|0
u065450711|p02261|0
codenet
Compile Error
2,588
v2_s105818479
s105818479
s105818479
p02261
p02261
u213503793
u213503793
1,409,407,203
2014-08-30T14:00:03
Main.java
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); StringTokenizer st = new StringToke...
Main.java:83: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213503793|p02261|0
u213503793|p02261|0
codenet
Compile Error
2,149
v2_s956640056
s956640056
s956640056
p02261
p02261
u282272858
u282272858
1,460,794,594
2016-04-16T08:16:34
Main.java
import java.util.Arrays; import java.util.Scanner; import java.util.stream.Collectors; /** * @see <a href='http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?lang=jp&id='>??????</a> */ public class Main { private static Scanner in = new Scanner(); private static final String STABLE = "Stable"; private static f...
Main.java:9: error: no suitable constructor found for Scanner(no arguments) private static Scanner in = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u282272858|p02261|0
u282272858|p02261|0
codenet
Compile Error
1,553
v2_s357471283
s357471283
s357471283
p02261
p02261
u282272858
u282272858
1,460,794,610
2016-04-16T08:16:50
Main.java
import java.util.Arrays; import java.util.Scanner; import java.util.stream.Collectors; /** * @see <a href='http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?lang=jp&id='>??????</a> */ public class Main { private static Scanner in = new Scanner(); private static final String STABLE = "Stable"; private static f...
Main.java:9: error: no suitable constructor found for Scanner(no arguments) private static Scanner in = new Scanner(); ^ constructor Scanner.Scanner(Readable,Pattern) is not applicable (actual and formal argument lists differ in length) constructor Scanner.Scanner(Readable) i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u282272858|p02261|0
u282272858|p02261|0
codenet
Compile Error
1,553
v2_s336502129
s336502129
s336502129
p02261
p02261
u352522848
u352522848
1,446,876,271
2015-11-07T06:04:31
Main.java
import java.io.* public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(in.readLine()); String[] inArr = in.readLine().split(" "); String[] bArr = Sort.bubbleSort(inArr); ...
Main.java:1: error: ';' expected import java.io.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u352522848|p02261|0
u352522848|p02261|0
codenet
Compile Error
2,444