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_s301644742
s301644742
s301644742
p03292
p03292
u726439578
u726439578
1,532,227,196
2018-07-22T02:39:56
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String Nb1 = scan.next(); int N = Integer.valueOf(Nb1); String Nb1 = scan.next(); int M = Integer.valueOf(Nb2); int[] nb1 = new int[M]; int[] nb2 = new int[M]; for (int i = 0...
Main.java:9: error: variable Nb1 is already defined in method main(String[]) String Nb1 = scan.next(); ^ Main.java:10: error: cannot find symbol int M = Integer.valueOf(Nb2); ^ symbol: variable Nb2 location: class Main Main.java:23: error: cannot find symbol if(nb2[i]<v1...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u726439578|p03292|0
u726439578|p03292|0
codenet
Compile Error
605
v2_s037162261
s037162261
s037162261
p03292
p03292
u764060069
u764060069
1,539,292,864
2018-10-11T21:21:04
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int A1 = scanner.nextInt(); int A2 = scanner.nextInt(); int A3 = scanner.nextInt(); int[] list = {A1, A2, A3}; int cost = 0; //System.out.println(A1); //System.out.println(A2); //System...
Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner scanner = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:20: error: canno...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u764060069|p03292|0
u764060069|p03292|0
codenet
Compile Error
855
v2_s335673415
s335673415
s335673415
p03292
p03292
u784448849
u784448849
1,544,070,511
2018-12-06T04:28:31
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { solve(sc); } } public static void solve(Scanner sc) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); ...
Main.java:17: error: cannot find symbol int min = Mth.min(a, b); ^ symbol: variable Mth location: class Main Main.java:19: error: cannot find symbol int max = Mth.max(a, b); ^ symbol: variable Mth location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03292|0
u784448849|p03292|0
codenet
Compile Error
812
v2_s975119076
s975119076
s975119076
p03292
p03292
u784448849
u784448849
1,544,070,532
2018-12-06T04:28:52
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { solve(sc); } } public static void solve(Scanner sc) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); ...
Main.java:17: error: cannot find symbol int min = Mth.min(a, b); ^ symbol: variable Mth location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03292|0
u784448849|p03292|0
codenet
Compile Error
813
v2_s594949132
s594949132
s594949132
p03292
p03292
u806768852
u806768852
1,582,140,259
2020-02-19T19:24:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a[] = new int[3]; for(int i = 0;i<3;i++){ a[i] = sc.nextInt(); } Arrays.sort(a); int dis = 0; for(int i = 0;i<2;i++){ dis += a[i+1] - a[i]; } System.o...
Main.java:14: error: cannot find symbol System.out.println(ans); ^ symbol: variable ans location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806768852|p03292|0
u806768852|p03292|0
codenet
Compile Error
343
v2_s475375732
s475375732
s475375732
p03292
p03292
u809407598
u809407598
1,551,988,767
2019-03-07T19:59:27
Main.java
import java.util.*; public class Main { public static void main(String[] args){ //データ取り込み Scanner sc = new Scanner(System.in); //int N = sc.nextInt(); //int M = sc.nextInt(); //String S = sc.next(); int list[] = new int[3]; for(int i=0;i<N;i++){ list[i] = sc.nextInt(); ...
Main.java:10: error: cannot find symbol for(int i=0;i<N;i++){ ^ symbol: variable N location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u809407598|p03292|0
u809407598|p03292|0
codenet
Compile Error
438
v2_s353019324
s353019324
s353019324
p03292
p03292
u863370423
u863370423
1,586,308,394
2020-04-08T01:13:14
Main.java
#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { int c,a[3],n,b=0,i,j; //scanf("%d%d%d",&a,&b,&c); for(i=0;i<3;i++) { cin>>a[i]; } sort(a,a+3); for(i=0;i<2;i++) { b=b+abs(a[i]-a[i+1]); } cout<<b<<"\n"; return 0; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<bits/stdc++.h> ^ Main.java:6: error: not a statement int c,a[3],n,b=0,i,j; ^ Main.java:6: error: not a statement int c,a[3],n,b=0,i,j; ^ Main.java:6: error: not...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03292|0
u863370423|p03292|0
codenet
Compile Error
302
v2_s388626236
s388626236
s388626236
p03292
p03292
u874000404
u874000404
1,568,571,068
2019-09-15T18:11:08
Main.java
mport java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a = new int[3]; for(int i=0;i<3;i++){ a[i] = Integer.parseInt(sc.next()); } sort(a, 0, 2); int cost = (a[1]- a[0]); cos...
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
u874000404|p03292|0
u874000404|p03292|0
codenet
Compile Error
859
v2_s683114556
s683114556
s683114556
p03292
p03292
u879608260
u879608260
1,532,221,532
2018-07-22T01:05:32
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); int s1=Math.abs(a-b)+Math.abs(b-c); int s2=Math.abs(a-c)+Math.abs(b-c); int s3=Math.abs(a-b)+Math.abs(a-c); System.out.println(Math.min(s1, Math....
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
u879608260|p03292|0
u879608260|p03292|0
codenet
Compile Error
339
v2_s977246091
s977246091
s977246091
p03292
p03292
u892441888
u892441888
1,533,150,566
2018-08-01T19:09:26
Main.java
public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner("1 6 3");//System.in); int[] As = new int[3]; As[0] = scanner.nextInt(); As[1] = scanner.nextInt(); As[2] = scanner.nextInt(); int bestCost = 99999; for(int i = 0; i < 3;i++)...
Main.java:3: error: cannot find symbol Scanner scanner = new Scanner("1 6 3");//System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner scanner = new Scanner("1 6 3");//System.in); ^ symbol: class Scanner l...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u892441888|p03292|0
u892441888|p03292|0
codenet
Compile Error
690
v2_s346114379
s346114379
s346114379
p03292
p03292
u894902345
u894902345
1,533,142,845
2018-08-01T17:00:45
Main.java
import java.util.*; class Main{ public static void main(String s[]){ Scanner sc = new Scanner(System.in); int arr[] =new int[3]; int arr[0] = sc.nextInt(); int arr[1] = sc.nextInt(); int arr[2] = sc.nextInt(); Arrays.sort(arr); System.out.println(arr[0]+arr[1]); } }
Main.java:6: error: ']' expected int arr[0] = sc.nextInt(); ^ Main.java:7: error: ']' expected int arr[1] = sc.nextInt(); ^ Main.java:8: error: ']' expected int arr[2] = sc.nextInt(); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u894902345|p03292|0
u894902345|p03292|0
codenet
Compile Error
304
v2_s403550985
s403550985
s403550985
p03292
p03292
u902576227
u902576227
1,532,221,592
2018-07-22T01:06:32
Main.java
public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int A1 = scanner.nextInt(); int A2 = scanner.nextInt(); int A3 = scanner.nextInt(); int max = A1; int min = A1; if(A2 > max) { max = A2; } ...
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
u902576227|p03292|0
u902576227|p03292|0
codenet
Compile Error
539
v2_s070072741
s070072741
s070072741
p03292
p03292
u926470318
u926470318
1,532,225,338
2018-07-22T02:08:58
Main.java
import java.util.Scanner; import java.util.Arryas; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] arr = new int[3]; arr[0]=sc.nextInt(); arr[1]=sc.nextInt(); arr[2]=sc.nextInt(); Arrays.sort(arr); System.out.println(arr[2]-arr[0]); ...
Main.java:2: error: cannot find symbol import java.util.Arryas; ^ symbol: class Arryas location: package java.util Main.java:11: error: cannot find symbol Arrays.sort(arr); ^ symbol: variable Arrays location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926470318|p03292|0
u926470318|p03292|0
codenet
Compile Error
323
v2_s663870662
s663870662
s663870662
p03292
p03292
u931462782
u931462782
1,532,221,907
2018-07-22T01:11:47
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 入力 int a1 = sc.nextInt(); int a2 = sc.nextInt(); int a3 = sc.nextInt(); int wk; if (a2 > a3) { wk = a2; a2 = a3; a3 = wk; } int cost = Math.abs(a2 -a1) + Math.abs(...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u931462782|p03292|0
u931462782|p03292|0
codenet
Compile Error
376
v2_s976048394
s976048394
s976048394
p03292
p03292
u974136601
u974136601
1,532,222,393
2018-07-22T01:19:53
Main.java
public class Main { public static void main(String[] args) { // // int a = 11; // int b = 5; // int c = 5; Scanner cin = new Scanner(System.in); int a = cin.nextInt(); int b = cin.nextInt(); int c = cin.nextInt(); int res = 0; int cost1 = Math.a...
Main.java:8: error: cannot find symbol Scanner cin = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol Scanner cin = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u974136601|p03292|0
u974136601|p03292|0
codenet
Compile Error
831
v2_s003477165
s003477165
s003477165
p03293
p03293
u003018968
u003018968
1,532,227,955
2018-07-22T02:52:35
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = next(); String T = next(); char s[S.length()]; char t[T.length()]; char a; for(int j = 0; j < S.lengh(); j++){ s[j] = S.charAt(j); t[j] = T.charAt(j); ...
Main.java:7: error: ']' expected char s[S.length()]; ^ Main.java:7: error: ';' expected char s[S.length()]; ^ Main.java:8: error: ']' expected char t[T.length()]; ^ Main.java:8: error: ';' expected char t[T.length()]; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p03293|0
u003018968|p03293|0
codenet
Compile Error
726
v2_s871670050
s871670050
s871670050
p03293
p03293
u003018968
u003018968
1,532,228,174
2018-07-22T02:56:14
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = next(); String T = next(); int s_ = S.length(); int t_ = T.length(); char s[s_]; char t[t_]; char a; for(int j = 0; j < S.lengh(); j++){ s[j] = S.cha...
Main.java:9: error: ']' expected char s[s_]; ^ Main.java:9: error: ';' expected char s[s_]; ^ Main.java:10: error: ']' expected char t[t_]; ^ Main.java:10: error: ';' expected char t[t_]; ^ 4 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p03293|0
u003018968|p03293|0
codenet
Compile Error
761
v2_s243897316
s243897316
s243897316
p03293
p03293
u003018968
u003018968
1,532,228,271
2018-07-22T02:57:51
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = next(); String T = next(); char[] s = new char[S.length()]; char[] t = new char[T.length()]; char a; for(int j = 0; j < S.lengh(); j++){ s[j] = S.charAt(j); ...
Main.java:5: error: cannot find symbol String S = next(); ^ symbol: method next() location: class Main Main.java:6: error: cannot find symbol String T = next(); ^ symbol: method next() location: class Main Main.java:10: error: cannot find symbol for(int j = 0; j < S...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p03293|0
u003018968|p03293|0
codenet
Compile Error
753
v2_s175916656
s175916656
s175916656
p03293
p03293
u003018968
u003018968
1,532,228,359
2018-07-22T02:59:19
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String T = sc.next(); char[] s = new char[S.length()]; char[] t = new char[T.length()]; char a; for(int j = 0; j < S.lengh(); j++){ s[j] = S.charA...
Main.java:10: error: cannot find symbol for(int j = 0; j < S.lengh(); j++){ ^ symbol: method lengh() location: variable S of type String Main.java:25: error: cannot find symbol a = s[S.length - 1]; ^ symbol: variable length location: variable S of type Stri...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p03293|0
u003018968|p03293|0
codenet
Compile Error
760
v2_s822743884
s822743884
s822743884
p03293
p03293
u003018968
u003018968
1,532,228,478
2018-07-22T03:01:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String T = sc.next(); char[] s = new char[S.length()]; char[] t = new char[T.length()]; char a; for(int j = 0; j < S.length(); j++){ s[j] = S.char...
Main.java:25: error: cannot find symbol a = s[S.length - 1]; ^ symbol: variable length location: variable S of type String Main.java:26: error: cannot find symbol s[S.length - 1] = s[0]; ^ symbol: variable length location: variable S of type String 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u003018968|p03293|0
u003018968|p03293|0
codenet
Compile Error
761
v2_s077860555
s077860555
s077860555
p03293
p03293
u007805459
u007805459
1,598,057,620
2020-08-22T00:53:40
Main.java
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public ...
Main.java:73: error: incompatible types: int cannot be converted to String String s=sc.next(),st=sc.nextInt();int f=0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u007805459|p03293|0
u007805459|p03293|0
codenet
Compile Error
1,985
v2_s664103722
s664103722
s664103722
p03293
p03293
u029115008
u029115008
1,540,608,368
2018-10-27T02:46:08
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); String t = scanner.next(); boolean flag = false; for (int i = 0; i < s.length; i++) { String end = s.substring(s.length-1,s.length); s = s.substring(0,...
Main.java:9: error: cannot find symbol for (int i = 0; i < s.length; i++) { ^ symbol: variable length location: variable s of type String Main.java:10: error: cannot find symbol String end = s.substring(s.length-1,s.length); ^ symbol: variable length ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u029115008|p03293|0
u029115008|p03293|0
codenet
Compile Error
445
v2_s387915591
s387915591
s387915591
p03293
p03293
u038676814
u038676814
1,533,695,427
2018-08-08T02:30:27
B103.java
import java.util.*; public class B103{ public static void main(String[] args) { new Main().run(); } void run() { Sccaner sc = new Sccaner(System.in); String a = sc.next(); String b = sc.next(); int length = a.length(); String afterA = a; for(int i=0...
B103.java:4: error: cannot find symbol new Main().run(); ^ symbol: class Main location: class B103 B103.java:8: error: cannot find symbol Sccaner sc = new Sccaner(System.in); ^ symbol: class Sccaner location: class B103 B103.java:8: error: cannot find symbol Sccan...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03293|0
u038676814|p03293|0
codenet
Compile Error
581
v2_s437432618
s437432618
s437432618
p03293
p03293
u038676814
u038676814
1,533,695,469
2018-08-08T02:31:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { new Main().run(); } void run() { Sccaner sc = new Sccaner(System.in); String a = sc.next(); String b = sc.next(); int length = a.length(); String afterA = a; for(int i=0...
Main.java:8: error: cannot find symbol Sccaner sc = new Sccaner(System.in); ^ symbol: class Sccaner location: class Main Main.java:8: error: cannot find symbol Sccaner sc = new Sccaner(System.in); ^ symbol: class Sccaner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03293|0
u038676814|p03293|0
codenet
Compile Error
581
v2_s251720811
s251720811
s251720811
p03293
p03293
u038676814
u038676814
1,533,695,628
2018-08-08T02:33:48
B103.java
import java.util.*; public class B103{ public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); int length = a.length(); String afterA = a; for(int i=0...
B103.java:4: error: cannot find symbol new Main().run(); ^ symbol: class Main location: class B103 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03293|0
u038676814|p03293|0
codenet
Compile Error
614
v2_s974148451
s974148451
s974148451
p03293
p03293
u054014424
u054014424
1,532,535,815
2018-07-25T16:23:35
Main.java
import java.util.*; pblic class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String s,t; int j = -1,k = 0,l = 0; s = sc.nextLine(); t = sc.nextLine(); for(int i = 0;i < t.length();i++) if(s.charAt(0) == t.charAt(i)) { j = i; br...
Main.java:3: error: class, interface, enum, or record expected pblic class Main { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u054014424|p03293|0
u054014424|p03293|0
codenet
Compile Error
747
v2_s249530040
s249530040
s249530040
p03293
p03293
u140843559
u140843559
1,554,914,407
2019-04-10T16:40:07
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String T = sc.nextLine(); int cnt = 0; int L = S.length(); for (int i = 0; i < L; i++){ for (int j = 0; j < L; j++){ if (T.charAt(j) == S.charAt(...
Main.java:21: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u140843559|p03293|0
u140843559|p03293|0
codenet
Compile Error
471
v2_s657157076
s657157076
s657157076
p03293
p03293
u199522208
u199522208
1,532,222,651
2018-07-22T01:24:11
Main.java
public static void stringRotation() { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); String t = sc.nextLine(); for (int i=0; i<s.length(); i++) { int j=0; int k=i; while (s.charAt(k) == t.charAt(j)) { k++; j++; if (k == s.length()) k=0; if (j == t.length()) { Syste...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void stringRotation() { ^ (use --enable-preview to enable unnamed classes) Main.java:20: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u199522208|p03293|0
u199522208|p03293|0
codenet
Compile Error
402
v2_s691121797
s691121797
s691121797
p03293
p03293
u353919145
u353919145
1,551,917,089
2019-03-07T00:04:49
Main.java
public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); StringBuffer str1=new StringBuffer(sc.nextLine()); StringBuffer str2=new StringBuffer(sc.nextLine()); int len=str1.length(); if(len!=str2.length()){ System.out.println("No"); return; } while(len-->0){...
Main.java:4: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc=new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u353919145|p03293|0
u353919145|p03293|0
codenet
Compile Error
612
v2_s493392232
s493392232
s493392232
p03293
p03293
u371791265
u371791265
1,594,218,883
2020-07-08T14:34:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.next(); String T = sc.next(); for(int i=0;i<S.length;i++){ if(S.equals(T)){ System.out.println("Yes"); return; } S = S.subs...
Main.java:7: error: cannot find symbol for(int i=0;i<S.length;i++){ ^ symbol: variable length location: variable S of type String Main.java:12: error: cannot find symbol S = S.substring(S.length-1)+S.substring(0,S.length-2); ^ symbol: variable length...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u371791265|p03293|0
u371791265|p03293|0
codenet
Compile Error
412
v2_s496684310
s496684310
s496684310
p03293
p03293
u419510477
u419510477
1,532,226,630
2018-07-22T02:30:30
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); boolean isMatched = false; boolean isYes = false; String s = sc.next(); String t = sc.next(); int len = s.length(); char[] s_ = new char[len]; ...
Main.java:25: error: array required, but String found s[0] = tmp; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u419510477|p03293|0
u419510477|p03293|0
codenet
Compile Error
1,171
v2_s590165176
s590165176
s590165176
p03293
p03293
u434662823
u434662823
1,539,542,429
2018-10-14T18:40:29
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(system.in); String s = sc.next(); String t = sc.next(); boolean flag = false; for(int i = 0; i < s.length(); i++) { for(int j = 0; j < s.length(); j++) { if(s.charAt(i) != t...
Main.java:6: error: cannot find symbol Scanner sc = new Scanner(system.in); ^ symbol: variable system location: class Main Main.java:22: error: cannot find symbol else System.out.pritnln("No"); ^ symbol: method pritnln(String) location: variable out of...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u434662823|p03293|0
u434662823|p03293|0
codenet
Compile Error
517
v2_s014906547
s014906547
s014906547
p03293
p03293
u440447290
u440447290
1,532,225,405
2018-07-22T02:10:05
Main.java
package test; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { String correct = scanner.next(); String target = scanner.next(); if (correct.length() != target.length()) { return; } char[] targ = target.toCharArra...
Main.java:10: error: cannot find symbol String correct = scanner.next(); ^ symbol: variable scanner location: class Main Main.java:11: error: cannot find symbol String target = scanner.next(); ^ symbol: variable scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440447290|p03293|0
u440447290|p03293|0
codenet
Compile Error
729
v2_s838859750
s838859750
s838859750
p03293
p03293
u626353997
u626353997
1,557,252,026
2019-05-07T18:00:26
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); boolian judge = false; for(int i = 0; i < s.length(); i++){ if(s.equals(t)){ judge = true; break; } char c = s.charAt(s.len...
Main.java:10: error: cannot find symbol boolian judge = false; ^ symbol: class boolian location: class Main Main.java:22: error: cannot find symbol if(flag == 1){ ^ symbol: variable flag location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03293|0
u626353997|p03293|0
codenet
Compile Error
519
v2_s605800766
s605800766
s605800766
p03293
p03293
u626353997
u626353997
1,557,252,274
2019-05-07T18:04:34
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); boolian judge = false; for(int i = 0; i < s.length(); i++){ if(s.equals(t)){ judge = true; break; } char c = s.charAt(s.length()-...
Main.java:10: error: cannot find symbol boolian judge = false; ^ symbol: class boolian location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03293|0
u626353997|p03293|0
codenet
Compile Error
517
v2_s700180440
s700180440
s700180440
p03293
p03293
u675751622
u675751622
1,581,194,159
2020-02-08T20:35:59
Main.java
#include <bits/stdc++.h> #define rep(i, n) for(int i = 0; i < n; i++) using namespace std; int main() { string s, t; bool flag = false; cin >> s >> t; rep(i, s.length()) { string temp = s.substr(i, s.length()) + s.substr(0, i); if(temp == t) flag = true; } if(flag) cout << "Yes"...
Main.java:1: error: illegal character: '#' #include <bits/stdc++.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <bits/stdc++.h> ^ Main.java:2: error: illegal character: '#' #define rep(i, n) for(int i = 0; i < n; i++) ^ Main.java:2: error: class, interface, enum, or record expecte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675751622|p03293|0
u675751622|p03293|0
codenet
Compile Error
362
v2_s516269856
s516269856
s516269856
p03293
p03293
u692164164
u692164164
1,532,224,992
2018-07-22T02:03:12
Main.java
Scanner scanner = new Scanner(System.in); // String input = scanner.nextLine(); // System.out.println(input); String s = scanner.nextLine(); String t = scanner.nextLine(); scanner.close(); for (int i = 0; i < s.length(); ++i) { char c = s.charAt(s....
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. Scanner scanner = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) Main.java:9: error: class, interface, enum, or record expected scanner.close(); ^ Main.java:11: error: cla...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u692164164|p03293|0
u692164164|p03293|0
codenet
Compile Error
625
v2_s007832876
s007832876
s007832876
p03293
p03293
u692164164
u692164164
1,532,225,309
2018-07-22T02:08:29
Main.java
import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // String input = scanner.nextLine(); // System.out.println(input); ...
Main.java:38: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u692164164|p03293|0
u692164164|p03293|0
codenet
Compile Error
882
v2_s081536991
s081536991
s081536991
p03293
p03293
u861857310
u861857310
1,532,680,897
2018-07-27T08:41:37
Main.java
import java.util.* public class Main{ public static void main{ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); s += s; if(s.contains(t)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:1: error: ';' expected import java.util.* ^ Main.java:4: error: '(' expected public static void main{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861857310|p03293|0
u861857310|p03293|0
codenet
Compile Error
283
v2_s156268274
s156268274
s156268274
p03293
p03293
u861857310
u861857310
1,532,680,935
2018-07-27T08:42:15
Main.java
import java.util.*; public class Main{ public static void main{ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); s += s; if(s.contains(t)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }
Main.java:4: error: '(' expected public static void main{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861857310|p03293|0
u861857310|p03293|0
codenet
Compile Error
284
v2_s692921194
s692921194
s692921194
p03293
p03293
u902576227
u902576227
1,532,223,040
2018-07-22T01:30:40
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String S = scanner.nextLine(); String T = scanner.nextLine(); String[] resultArray = S.split(""); String[] resultArrayy = T.split(""); ...
Main.java:259: error: reached end of file while parsing System.out.println("No"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p03293|0
u902576227|p03293|0
codenet
Compile Error
6,429
v2_s853116993
s853116993
s853116993
p03293
p03293
u902576227
u902576227
1,554,831,146
2019-04-09T17:32:26
Main.java
/* * @Author Silviase(@silviasetitech) * For ProCon */ import java.util.*; import java.lang.*; import java.math.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); boolean b = false; ...
Main.java:17: error: cannot find symbol for (int i = 0; i < n; i++) { ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p03293|1
u902576227|p03293|1
codenet
Compile Error
616
v2_s474642444
s474642444
s474642444
p03293
p03293
u926470318
u926470318
1,532,225,623
2018-07-22T02:13:43
Main.java
import java.util.Scanner; import java.util.Arryas; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); String t=sc.next(); t=t+t; System.out.println(t.contains(s)?"Yes":"No"); } }
Main.java:2: error: cannot find symbol import java.util.Arryas; ^ symbol: class Arryas location: package java.util 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u926470318|p03293|0
u926470318|p03293|0
codenet
Compile Error
270
v2_s549154995
s549154995
s549154995
p03293
p03293
u941274418
u941274418
1,584,462,565
2020-03-17T16:29:25
Main.java
import java.util.*; public class Main { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); String t = sc.next(); s = s + s; s.contains(t) System.out.println(s.contains(t) ? "Yes" : "No"); } }
Main.java:9: error: ';' expected s.contains(t) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u941274418|p03293|0
u941274418|p03293|0
codenet
Compile Error
315
v2_s563066531
s563066531
s563066531
p03294
p03294
u038676814
u038676814
1,533,870,310
2018-08-10T03:05:10
B103.java
import java.util.*; public class B103{ public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int result = 0; for(int i=0; i<N; i++){ result += sc.nextInt()-1; } ...
B103.java:4: error: cannot find symbol new Main().run(); ^ symbol: class Main location: class B103 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03294|0
u038676814|p03294|0
codenet
Compile Error
358
v2_s514898561
s514898561
s514898561
p03294
p03294
u474492589
u474492589
1,566,528,285
2019-08-23T02:44:45
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sum = 0; for(int i = 0; i < N; i++){ sum += sc.nextInt() - 1; } sc.close() System.out.println(...
Main.java:12: error: ';' expected sc.close() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03294|0
u474492589|p03294|0
codenet
Compile Error
333
v2_s133585427
s133585427
s133585427
p03294
p03294
u570343360
u570343360
1,532,621,669
2018-07-26T16:14:29
Main.java
7 994 518 941 851 647 2 581
Main.java:1: error: class, interface, enum, or record expected 7 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u570343360|p03294|0
u570343360|p03294|0
codenet
Compile Error
27
v2_s764437128
s764437128
s764437128
p03294
p03294
u659156129
u659156129
1,594,757,621
2020-07-14T20:13:41
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); int[] a = new int[n]; for(int i=0; i<a.length; ++i){ a[i] = scn.nextInt(); } long m = 1; for(int i=0; i<a.length; ++i){ m = m * a[i]; } ...
Main.java:18: error: incompatible types: possible lossy conversion from long to int sum = sum + m % a[i]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03294|0
u659156129|p03294|0
codenet
Compile Error
444
v2_s563811708
s563811708
s563811708
p03294
p03294
u659156129
u659156129
1,594,757,700
2020-07-14T20:15:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); long n = scn.nextLong(); long[] a = new Long[n]; for(int i=0; i<a.length; ++i){ a[i] = scn.nextLong(); } long m = 1; for(int i=0; i<a.length; ++i){ m = m * a[i]; ...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] a = new Long[n]; ^ Main.java:7: error: incompatible types: Long[] cannot be converted to long[] long[] a = new Long[n]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03294|0
u659156129|p03294|0
codenet
Compile Error
451
v2_s481673781
s481673781
s481673781
p03294
p03294
u659156129
u659156129
1,594,757,765
2020-07-14T20:16:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception{ Scanner scn = new Scanner(System.in); long n = scn.nextLong(); long[] a = new long[n]; for(int i=0; i<a.length; ++i){ a[i] = scn.nextLong(); } long m = 1; for(int i=0; i<a.length; ++i){ m = m * a[i]; ...
Main.java:7: error: incompatible types: possible lossy conversion from long to int long[] a = new long[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u659156129|p03294|0
u659156129|p03294|0
codenet
Compile Error
451
v2_s528031565
s528031565
s528031565
p03294
p03294
u892441888
u892441888
1,533,151,894
2018-08-01T19:31:34
Main.java
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] as = new int[N]; int sum = 0; for(int i = 0; i < N;i++){ as[i]=scanner.nextInt(); ...
Main.java:15: error: ';' expected sum += as[i] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u892441888|p03294|0
u892441888|p03294|0
codenet
Compile Error
422
v2_s773833697
s773833697
s773833697
p03295
p03295
u012071778
u012071778
1,533,780,854
2018-08-09T02:14:14
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int M = scanner.nextInt(); int[][] a = new int[m][2]; for (int i = 0; i < m; i++){ ...
Main.java:11: error: cannot find symbol int[][] a = new int[m][2]; ^ symbol: variable m location: class Main Main.java:12: error: cannot find symbol for (int i = 0; i < m; i++){ ^ symbol: variable m location: class Main Main.java:19: error: cannot find...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012071778|p03295|0
u012071778|p03295|0
codenet
Compile Error
634
v2_s001330439
s001330439
s001330439
p03295
p03295
u012071778
u012071778
1,533,785,588
2018-08-09T03:33:08
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int M = scanner.nextInt(); int[][] a = new int[M][2]; for (int i = 0; i < M; i++){ a[i][0] = scanner.nextInt(); a[i][1] = scanner.nextIn...
Main.java:18: error: '.class' expected } ^ Main.java:19: error: ';' expected }) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u012071778|p03295|0
u012071778|p03295|0
codenet
Compile Error
656
v2_s047574385
s047574385
s047574385
p03295
p03295
u036493199
u036493199
1,532,641,871
2018-07-26T21:51:11
Main.java
import java.util.*; import java.io.*; public class Main { /************************ SOLUTION STARTS HERE ************************/ static int n, m; private static void solve() { n = nextInt(); m = nextInt(); List<Custom> arr = new ArrayList<>(); for (int i = 0; i < m; ...
Main.java:45: error: cannot find symbol out.println(0); ^ symbol: variable out location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u036493199|p03295|0
u036493199|p03295|0
codenet
Compile Error
4,681
v2_s082663052
s082663052
s082663052
p03295
p03295
u038676814
u038676814
1,534,912,419
2018-08-22T04:33:39
D103.java
import java.util.*; public class D103{ public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); Pair[] pairs = new Pair[m]; for(int i = 0;i < M;i++){ ...
D103.java:4: error: cannot find symbol new Main().run(); ^ symbol: class Main location: class D103 D103.java:12: error: cannot find symbol Pair[] pairs = new Pair[m]; ^ symbol: variable m location: class D103 D103.java:22: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03295|0
u038676814|p03295|0
codenet
Compile Error
989
v2_s191935791
s191935791
s191935791
p03295
p03295
u038676814
u038676814
1,534,912,447
2018-08-22T04:34:07
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); Pair[] pairs = new Pair[m]; for(int i = 0;i < M;i++){ ...
Main.java:12: error: cannot find symbol Pair[] pairs = new Pair[m]; ^ symbol: variable m location: class Main Main.java:22: error: cannot find symbol for(i = 0; i<M; i++){ ^ symbol: variable i location: class Main Main.java:22: error: cannot find s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03295|0
u038676814|p03295|0
codenet
Compile Error
989
v2_s369174514
s369174514
s369174514
p03295
p03295
u038676814
u038676814
1,534,912,497
2018-08-22T04:34:57
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { new Main().run(); } void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int M = sc.nextInt(); Pair[] pairs = new Pair[m]; for(int i = 0;i < M;i++){ ...
Main.java:12: error: cannot find symbol Pair[] pairs = new Pair[m]; ^ symbol: variable m location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u038676814|p03295|0
u038676814|p03295|0
codenet
Compile Error
993
v2_s006742753
s006742753
s006742753
p03295
p03295
u136427605
u136427605
1,563,553,768
2019-07-19T16:29:28
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int m=sc.nextInt(); int[][] nums1=new int[m][3],nums2=new int[m][3]; for(int i=0;i<m;i++){ nums1[i][0]=nums2[i][0]=sc.nextInt(); nums1[i][1]=nums2[i][1]=sc.nex...
Main.java:17: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u136427605|p03295|0
u136427605|p03295|0
codenet
Compile Error
419
v2_s391302107
s391302107
s391302107
p03295
p03295
u153556810
u153556810
1,561,602,180
2019-06-27T02:23:00
Main.java
import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); Map<Integer, Integer> bri = new HashMap<>(); for(int i = 0; i < m; i++) { int a = sc.ne...
Main.java:40: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u153556810|p03295|0
u153556810|p03295|0
codenet
Compile Error
812
v2_s454084463
s454084463
s454084463
p03295
p03295
u183509493
u183509493
1,532,229,819
2018-07-22T03:23:39
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; import java.util.Comparator; /** * Built using CHelper plug-in * Actual solution is at the top * * @author mikit */ public class Main { public sta...
Main.java:59: error: cannot find symbol DIslandsWar.Type.Tuple type; ^ symbol: class Type location: class DIslandsWar Main.java:62: error: cannot find symbol Tuple(int pos, DIslandsWar.Type.Tuple type, int i) { ^ symbol: clas...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u183509493|p03295|0
u183509493|p03295|0
codenet
Compile Error
2,582
v2_s109723168
s109723168
s109723168
p03295
p03295
u222086507
u222086507
1,532,224,789
2018-07-22T01:59:49
Main.java
import java.util.*; class demand implements Comparable{ int from; int to; public int compareTo(Object other){ demand otherdemand = (demand)other; return to - otherdemand.to; } } public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.next...
Main.java:44: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222086507|p03295|0
u222086507|p03295|0
codenet
Compile Error
822
v2_s835969732
s835969732
s835969732
p03295
p03295
u222086507
u222086507
1,532,225,246
2018-07-22T02:07:26
Main.java
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.LinkedList; import java.util.PriorityQueue; class demand implements Comparable{ int from; int to; public int compareTo(Object other){ deman...
Main.java:21: error: cannot find symbol InputReader sc = new InputReader(System.in); ^ symbol: class InputReader location: class Main Main.java:21: error: cannot find symbol InputReader sc = new InputReader(System.in); ^ symbol: class InputReader location: class Main 2 e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222086507|p03295|0
u222086507|p03295|0
codenet
Compile Error
1,073
v2_s023183336
s023183336
s023183336
p03295
p03295
u334624175
u334624175
1,532,227,124
2018-07-22T02:38:44
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); int[] start = new int[n]; int[] end = new int[n]; for (int i=0; i < m; i++) { int a = sc.nextInt(); int b = sc.nextIn...
Main.java:28: error: ';' expected tmp_count = start[i] ^ Main.java:33: error: not a statement tmp_count - end[i]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334624175|p03295|0
u334624175|p03295|0
codenet
Compile Error
828
v2_s423995346
s423995346
s423995346
p03295
p03295
u458154895
u458154895
1,532,223,628
2018-07-22T01:40:28
Main.java
import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import template.math.ModUtil; public class Main { public static void main(String[] args) throws IOException { Main m = n...
Main.java:9: error: package template.math does not exist import template.math.ModUtil; ^ Main.java:25: error: cannot find symbol ModUtil mu = new ModUtil(); ^ symbol: class ModUtil location: class Main Main.java:25: error: cannot find symbol ModUtil mu = new ModUtil(); ^ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458154895|p03295|0
u458154895|p03295|0
codenet
Compile Error
5,204
v2_s304001876
s304001876
s304001876
p03295
p03295
u458154895
u458154895
1,532,223,705
2018-07-22T01:41:45
Main.java
import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { public static void main(String[] args) throws IOException { Main m = new Main(); //* m.input(); ...
Main.java:24: error: cannot find symbol ModUtil mu = new ModUtil(); ^ symbol: class ModUtil location: class Main Main.java:24: error: cannot find symbol ModUtil mu = new ModUtil(); ^ symbol: class ModUtil location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458154895|p03295|0
u458154895|p03295|0
codenet
Compile Error
5,174
v2_s171713770
s171713770
s171713770
p03295
p03295
u555577504
u555577504
1,535,057,999
2018-08-23T20:59:59
Main.java
0
Main.java:1: error: class, interface, enum, or record expected 0 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555577504|p03295|0
u555577504|p03295|0
codenet
Compile Error
1
v2_s180630714
s180630714
s180630714
p03295
p03295
u683479402
u683479402
1,532,284,526
2018-07-22T18:35:26
Main.java
import java.util.*; public class Main { static int modP = 1000000007; static long inf = 1 << 61; static int[] x4 = {-1, 0, 0, 1}; static int[] y4 = {0, -1, 1, 0}; static int n, m; static P[] conditions; public static void main(String[] args) { input(); solve(); } ...
Main.java:10: error: cannot find symbol static P[] conditions; ^ symbol: class P location: class Main Main.java:18: error: cannot find symbol Arrays.sort(conditions, (P a, P b) -> a.y - b.y); ^ symbol: class P location: class Main Main.java:18: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u683479402|p03295|0
u683479402|p03295|0
codenet
Compile Error
1,794
v2_s855878508
s855878508
s855878508
p03295
p03295
u726439578
u726439578
1,532,227,226
2018-07-22T02:40:26
A.java
import java.util.Scanner; public class A { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String Nb1 = scan.next(); int N = Integer.valueOf(Nb1); String Nb1 = scan.next(); int M = Integer.valueOf(Nb2); int[] nb1 = new int[M]; int[] nb2 = new int[M]; for (int i = 0; i...
A.java:9: error: variable Nb1 is already defined in method main(String[]) String Nb1 = scan.next(); ^ A.java:10: error: cannot find symbol int M = Integer.valueOf(Nb2); ^ symbol: variable Nb2 location: class A A.java:23: error: cannot find symbol if(nb2[i]<v1||v2<nb[i]) ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u726439578|p03295|0
u726439578|p03295|0
codenet
Compile Error
602
v2_s150804645
s150804645
s150804645
p03295
p03295
u885482884
u885482884
1,532,395,328
2018-07-24T01:22:08
DIslandsWar.java
package testcontest; import CodeLibrary.FastReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class DIslandsWar { static class Point implements Comparable<Point> { int x, y; Point(int x, int y) { this.x = x; ...
DIslandsWar.java:3: error: package CodeLibrary does not exist import CodeLibrary.FastReader; ^ DIslandsWar.java:37: error: cannot find symbol public void solve(int testNumber, FastReader in, PrintWriter out) { ^ symbol: class FastReader location: class D...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u885482884|p03295|0
u885482884|p03295|0
codenet
Compile Error
1,704
v2_s657165752
s657165752
s657165752
p03295
p03295
u921177152
u921177152
1,585,428,941
2020-03-28T20:55:41
Main.java
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <stack> #include <queue> #include <list> #include <map> #include <set> #include <string> #include <cstring> #include <sstream> #include <cmath> #include <functional> #include <fstream> #include <cstdlib> typedef long long ll; const ll...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <cstdio> ^ Main.java:3: error: illegal character: '#' #include <algorithm> ^ Main.java:4: error: illegal character: '#' #include <vector> ^ Main.java:5: error: illegal character: '#' #include <stack> ^ M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u921177152|p03295|0
u921177152|p03295|0
codenet
Compile Error
1,355
v2_s337416053
s337416053
s337416053
p03296
p03296
u106593530
u106593530
1,531,618,446
2018-07-15T01:34:06
Main.java
N = int(input()) a = list(map(int, input().split())) cnt = 0 left = a[0] for i in range(1,N): if a[i] == left: a[i] += 1 if not i == N and a[i] == a[i + 1]: a[i] += 1 cnt += 1 left = a[i] print(cnt)
Main.java:1: error: class, interface, enum, or record expected N = int(input()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u106593530|p03296|0
u106593530|p03296|0
codenet
Compile Error
246
v2_s494666458
s494666458
s494666458
p03296
p03296
u288273993
u288273993
1,531,617,278
2018-07-15T01:14:38
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int before = 0; int result = 0; boolean isSame = false; for (int i = 0; i < N; i++) { int cu = sc.nextInt(); if (0 == i) { before = cu; continue; } if (isSame) { ...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u288273993|p03296|0
u288273993|p03296|0
codenet
Compile Error
491
v2_s039399032
s039399032
s039399032
p03296
p03296
u360153728
u360153728
1,531,625,404
2018-07-15T03:30:04
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int N = sc.nextInt(); // スペース区切りの整数の入力 int[] al = new int[N]; int comp = 10001; int double_times = 0; int need_to_change = 0; for(int i=0;i<N,i++){ ...
Main.java:12: error: ';' expected for(int i=0;i<N,i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u360153728|p03296|0
u360153728|p03296|0
codenet
Compile Error
648
v2_s444485799
s444485799
s444485799
p03296
p03296
u470045952
u470045952
1,531,620,170
2018-07-15T02:02:50
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = System.out.println() } }
Main.java:6: error: ';' expected System.out.println() ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u470045952|p03296|0
u470045952|p03296|0
codenet
Compile Error
138
v2_s898759840
s898759840
s898759840
p03296
p03296
u573545768
u573545768
1,531,620,243
2018-07-15T02:04:03
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); List<Integer> list = new ArrayList<>(); // スペース区切りの整数の入力 for(int i=1;i<=a;i++){ list.add(sc.nextInt()); } int count =0; for(int j=0;j<a;j++){ // Syst...
Main.java:18: error: cannot find symbol if(value==list.get(j-1)){ ^ symbol: variable value location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u573545768|p03296|0
u573545768|p03296|0
codenet
Compile Error
947
v2_s232073895
s232073895
s232073895
p03296
p03296
u759627068
u759627068
1,531,622,525
2018-07-15T02:42:05
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); List<Integer> a = new ArrayList<>(); while(sc.hasNextInt()){ a.add(sc.nextInt()); } int x = 0; for(int i = 0; i < n-2; i+=2){ int a_nm = a.g...
Main.java:31: error: cannot find symbol Ai++; ^ symbol: variable Ai location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759627068|p03296|0
u759627068|p03296|0
codenet
Compile Error
643
v2_s136392514
s136392514
s136392514
p03296
p03296
u901738963
u901738963
1,531,618,490
2018-07-15T01:34:50
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // スライムの数の入力 int n = sc.nextInt(); // 並んでいるスライムの入力 while(i =! n + 1){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(b == c){ k = k + 1; ...
Main.java:10: error: cannot find symbol while(i =! n + 1){ ^ symbol: variable i location: class Main Main.java:10: error: bad operand type int for unary operator '!' while(i =! n + 1){ ^ Main.java:15: error: cannot find symbol k = k + 1; ^ symbol: variable k location: class ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u901738963|p03296|0
u901738963|p03296|0
codenet
Compile Error
434
v2_s554586407
s554586407
s554586407
p03296
p03296
u915255840
u915255840
1,531,618,547
2018-07-15T01:35:47
Main.java
public class Main { public static int N = 0; public static int count = 0; public static void main(String[] args) { Scanner scan = new Scanner(System.in); N = scan.nextInt(); int a[] = new int[N]; for(int i = 0;i < N;i++) { a[i] = scan.nextInt(); } for(int i=1;i < a.length-1;i++) { if(a[i] ==...
Main.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u915255840|p03296|0
u915255840|p03296|0
codenet
Compile Error
461
v2_s709801656
s709801656
s709801656
p03297
p03297
u078665329
u078665329
1,531,618,833
2018-07-15T01:40:33
Main.java
import static org.hamcrest.CoreMatchers.either; import java.util.*; class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int N = in.nextInt(); in.nextLine(); for (int i = 0; i < N; i++) { long rest=in.nextLong(); long buy=in.nextLong(); long min=in.nextLong(); ...
Main.java:1: error: package org.hamcrest does not exist import static org.hamcrest.CoreMatchers.either; ^ Main.java:1: error: static import only from classes and interfaces import static org.hamcrest.CoreMatchers.either; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u078665329|p03297|0
u078665329|p03297|0
codenet
Compile Error
894
v2_s940592682
s940592682
s940592682
p03297
p03297
u334656323
u334656323
1,531,621,107
2018-07-15T02:18:27
Main.java
import java.awt.Point; import java.util.ArrayDeque; import java.util.Scanner; import java.util.*; import java.util.Arrays; import java.util.ArrayList; import java.util.Set; import java.util.HashSet; import java.util.Collection; public class Main{ static final Scanner sc=new Scanner(System.in); ...
Main.java:79: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334656323|p03297|0
u334656323|p03297|0
codenet
Compile Error
2,900
v2_s996843356
s996843356
s996843356
p03297
p03297
u427344224
u427344224
1,531,637,224
2018-07-15T06:47:04
Main.java
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Scanner; import java.util.List; public class Main { public static void main(String[] args){ PrintWriter out = new PrintWriter(System.out); Scanner sc = new Scanner(System.in); Task task = new Task(); task.solv...
Main.java:105: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u427344224|p03297|1
u427344224|p03297|0
codenet
Compile Error
3,069
v2_s735957565
s735957565
s735957565
p03297
p03297
u598826970
u598826970
1,531,622,416
2018-07-15T02:40:16
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { final Scanner sc = new Scanner(System.in); final int n = sc.nextInt(); for (int i = 0; i < n; i++) { final long a = sc.nextLong(); final long b = sc.nextLong(); final ...
Main.java:41: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u598826970|p03297|0
u598826970|p03297|0
codenet
Compile Error
1,161
v2_s471751773
s471751773
s471751773
p03297
p03297
u653981267
u653981267
1,588,516,884
2020-05-03T14:41:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for(int i = 0; i < t; i++) { long a = sc.nextLong(); long b = sc.nextLong(); long c = sc.nextLong(); long d = sc.nextLong(); String ans...
Main.java:24: error: variable t is already defined in method main(String[]) long t = b - g + a1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p03297|1
u653981267|p03297|1
codenet
Compile Error
815
v2_s200928178
s200928178
s200928178
p03297
p03297
u790865625
u790865625
1,531,961,359
2018-07-19T00:49:19
Main.java
import java.util.HashSet; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { try(Scanner sc = new Scanner(System.in)){ int T=sc.nextInt(); long a, b, c, d, e=0; Set<Long> set=new HashSet<>(); for(int i=0; i<T; i++) { a=sc.nextLong(); ...
Main.java:56: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u790865625|p03297|0
u790865625|p03297|0
codenet
Compile Error
894
v2_s722523169
s722523169
s722523169
p03297
p03297
u981808900
u981808900
1,593,297,047
2020-06-27T22:30:47
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.StringJoiner; import java.util.StringTokenizer; import java.util.function.IntUnaryOperator; import java.util.function.LongUnaryOper...
Main.java:81: error: unreachable statement return false; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03297|0
u981808900|p03297|0
codenet
Compile Error
5,669
v2_s681957733
s681957733
s681957733
p03298
p03298
u425887814
u425887814
1,532,967,917
2018-07-30T16:25:17
Main.java
#include <map> #include <iostream> using namespace std; typedef pair<string,string> pa; int main() { int n; long long ans = 0; string s; map<pa,int> mp; cin>>n>>s; for(int i = 0;i < 1 << n;i ++) { string a = ""; string b = ""; for(int j = 0;j < n;j ++) { if(i ...
Main.java:1: error: illegal character: '#' #include <map> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:4: error: class, interface, enum, or record expected typedef pair<string,string> pa; ^ Main.java:7: error: not a statement long long ans = 0; ^ Main.java:10: error: not a statem...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u425887814|p03298|1
u425887814|p03298|1
codenet
Compile Error
653
v2_s040882274
s040882274
s040882274
p03298
p03298
u675503966
u675503966
1,548,986,624
2019-02-01T02:03:44
Main.java
import java.io.*; import java.util.*; import java.math.*; // import java.awt.Point; public class Main { InputStream is; PrintWriter out; String INPUT = ""; static int mod = 1_000_000_007; long inf = Long.MAX_VALUE; void solve(){ int n = ni(); char[] c = ns().toCharArray(); ...
Main.java:30: error: cannot find symbol HashMap<StringBuffer, StringBufferm> m = new HashMap<>(); ^ symbol: class StringBufferm location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u675503966|p03298|0
u675503966|p03298|0
codenet
Compile Error
4,802
v2_s736263385
s736263385
s736263385
p03299
p03299
u771276542
u771276542
1,532,255,605
2018-07-22T10:33:25
Main.java
const val P = 1000000007L class FiniteField(xRaw: Long) { val x = if (xRaw >= 0) xRaw % P else (P - ((-xRaw) % P)) % P constructor(xi: Int): this(xi.toLong()) operator fun plus(o: Long) = FiniteField((x + o) % P) operator fun plus(o: FiniteField) = this + o.x operator fun minus(o: Long) = FiniteField((x + P ...
Main.java:1: error: class, interface, enum, or record expected const val P = 1000000007L ^ Main.java:3: error: '{' expected class FiniteField(xRaw: Long) { ^ Main.java:4: error: illegal start of expression val x = if (xRaw >= 0) xRaw % P else (P - ((-xRaw) % P)) % P ^ Main.java:4: error: <i...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u771276542|p03299|0
u771276542|p03299|0
codenet
Compile Error
1,775
v2_s200338644
s200338644
s200338644
p03302
p03302
u133356919
u133356919
1,595,815,847
2020-07-27T02:10:47
Main.java
import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Scanner; import java.util.StringTokenizer; import java.io.BufferedReader; import java.util.*; import java.math.BigInteger; public class Main...
Main.java:27: error: cannot find symbol new Thread(null, new Paradox(), "Main", 1<<28).start(); ^ symbol: class Paradox location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u133356919|p03302|0
u133356919|p03302|0
codenet
Compile Error
7,959
v2_s068908041
s068908041
s068908041
p03302
p03302
u270720757
u270720757
1,531,018,149
2018-07-08T02:49:09
atcorder1.java
package atcorder; import java.util.Scanner; public class atcorder1 { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println("a+b=15 であれば + を、 a×b=15 であれば * を、 どちらでもなければ x を出力してください。"); String input =...
atcorder1.java:18: error: unexpected type a + b = answer; ^ required: variable found: value atcorder1.java:22: error: unexpected type a * b = answer; ^ required: variable found: value atcorder1.java:26: error: unexpected type a + b = answer; ^ required: variable fou...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u270720757|p03302|0
u270720757|p03302|0
codenet
Compile Error
841
v2_s513163194
s513163194
s513163194
p03302
p03302
u274962354
u274962354
1,549,121,247
2019-02-02T15:27:27
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); if(a+b==15) { System.out.println("+"); } else if(a*b==15){ System.out.println("*"); } else { System.out.println(x); } } }
Main.java:14: error: cannot find symbol System.out.println(x); ^ symbol: variable x location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03302|0
u274962354|p03302|0
codenet
Compile Error
318
v2_s848319747
s848319747
s848319747
p03302
p03302
u526723014
u526723014
1,531,011,780
2018-07-08T01:03:00
Main.java
import java.util.*; public class Main { public static void main(String[] args) { // make new Scanner. Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int t = Integer.parseInt(sc.next()); if (n + t == 15 || n * t == 15) { System.out.println('*'); } else { System.out.prin...
Main.java:24: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u526723014|p03302|0
u526723014|p03302|0
codenet
Compile Error
436
v2_s270673671
s270673671
s270673671
p03302
p03302
u551005529
u551005529
1,531,042,483
2018-07-08T09:34:43
Main.java
public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c=0; if((a+b)==15) c=1; else if((a*b)==15) c=1; else c=3; switch(c){ case 1: System.out.print("+"); break; case 2: System...
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
u551005529|p03302|0
u551005529|p03302|0
codenet
Compile Error
410
v2_s339287306
s339287306
s339287306
p03302
p03302
u551005529
u551005529
1,531,042,565
2018-07-08T09:36:05
Main.java
import java.io.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c=0; if((a+b)==15) c=1; else if((a*b)==15) c=1; else c=3; switch(c){ case 1: System.out.print("+"); break; c...
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u551005529|p03302|0
u551005529|p03302|0
codenet
Compile Error
428
v2_s633232817
s633232817
s633232817
p03302
p03302
u814169215
u814169215
1,531,011,840
2018-07-08T01:04:00
Main.java
import java.util.*; public class Main { public static void main(String...args) { final Scanner sc = new Scanner(System.in); final int a = sc.nextInt(); final int b = sc.nextInt(); System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x'); } }
Main.java:7: error: unexpected type System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x'); ^ required: variable found: value Main.java:7: error: incompatible types: int cannot be converted to boolean System.out.println(a + b == 15 ? '+' : a * b = 15 ? '*' : 'x'...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814169215|p03302|0
u814169215|p03302|0
codenet
Compile Error
267
v2_s518647320
s518647320
s518647320
p03302
p03302
u902576227
u902576227
1,531,245,543
2018-07-10T17:59:03
Main.java
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String str1 = scanner.next(); String str2 = scanner.next(); int A = Integer.parseInt(str1); int B = Integer.parseInt(str2); ...
Main.java:20: error: ';' expected System.out.println("*")); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p03302|0
u902576227|p03302|0
codenet
Compile Error
607
v2_s242714849
s242714849
s242714849
p03302
p03302
u954650724
u954650724
1,531,012,587
2018-07-08T01:16:27
MainA.java
import java.util.Scanner; public class MainA { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int a= sc.nextInt(); int b = sc.nextInt(); if((a+b)==15)System.out.println("+"); else if((a * b)==15)System.out.println("*"); else System.out.println("x");...
MainA.java:11: error: reached end of file while parsing return ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u954650724|p03302|0
u954650724|p03302|0
codenet
Compile Error
363
v2_s176592152
s176592152
s176592152
p03302
p03302
u997055883
u997055883
1,531,011,676
2018-07-08T01:01:16
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); if(a+b==15) System.out.println("+"); else if(a*b==15) System.out.println("*"); else Sys...
Main.java:11: error: cannot find symbol else System.out.prntln("x"); ^ symbol: method prntln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u997055883|p03302|0
u997055883|p03302|0
codenet
Compile Error
348
v2_s626921900
s626921900
s626921900
p03303
p03303
u109038091
u109038091
1,531,011,937
2018-07-08T01:05:37
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i=0; i<s.length(); i++) { if (i % w == 0) { ...
Main.java:9: error: cannot find symbol if (i % w == 0) { ^ symbol: variable w location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109038091|p03303|0
u109038091|p03303|0
codenet
Compile Error
429
v2_s463174693
s463174693
s463174693
p03303
p03303
u431125128
u431125128
1,580,996,562
2020-02-06T13:42:42
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); String s=sc.next(); int w=s.nextInt(); String ans=""; for(int i=0;i<s.length();i+=w){ ans+=s.substring(i,i+1); } System.out.println(ans); } }
Main.java:7: error: cannot find symbol int w=s.nextInt(); ^ symbol: method nextInt() location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u431125128|p03303|0
u431125128|p03303|0
codenet
Compile Error
294