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_s269597738
s269597738
s269597738
p02939
p02939
u458268106
u458268106
1,566,093,740
2019-08-18T02:02:20
Main.java
import java.util.*; class Main{ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int m = sc.nextInt(); List<Integer>[][] a = new ArrayList<>[n][m]; for(int i=0;i<n*m;i++){ int d=sc.nextInt(); } for(int i=0;i<m;i++){ for(int j=0;j<n;j++){//縦書き } } }
Main.java:7: error: cannot create array with '<>' List<Integer>[][] a = new ArrayList<>[n][m]; ^ Main.java:8: error: illegal start of type for(int i=0;i<n*m;i++){ ^ Main.java:8: error: > or ',' expected for(int i=0;i<n*m;i++){ ^ Main.java:8: error: <identifi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02939|0
u458268106|p02939|0
codenet
Compile Error
306
v2_s686719771
s686719771
s686719771
p02939
p02939
u908039151
u908039151
1,566,157,630
2019-08-18T19:47:10
Main.java
using System; namespace AtCoder { public class Program { public static void Main(string[] args) { string s = Console.ReadLine(); int n = s.Length; int cnt = 1; string before_s = s.Substring(0,1); int range = 1; for(int i = 1; i < n;...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. using System; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected namespace AtCoder ^ Main.java:30: error: class, interface, enum, or record expected } ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u908039151|p02939|0
u908039151|p02939|0
codenet
Compile Error
748
v2_s444217439
s444217439
s444217439
p02941
p02941
u220843053
u220843053
1,567,663,286
2019-09-05T06:01:26
Main.java
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cout.precision(12); cout << fixed; int n; cin >> n; vector<int> a(n), b(n); for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n; i++) { cin >> b[i]; } ...
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:6: error: not a statement ios_base::sync_with_stdio(false); ^ Main.java:8: error: not a statement cout << fixed; ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u220843053|p02941|0
u220843053|p02941|0
codenet
Compile Error
1,294
v2_s268829006
s268829006
s268829006
p02942
p02942
u305052967
u305052967
1,566,098,962
2019-08-18T03:29:22
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.io.* public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int N = s.nextInt(); int M = s.nextInt(); ArrayList<Integer> Temp1 = new ArrayLis...
Main.java:5: error: ';' expected import java.io.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305052967|p02942|0
u305052967|p02942|0
codenet
Compile Error
3,376
v2_s698294356
s698294356
s698294356
p02942
p02942
u305052967
u305052967
1,566,099,004
2019-08-18T03:30:04
Main.java
import java.util.Scanner; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.io.*; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int N = s.nextInt(); int M = s.nextInt(); ArrayList<Integer> Temp1 = new ArrayLi...
Main.java:18: error: cannot find symbol Temp1.add(FastScanner); ^ symbol: variable FastScanner location: class Main Main.java:87: error: cannot find symbol if (!hasNext()) throw new NoSuchElementException(); ^ symbol: class NoSuchElementException...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u305052967|p02942|0
u305052967|p02942|0
codenet
Compile Error
3,377
v2_s615611790
s615611790
s615611790
p02942
p02942
u492614439
u492614439
1,566,100,853
2019-08-18T04:00:53
Main.java
public class Main { static BufferedReader reader; //static field here public static void main(String[] args) { // TODO Auto-generated method stub reader = new BufferedReader(new InputStreamReader(System.in)); //code here byte[] tmp = readLineByte(); byte N = tmp[0]; byte M = tmp[1]; char[][] nums = ...
Main.java:3: error: cannot find symbol static BufferedReader reader; ^ symbol: class BufferedReader location: class Main Main.java:8: error: cannot find symbol reader = new BufferedReader(new InputStreamReader(System.in)); ^ symbol: class BufferedReader location: class Main Main.ja...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u492614439|p02942|0
u492614439|p02942|0
codenet
Compile Error
5,066
v2_s170415881
s170415881
s170415881
p02942
p02942
u511225853
u511225853
1,566,096,831
2019-08-18T02:53:51
Main.java
import com.daltao.test.RandomFactory; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; import java.util.*; public class Main { public static void main(String[] args) throws Exception { boolean local = ...
Main.java:4: error: package com.daltao.test does not exist import com.daltao.test.RandomFactory; ^ Main.java:103: warning: non-varargs call of varargs method with inexact argument type for last parameter; debug.debug("first", first); ^ cast to...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u511225853|p02942|0
u511225853|p02942|0
codenet
Compile Error
17,577
v2_s527006199
s527006199
s527006199
p02945
p02945
u006449883
u006449883
1,565,714,202
2019-08-13T16:36:42
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int n = 1+x-k; int j = 2k-1; for(int i = 0;i < j; i++){ System.out.println(n+i); } } ...
Main.java:8: error: ';' expected int j = 2k-1; ^ Main.java:8: error: not a statement int j = 2k-1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006449883|p02945|0
u006449883|p02945|0
codenet
Compile Error
323
v2_s657346609
s657346609
s657346609
p02945
p02945
u006883624
u006883624
1,565,485,791
2019-08-11T01:09:51
Main.java
a,b = [int(v) for v in input().split()] d = a+b e = a-b f = a*b print(max(max(d,e),f))
Main.java:1: error: class, interface, enum, or record expected a,b = [int(v) for v in input().split()] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006883624|p02945|0
u006883624|p02945|0
codenet
Compile Error
87
v2_s475694220
s475694220
s475694220
p02945
p02945
u011996008
u011996008
1,584,552,756
2020-03-18T17:32:36
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); System.out.println(Math.(Math.max(A+B, A-B), A*B)); } }
Main.java:8: error: <identifier> expected System.out.println(Math.(Math.max(A+B, A-B), A*B)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u011996008|p02945|0
u011996008|p02945|0
codenet
Compile Error
220
v2_s007432002
s007432002
s007432002
p02945
p02945
u018679195
u018679195
1,569,457,202
2019-09-26T00:20:02
Main.java
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c,d,e; c=a+b; d=a-b; e=a*b; int x=0; if(c>=d &&c>=e){ x=c; } if(d>=c &&d>=e){ x=d; } if(e>=d &&e>=c){ x=e; } System.out.p...
Main.java:23: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018679195|p02945|0
u018679195|p02945|0
codenet
Compile Error
336
v2_s922294523
s922294523
s922294523
p02945
p02945
u018773111
u018773111
1,593,092,686
2020-06-25T13:44:46
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int[] p = {a+b, a-b, a*b}; Arrays.sort(p, Collections.reverseOrder()); System.out.println(p[0]); } }
Main.java:9: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(p, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable (inference variable T#1 has incompatible bounds equality constraints: int upper b...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u018773111|p02945|0
u018773111|p02945|0
codenet
Compile Error
289
v2_s810837146
s810837146
s810837146
p02945
p02945
u033621652
u033621652
1,570,801,217
2019-10-11T13:40:17
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner yomi = new Scanner(System.in); int[] nyuuryoku = new int[2]; nyuuryoku[0] = yomi.nextInt(); nyuuryoku[1] = yomi.nextInt(); int[] suuzi = new int[3]; suuzi[0] = nyuuryoku[0] + nyu...
Main.java:13: error: ';' expected int max =suuzi[0] ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u033621652|p02945|0
u033621652|p02945|0
codenet
Compile Error
587
v2_s325272729
s325272729
s325272729
p02945
p02945
u045217495
u045217495
1,565,580,596
2019-08-12T03:29:56
Main.java
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A, B; A = scan.nextInt(); B = scan.nextInt(); scan.close(); int a, b, c; a = A + B; b = A * B; c = A - B; System.out.println(a + "," + b + "," + c); if (a > b) { if (a > c) { System.out.println(a); }else...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u045217495|p02945|0
u045217495|p02945|0
codenet
Compile Error
452
v2_s933670009
s933670009
s933670009
p02945
p02945
u052640789
u052640789
1,565,503,198
2019-08-11T05:59:58
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a + b; int d = a - b; int e = a * b; int max = Math.max(c, d); int max = Math.max(max, e); ...
Main.java:12: error: variable max is already defined in method main(String[]) int max = Math.max(max, e); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052640789|p02945|0
u052640789|p02945|0
codenet
Compile Error
358
v2_s343068407
s343068407
s343068407
p02945
p02945
u052640789
u052640789
1,565,503,244
2019-08-11T06:00:44
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = a + b; int d = a - b; int e = a * b; int ans = Math.max(c, d); int ans = Math.max(ans, e); ...
Main.java:12: error: variable ans is already defined in method main(String[]) int ans = Math.max(ans, e); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u052640789|p02945|0
u052640789|p02945|0
codenet
Compile Error
359
v2_s258085320
s258085320
s258085320
p02945
p02945
u060287624
u060287624
1,565,485,548
2019-08-11T01:05:48
Main.java
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) { Scanner x=new Scanner(System.in); int a=x.nextInt(); int b=x.nextInt(); int c=a+b; int d=a-b; int e=a*b; if(c>=d && c>=e) { System.out.println(c); break; } if(d>=c && d>=e) { System.out...
Main.java:16: error: break outside switch or loop break; ^ Main.java:21: error: break outside switch or loop break; ^ Main.java:26: error: break outside switch or loop break; ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u060287624|p02945|0
u060287624|p02945|0
codenet
Compile Error
414
v2_s264465454
s264465454
s264465454
p02945
p02945
u117657834
u117657834
1,565,485,414
2019-08-11T01:03:34
Main.java
mport java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int max = Math.max(a + b, a - b); max = Math.max(max, a * b); System.out.print(max); sc.close(); } }
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
u117657834|p02945|0
u117657834|p02945|0
codenet
Compile Error
287
v2_s932115954
s932115954
s932115954
p02945
p02945
u126964355
u126964355
1,571,359,716
2019-10-18T00:48:36
Main.java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); int A; int B; String txt; try{ txt = kbd.readLine(); kbd.close(); }catch(IOException e){ e.printStackTrace(); } A = In...
Main.java:18: error: no suitable method found for max(int[]) System.out.println(Math.max(data)); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and formal argument li...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126964355|p02945|0
u126964355|p02945|0
codenet
Compile Error
530
v2_s607417427
s607417427
s607417427
p02945
p02945
u126964355
u126964355
1,571,359,822
2019-10-18T00:50:22
Main.java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); int A; int B; String txt; try{ txt = kbd.readLine(); kbd.close(); }catch(IOException e){ e.printStackTrace(); } A = In...
Main.java:15: error: variable txt might not have been initialized A = Integer.parseInt(txt.substring(0, txt.indexOf(" "))); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126964355|p02945|0
u126964355|p02945|0
codenet
Compile Error
561
v2_s896978352
s896978352
s896978352
p02945
p02945
u126964355
u126964355
1,571,360,016
2019-10-18T00:53:36
Main.java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); int A; int B; String txt; try{ txt = kbd.readLine(); kbd.close(); }catch(IOException e){ e.printStackTrace(); } A = In...
Main.java:15: error: variable txt might not have been initialized A = Integer.parseInt(txt.substring(0, txt.indexOf(" ")).strip()); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126964355|p02945|0
u126964355|p02945|0
codenet
Compile Error
577
v2_s168979133
s168979133
s168979133
p02945
p02945
u126964355
u126964355
1,571,360,323
2019-10-18T00:58:43
Main.java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); var A; int B; String txt = ""; try{ txt = kbd.readLine(); kbd.close(); }catch(IOException e){ e.printStackTrace(); } A...
Main.java:5: error: cannot infer type for local variable A var A; ^ (cannot use 'var' on variable without initializer) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126964355|p02945|0
u126964355|p02945|0
codenet
Compile Error
582
v2_s167889505
s167889505
s167889505
p02945
p02945
u126964355
u126964355
1,571,360,426
2019-10-18T01:00:26
Main.java
import java.io.*; class Main{ public static void main(String[] args){ BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); int A = 0; int B; String txt = ""; try{ txt = kbd.readLine(); kbd.close(); }catch(IOException e){ e.printStackTrace(); } St...
Main.java:14: error: ';' expected String test1 = txt.substring(0, txt.indexOf(" ")).strip() ^ Main.java:16: error: ';' expected test1 = txt.substring(txt.indexOf(" "), txt.length()).strip() ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u126964355|p02945|0
u126964355|p02945|0
codenet
Compile Error
624
v2_s972542136
s972542136
s972542136
p02945
p02945
u131957401
u131957401
1,569,167,179
2019-09-22T15:46:19
Max.java
import java.util.Scanner; public class Max{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int A = stdIn.nextInt(); int B = stdIn.nextInt(); int[] S = {a+b,a-b,a*b}; int M = S[0]; for(int i=0; i<=2; i++){ if(M <= S[i]){ M = S[...
Max.java:8: error: cannot find symbol int[] S = {a+b,a-b,a*b}; ^ symbol: variable a location: class Max Max.java:8: error: cannot find symbol int[] S = {a+b,a-b,a*b}; ^ symbol: variable b location: class Max Max.java:8: error: cannot find symbol int[] S ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131957401|p02945|0
u131957401|p02945|0
codenet
Compile Error
380
v2_s871113931
s871113931
s871113931
p02945
p02945
u131957401
u131957401
1,569,167,291
2019-09-22T15:48:11
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int A = stdIn.nextInt(); int B = stdIn.nextInt(); int[] S = {a+b,a-b,a*b}; int M = S[0]; for(int i=0; i<=2; i++){ if(M <= S[i]){ M = S[i]; ...
Main.java:8: error: cannot find symbol int[] S = {a+b,a-b,a*b}; ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol int[] S = {a+b,a-b,a*b}; ^ symbol: variable b location: class Main Main.java:8: error: cannot find symbol int...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131957401|p02945|0
u131957401|p02945|0
codenet
Compile Error
374
v2_s890543919
s890543919
s890543919
p02945
p02945
u131957401
u131957401
1,569,167,398
2019-09-22T15:49:58
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int A = stdIn.nextInt(); int B = stdIn.nextInt(); int X = a+b; int Y = a-b; int Z = a*b; int[] S = {X,Y,Z}; int M = S[0]; for(int i=0; i<=2; ...
Main.java:8: error: cannot find symbol int X = a+b; ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol int X = a+b; ^ symbol: variable b location: class Main Main.java:9: error: cannot find symbol int Y = a-b; ^ sy...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u131957401|p02945|0
u131957401|p02945|0
codenet
Compile Error
425
v2_s725905948
s725905948
s725905948
p02945
p02945
u143789605
u143789605
1,567,646,874
2019-09-05T01:27:54
Main.java
import java.util.*; public class Main { public static void main(String[] args ) throws Exception { Scanner sc = new Scanner(System.in); int Number1 = sc.nextInt(); int Number2 = sc.nextInt(); int answer1= Number1+ Number2; int answer2 =Number1-Number2; int answer3 = Number1 * Number2; ...
Main.java:12: error: no suitable method found for max(int,int,int) System.out.println(Math.max(answer1,answer2,answer3)); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actu...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u143789605|p02945|0
u143789605|p02945|0
codenet
Compile Error
386
v2_s175661636
s175661636
s175661636
p02945
p02945
u218740431
u218740431
1,587,585,463
2020-04-22T19:57:43
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = Math.max(a+b,a-b); System.out.println(Math.max(c,a*b); } }
Main.java:9: error: ')' or ',' expected System.out.println(Math.max(c,a*b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02945|0
u218740431|p02945|0
codenet
Compile Error
254
v2_s729930612
s729930612
s729930612
p02945
p02945
u218740431
u218740431
1,587,585,533
2020-04-22T19:58:53
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(Math.max(a+b,a-b,a*b)); } }
Main.java:8: error: no suitable method found for max(int,int,int) System.out.println(Math.max(a+b,a-b,a*b)); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and formal arg...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u218740431|p02945|0
u218740431|p02945|0
codenet
Compile Error
232
v2_s376658736
s376658736
s376658736
p02945
p02945
u222086507
u222086507
1,565,662,913
2019-08-13T02:21:53
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; import java.util.TreeSet; public class Main { public static void main(String[] args) { InputReade...
Main.java:23: error: cannot find symbol if(sa < saki){ ^ symbol: variable saki location: class Main Main.java:26: error: cannot find symbol System.outs.println(sa); ^ symbol: variable outs location: class System 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222086507|p02945|0
u222086507|p02945|0
codenet
Compile Error
2,809
v2_s735659178
s735659178
s735659178
p02945
p02945
u222822036
u222822036
1,598,931,349
2020-09-01T03:35:49
Main.java
import java.util.*; import java.io.*; import java.math.*; public class Main{ //Don't have to see. start------------------------------------------ static class InputIterator{ ArrayList<String> inputLine = new ArrayList<String>(1024); int index = 0; int max; String read; InputIterator(){ BufferedReader br = ne...
Main.java:72: error: incompatible types: ArrayList<Integer> cannot be converted to ArrayList<String> ArrayList<String> one = nextIntArray(); ^ Main.java:73: error: incompatible types: String cannot be converted to int int A = one.get(0); ^ Main.java:74: error: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p02945|0
u222822036|p02945|0
codenet
Compile Error
2,990
v2_s946217114
s946217114
s946217114
p02945
p02945
u241752770
u241752770
1,566,326,257
2019-08-20T18:37:37
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a = s.nextInt(), b = s.nextInt(); int sum = a + b, c = a - b, d = a * b; int max = sum; if(sum < c){ if(c < d){ sum = d; ...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u241752770|p02945|0
u241752770|p02945|0
codenet
Compile Error
462
v2_s313484420
s313484420
s313484420
p02945
p02945
u264007769
u264007769
1,565,485,892
2019-08-11T01:11:32
Main.java
import java,util.*; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b =sc.nextInt(); int answer = Math.max(a+b,a-b); answer =Math.max(answer,a*b); System.out.println(answer); } }
Main.java:1: error: '.' expected import java,util.*; ^ Main.java:2: error: illegal character: '\u3000' class?Main{ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u264007769|p02945|0
u264007769|p02945|0
codenet
Compile Error
304
v2_s132355608
s132355608
s132355608
p02945
p02945
u284795785
u284795785
1,572,212,475
2019-10-27T21:41:15
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); if((a+b)>=(a-b)&&(a+b)>=(a*b)){ System.out.println(a+b); }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){ System.out.println(a-b); }else{ Syste...
Main.java:10: error: '(' expected }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){ ^ Main.java:10: error: illegal start of expression }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){ ^ Main.java:10: error: not a statement }if else((a-b)>=(a+b)&&(a-b)>=(a*b)){ ^ Main.java:10: error: ';' expected }if...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u284795785|p02945|0
u284795785|p02945|0
codenet
Compile Error
353
v2_s536939257
s536939257
s536939257
p02945
p02945
u345023394
u345023394
1,582,599,297
2020-02-25T02:54:57
Main.java
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); int A, B; A = scan.nextInt(); B = scan.nextInt(); double pulus, minus, kakezan; pulus = A + B; minus = A - B; kakezan = A ...
Main.java:34: error: incompatible types: unexpected return value return ans; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u345023394|p02945|0
u345023394|p02945|0
codenet
Compile Error
1,604
v2_s501459772
s501459772
s501459772
p02945
p02945
u347452770
u347452770
1,565,551,160
2019-08-11T19:19:20
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); System.out.print(Math.max(a-b, a+b. a*b)); } }
Main.java:8: error: int cannot be dereferenced System.out.print(Math.max(a-b, a+b. a*b)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02945|0
u347452770|p02945|0
codenet
Compile Error
244
v2_s313585523
s313585523
s313585523
p02945
p02945
u347452770
u347452770
1,565,551,180
2019-08-11T19:19:40
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); System.out.print(Math.max(a-b, a+b, a*b)); } }
Main.java:8: error: no suitable method found for max(int,int,int) System.out.print(Math.max(a-b, a+b, a*b)); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u347452770|p02945|0
u347452770|p02945|0
codenet
Compile Error
245
v2_s297548585
s297548585
s297548585
p02945
p02945
u369712616
u369712616
1,584,023,635
2020-03-12T14:33:55
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.pritnln(Math.max(Math.max(a+b,a-b),a*b)); } }
Main.java:7: error: cannot find symbol System.out.pritnln(Math.max(Math.max(a+b,a-b),a*b)); ^ symbol: method pritnln(int) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02945|0
u369712616|p02945|0
codenet
Compile Error
235
v2_s883337683
s883337683
s883337683
p02945
p02945
u387495821
u387495821
1,565,488,965
2019-08-11T02:02:45
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scna.nextInt(); int add = A + B ; int sub = A - B ; int mul = A * B ; int if (add <= sub){ ...
Main.java:11: error: not a statement int if (add <= sub){ ^ Main.java:11: error: ';' expected int if (add <= sub){ ^ Main.java:12: error: ';' expected int max = Math.max(sub, mul) ^ Main.java:14: error: ';' expected int max = M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387495821|p02945|0
u387495821|p02945|0
codenet
Compile Error
475
v2_s415041443
s415041443
s415041443
p02945
p02945
u387495821
u387495821
1,565,489,017
2019-08-11T02:03:37
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scna.nextInt(); int add = A + B ; int sub = A - B ; int mul = A * B ; if (add <= sub){ ...
Main.java:7: error: cannot find symbol int B = scna.nextInt(); ^ symbol: variable scna location: class Main Main.java:16: error: cannot find symbol System.out.println(max); ^ symbol: variable max location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387495821|p02945|0
u387495821|p02945|0
codenet
Compile Error
473
v2_s095692710
s095692710
s095692710
p02945
p02945
u387495821
u387495821
1,565,489,065
2019-08-11T02:04:25
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int add = A + B ; int sub = A - B ; int mul = A * B ; int max if (add <= s...
Main.java:11: error: ';' expected int max ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u387495821|p02945|0
u387495821|p02945|0
codenet
Compile Error
481
v2_s472481728
s472481728
s472481728
p02945
p02945
u429342487
u429342487
1,591,135,394
2020-06-02T22:03:14
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(Math.max(a+b,a-b,a*b)); } }
Main.java:8: error: no suitable method found for max(int,int,int) System.out.println(Math.max(a+b,a-b,a*b)); ^ method Math.max(int,int) is not applicable (actual and formal argument lists differ in length) method Math.max(long,long) is not applicable (actual and fo...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u429342487|p02945|0
u429342487|p02945|0
codenet
Compile Error
277
v2_s705098758
s705098758
s705098758
p02945
p02945
u448324500
u448324500
1,565,487,842
2019-08-11T01:44:02
Main.java
import java.util.*; class main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int C = A-B; int D = A*B; int E = A+B; if(C>=D && C>=E){ System.out.printlin(C); } else if(D>=C && D>=E){ System.out.printlin(D); } ...
Main.java:21: error: cannot find symbol System.out.printlin(C); ^ symbol: method printlin(int) location: variable out of type PrintStream Main.java:27: error: cannot find symbol System.out.printlin(D); ^ symbol: method printlin(int) location: variable out of type PrintStream Main.j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02945|0
u448324500|p02945|0
codenet
Compile Error
382
v2_s838184317
s838184317
s838184317
p02945
p02945
u458268106
u458268106
1,565,485,371
2019-08-11T01:02:51
Main.java
import java.util.*; class Main{ public static void main(Strin args[]){ int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(Math.max(a+b,Math.max(a-b,a*b))); } }
Main.java:4: error: cannot find symbol public static void main(Strin args[]){ ^ symbol: class Strin location: class Main Main.java:5: error: cannot find symbol int a=sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:6: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u458268106|p02945|0
u458268106|p02945|0
codenet
Compile Error
184
v2_s054817355
s054817355
s054817355
p02945
p02945
u480938688
u480938688
1,565,486,332
2019-08-11T01:18:52
Main.java
import java.util.Scanner; public class Main { public static void main (String [] args) { // Scannerをインスタンス化 Scanner sc = new Scanner(System.in); // 入力値の格納 int A = sc.nextInt(); int B = sc.newtInt(); // 数値の計算 int plus = A + B; ...
Main.java:11: error: cannot find symbol int B = sc.newtInt(); ^ symbol: method newtInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u480938688|p02945|0
u480938688|p02945|0
codenet
Compile Error
720
v2_s496770884
s496770884
s496770884
p02945
p02945
u487433273
u487433273
1,565,485,596
2019-08-11T01:06:36
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int w = A+B; int s = A-B; int seki = A*B; int M1 = max(w,s); int M = max(M1,seki); System.out.println(M); } }
Main.java:11: error: cannot find symbol int M1 = max(w,s); ^ symbol: method max(int,int) location: class Main Main.java:12: error: cannot find symbol int M = max(M1,seki); ^ symbol: method max(int,int) location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02945|0
u487433273|p02945|0
codenet
Compile Error
309
v2_s901714356
s901714356
s901714356
p02945
p02945
u498108912
u498108912
1,565,490,473
2019-08-11T02:27:53
Main.java
import java.util.*; public class Main(){ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(): int b = sc.nextInt(); int c = a+b; int d; if(a>b) { d=a-b; } else { d=b-a; } int e = ...
Main.java:3: error: '{' expected public class Main(){ ^ Main.java:6: error: ';' expected int a = sc.nextInt(): ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498108912|p02945|0
u498108912|p02945|0
codenet
Compile Error
574
v2_s695855978
s695855978
s695855978
p02945
p02945
u498108912
u498108912
1,565,490,532
2019-08-11T02:28:52
Main.java
import java.util.*; public class Main(){ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(): int b = sc.nextInt(); int c = a+b; int d=a-b; int e = a*b; if(c > d && c > e) { System.out.println(c); } ...
Main.java:3: error: '{' expected public class Main(){ ^ Main.java:6: error: ';' expected int a = sc.nextInt(): ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u498108912|p02945|0
u498108912|p02945|0
codenet
Compile Error
480
v2_s172415496
s172415496
s172415496
p02945
p02945
u555959155
u555959155
1,565,487,414
2019-08-11T01:36:54
Main.java
import java.util.* ; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int A = sc.nextInt() ; int B = sc.nextInt() ; int plus = A+B; int minus = A-B; int kakeru = A*B; if(B>-B){ if(plus<kakeru){ System.ou...
Main.java:23: error: reached end of file while parsing if(minus<kakeru){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555959155|p02945|0
u555959155|p02945|0
codenet
Compile Error
442
v2_s368128432
s368128432
s368128432
p02945
p02945
u630085796
u630085796
1,566,108,450
2019-08-18T06:07:30
main.java
import java.util.*; public class main{ public static void main(String[] args]{ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); int best = a; int[] arr = new int{ a + b, a - b, a * b}; for(int i = 0; i < arr.length; i++) best = Math.max(bes...
main.java:4: error: ',', ')', or '[' expected public static void main(String[] args]{ ^ main.java:11: error: '[' expected int[] arr = new int{ a + b, a - b, a * b}; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u630085796|p02945|0
u630085796|p02945|0
codenet
Compile Error
348
v2_s594124867
s594124867
s594124867
p02945
p02945
u630085796
u630085796
1,566,108,485
2019-08-18T06:08:05
main.java
import java.util.*; public class main{ public static void main(String[] args]{ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); sc.close(); int best = a; int[] arr = new int[]{ a + b, a - b, a * b}; for(int i = 0; i < arr.length; i++) best = Math.max(b...
main.java:4: error: ',', ')', or '[' expected public static void main(String[] args]{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u630085796|p02945|0
u630085796|p02945|0
codenet
Compile Error
345
v2_s821515353
s821515353
s821515353
p02945
p02945
u720439461
u720439461
1,572,635,582
2019-11-01T19:13:02
Main.java
import java.util.*; class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int plus=a+b; int minus=a-b; int z=a*b; int max=Math.max(Math.max(plus,minus),z) System.out.println(max); } }
Main.java:14: error: ';' expected int max=Math.max(Math.max(plus,minus),z) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720439461|p02945|0
u720439461|p02945|0
codenet
Compile Error
287
v2_s182549936
s182549936
s182549936
p02945
p02945
u720483676
u720483676
1,565,485,282
2019-08-11T01:01:22
Main.java
a,b=map(int,input().split()) print(max(a+b,a-b,a*b))
Main.java:1: error: class, interface, enum, or record expected a,b=map(int,input().split()) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u720483676|p02945|0
u720483676|p02945|0
codenet
Compile Error
52
v2_s066610022
s066610022
s066610022
p02945
p02945
u810533911
u810533911
1,566,096,313
2019-08-18T02:45:13
Salam.java
public class Salam { public static void main(String[] args) { sdkjwk System.out.println(":D"); } }
Salam.java:6: error: ';' expected System.out.println(":D"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u810533911|p02945|0
u810533911|p02945|0
codenet
Compile Error
125
v2_s063551719
s063551719
s063551719
p02945
p02945
u810533911
u810533911
1,566,096,346
2019-08-18T02:45:46
Main.java
public class Main { public static void main(String[] args) { sdkjwk System.out.println(":D"); } }
Main.java:6: error: ';' expected System.out.println(":D"); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u810533911|p02945|0
u810533911|p02945|0
codenet
Compile Error
124
v2_s618559267
s618559267
s618559267
p02945
p02945
u810533911
u810533911
1,566,096,428
2019-08-18T02:47:08
Main.java
public class Main public static void main(String[] args) { System.out.println(":D"); } }
Main.java:2: error: '{' expected public class Main ^ Main.java:4: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) Main.java:7: error: class, interface, enum, or ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u810533911|p02945|0
u810533911|p02945|0
codenet
Compile Error
107
v2_s371627832
s371627832
s371627832
p02945
p02945
u818640918
u818640918
1,565,485,555
2019-08-11T01:05:55
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); if(B<0){ if(A-B>A*B){ System.out.println(A-B); }else{ System.out.println(A*B); } }else{ if(A+B>A*B){ System.out.println(A+B) }else{ System.out.println(A*B) } } }}
Main.java:15: error: ';' expected System.out.println(A+B) ^ Main.java:17: error: ';' expected System.out.println(A*B) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02945|0
u818640918|p02945|0
codenet
Compile Error
315
v2_s245652248
s245652248
s245652248
p02945
p02945
u825262731
u825262731
1,565,487,031
2019-08-11T01:30:31
Main.java
import java.util.*; public class Main{ public static void main(String[] mains){ int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(Math.max(a+b,Math.max(a-b,a*b))); } }
Main.java:4: error: cannot find symbol int a = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:5: error: cannot find symbol int b = sc.nextInt(); ^ symbol: variable sc location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02945|0
u825262731|p02945|0
codenet
Compile Error
196
v2_s704119106
s704119106
s704119106
p02945
p02945
u837113610
u837113610
1,594,176,101
2020-07-08T02:41:41
Main.java
function main(input) { input = input.trim(); const a = input.split(" ").map(Number); console.log(Math.max(a[0]+a[1], Math.max(a[0]-a[1], a[0]*a[1]))); } main(require('fs').readFileSync('/dev/stdin', 'utf8'));
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. function main(input) { ^ (use --enable-preview to enable unnamed classes) Main.java:1: error: <identifier> expected function main(input) { ^ Main.java:3: error: illegal start of expression const a = input.split...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u837113610|p02945|0
u837113610|p02945|0
codenet
Compile Error
218
v2_s832788731
s832788731
s832788731
p02945
p02945
u863370423
u863370423
1,581,769,768
2020-02-15T12:29:28
Solution.java
public class Solution{ public void solution(int A, int B){ int minus = A- B; int plus = A+B; int times = A*B; System.out.print(Math.max(minus, math.max(plus, times))); } }
Solution.java:6: error: cannot find symbol System.out.print(Math.max(minus, math.max(plus, times))); ^ symbol: variable math location: class Solution 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p02945|2
u863370423|p02945|2
codenet
Compile Error
196
v2_s296654190
s296654190
s296654190
p02945
p02945
u886708442
u886708442
1,588,465,528
2020-05-03T00:25:28
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(), b = sc.nextInt(); System.out.println(Math.max(a + b, Math.max(a - b, a * b))); } }
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
u886708442|p02945|0
u886708442|p02945|0
codenet
Compile Error
211
v2_s622672409
s622672409
s622672409
p02945
p02945
u898736446
u898736446
1,565,491,043
2019-08-11T02:37:23
Main.java
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //1行目の整数を読み込む int A = sc.nextInt(); int B = sc.nextInt(); //A+B,A-B,A×Bを計算する int AplusB = A+B ; int AminusB = A-B; int AmultiplyB = A*B; //3つの計算結果を比較し、最大のものを変数maxに入れる int m...
Main.java:32: error: illegal character: '\uff5d' ? ^ Main.java:32: error: reached end of file while parsing ? ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u898736446|p02945|0
u898736446|p02945|0
codenet
Compile Error
619
v2_s767698499
s767698499
s767698499
p02945
p02945
u920694585
u920694585
1,565,489,083
2019-08-11T02:04: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 sum1 = a + b; int sum2 = a - b; int sum3 = a * b; if(sum1 >= sum2 && sum1 >= sum3){ System.out....
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
u920694585|p02945|0
u920694585|p02945|0
codenet
Compile Error
557
v2_s342499487
s342499487
s342499487
p02945
p02945
u924807180
u924807180
1,566,392,435
2019-08-21T13:00:35
Main.java
class Main { public static void main(){ Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); int max = n*m; if(max < n+m) { max = n+m; } if(max < n-m) { max = n-m; } System.out.println(ma...
Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u924807180|p02945|0
u924807180|p02945|0
codenet
Compile Error
329
v2_s188058370
s188058370
s188058370
p02945
p02945
u937094641
u937094641
1,565,485,858
2019-08-11T01:10:58
Main.java
static Scanner scan = new Scanner(System.in); public static void main(String[] args) { int a = scan.nextInt(); int b = scan.nextInt(); int n1 = a-b; int n2 = a+b; int n3 = a*b; int m = Math.max(n1, n2); m = Math.max(m, n3); System.out.println(m); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. static Scanner scan = new Scanner(System.in); ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u937094641|p02945|0
u937094641|p02945|0
codenet
Compile Error
277
v2_s708298124
s708298124
s708298124
p02945
p02945
u951847940
u951847940
1,567,801,044
2019-09-06T20:17:24
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A; int B; // 整数の入力 int a = sc.nextInt(); // スペース区切りの整数の入力 int b = sc.nextInt(); int kakeru = A*B; int plus = A+B; int minus = A-B; int a1=Ma...
Main.java:11: error: variable A might not have been initialized int kakeru = A*B; ^ Main.java:11: error: variable B might not have been initialized int kakeru = A*B; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u951847940|p02945|0
u951847940|p02945|0
codenet
Compile Error
446
v2_s430098957
s430098957
s430098957
p02945
p02945
u964897784
u964897784
1,565,486,638
2019-08-11T01:23:58
Main.java
public void main (int A, int B){ C = A + B; D = A - B; E = A * B; if( C>=D && C>=E ){ System.out.println(C); } if( D>=C && D>=E ){ System.out.println(D); } if( E>=D && E>=C ){ System.out.println(E); } }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public void main (int A, int B){ ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964897784|p02945|0
u964897784|p02945|0
codenet
Compile Error
237
v2_s470570940
s470570940
s470570940
p02945
p02945
u964897784
u964897784
1,565,486,793
2019-08-11T01:26:33
Main.java
public class +- { public void main (int A, int B){ C = A + B; D = A - B; E = A * B; if( C>=D && C>=E ){ System.out.println(C); } if( D>=C && D>=E ){ System.out.println(D); } if( E>=D && E>=C ){ System.out.println(E); } } }
Main.java:1: error: <identifier> expected public class +- { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964897784|p02945|0
u964897784|p02945|0
codenet
Compile Error
272
v2_s123425138
s123425138
s123425138
p02945
p02945
u984465701
u984465701
1,565,851,200
2019-08-15T06:40:00
Main.java
import java.util.Scanner; private static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(), b = scan.nextInt(); System.out.println(Math.max(a + b, Math.max(a - b, a * b))); }
Main.java:3: error: unnamed classes are a preview feature and are disabled by default. private static void main(String[] args) { ^ (use --enable-preview to enable unnamed classes) 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u984465701|p02945|0
u984465701|p02945|0
codenet
Compile Error
226
v2_s081429391
s081429391
s081429391
p02946
p02946
u006449883
u006449883
1,565,713,939
2019-08-13T16:32:19
Main.java
import java.util.*; 2. class Main{ 3. public static void main(String[] args){ 4. Scanner sc = new Scanner(System.in); 5. int k = sc.nextInt(); 6. int x = sc.nextInt(); 7. int n = 1+x-k; 8. for(int i = 0;i < 2k-1; i++){ 9. System.out.println(n+i); 10. } 11. } ...
Main.java:2: error: class, interface, enum, or record expected 2. class Main{ ^ Main.java:3: error: illegal start of type 3. public static void main(String[] args){ ^ Main.java:4: error: not a statement 4. Scanner sc = new Scanner(System.in); ^ Main.java:4: error: ';' expected 4. Scanner sc = new Sca...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006449883|p02946|0
u006449883|p02946|0
codenet
Compile Error
329
v2_s658959114
s658959114
s658959114
p02946
p02946
u006449883
u006449883
1,565,714,103
2019-08-13T16:35:03
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int n = 1+x-k; for(int i = 0;i < 2k-1; i++){ System.out.println(n+i); } } }
Main.java:8: error: ';' expected for(int i = 0;i < 2k-1; i++){ ^ Main.java:8: error: not a statement for(int i = 0;i < 2k-1; i++){ ^ Main.java:8: error: ')' expected for(int i = 0;i < 2k-1; i++){ ^ Main.java:8: ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006449883|p02946|0
u006449883|p02946|0
codenet
Compile Error
304
v2_s413591679
s413591679
s413591679
p02946
p02946
u006449883
u006449883
1,565,714,167
2019-08-13T16:36:07
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int n = 1+x-k; for(int i = 0;i < (2k-1); i++){ System.out.println(n+i); } } }
Main.java:8: error: ')' expected for(int i = 0;i < (2k-1); i++){ ^ Main.java:8: error: not a statement for(int i = 0;i < (2k-1); i++){ ^ Main.java:8: error: ';' expected for(int i = 0;i < (2k-1); i++){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u006449883|p02946|0
u006449883|p02946|0
codenet
Compile Error
306
v2_s918797440
s918797440
s918797440
p02946
p02946
u196501792
u196501792
1,565,850,556
2019-08-15T06:29:16
Main.java
import java.util.*; import java.io.*; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer tokenizer1 = new StringTokenizer(br.readLine()); int k = Integer.parseInt(tokenizer1.nextToken(...
Main.java:28: error: variable k is already defined in method printPossibleBlack(int,int) int k = 0; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u196501792|p02946|0
u196501792|p02946|0
codenet
Compile Error
849
v2_s293562067
s293562067
s293562067
p02946
p02946
u342374988
u342374988
1,565,670,296
2019-08-13T04:24:56
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int scanA = scan.nextInt(); int scanB = scan.nextInt(); int scanBdec = scaB; int scanBinc = scaB; AarrayList<Integer> list = new Aarray...
Main.java:12: error: ')' expected for(int i = 0; i < scanA ; i++;){ ^ Main.java:12: error: illegal start of expression for(int i = 0; i < scanA ; i++;){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342374988|p02946|0
u342374988|p02946|0
codenet
Compile Error
521
v2_s498050691
s498050691
s498050691
p02946
p02946
u342374988
u342374988
1,565,671,600
2019-08-13T04:46:40
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int scanA = scan.nextInt(); int scanB = scan.nextInt(); int scanBdec = scaB; int scanBinc = scaB; AarrayList<Integer> list = new Aarray...
Main.java:12: error: ')' expected for(int i = 0; i < scanA ; i++;){ ^ Main.java:12: error: illegal start of expression for(int i = 0; i < scanA ; i++;){ ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342374988|p02946|0
u342374988|p02946|0
codenet
Compile Error
611
v2_s126960944
s126960944
s126960944
p02946
p02946
u342374988
u342374988
1,565,673,794
2019-08-13T05:23:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int scanA = scan.nextInt(); int scanB = scan.nextInt(); int scanBdec = scanB; int scanBinc = scanB; ArrayList<Integer> list = new Array...
Main.java:10: error: '(' or '[' expected ArrayList<Integer> list = new ArrayList<>; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342374988|p02946|0
u342374988|p02946|0
codenet
Compile Error
732
v2_s656136940
s656136940
s656136940
p02946
p02946
u342374988
u342374988
1,565,673,988
2019-08-13T05:26:28
Main.java
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner scan = new Scanner(System.in); int scanA = scan.nextInt(); int scanB = scan.nextInt(); int scanBdec = scanB; int scanBinc = scanB; ArrayList<Integer> list = new Array...
Main.java:13: error: illegal start of expression if(scanA !== 1){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u342374988|p02946|0
u342374988|p02946|0
codenet
Compile Error
803
v2_s063529934
s063529934
s063529934
p02946
p02946
u369712616
u369712616
1,584,451,174
2020-03-17T13:19:34
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x = sc.nextInt(); String output = ""; for(int i = x - n + 1; i < 2*k+1; i++){ output += i + " "; } System.out.println(output); } }
Main.java:8: error: cannot find symbol for(int i = x - n + 1; i < 2*k+1; i++){ ^ symbol: variable k location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u369712616|p02946|1
u369712616|p02946|0
codenet
Compile Error
309
v2_s828215022
s828215022
s828215022
p02946
p02946
u414338455
u414338455
1,565,486,387
2019-08-11T01:19:47
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); for(int i = x-k+1; i < x+k; i++){ System.out.print(i); if(i<x+k-1){ System.out.print(" "); } }
Main.java:16: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u414338455|p02946|0
u414338455|p02946|0
codenet
Compile Error
281
v2_s670429577
s670429577
s670429577
p02946
p02946
u414338455
u414338455
1,565,486,440
2019-08-11T01:20:40
Main.java
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); for(int i = x-k+1; i < x+k; i++){ System.out.print(i); if(i<x+k-1){ System.out.print(" "); } } }
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u414338455|p02946|0
u414338455|p02946|0
codenet
Compile Error
284
v2_s659882767
s659882767
s659882767
p02946
p02946
u448324500
u448324500
1,565,489,012
2019-08-11T02:03:32
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); for(int i = 0; i<2K; i++){ if((X-K+i)<=1000000 && (X-K+i)>=-1000000){ System.out.println(X-K+i); } } } }
Main.java:13: error: ';' expected for(int i = 0; i<2K; i++){ ^ Main.java:13: error: ')' expected for(int i = 0; i<2K; i++){ ^ Main.java:13: error: ';' expected for(int i = 0; i<2K; i++){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u448324500|p02946|0
u448324500|p02946|0
codenet
Compile Error
283
v2_s573051992
s573051992
s573051992
p02946
p02946
u487433273
u487433273
1,565,485,918
2019-08-11T01:11:58
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); for(int i = K-X+1;i<=K+X-1;i++) system.out.println(i+ " "); } }
Main.java:9: error: package system does not exist system.out.println(i+ " "); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u487433273|p02946|0
u487433273|p02946|0
codenet
Compile Error
249
v2_s819211987
s819211987
s819211987
p02946
p02946
u547167033
u547167033
1,565,804,118
2019-08-14T17:35:18
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scaner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); for(int i = 1;i <= 2*k-1;i++){ System.out.println(x-k+i) } } }
Main.java:8: error: ';' expected System.out.println(x-k+i) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02946|0
u547167033|p02946|0
codenet
Compile Error
262
v2_s296246435
s296246435
s296246435
p02946
p02946
u547167033
u547167033
1,565,804,154
2019-08-14T17:35:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scaner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); for(int i = 1;i <= 2*k-1;i++){ System.out.println(x-k+i); } } }
Main.java:4: error: cannot find symbol Scanner sc = new Scaner(System.in); ^ symbol: class Scaner location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u547167033|p02946|0
u547167033|p02946|0
codenet
Compile Error
264
v2_s694137383
s694137383
s694137383
p02946
p02946
u653981267
u653981267
1,578,837,425
2020-01-12T13:57:05
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int x1 = Math.max(x - k + 1, −1000000); int x2 = Math.min(x + k - 1, 1000000); for(int i = x1; i <= x2; i++) { System.out.pri...
Main.java:8: error: illegal character: '\u2212' int x1 = Math.max(x - k + 1, ?1000000); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02946|0
u653981267|p02946|0
codenet
Compile Error
346
v2_s035002287
s035002287
s035002287
p02946
p02946
u653981267
u653981267
1,578,837,491
2020-01-12T13:58:11
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int x1 = Math.max(x - k + 1, (−1) * 1000000); int x2 = Math.min(x + k - 1, 1000000); for(int i = x1; i <= x2; i++) { System.o...
Main.java:8: error: illegal character: '\u2212' int x1 = Math.max(x - k + 1, (?1) * 1000000); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02946|0
u653981267|p02946|0
codenet
Compile Error
352
v2_s157887748
s157887748
s157887748
p02946
p02946
u653981267
u653981267
1,578,837,555
2020-01-12T13:59:15
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int x1 = Math.max(x - k + 1, ((−1) * 1000000)); int x2 = Math.min(x + k - 1, 1000000); for(int i = x1; i <= x2; i++) { System...
Main.java:8: error: illegal character: '\u2212' int x1 = Math.max(x - k + 1, ((?1) * 1000000)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u653981267|p02946|0
u653981267|p02946|0
codenet
Compile Error
354
v2_s815808150
s815808150
s815808150
p02946
p02946
u803314854
u803314854
1,565,494,352
2019-08-11T03:32:32
Main.java
import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();for(int i=0;i<2*a-1;i++)System.out.print(i+b-a+1+" ");}}
Main.java:1: error: variable a is already defined in method main(String[]) import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);int a=s.nextInt(),b=s.nextInt();for(int i=0;i<2*a-1;i++)System.out.print(i+b-a+1+" ");}} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u803314854|p02946|0
u803314854|p02946|0
codenet
Compile Error
193
v2_s754432069
s754432069
s754432069
p02946
p02946
u818640918
u818640918
1,565,486,525
2019-08-11T01:22:05
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int G = B-A+1; for(int i=0;i<2*A-1;i++){ if(G=<1000000&&G=>-1000000){ System.out.println(G); } G++; } } }
Main.java:9: error: illegal start of type if(G=<1000000&&G=>-1000000){ ^ Main.java:9: error: illegal start of expression if(G=<1000000&&G=>-1000000){ ^ Main.java:9: error: ';' expected if(G=<1000000&&G=>-1000000){ ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u818640918|p02946|0
u818640918|p02946|0
codenet
Compile Error
258
v2_s056606077
s056606077
s056606077
p02946
p02946
u825262731
u825262731
1,565,487,484
2019-08-11T01:38:04
Main.java
import java.util.*; public class Main{ public void staitc main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int left = x-(k-1); int right = x+(k-1); for(int i=left;i<=right;i++){ System.out.print(i+" "); } } }
Main.java:3: error: '(' expected public void staitc main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02946|0
u825262731|p02946|0
codenet
Compile Error
299
v2_s901513210
s901513210
s901513210
p02946
p02946
u825262731
u825262731
1,565,487,519
2019-08-11T01:38:39
Main.java
import java.util.*; public class Main{ public void static main(String[] args){ Scanner sc = new Scanner(System.in); int k = sc.nextInt(); int x = sc.nextInt(); int left = x-(k-1); int right = x+(k-1); for(int i=left;i<=right;i++){ System.out.print(i+" "); } } }
Main.java:3: error: <identifier> expected public void static main(String[] args){ ^ Main.java:3: error: '(' expected public void static main(String[] args){ ^ Main.java:3: error: invalid method declaration; return type required public void static main(String[] args){ ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u825262731|p02946|0
u825262731|p02946|0
codenet
Compile Error
299
v2_s979653250
s979653250
s979653250
p02946
p02946
u873839198
u873839198
1,565,486,641
2019-08-11T01:24:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int x = scan.nextInt(); for(i = x - k - 1; i < k + x + 1; i++){ System.out.print(i); System.out.print(" "); } }
Main.java:14: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u873839198|p02946|0
u873839198|p02946|0
codenet
Compile Error
318
v2_s988204626
s988204626
s988204626
p02946
p02946
u873839198
u873839198
1,565,486,677
2019-08-11T01:24:37
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int k = scan.nextInt(); int x = scan.nextInt(); for(i = x - k - 1; i < k + x + 1; i++){ System.out.print(i); System.out.print(" "); }...
Main.java:10: error: cannot find symbol for(i = x - k - 1; i < k + x + 1; i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot find symbol for(i = x - k - 1; i < k + x + 1; i++){ ^ symbol: variable i location: class Main Main.java:10: error: cannot fin...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u873839198|p02946|0
u873839198|p02946|0
codenet
Compile Error
328
v2_s251964772
s251964772
s251964772
p02946
p02946
u886238106
u886238106
1,565,491,235
2019-08-11T02:40:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sn = new Scanner(System.in); int a = sn.nextInt(); int b = sn.nextInt(); int min = b -a +1; int max = b + a -1 for (int i = min ; i =< max; i ++){ ...
Main.java:15: error: ';' expected int max = b + a -1 ^ Main.java:18: error: > or ',' expected for (int i = min ; i =< max; i ++){ ^ Main.java:20: error: illegal start of expression ); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u886238106|p02946|0
u886238106|p02946|0
codenet
Compile Error
381
v2_s822689761
s822689761
s822689761
p02946
p02946
u955591889
u955591889
1,565,981,520
2019-08-16T18:52:00
OneClue.java
public class OneClue.java{ public static void main(String[] args){ int k=13,x=3; int a=x-k+1,b=x+k; for(int i=a;i<b;i++) System.out.print(i+" "); } }
OneClue.java:1: error: '{' expected public class OneClue.java{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u955591889|p02946|0
u955591889|p02946|0
codenet
Compile Error
171
v2_s555713167
s555713167
s555713167
p02946
p02946
u964897784
u964897784
1,565,488,092
2019-08-11T01:48:12
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); for(int i=o; i<K; i++){ System.out.print(X-K+1+i +" "); } for(int i=o; i<K; i++){ System.out.print(X+i +" "); } } }
Main.java:8: error: cannot find symbol for(int i=o; i<K; i++){ ^ symbol: variable o location: class Main Main.java:11: error: cannot find symbol for(int i=o; i<K; i++){ ^ symbol: variable o location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u964897784|p02946|0
u964897784|p02946|0
codenet
Compile Error
313
v2_s521246225
s521246225
s521246225
p02946
p02946
u965001777
u965001777
1,565,486,327
2019-08-11T01:18:47
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int K = sc.nextInt(); int X = sc.nextInt(); int upper = X + K - 1; int lower = X - K - 1; for (int i = lower; i <= upper; i++)...
Main.java:16: error: class, interface, enum, or record expected } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u965001777|p02946|0
u965001777|p02946|0
codenet
Compile Error
399
v2_s182478296
s182478296
s182478296
p02947
p02947
u005491552
u005491552
1,588,625,875
2020-05-04T20:57:55
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); long[] a = new long[270]; for(int i = 0; i < n; i++){ String s = scanner.next(); long count = 0; for(int j ...
Main.java:13: error: incompatible types: possible lossy conversion from long to int a[count]++; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u005491552|p02947|0
u005491552|p02947|0
codenet
Compile Error
584
v2_s729147566
s729147566
s729147566
p02947
p02947
u079022116
u079022116
1,565,491,081
2019-08-11T02:38:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long N = sc.nextLong(); String[] a = new String[N]; for(int i = 0;i<N;i++) { a[i]=sc.next(); } int anagramct=0; for(int j=0;j<N;j++) { for(int k= j+1;k<N;k++) { anagramct...
Main.java:8: error: incompatible types: possible lossy conversion from long to int String[] a = new String[N]; ^ Main.java:18: error: cannot find symbol System.out.print(anagramct+","+count); ^ symbol: variable count location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u079022116|p02947|0
u079022116|p02947|0
codenet
Compile Error
912
v2_s899190355
s899190355
s899190355
p02947
p02947
u127030911
u127030911
1,586,715,358
2020-04-12T18:15:58
Main.java
import java.util.Collections; import java.util.Arrays; import java.util.HashMap; import java.util.Scanner; import java.util.Map; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Map<String, Long> m = new TreeMap<>(); ...
Main.java:12: error: cannot find symbol Map<String, Long> m = new TreeMap<>(); ^ symbol: class TreeMap location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u127030911|p02947|2
u127030911|p02947|2
codenet
Compile Error
847