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_s820792718
s820792718
s820792718
p00009
p00009
u910402677
u910402677
1,480,312,673
2016-11-28T05:57:53
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static int countPrime(int n){ int cnt = 0; if(n < 2){ cnt = 0; return cnt; } if(n == 2){ cnt++; return cnt; } if(n > 2)cnt++; for(int i = 3; i <= n; i += 2){ for(int j = 3; j < i; j...
Main.java:21: error: cannot find symbol if(j == i)cnt++; ^ symbol: variable j location: class Main Main.java:32: error: variable n is already defined in method main(String[]) for(int n : list){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00009|0
u910402677|p00009|0
codenet
Compile Error
623
v2_s290429540
s290429540
s290429540
p00009
p00009
u910402677
u910402677
1,480,388,637
2016-11-29T03:03:57
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static int countPrime(int n){ int cnt = 0 boolean flag = true; if(n <= 1)return cnt; if(n == 2){ cnt++; return cnt; } cnt++; for(int i = 3; i <= n; i += 2){ for(int j = 3; j <= Math.sqrt(...
Main.java:7: error: ';' expected int cnt = 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00009|1
u910402677|p00009|1
codenet
Compile Error
722
v2_s989609209
s989609209
s989609209
p00009
p00009
u982302262
u982302262
1,403,009,717
2014-06-17T12:55:17
Main.java
public class Main{ public static void main(String[] args){ while(true){ Scanner in = new Scanner(System.in); String x = in.nextLine(); int a = Integer.parseInt(x); int n =0; int[] p = new int[(a+1)]; int[] q = new int[(a+1)]; for(int i =1;i<=a;i++){ for(int j=1;j<i;j++){ if(i%j == 0){ p[...
Main.java:4: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: 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
u982302262|p00009|0
u982302262|p00009|0
codenet
Compile Error
472
v2_s166510757
s166510757
s166510757
p00009
p00009
u982302262
u982302262
1,403,077,829
2014-06-18T07:50:29
Main.java
import java.io.*; public class Main { public static void main(String[] args){ BufferedReader reader =new BufferedReader(new InputStreamReader(System.in)); String line; try{ while((line=reader.readLine()) != null){ int x =Integer.parseInt(line); int[] p=new int[x+1]; int[] q=new int[x+1]; int ...
Main.java:29: error: incompatible types: unexpected return value return 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u982302262|p00009|1
u982302262|p00009|1
codenet
Compile Error
723
v2_s294744373
s294744373
s294744373
p00010
p00010
u021233305
u021233305
1,393,937,893
2014-03-04T12:58:13
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double x1, x2, x3, y1, y2, y3, a, b, c, x, y, r; while (sc.hasNext()) { x1 = sc.nextDouble(); y1 = sc.nextDouble(); x2 = sc.nextDouble(); y2 = sc.nextDouble(); x3 = sc.nextDouble(...
Main.java:24: error: cannot find symbol System.out.printf("%.3f %.3f %.3f", x, y, R); ^ symbol: variable R location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021233305|p00010|0
u021233305|p00010|0
codenet
Compile Error
1,031
v2_s364629855
s364629855
s364629855
p00010
p00010
u205820388
u205820388
1,339,919,791
2012-06-17T07:56:31
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); double[] points = new double[6]; double ep = 0.0001; double l,m; for(int i=0 ; i<n ; i++) { for(int j=0 ; j<6 ; j++) points[j] = s.next(); for(int j=1 ; j<3 ; j...
Main.java:12: error: incompatible types: String cannot be converted to double points[j] = s.next(); ^ Main.java:20: error: bad operand types for binary operator '-' System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u205820388|p00010|0
u205820388|p00010|0
codenet
Compile Error
676
v2_s065472922
s065472922
s065472922
p00010
p00010
u205820388
u205820388
1,339,919,903
2012-06-17T07:58:23
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); double[] points = new double[6]; double ep = 0.0001; double l,m; for(int i=0 ; i<n ; i++) { for(int j=0 ; j<6 ; j++) points[j] = s.nextDouble(); for(int j=1 ; j...
Main.java:20: error: bad operand types for binary operator '-' System.out.println(points[0]-l/2 + " " + points[1]-m/2 + " " + (l*l+m*m)/4); ^ first type: String second type: double 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u205820388|p00010|0
u205820388|p00010|0
codenet
Compile Error
682
v2_s164395687
s164395687
s164395687
p00010
p00010
u211138527
u211138527
1,434,472,896
2015-06-16T16:41:36
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(int i=0;i<n;i++){ int x1,y1,x2,y2,x3,y3; x1=sc.nextInt(); y1=sc.nextInt(); x2=sc.nextInt(); y2=sc.nextInt(); x3=sc.nextInt(); y3=sc.nextInt(); int a=(x1*x1-x2*x2)*(y2-y3)-(x2*x2-x3*x...
Main.java:19: error: incompatible types: possible lossy conversion from double to int int r=Math.hypot(px-x1,py-y1); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00010|0
u211138527|p00010|0
codenet
Compile Error
529
v2_s980782813
s980782813
s980782813
p00010
p00010
u211138527
u211138527
1,434,476,476
2015-06-16T17:41:16
Main.java
import java.util.*; public class Main{ static final Scanner sc = new Scanner(System.in); public static void main(String[] args) { double x1,x2,x3,y1,y2,y3; int n = stdin.nextInt(); while( n-- > 0 ){ x1 = sc.nextDouble(); y1 = sc.nextDouble(); x2 = sc.nextDouble(); y2 = sc.nextDouble(); x3 = sc.nextDou...
Main.java:7: error: cannot find symbol int n = stdin.nextInt(); ^ symbol: variable stdin location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00010|0
u211138527|p00010|0
codenet
Compile Error
823
v2_s289433172
s289433172
s289433172
p00010
p00010
u245975427
u245975427
1,368,330,593
2013-05-12T03:49:53
Main.java
1 0.0 0.0 2.0 0.0 2.0 2.0import java.util.*; public class Main { public static void main (String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for (int i = 0; i < n; i++) { double x1 = scanner.nextDouble(); double y1...
Main.java:1: error: class, interface, enum, or record expected 1 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u245975427|p00010|0
u245975427|p00010|0
codenet
Compile Error
1,237
v2_s531135860
s531135860
s531135860
p00010
p00010
u451187291
u451187291
1,348,506,375
2012-09-24T17:06:15
Main.java
import java.util.*; public class Main { static double[] solve(double a, double b, double c, double d, double e, double f){ double det = a*e-b*d; double[] ans = new double[2]; ans[0] = (c*e-b*f)/det; ans[1] = (a*f-c*d)/det; for(int i=0; i<2; i++) if(ans[i]==-0) ans[i] = 0; return ans; } public...
Main.java:34: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u451187291|p00010|0
u451187291|p00010|0
codenet
Compile Error
960
v2_s780642072
s780642072
s780642072
p00010
p00010
u496767920
u496767920
1,492,347,884
2017-04-16T13:04:44
Main.java
/** * A GaussJordan object holds a two dimensional array representing a matrix * containing a system of equations. Contains methods for performing a * Gauss-Jordan Elimination and putting a matrix into Reduced Row Echelon Form * * @author Thomas Coe * @version 1.0 October 8th, 2013 */ class GaussJordan{ pri...
Main.java:136: error: cannot find symbol public static List<Double> genRow(double x1, double x2, double y1, double y2) { ^ symbol: class List location: class Main Main.java:161: error: cannot find symbol public static void solve(ArrayList<Point> p) { ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u496767920|p00010|2
u496767920|p00010|2
codenet
Compile Error
6,063
v2_s071236342
s071236342
s071236342
p00010
p00010
u687459163
u687459163
1,418,199,721
2014-12-10T08:22:01
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; &#160; public class Main{ &#160; &#160;&#160;&#160;&#160;private static final String BLANK = " "; &#160; &#160;&#160;&#160;&#160;public static void main(String[] args) { &#160; &#160;&#160;&#160;&#1...
Main.java:5: error: class, interface, enum, or record expected &#160; ^ Main.java:5: error: illegal character: '#' &#160; ^ Main.java:7: error: illegal start of type &#160; ^ Main.java:7: error: illegal character: '#' &#160; ^ Main.java:8: error: illegal start of type &#160;&#160;&#160;&#160;private static final Stri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u687459163|p00010|1
u687459163|p00010|1
codenet
Compile Error
11,217
v2_s226914434
s226914434
s226914434
p00010
p00010
u687459163
u687459163
1,418,199,809
2014-12-10T08:23:29
CircumscribedCircleOfATriangle.java
package judge.aidu.volume0; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class CircumscribedCircleOfATriangle { private static final String BLANK = " "; public static void main(String[] args) { BufferedReader in = n...
CircumscribedCircleOfATriangle.java:45: error: exception IOException is never thrown in body of corresponding try statement } catch (IOException e) { ^ Note: CircumscribedCircleOfATriangle.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u687459163|p00010|1
u687459163|p00010|1
codenet
Compile Error
4,366
v2_s686938922
s686938922
s686938922
p00010
p00010
u687459163
u687459163
1,418,199,849
2014-12-10T08:24:09
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class Main{ private static final String BLANK = " "; public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); ...
Main.java:43: error: exception IOException is never thrown in body of corresponding try statement } catch (IOException e) { ^ Note: Main.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u687459163|p00010|1
u687459163|p00010|1
codenet
Compile Error
4,310
v2_s656224221
s656224221
s656224221
p00010
p00010
u722076734
u722076734
1,412,615,474
2014-10-06T17:11:14
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); for(int i = 0; i < n; i++) { double x1 = s.nextDouble(); double y1 = s.nextDouble(); double x2 = s.nextDouble(); double y2 = s.nextDouble(); double x3 = ...
Main.java:25: error: ';' expected double l = Math.hypot(x-x1, y-y1) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u722076734|p00010|0
u722076734|p00010|0
codenet
Compile Error
1,026
v2_s116120255
s116120255
s116120255
p00010
p00010
u765197056
u765197056
1,398,089,218
2014-04-21T14:06:58
Main.java
import std.stdio; import std.string; import std.conv; import std.math; int main() { int n; readf("%f",&n); foreach(int i;0..n) { double x1,y1,x2,y2,x3,y3; readf("%f %f %f %f %f %f",&x1,&y1,&x2,&y2,&x3,&y3); double a1 = 2*(x2 - x1); double b1 = 2*(y2 - y1); double c1 = x1*x1 - x2*x2 + y1*y1 - y2*y2; ...
Main.java:11: error: not a statement foreach(int i;0..n) ^ Main.java:11: error: not a statement foreach(int i;0..n) ^ Main.java:6: error: unnamed classes are a preview feature and are disabled by default. int main() ^ (use --enable-preview to enable unnamed classes) Main.java:9: error:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u765197056|p00010|0
u765197056|p00010|0
codenet
Compile Error
654
v2_s051170149
s051170149
s051170149
p00010
p00010
u814387366
u814387366
1,396,080,249
2014-03-29T08:04:09
Main.java
import java.io.*; class Main { public static void main(String args[])throws IOException { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(input.readLine()); for(int i=0;i<n;i++) { String str=input.readLine(); String str_ary[]=str.split(" "); Double...
Main.java:21: error: incompatible types: int cannot be converted to Double Double max1=x[0],max2=y[0],min1=x[0],min2=y[0],then=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814387366|p00010|0
u814387366|p00010|0
codenet
Compile Error
1,154
v2_s881985897
s881985897
s881985897
p00010
p00010
u873284297
u873284297
1,436,000,785
2015-07-04T09:06:25
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; import java.math.RoundingMode; public class Main { /** * 空白区切りの6つの数字を受け取り、 * その6つの数字を3点とする三角形の外心および外接円の半径を取得する。 * * @param args */ public static void main(String[] args) throws IOExcep...
Main.java:22: error: non-static variable this cannot be referenced from a static context Triangle triangle = new Triangle(trianglePoints); ^ Note: Main.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u873284297|p00010|0
u873284297|p00010|0
codenet
Compile Error
9,748
v2_s076934859
s076934859
s076934859
p00010
p00010
u910223642
u910223642
1,488,761,601
2017-03-06T00:53:21
Main.java
class Main { double x, y; Main( double x, double y ) { this.x = x; this.y = y; } public static void main( String[] args ) { new Circle(); } static class Circle { Circle() { java.util.Scanner sc = new java.util.Scanner( System.in ); point a = new point( sc.nextDouble(), sc.nextDouble() ); poi...
Main.java:18: error: cannot find symbol point a = new point( sc.nextDouble(), sc.nextDouble() ); ^ symbol: class point location: class Circle Main.java:18: error: cannot find symbol point a = new point( sc.nextDouble(), sc.nextDouble() ); ^ symbol: class point location: class Circl...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910223642|p00010|0
u910223642|p00010|0
codenet
Compile Error
1,118
v2_s737075326
s737075326
s737075326
p00010
p00010
u910223642
u910223642
1,488,762,889
2017-03-06T01:14:49
Main.java
class Main { double x, y; Main( double x, double y ) { this.x = x; this.y = y; } public static void main( String[] args ) { java.util.Scanner sc = new java.util.Scanner( System.in ); point a = new point( sc.nextDouble(), sc.nextDouble() ); point b = new point( sc.nextDouble(), sc.nextDouble() ); point...
Main.java:12: error: cannot find symbol point a = new point( sc.nextDouble(), sc.nextDouble() ); ^ symbol: class point location: class Main Main.java:12: error: cannot find symbol point a = new point( sc.nextDouble(), sc.nextDouble() ); ^ symbol: class point location: class Main Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910223642|p00010|0
u910223642|p00010|0
codenet
Compile Error
1,035
v2_s738775993
s738775993
s738775993
p00010
p00010
u910402677
u910402677
1,480,400,969
2016-11-29T06:29:29
Main.java
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static double[] getLine(double x1, double y1, double x2, double y2){ double[] ans = new double[3]; double mid_x = (x1 + x2) / 2; double mid_y = (y1 + y2) / 2; ans[0] = y1 - y2; ans[1] = x1 - x2; ans...
Main.java:27: error: ')' expected (l1[1] * l2[0] - l1[0] * l2[1]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910402677|p00010|0
u910402677|p00010|0
codenet
Compile Error
1,047
v2_s975212343
s975212343
s975212343
p00010
p00010
u991779216
u991779216
1,403,275,054
2014-06-20T14:37:34
Main.java
import java.util.*; import java.math.BigDecimal; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int i=0; i<n; i++) { double a1 = in.nextDouble(); double a2 = in.nextDouble(); double b1 = in.nextDouble(); double b2 = in.next...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u991779216|p00010|1
u991779216|p00010|1
codenet
Compile Error
1,169
v2_s519984567
s519984567
s519984567
p00011
p00011
u006871906
u006871906
1,494,220,663
2017-05-08T05:17:43
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i = 0;i < values.length; i++){ values[i] = i + 1; } for(int i = 0; i < n; i++){ ...
Main.java:23: error: ';' expected System.out.println(values[i]) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006871906|p00011|0
u006871906|p00011|0
codenet
Compile Error
633
v2_s350141772
s350141772
s350141772
p00011
p00011
u006871906
u006871906
1,494,220,707
2017-05-08T05:18:27
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i = 0;i < values.length; i++){ values[i] = i + 1; } for(int i = 0; i < n; i++){ ...
Main.java:18: error: cannot find symbol c = values[a]; ^ symbol: variable c location: class Main Main.java:20: error: cannot find symbol values[b]=c; ^ symbol: variable c location: class Main Main.java:22: error: cannot find symbol for(i = 0; i < n; i ++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006871906|p00011|0
u006871906|p00011|0
codenet
Compile Error
634
v2_s774740560
s774740560
s774740560
p00011
p00011
u006871906
u006871906
1,494,220,837
2017-05-08T05:20:37
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i = 0;i < values.length; i++){ values[i] = i + 1; } for(int i = 0; i < n; i++){ ...
Main.java:23: error: cannot find symbol for(i = 0; i < n; i ++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0; i < n; i ++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0; i <...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006871906|p00011|0
u006871906|p00011|0
codenet
Compile Error
652
v2_s654144767
s654144767
s654144767
p00011
p00011
u034299441
u034299441
1,494,223,810
2017-05-08T06:10:10
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { ...
Main.java:17: error: variable j might not have been initialized int j = j; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u034299441|p00011|0
u034299441|p00011|0
codenet
Compile Error
913
v2_s743955015
s743955015
s743955015
p00011
p00011
u035975927
u035975927
1,494,220,617
2017-05-08T05:16:57
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < w; i++) { values[i] = i + 1; } for (int i = 0; i < n; i++) { S...
Main.java:15: error: bad operand types for binary operator '-' int a = Integer.parseInt(ab[0] - 1); ^ first type: String second type: int Main.java:16: error: bad operand types for binary operator '-' int b = Integer.parseInt(ab[1] - 1); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u035975927|p00011|0
u035975927|p00011|0
codenet
Compile Error
628
v2_s645592939
s645592939
s645592939
p00011
p00011
u071759777
u071759777
1,462,772,567
2016-05-09T05:42:47
Main.java
import java.util,Scanner; public class Main{ public statiac void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ string str= sc.next(); String[]ab= str.split("...
Main.java:1: error: ';' expected import java.util,Scanner; ^ Main.java:4: error: <identifier> expected public statiac void main(String[] args){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u071759777|p00011|0
u071759777|p00011|0
codenet
Compile Error
490
v2_s941602285
s941602285
s941602285
p00011
p00011
u071759777
u071759777
1,462,772,606
2016-05-09T05:43:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ string str= sc.next(); String[]ab= str.split(",...
Main.java:13: error: cannot find symbol string str= sc.next(); ^ symbol: class string location: class Main Main.java:21: error: cannot find symbol printf("%d\n",values[i]); ^ symbol: method printf(String,int) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u071759777|p00011|0
u071759777|p00011|0
codenet
Compile Error
489
v2_s759878155
s759878155
s759878155
p00011
p00011
u071759777
u071759777
1,462,773,742
2016-05-09T06:02:22
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int w =sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str= sc.next(); String[]ab= str.split(",...
Main.java:17: error: cannot find symbol int t=swap[a]; ^ symbol: variable swap location: class Main Main.java:18: error: cannot find symbol swap[a]=swap[b]; ^ symbol: variable swap location: class Main Main.java:18: error: cannot find symbol swap[a]=swap[b]; ^ symbol: variable swap locat...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u071759777|p00011|0
u071759777|p00011|0
codenet
Compile Error
513
v2_s414077481
s414077481
s414077481
p00011
p00011
u106214670
u106214670
1,492,413,401
2017-04-17T07:16:41
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new.Scanner(System.in); int w=0,n=0; int data[30]; n=sc.nextInt(); w=sc.nextInt(); for(int i=0;i<n;i++){ data[i]=i+1; } for(int j=0;j<w;j++){ int a=sc.nextInt(); int b=sc.nextInt(); tmp=data[a-1]...
Main.java:5: error: <identifier> expected Scanner sc=new.Scanner(System.in); ^ Main.java:7: error: ']' expected int data[30]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|0
u106214670|p00011|0
codenet
Compile Error
435
v2_s060675959
s060675959
s060675959
p00011
p00011
u106214670
u106214670
1,492,413,464
2017-04-17T07:17:44
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new.Scanner(System.in); int w=0,n=0; int[] data=new int[30]; n=sc.nextInt(); w=sc.nextInt(); for(int i=0;i<n;i++){ data[i]=i+1; } for(int j=0;j<w;j++){ int a=sc.nextInt(); int b=sc.nextInt(); tmp...
Main.java:5: error: <identifier> expected Scanner sc=new.Scanner(System.in); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|0
u106214670|p00011|0
codenet
Compile Error
445
v2_s127645600
s127645600
s127645600
p00011
p00011
u106214670
u106214670
1,492,413,487
2017-04-17T07:18:07
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=0,n=0; int[] data=new int[30]; n=sc.nextInt(); w=sc.nextInt(); for(int i=0;i<n;i++){ data[i]=i+1; } for(int j=0;j<w;j++){ int a=sc.nextInt(); int b=sc.nextInt(); tmp...
Main.java:16: error: cannot find symbol tmp=data[a-1]; ^ symbol: variable tmp location: class Main Main.java:18: error: cannot find symbol data[b-1]=tmp; ^ symbol: variable tmp location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|0
u106214670|p00011|0
codenet
Compile Error
445
v2_s690369271
s690369271
s690369271
p00011
p00011
u106214670
u106214670
1,492,423,253
2017-04-17T10:00:53
DrawLot.java
import java.util.Scanner; public class DrawLot{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); scanner.useDelimiter(",|\n") int w=0,n=0; int[] data=new int[30]; w=sc.nextInt(); n=sc.nextInt(); for(int i=0;i<w;i++){ data[i]=i+1; } for(int j=0;j<n;j++){ a=sc.nextInt(); ...
DrawLot.java:6: error: ';' expected scanner.useDelimiter(",|\n") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|1
u106214670|p00011|0
codenet
Compile Error
472
v2_s537849465
s537849465
s537849465
p00011
p00011
u106214670
u106214670
1,492,423,280
2017-04-17T10:01:20
DrawLot.java
import java.util.Scanner; public class DrawLot{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); scanner.useDelimiter(",|\n"); int w=0,n=0; int[] data=new int[30]; w=sc.nextInt(); n=sc.nextInt(); for(int i=0;i<w;i++){ data[i]=i+1; } for(int j=0;j<n;j++){ a=sc.nextInt();...
DrawLot.java:6: error: cannot find symbol scanner.useDelimiter(",|\n"); ^ symbol: variable scanner location: class DrawLot DrawLot.java:15: error: cannot find symbol a=sc.nextInt(); ^ symbol: variable a location: class DrawLot DrawLot.java:16: error: cannot find symbol b=sc.nextInt(); ^ symb...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|1
u106214670|p00011|0
codenet
Compile Error
473
v2_s419577186
s419577186
s419577186
p00011
p00011
u106214670
u106214670
1,492,423,324
2017-04-17T10:02:04
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); scanner.useDelimiter(",|\n"); int w=0,n=0; int[] data=new int[30]; w=sc.nextInt(); n=sc.nextInt(); for(int i=0;i<w;i++){ data[i]=i+1; } for(int j=0;j<n;j++){ int a=sc.nextInt()...
Main.java:6: error: cannot find symbol scanner.useDelimiter(",|\n"); ^ symbol: variable scanner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106214670|p00011|1
u106214670|p00011|0
codenet
Compile Error
478
v2_s736165436
s736165436
s736165436
p00011
p00011
u131592835
u131592835
1,399,707,431
2014-05-10T07:37:11
Main.java
class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in).useDelimiter("\\D"); int w = s.nextInt(); int n = s.nextInt(); int[] l = new int[w]; for(int i = 0; i < w; ++i) { l[i] = i + 1; } for(int i = 0; i < n; ++i) { ...
Main.java:3: error: cannot find symbol Scanner s = new Scanner(System.in).useDelimiter("\\D"); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner s = new Scanner(System.in).useDelimiter("\\D"); ^ symbol: class Scanner l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131592835|p00011|1
u131592835|p00011|1
codenet
Compile Error
562
v2_s359666214
s359666214
s359666214
p00011
p00011
u131962404
u131962404
1,463,356,997
2016-05-16T00:03:17
Main.java
import java.io.*; import java.util.*; class Main{ public static void main(String[] args)throws IOException{ InputStreamReader isr =new InputStreamReader(System.in); BufferedReader reader =new BufferedReader(isr); String buf = reader.readLine(); int w = Integer.parseInt(buf); buf = reader.readLine(); int n = Integer.p...
Main.java:11: error: ';' expected int n = Integer.parseInt(buf)i ^ Main.java:12: error: ';' expected nt i; ^ Main.java:12: error: not a statement nt i; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131962404|p00011|0
u131962404|p00011|0
codenet
Compile Error
706
v2_s939810406
s939810406
s939810406
p00011
p00011
u137395473
u137395473
1,430,534,728
2015-05-02T02:45:28
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); int w = sc.nextInt(); int n =sc.nextInt(); int[] values =new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } for(int i=0;i<n;i++){ String str =sc.next(); String[] ab=str.split(",...
Main.java:15: error: cannot find symbol int b =Interger.parseInt(ab[1])-1; ^ symbol: variable Interger location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137395473|p00011|0
u137395473|p00011|0
codenet
Compile Error
532
v2_s341235631
s341235631
s341235631
p00011
p00011
u139212708
u139212708
1,430,291,663
2015-04-29T07:14:23
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int c = sc.nextInt(); int a, b; int[] wide = new int[w]; for (int i = 0; i < w; i++) { wide[i] = i + 1; } for (int i = 0; i < c; i++) { String line = ...
Main.java:15: error: incompatible types: char cannot be converted to String a = Integer.parseInt(line.charAt(0)); ^ Main.java:16: error: incompatible types: char cannot be converted to String b = Integer.parseInt(line.charAt(2)); ^ Note: Some m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u139212708|p00011|0
u139212708|p00011|0
codenet
Compile Error
601
v2_s879773165
s879773165
s879773165
p00011
p00011
u207020506
u207020506
1,494,132,678
2017-05-07T04:51:18
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int w = scanner.nextInt(); int n = scanner.nextInt(); int[] values = new int[w]; for(int i = 0; i <values.length; i++){ values[i] = i + 1; } for(int i = 0; ...
Main.java:13: error: cannot find symbol String str = sc.next(); ^ symbol: variable sc location: class Main Main.java:16: error: cannot find symbol int b = Integer.perseInt(ab[1]) - 1; ^ symbol: method perseInt(String) location: class Integer Main.java:22: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u207020506|p00011|0
u207020506|p00011|0
codenet
Compile Error
666
v2_s483554930
s483554930
s483554930
p00011
p00011
u211138527
u211138527
1,434,478,244
2015-06-16T18:10:44
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; int p,q,r,s; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ p=sc.nextInt(); q=sc.nextInt(); r=k[p-1]; s=k[q-1]; k[p-1]=s; k[q-1]=r; } for(int k...
Main.java:21: error: variable k is already defined in method main(String[]) for(int k=0;k<w;k++){ ^ Main.java:22: error: array required, but int found System.out.println(k[k]); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00011|0
u211138527|p00011|0
codenet
Compile Error
364
v2_s481863614
s481863614
s481863614
p00011
p00011
u211138527
u211138527
1,434,480,082
2015-06-16T18:41:22
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; int p,q,r; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ String[] line=sc.nextLine.split(","); p=Integer.perseInt(line[0]); q=Integer.pe...
Main.java:14: error: cannot find symbol String[] line=sc.nextLine.split(","); ^ symbol: variable nextLine location: variable sc of type Scanner Main.java:15: error: cannot find symbol p=Integer.perseInt(line[0]); ^ symbol: method perseInt(String) location: class Integer Main.java:16...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00011|0
u211138527|p00011|0
codenet
Compile Error
427
v2_s287707463
s287707463
s287707463
p00011
p00011
u211138527
u211138527
1,434,480,149
2015-06-16T18:42:29
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int w=sc.nextInt(); int n=sc.nextInt(); int[] k=new int[w]; for(int i=0;i<w;i++){ k[i]=i+1; } for(int j=0;j<n;j++){ String[] line=sc.nextLine().split(","); int p=Integer.perseInt(line[0]); int q=Integer.per...
Main.java:14: error: cannot find symbol int p=Integer.perseInt(line[0]); ^ symbol: method perseInt(String) location: class Integer Main.java:15: error: cannot find symbol int q=Integer.perseInt(line[1]); ^ symbol: method perseInt(String) location: class Integer 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u211138527|p00011|0
u211138527|p00011|0
codenet
Compile Error
430
v2_s658641886
s658641886
s658641886
p00011
p00011
u329812763
u329812763
1,499,750,438
2017-07-11T05:20:38
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner sc = new Scanner(System.in); int tatebo = sc.nextInt(); int yokobo = sc.nextInt();...
Main.java:47: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u329812763|p00011|0
u329812763|p00011|0
codenet
Compile Error
751
v2_s984401480
s984401480
s984401480
p00011
p00011
u329812763
u329812763
1,499,750,475
2017-07-11T05:21:15
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner sc = new Scanner(System.in); int tatebo = sc.nextInt(); int yokobo = sc.nextInt(); ...
Main.java:46: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u329812763|p00011|0
u329812763|p00011|0
codenet
Compile Error
750
v2_s706147218
s706147218
s706147218
p00011
p00011
u357336721
u357336721
1,525,672,288
2018-05-07T05:51:28
Main.java
import java.util.*; class Main{ public static void main(String args[]){ int w,n; int[][] Edge; int[] Ans; Scanner in = new Scanner(System.in); String[] s; w = in.nextInt(); n = in.nextInt(); Edge = new int[w+1][2]; Ans = new int[w+1]; for(int i=1;i<=w;i++)Ans[i] = ...
Main.java:28: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u357336721|p00011|0
u357336721|p00011|0
codenet
Compile Error
677
v2_s079749601
s079749601
s079749601
p00011
p00011
u397954380
u397954380
1,462,770,629
2016-05-09T05:10:29
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] =...
Main.java:26: error: ';' expected i++ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
719
v2_s324480325
s324480325
s324480325
p00011
p00011
u397954380
u397954380
1,462,770,650
2016-05-09T05:10:50
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] =...
Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for(i = 0;i<values;i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
719
v2_s833172639
s833172639
s833172639
p00011
p00011
u397954380
u397954380
1,462,770,687
2016-05-09T05:11:27
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int i: int[] values = new int[w]; for (i = 0; i < values.length; i++) { value...
Main.java:9: error: ';' expected int i: ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
721
v2_s054720459
s054720459
s054720459
p00011
p00011
u397954380
u397954380
1,462,770,709
2016-05-09T05:11:49
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int kari; int i; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values[...
Main.java:25: error: bad operand types for binary operator '<' for(i = 0;i<values;i++){ ^ first type: int second type: int[] 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
719
v2_s183093343
s183093343
s183093343
p00011
p00011
u397954380
u397954380
1,462,772,708
2016-05-09T05:45:08
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
689
v2_s384659299
s384659299
s384659299
p00011
p00011
u397954380
u397954380
1,462,772,725
2016-05-09T05:45:25
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
689
v2_s730290106
s730290106
s730290106
p00011
p00011
u397954380
u397954380
1,462,772,765
2016-05-09T05:46:05
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:20: error: '.class' expected values[b] = int c; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
689
v2_s741028918
s741028918
s741028918
p00011
p00011
u397954380
u397954380
1,462,772,824
2016-05-09T05:47:04
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } ...
Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol: variable i location: class Main Main.java:23: error: cannot find symbol for(i = 0;i<w;i++){ ^ symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
686
v2_s081979974
s081979974
s081979974
p00011
p00011
u397954380
u397954380
1,462,772,897
2016-05-09T05:48:17
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { va...
Main.java:11: error: variable i is already defined in method main(String[]) for (int i = 0; i < values.length; i++) { ^ Main.java:14: error: variable i is already defined in method main(String[]) for (int i = 0; i < n; i++) { ^ Main.java:26: error: no suitable method found for printf(int) System...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
705
v2_s360792645
s360792645
s360792645
p00011
p00011
u397954380
u397954380
1,462,772,936
2016-05-09T05:48:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
697
v2_s665890018
s665890018
s665890018
p00011
p00011
u397954380
u397954380
1,462,772,971
2016-05-09T05:49:31
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
697
v2_s693808027
s693808027
s693808027
p00011
p00011
u397954380
u397954380
1,462,773,012
2016-05-09T05:50:12
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int i; int c = 0; int[] values = new int[w]; for (i = 0; i < values.length; i++) { values...
Main.java:26: error: no suitable method found for printf(int) System.out.printf(values[i]); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable (arg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u397954380|p00011|0
u397954380|p00011|0
codenet
Compile Error
697
v2_s769226314
s769226314
s769226314
p00011
p00011
u440339079
u440339079
1,494,227,082
2017-05-08T07:04:42
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int d; int w = sc.nextInt(); int n = sc.nextInt(); int[] line; int[] a; line = new int[w]; a = new int[2]; for(int i=0;i<w;i++) line[i] = i+1; for(int i=0;i<n;i++){ String s = sc...
Main.java:21: error: ']' expected int a[k] = Integer.parseInt(substring(x,j-1)); ^ Main.java:21: error: ';' expected int a[k] = Integer.parseInt(substring(x,j-1)); ^ Main.java:36: error: reached end of file while parsing } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440339079|p00011|0
u440339079|p00011|0
codenet
Compile Error
729
v2_s906080152
s906080152
s906080152
p00011
p00011
u450760454
u450760454
1,525,668,994
2018-05-07T04:56:34
Main.java
k
Main.java:1: error: reached end of file while parsing k ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u450760454|p00011|0
u450760454|p00011|0
codenet
Compile Error
2
v2_s873301731
s873301731
s873301731
p00011
p00011
u491165315
u491165315
1,376,034,642
2013-08-09T07:50:42
Main.java
#include <stdio.h> int main(void){ int w, n, a[31], tmp, x, y, i; for(i = 1; i < 31; i++) a[i] = i; scanf("%d\n%d\n", &w, &n); for(;n--;){ scanf("%d,%d", &x, &y); tmp = a[x]; a[x] = a[y]; a[y] = tmp; } for(i = 1; i < w+1; i++) printf("%d\n", a[i]); return 0; }
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: class, interface, enum, or record expected for(i = 1; i < 31; i++) ^ Main.java:4: error: class, interface, enum, or record expected for(i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u491165315|p00011|0
u491165315|p00011|0
codenet
Compile Error
298
v2_s698235358
s698235358
s698235358
p00011
p00011
u496767920
u496767920
1,474,645,373
2016-09-23T15:42:53
Main.java
import java.io.IOException; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import static com.sun.org.apache.xalan.internal.lib.ExsltStrings.split; import static java.lang.StrictMath.sqrt; import static java.util.Collections.swap; /** * Wrong Answer */ class...
Main.java:7: error: package com.sun.org.apache.xalan.internal.lib is not visible import static com.sun.org.apache.xalan.internal.lib.ExsltStrings.split; ^ (package com.sun.org.apache.xalan.internal.lib is declared in module java.xml, which does not export it) Main.java:7...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u496767920|p00011|0
u496767920|p00011|0
codenet
Compile Error
874
v2_s363658365
s363658365
s363658365
p00011
p00011
u505632459
u505632459
1,526,006,415
2018-05-11T02:40:15
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|0
u505632459|p00011|0
codenet
Compile Error
814
v2_s925077802
s925077802
s925077802
p00011
p00011
u505632459
u505632459
1,526,006,490
2018-05-11T02:41:30
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:6: error: cannot find symbol int w = sc.nextlnt(); ^ symbol: method nextlnt() location: variable sc of type Scanner Main.java:7: error: cannot find symbol int n = sc.nextlnt(); ^ symbol: method nextlnt() location: variable sc of t...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|0
u505632459|p00011|0
codenet
Compile Error
809
v2_s233208681
s233208681
s233208681
p00011
p00011
u505632459
u505632459
1,526,130,554
2018-05-12T13:09:14
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+...
Main.java:1: error: class, interface, enum, or record expected mport java.util.Scanner; ^ Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|1
u505632459|p00011|1
codenet
Compile Error
813
v2_s635535050
s635535050
s635535050
p00011
p00011
u505632459
u505632459
1,526,222,143
2018-05-13T14:35:43
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex:","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
812
v2_s010064997
s010064997
s010064997
p00011
p00011
u505632459
u505632459
1,526,222,261
2018-05-13T14:37:41
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
811
v2_s715811272
s715811272
s715811272
p00011
p00011
u505632459
u505632459
1,526,222,279
2018-05-13T14:37:59
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex;","); ^ Main.java:14: error: not a statement String[] ab=str.split(regex;","); ^ Main.java:14: error: ';' expected S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
812
v2_s741503726
s741503726
s741503726
p00011
p00011
u505632459
u505632459
1,526,222,306
2018-05-13T14:38:26
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex:","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
812
v2_s943358514
s943358514
s943358514
p00011
p00011
u505632459
u505632459
1,526,222,344
2018-05-13T14:39:04
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ';' expected String[] ab=str.split(regex):(","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
814
v2_s533740763
s533740763
s533740763
p00011
p00011
u505632459
u505632459
1,526,222,383
2018-05-13T14:39:43
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i...
Main.java:14: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
813
v2_s200547346
s200547346
s200547346
p00011
p00011
u505632459
u505632459
1,526,222,411
2018-05-13T14:40:11
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:12: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
786
v2_s049837717
s049837717
s049837717
p00011
p00011
u505632459
u505632459
1,526,222,424
2018-05-13T14:40:24
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
781
v2_s738346929
s738346929
s738346929
p00011
p00011
u505632459
u505632459
1,526,222,610
2018-05-13T14:43:30
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:12: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
786
v2_s139605749
s139605749
s139605749
p00011
p00011
u505632459
u505632459
1,526,222,798
2018-05-13T14:46:38
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:12: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
786
v2_s918603859
s918603859
s918603859
p00011
p00011
u505632459
u505632459
1,526,223,941
2018-05-13T15:05:41
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:12: error: ')' or ',' expected String[] ab=str.split(regex: ","); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
786
v2_s419992472
s419992472
s419992472
p00011
p00011
u505632459
u505632459
1,526,223,959
2018-05-13T15:05:59
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
774
v2_s430184960
s430184960
s430184960
p00011
p00011
u505632459
u505632459
1,526,223,968
2018-05-13T15:06:08
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
774
v2_s709580664
s709580664
s709580664
p00011
p00011
u505632459
u505632459
1,526,224,000
2018-05-13T15:06:40
Main.java
public class Main { public static void main(String[] args){ try(Scanner sc =new Scanner(System.in)){ int w = sc.nextlnt(); int n = sc.nextlnt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i]=i+1; } ...
Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol try(Scanner sc =new Scanner(System.in)){ ^ symbol: class Scanner location: class Main Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u505632459|p00011|2
u505632459|p00011|2
codenet
Compile Error
779
v2_s979581830
s979581830
s979581830
p00011
p00011
u532635730
u532635730
1,451,376,053
2015-12-29T08:00:53
Main.java
public class Main { public static void main(String[] args) { Scanner sc = null; try { sc = new Scanner(System.in); // 縦線の数 int w = sc.nextInt(); // あみだのスタートライン int[] nums = new int[w]; for (int i = 0; i < w; i++) { nums[i] = i + 1; } // 横線の数 int n = sc.nextInt(); // 横線を引く fo...
Main.java:4: error: cannot find symbol Scanner sc = null; ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u532635730|p00011|0
u532635730|p00011|0
codenet
Compile Error
731
v2_s247356826
s247356826
s247356826
p00011
p00011
u545116855
u545116855
1,462,773,103
2016-05-09T05:51:43
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int w, n, a, b, i, swap; w = scan.nextInt(); int[] amidakuji = new int[w]; for (i = 0; i < n; i ++) amidakuji[i] = i; n = scan.nextInt(); for (i = 0; i < n; i ++) { a = scan.nextInt()...
Main.java:8: error: variable n might not have been initialized for (i = 0; i < n; i ++) amidakuji[i] = i; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u545116855|p00011|0
u545116855|p00011|0
codenet
Compile Error
516
v2_s352920628
s352920628
s352920628
p00011
p00011
u563917086
u563917086
1,462,771,275
2016-05-09T05:21:15
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i++) { String str = sc.next(); String[] a...
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u563917086|p00011|0
u563917086|p00011|0
codenet
Compile Error
582
v2_s749890265
s749890265
s749890265
p00011
p00011
u574420836
u574420836
1,402,982,120
2014-06-17T05:15:20
Main.java
import java.util.Scanner; public class Main{ private static int f; private static int s; Amida(int first,int second){ f=first; s=second; } private static void change(int data[]){ int temp = data[f-1]; data[f-1] = data[s-1]; data[s-1] = temp; } public static void main(String[] args) { Scanner scan = n...
Main.java:5: error: invalid method declaration; return type required Amida(int first,int second){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574420836|p00011|0
u574420836|p00011|0
codenet
Compile Error
734
v2_s379892313
s379892313
s379892313
p00011
p00011
u574420836
u574420836
1,404,192,543
2014-07-01T05:29:03
Main.java
import java.util.Scanner; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w = sc.nextInt(); int n = sc.nextInt(); int[] c = new int[2]; int f=0; int s=0; in...
Main.java:18: error: incompatible types: String[] cannot be converted to int[] c=br.readLine().split(","); ^ Main.java:19: error: incompatible types: int cannot be converted to String f=Integer.parseInt(c[0]); ^ Main.java:20: error: incompatible types: int cannot be ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u574420836|p00011|2
u574420836|p00011|2
codenet
Compile Error
668
v2_s933976145
s933976145
s933976145
p00011
p00011
u577096406
u577096406
1,462,777,361
2016-05-09T07:02:41
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int blank; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; }...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577096406|p00011|0
u577096406|p00011|0
codenet
Compile Error
673
v2_s629556643
s629556643
s629556643
p00011
p00011
u577096406
u577096406
1,462,777,380
2016-05-09T07:03:00
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int blank; int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; }...
Main.java:23: error: cannot find symbol println(values[i]);// values?????????????????? ^ symbol: method println(int) location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u577096406|p00011|0
u577096406|p00011|0
codenet
Compile Error
675
v2_s024570973
s024570973
s024570973
p00011
p00011
u594816808
u594816808
1,526,605,456
2018-05-18T01:04:16
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); static int w = Integer.parseInt(sc.nextLine()); static int[] res = new int[w]; static int n = Integer.parseInt(sc.nextLine()); static ArrayList<HorizLine> hL = new ArrayList<HorizLine>(); publi...
Main.java:47: error: class HorizLine is public, should be declared in a file named HorizLine.java public class HorizLine { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u594816808|p00011|0
u594816808|p00011|0
codenet
Compile Error
1,349
v2_s728352713
s728352713
s728352713
p00011
p00011
u619017212
u619017212
1,525,679,049
2018-05-07T07:44:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] values = new int[w]; int w = sc.nextInt(); int n = sc.nextInt(); stick = new int[w]; for(int i=0;i<values.length;i++){ va...
Main.java:7: error: cannot find symbol int[] values = new int[w]; ^ symbol: variable w location: class Main Main.java:11: error: cannot find symbol stick = new int[w]; ^ symbol: variable stick location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u619017212|p00011|0
u619017212|p00011|0
codenet
Compile Error
748
v2_s976629947
s976629947
s976629947
p00011
p00011
u619017212
u619017212
1,525,679,084
2018-05-07T07:44:44
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] values = new int[w]; int w = sc.nextInt(); int n = sc.nextInt(); stick = new int[w]; for(int i=0;i<values.length;i++){ va...
Main.java:7: error: cannot find symbol int[] values = new int[w]; ^ symbol: variable w location: class Main Main.java:11: error: cannot find symbol stick = new int[w]; ^ symbol: variable stick location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u619017212|p00011|0
u619017212|p00011|0
codenet
Compile Error
748
v2_s838668541
s838668541
s838668541
p00011
p00011
u619017212
u619017212
1,525,679,121
2018-05-07T07:45:21
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] values = new int[w]; int w = sc.nextInt(); int n = sc.nextInt(); for(int i=0;i<values.length;i++){ values[i] = i+1; } ...
Main.java:7: error: cannot find symbol int[] values = new int[w]; ^ symbol: variable w location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u619017212|p00011|0
u619017212|p00011|0
codenet
Compile Error
723
v2_s721082453
s721082453
s721082453
p00011
p00011
u619017212
u619017212
1,525,679,211
2018-05-07T07:46:51
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)){ int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for(int i=0;i<values.length;i++){ values[i] = i...
Main.java:32: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u619017212|p00011|0
u619017212|p00011|0
codenet
Compile Error
737
v2_s449293777
s449293777
s449293777
p00011
p00011
u679955434
u679955434
1,462,776,122
2016-05-09T06:42:02
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { // ?¨??????\??????????????????????????????????????? Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1...
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
u679955434|p00011|0
u679955434|p00011|0
codenet
Compile Error
691
v2_s795379483
s795379483
s795379483
p00011
p00011
u705352026
u705352026
1,525,667,694
2018-05-07T04:34:54
Main.java
import java.awt.print.Printable; 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 w = sc.nextInt(); int n = sc.nextInt(); int amidaArray = new int[n]; ...
Main.java:10: error: incompatible types: int[] cannot be converted to int int amidaArray = new int[n]; ^ Main.java:13: error: array required, but int found amidaArray[i] = i; ^ Main.java:19: error: array required, but int found int temp = am...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u705352026|p00011|0
u705352026|p00011|0
codenet
Compile Error
703
v2_s185388791
s185388791
s185388791
p00011
p00011
u731896389
u731896389
1,462,774,610
2016-05-09T06:16:50
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { // 標準入力からデータを読み込む準備 Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i+...
Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: variable i location: class Main Main.java:24: error: cannot find symbol for (i=0;i<n;i++){ ^ symbol: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u731896389|p00011|0
u731896389|p00011|0
codenet
Compile Error
695
v2_s546699623
s546699623
s546699623
p00011
p00011
u736302549
u736302549
1,525,672,902
2018-05-07T06:01:42
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int[] num = new int[w]; for(int i=0;i<w;i++) num[i] = i + 1; int n = sc.nextInt(),a,b,tmp; String tmpstr; for(int i=0;i<n...
Main.java:15: error: variable a might not have been initialized tmp = num[a-1]; ^ Main.java:16: error: variable b might not have been initialized num[a-1] = num[b-1]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736302549|p00011|2
u736302549|p00011|2
codenet
Compile Error
608
v2_s621877562
s621877562
s621877562
p00011
p00011
u736302549
u736302549
1,525,672,905
2018-05-07T06:01:45
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int[] num = new int[w]; for(int i=0;i<w;i++) num[i] = i + 1; int n = sc.nextInt(),a,b,tmp; String tmpstr; for(int i=0;i<n...
Main.java:15: error: variable a might not have been initialized tmp = num[a-1]; ^ Main.java:16: error: variable b might not have been initialized num[a-1] = num[b-1]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u736302549|p00011|2
u736302549|p00011|2
codenet
Compile Error
608
v2_s084109531
s084109531
s084109531
p00011
p00011
u744729617
u744729617
1,494,388,080
2017-05-10T03:48:00
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); int n = sc.nextInt(); int[] values = new int[w]; for (int i = 0; i < values.length; i++) { values[i] = i + 1; } for (int i = 0; i < n; i++) { String[...
Main.java:14: error: cannot find symbol String[] ab = str.split(","); ^ symbol: variable str location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u744729617|p00011|0
u744729617|p00011|0
codenet
Compile Error
583
v2_s930569403
s930569403
s930569403
p00011
p00011
u745110271
u745110271
1,525,671,224
2018-05-07T05:33:44
Main.java
import java.util.Scanner; public class Main { public static void main(Sring[] args){} try(Scanner sc = new Scanner ( System.in)){ int w =sc.nextInt(); int n =sc.nextInt(); int[] values = new int[w]; for(int i = 0; i < values.length; i++){ values[i] = i + 1 ; ...
Main.java:6: error: illegal start of type try(Scanner sc = new Scanner ( System.in)){ ^ Main.java:6: error: ';' expected try(Scanner sc = new Scanner ( System.in)){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u745110271|p00011|0
u745110271|p00011|0
codenet
Compile Error
757