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_s802118803
s802118803
s802118803
p03425
p03425
u149468221
u149468221
1,547,501,170
2019-01-14T21:26:10
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); long[] alp = new int[28]; int[] id = {'M'-'A', 'A'-'A', 'R'-'A','C'-'A', 'H'-'A'}; long ans = 0; for(int i = 0;i < N;i++) alp[sc...
Main.java:7: error: incompatible types: int[] cannot be converted to long[] long[] alp = new int[28]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u149468221|p03425|0
u149468221|p03425|0
codenet
Compile Error
612
v2_s806461897
s806461897
s806461897
p03425
p03425
u334624175
u334624175
1,533,945,922
2018-08-11T00:05:22
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[] count = new int[5]; for (int i = 0; i < n; i++) { String str = String.valueOf(sc.next().charAt(0)); if (str.equals("M")) { count[0]+...
Main.java:31: error: '.class' expected ans += long(count[i] * count[j] * count[k]); ^ Main.java:31: error: not a statement ans += long(count[i] * count[j] * count[k]); ^ Main.java:31: error: ';' expected ans += long(count[i] * ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u334624175|p03425|0
u334624175|p03425|0
codenet
Compile Error
808
v2_s479724119
s479724119
s479724119
p03425
p03425
u474492589
u474492589
1,566,769,605
2019-08-25T21:46: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(); String[] S = new String[N]; for(int i = 0; i < N; i++){ S[i] = sc.next(); } sc.close(); long m = 0...
Main.java:18: error: cannot find symbol LongSummaryStatistics= 0; ^ symbol: variable LongSummaryStatistics location: class Main Main.java:29: error: cannot find symbol h++; ^ symbol: variable h location: class Main Main.java:34: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03425|0
u474492589|p03425|0
codenet
Compile Error
1,058
v2_s886111208
s886111208
s886111208
p03425
p03425
u474492589
u474492589
1,566,769,642
2019-08-25T21:47:22
Main.java
import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String[] S = new String[N]; for(int i = 0; i < N; i++){ S[i] = sc.next(); } sc.close(); long m = 0...
Main.java:19: error: cannot find symbol LongSummaryStatistics= 0; ^ symbol: variable LongSummaryStatistics location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u474492589|p03425|0
u474492589|p03425|0
codenet
Compile Error
1,078
v2_s616020841
s616020841
s616020841
p03425
p03425
u497542154
u497542154
1,527,544,963
2018-05-28T22:02:43
Main.java
import java.util.*; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N; double M=0,A=0,R=0,C=0,H=0; ArrayList<Integer> numlist = new ArrayList<>(); N = sc.nextInt(); for (int a = 0; a < N; ...
Main.java:29: error: incompatible types: double cannot be converted to Integer numlist.add(M); ^ Main.java:30: error: incompatible types: double cannot be converted to Integer numlist.add(A); ^ Main.java:31: error: incompatible types: double cannot be converted to...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u497542154|p03425|0
u497542154|p03425|0
codenet
Compile Error
1,245
v2_s459062241
s459062241
s459062241
p03425
p03425
u521723672
u521723672
1,560,436,950
2019-06-13T14:42:30
Main.java
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<string> s(n); int aa=0,bb=0,cc=0,dd=0,ee=0; string x; for(int i=0;i<n;i++){ x=s.at(i); if(x[0]=='M'){ aa++; } if(x[0]=='R'){ bb++; } if(x[0]==...
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:7: error: not a statement cin>>n; ^ Main.java:8: error: not a statement vector<string> s(n); ^ Main.java:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u521723672|p03425|0
u521723672|p03425|0
codenet
Compile Error
701
v2_s869656785
s869656785
s869656785
p03425
p03425
u581625805
u581625805
1,575,843,271
2019-12-08T22:14:31
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); // input int num = scan.nextInt(); long[] initial = new int[5]; for(int i = 0; i < num; i++){ String temp = scan.next(); swit...
Main.java:10: error: incompatible types: int[] cannot be converted to long[] long[] initial = new int[5]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u581625805|p03425|0
u581625805|p03425|0
codenet
Compile Error
1,258
v2_s210510680
s210510680
s210510680
p03425
p03425
u593227551
u593227551
1,527,020,787
2018-05-22T20:26:27
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); Map<String, Long> map = new HashMap<>(); map.put("M",0); map.put("A",0); map.put("R",0); map.put("C",0); ...
Main.java:9: error: incompatible types: int cannot be converted to Long map.put("M",0); ^ Main.java:10: error: incompatible types: int cannot be converted to Long map.put("A",0); ^ Main.java:11: error: incompatible types: int cannot be converted to Long ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u593227551|p03425|0
u593227551|p03425|0
codenet
Compile Error
1,635
v2_s139332257
s139332257
s139332257
p03425
p03425
u604068691
u604068691
1,574,200,794
2019-11-19T21:59:54
Main.java
import java.util.*; import java.lang.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); char[] alp = new char[]{"M","A","R","C","H"}; long[] count = new int[5]; for( int i=1; i<=N; i++ ){ String ss = sc.next(); char cc = ss.charAt(0...
Main.java:8: error: incompatible types: String cannot be converted to char char[] alp = new char[]{"M","A","R","C","H"}; ^ Main.java:8: error: incompatible types: String cannot be converted to char char[] alp = new char[]{"M","A","R","C","H"}; ^ Main.java:8: e...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u604068691|p03425|0
u604068691|p03425|0
codenet
Compile Error
616
v2_s530953314
s530953314
s530953314
p03425
p03425
u640800420
u640800420
1,520,218,647
2018-03-05T02:57:27
Main.java
import java.io.*; public class Main{ public static void main(String[] args) { try { long result; int n, i = 0; int num[] = {0, 0, 0, 0, 0}; BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(reader.readLine()); String name[] = ...
Main.java:45: error: package Sustem does not exist Sustem.out.println(result); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u640800420|p03425|0
u640800420|p03425|0
codenet
Compile Error
1,210
v2_s039061310
s039061310
s039061310
p03425
p03425
u806159048
u806159048
1,520,219,476
2018-03-05T03:11:16
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); String name[] = new String[n]; for(int t = 0;t<n;t++) { name[t] = scanner.next(); } int x = 0; i...
Main.java:20: error: incompatible types: int cannot be converted to Long Long ans = amnt[0]*(amnt[1]*(amnt[2]+amnt[3]+amnt[4])+amnt[2]*(amnt[3]+amnt[4])+amnt[3]*amnt[4])+amnt[1]*(amnt[2]*amnt[3]+amnt[2]*amnt[4]+amnt[3]*amnt[4])+amnt[2]*amnt[3]*amnt[4]; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806159048|p03425|0
u806159048|p03425|0
codenet
Compile Error
772
v2_s830794353
s830794353
s830794353
p03425
p03425
u806159048
u806159048
1,520,219,545
2018-03-05T03:12:25
Main.java
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); String name[] = new String[n]; for(int t = 0;t<n;t++) { name[t] = scanner.next(); } int x = 0; L...
Main.java:12: error: incompatible types: int cannot be converted to Long Long amnt[] = {0,0,0,0,0}; ^ Main.java:12: error: incompatible types: int cannot be converted to Long Long amnt[] = {0,0,0,0,0}; ^ Main.java:12: error: incompatible types: int cannot be converted to Long L...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806159048|p03425|0
u806159048|p03425|0
codenet
Compile Error
773
v2_s469955530
s469955530
s469955530
p03425
p03425
u891161439
u891161439
1,522,396,856
2018-03-30T08:00:56
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[5]; Arrays.fill(a,0); for(int i = 0;i < N;i++){ String s = sc.next(); if(s.charAt(0) = 'M')a[0]++; if(s.charAt(0) = 'A')a[1]++; if(s.charAt(...
Main.java:10: error: unexpected type if(s.charAt(0) = 'M')a[0]++; ^ required: variable found: value Main.java:11: error: unexpected type if(s.charAt(0) = 'A')a[1]++; ^ required: variable found: value Main.java:12: error: unexpected type if(s.charAt(0) = 'R')a[2]++...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03425|0
u891161439|p03425|0
codenet
Compile Error
582
v2_s558103966
s558103966
s558103966
p03425
p03425
u902576227
u902576227
1,554,988,819
2019-04-11T13:20:19
Main.java
/* * @Author Silviase(@silviasetitech) * For ProCon */ import java.util.*; import java.lang.*; import java.math.*; class Main{ static int n; static int c; static int k; static int lef; static int rig; static String s; static String anss; static int[] times; static long ans; st...
Main.java:108: error: cannot find symbol for (int i = 0; i < m; i++) { ^ symbol: variable m location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u902576227|p03425|0
u902576227|p03425|0
codenet
Compile Error
2,832
v2_s693962934
s693962934
s693962934
p03425
p03425
u981808900
u981808900
1,550,719,209
2019-02-21T03:20:09
Main.java
public class Main { private static java.util.Scanner scanner = new java.util.Scanner(System.in); public static void main(String[] args) { int n = scanner.nextInt(); long m = 0, a = 0, r = 0, c = 0, h = 0; for (int i = 0; i < n; i++) { switch (scanner.next().charAt(0)) { ...
Main.java:17: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u981808900|p03425|0
u981808900|p03425|0
codenet
Compile Error
687
v2_s542109841
s542109841
s542109841
p03426
p03426
u086752773
u086752773
1,556,205,773
2019-04-25T15:22:53
Main.java
import java.util.*; import static java.lang.System.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); D(sc); } public static void D(Scanner sc) { int H = sc.nextInt(); int W = sc.nextInt(); int D = sc.nextInt(); HashMap<Integer, int[]> map = new HashMap<...
Main.java:38: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u086752773|p03426|0
u086752773|p03426|0
codenet
Compile Error
925
v2_s004917001
s004917001
s004917001
p03426
p03426
u230858640
u230858640
1,520,219,672
2018-03-05T03:14:32
Main.java
//package solve; import java.util.*; public class Main{ public static void main(String[] args) { Scanner in=new Scanner(System.in); int N=in.nextInt(),H=in.nextInt(),d=in.nextInt(); int num[]=new int[N*H]; for(int i=0;i<N*H;i++)num[i]=in.nextInt(); int Q=in.nextInt(); while(Q-->0) { int L=in.nextInt(),...
Main.java:34: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u230858640|p03426|0
u230858640|p03426|0
codenet
Compile Error
703
v2_s091962836
s091962836
s091962836
p03426
p03426
u598699652
u598699652
1,520,221,323
2018-03-05T03:42:03
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //hwd int h = sc.nextInt(); int w = sc.nextInt(); int d = sc.nextInt(); //2jigen hairetu ArrayList<ArrayList<Integer>> arys...
Main.java:51: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u598699652|p03426|0
u598699652|p03426|0
codenet
Compile Error
1,065
v2_s226709529
s226709529
s226709529
p03426
p03426
u598699652
u598699652
1,520,221,418
2018-03-05T03:43:38
Main.java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); //hwd int h = sc.nextInt(); int w = sc.nextInt(); int d = sc.nextInt(); //2jigen hairetu ArrayList<ArrayList<Integer>> arys;...
Main.java:50: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u598699652|p03426|0
u598699652|p03426|0
codenet
Compile Error
1,065
v2_s671064940
s671064940
s671064940
p03426
p03426
u806159048
u806159048
1,520,388,124
2018-03-07T02:02:04
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); int d = sc.nextInt(); int n,m; int ans = 0; int masu[][] = new int[h][w] for(n=0;n<h;n++){ for(m=0;m<w;m++){ ...
Main.java:10: error: ';' expected int masu[][] = new int[h][w] ^ Main.java:34: error: ';' expected ans += Math.abs(num[p+d*(t+1)][0]-num[p+d*t][0]) ^ Main.java:35: error: ';' expected ans += M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u806159048|p03426|0
u806159048|p03426|0
codenet
Compile Error
1,071
v2_s273109215
s273109215
s273109215
p03427
p03427
u044979314
u044979314
1,592,454,438
2020-06-18T04:27:18
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = System.nextLine(); int newSum = 0; int orgSum = 0; for( char ch : n.toCharArray()) { orgSum += ch -'0'; } newSum...
Main.java:5: error: cannot find symbol String n = System.nextLine(); ^ symbol: method nextLine() location: class System Main.java:11: error: array required, but String found newSum = (n[0] - '0' )- 1; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044979314|p03427|0
u044979314|p03427|0
codenet
Compile Error
487
v2_s597178792
s597178792
s597178792
p03427
p03427
u044979314
u044979314
1,592,454,481
2020-06-18T04:28:01
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = System.nextLine(); int newSum = 0; int orgSum = 0; for( char ch : n.toCharArray()) { orgSum += ch -'0'; } newSum...
Main.java:5: error: cannot find symbol String n = System.nextLine(); ^ symbol: method nextLine() location: class System 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u044979314|p03427|0
u044979314|p03427|0
codenet
Compile Error
494
v2_s846134279
s846134279
s846134279
p03427
p03427
u272319314
u272319314
1,525,626,685
2018-05-06T17:11:25
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); String out = ""; if(s.length == 1) { System.out.println(s); } else { if(s.charAt(0) != '1') out += St...
Main.java:9: error: cannot find symbol if(s.length == 1) { ^ symbol: variable length location: variable s of type String 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u272319314|p03427|0
u272319314|p03427|0
codenet
Compile Error
650
v2_s108931224
s108931224
s108931224
p03427
p03427
u437622890
u437622890
1,549,852,494
2019-02-11T02:34:54
Main.java
#include <iostream> #include <vector> #include <string> #include <stack> #include <queue> #include <set> #include <map> #include <unordered_map> #include <algorithm> #include <functional> #include <numeric> #include <cstring> #include <cstdio> #include <cmath> #include <cstdlib> #include <cassert> #define bogo_sort s...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:2: error: illegal character: '#' #include <vector> ^ Main.java:3: error: illegal character: '#' #include <string> ^ Main.java:4: error: illegal character: '#' #include <stack> ^ Main.java:5: error: illegal character: '#' #include <queue> ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u437622890|p03427|0
u437622890|p03427|0
codenet
Compile Error
2,982
v2_s652528162
s652528162
s652528162
p03427
p03427
u507706381
u507706381
1,573,426,984
2019-11-10T23:03:04
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); int lower = 0; int same = 0; for (int i = 0; i < N.length(); i++) { int d = N.charAt(i) - '0'; lower += Math.max(lower+9, same + Math.max(0, d-1)...
Main.java:14: error: package Systen does not exist Systen.out.println(Math.max(lower, same)); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03427|0
u507706381|p03427|0
codenet
Compile Error
398
v2_s144331846
s144331846
s144331846
p03427
p03427
u507706381
u507706381
1,573,428,831
2019-11-10T23:33:51
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); int same = 0; for (int i = 0; i < N.length(); i++) { int d = N.charAt(i) - '0'; smae += d; } int lower = (N.charAt(i) - '0') - 1; lower +...
Main.java:10: error: cannot find symbol smae += d; ^ symbol: variable smae location: class Main Main.java:12: error: cannot find symbol int lower = (N.charAt(i) - '0') - 1; ^ symbol: variable i location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03427|0
u507706381|p03427|0
codenet
Compile Error
392
v2_s822912877
s822912877
s822912877
p03427
p03427
u507706381
u507706381
1,573,428,854
2019-11-10T23:34:14
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.next(); int same = 0; for (int i = 0; i < N.length(); i++) { int d = N.charAt(i) - '0'; smae += d; } int lower = (N.charAt(0) - '0') - 1; lower +...
Main.java:10: error: cannot find symbol smae += d; ^ symbol: variable smae location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u507706381|p03427|0
u507706381|p03427|0
codenet
Compile Error
392
v2_s727172841
s727172841
s727172841
p03427
p03427
u863370423
u863370423
1,521,920,779
2018-03-24T19:46:19
Main.java
#include <iostream> # using namespace std; int main() { long long a; cin >> a; if (a < 10) { cout << a << endl; } else { int flag = 0; if ((a + 1) % 10 == 0) { flag = 1; } int y; int count = 0; while (a > 9) { a /= 10; ...
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:3: error: illegal character: '#' # ^ Main.java:8: error: not a statement long long a; ^ Main.java:9: error: not a statement cin >> a; ^ Main.java:11: error: not a statement cout << a << endl; ^ Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u863370423|p03427|0
u863370423|p03427|0
codenet
Compile Error
491
v2_s089720480
s089720480
s089720480
p03429
p03429
u702582248
u702582248
1,519,874,945
2018-03-01T03:29:05
Main.java
import java.util.*; public class Main { static char[][] c; public static void main(String[] args) throws InterruptedException { Scanner scan = new Scanner(System.in); int m = scan.nextInt(); int n = scan.nextInt(); int a = scan.nextInt(); int b = scan.nextInt(); ...
Main.java:31: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702582248|p03429|0
u702582248|p03429|0
codenet
Compile Error
897
v2_s538259282
s538259282
s538259282
p03430
p03430
u485601469
u485601469
1,530,663,283
2018-07-04T00:14:43
agc021_d.java
import fastio.InputReader; import fastio.OutputWriter; public class agc021_d { public void solve(int testNumber, InputReader in, OutputWriter out) { String s = in.next(); int n = s.length(); int k = in.nextInt(); int[][][] dp = new int[n][n][k + 1]; for (int i = 0; i ...
agc021_d.java:3: error: package fastio does not exist import fastio.InputReader; ^ agc021_d.java:4: error: package fastio does not exist import fastio.OutputWriter; ^ agc021_d.java:7: error: cannot find symbol public void solve(int testNumber, InputReader in, OutputWriter out) { ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u485601469|p03430|0
u485601469|p03430|0
codenet
Compile Error
1,165
v2_s898628505
s898628505
s898628505
p03433
p03433
u019319164
u019319164
1,588,723,366
2020-05-06T00:02:46
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); if((N-A)%500 == 0){ System.out.pritnln("Yes");} else{System.out.println("No");} } }
Main.java:8: error: cannot find symbol System.out.pritnln("Yes");} ^ symbol: method pritnln(String) location: variable out of type PrintStream 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u019319164|p03433|0
u019319164|p03433|0
codenet
Compile Error
279
v2_s958007555
s958007555
s958007555
p03433
p03433
u062736195
u062736195
1,581,962,754
2020-02-17T18:05:54
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.scanner.nextInt(); int A = sc.scanner.nextInt(); int x = N % 500; if( x <= A) System.out.println("Yes"); else System.out.println("No"); } }
Main.java:5: error: cannot find symbol int N = sc.scanner.nextInt(); ^ symbol: variable scanner location: variable sc of type Scanner Main.java:6: error: cannot find symbol int A = sc.scanner.nextInt(); ^ symbol: variable scanner location: variable sc of type Scanner 2 er...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03433|0
u062736195|p03433|0
codenet
Compile Error
297
v2_s809691665
s809691665
s809691665
p03433
p03433
u091972507
u091972507
1,600,291,357
2020-09-16T21:22:37
Main.java
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(), a = scanner.nextInt(); int m = n % 500; if (m <= a) { System.out.println("Yes"); } else { System.out.println("No"); ...
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 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u091972507|p03433|0
u091972507|p03433|0
codenet
Compile Error
331
v2_s134197598
s134197598
s134197598
p03433
p03433
u096628314
u096628314
1,519,168,712
2018-02-20T23:18:32
Main.java
Ugyguguuh
Main.java:1: error: reached end of file while parsing Ugyguguuh ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u096628314|p03433|0
u096628314|p03433|0
codenet
Compile Error
9
v2_s114569483
s114569483
s114569483
p03433
p03433
u193025598
u193025598
1,566,102,567
2019-08-18T04:29:27
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 flag = 0; if(a%500=<b){ flag = 1; } // 出力 if(flag==0){ System.out.println("No"); }els...
Main.java:10: error: > or ',' expected if(a%500=<b){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u193025598|p03433|0
u193025598|p03433|0
codenet
Compile Error
415
v2_s704669223
s704669223
s704669223
p03433
p03433
u222822036
u222822036
1,598,566,643
2020-08-27T22:17:23
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:73: error: ';' expected int A - nextInt(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u222822036|p03433|0
u222822036|p03433|0
codenet
Compile Error
2,969
v2_s813999660
s813999660
s813999660
p03433
p03433
u243084871
u243084871
1,565,571,208
2019-08-12T00:53:28
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 A = sc.nextInt(); if ((N / 500) <= A || (N / 500)){ System.out.println("Yes"); } else { System.out.println("No"); } } }
Main.java:13: error: bad operand types for binary operator '||' if ((N / 500) <= A || (N / 500)){ ^ first type: boolean second type: int 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u243084871|p03433|0
u243084871|p03433|0
codenet
Compile Error
316
v2_s995260489
s995260489
s995260489
p03433
p03433
u249053326
u249053326
1,559,926,468
2019-06-07T16:54:28
Main.java
mport java.util.Scanner; public class Main { private static final String YES = "Yes"; private static final String NO = "No"; public static void main(String[] args) { int[] scanResult = scan(); if (calc(scanResult)) { System.out.println(YES); } else { System.out.println(NO); } } private static ...
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
u249053326|p03433|0
u249053326|p03433|0
codenet
Compile Error
606
v2_s877939671
s877939671
s877939671
p03433
p03433
u274962354
u274962354
1,547,592,184
2019-01-15T22:43:04
Main.java
iimport java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); if(a-b<=0) { System.out.println("Yes"); } else { if((a-b)%500==0) { System.out.println("Yes"); } else { System.out.printl...
Main.java:1: error: class, interface, enum, or record expected iimport java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u274962354|p03433|0
u274962354|p03433|0
codenet
Compile Error
368
v2_s121937873
s121937873
s121937873
p03433
p03433
u364124935
u364124935
1,557,638,780
2019-05-12T05:26:20
Main.java
#include <bits/stdc++.h> using namespace std; int main(){ int N, A; cin >> N >> A; int div = N/ 500; if(N - div*500 <= A){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }
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 cin >> N >> A; ^ Main.java:10: error: not a statement cout << "Yes" << endl; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u364124935|p03433|1
u364124935|p03433|1
codenet
Compile Error
235
v2_s229891887
s229891887
s229891887
p03433
p03433
u378248278
u378248278
1,519,462,115
2018-02-24T08:48:35
Main.java
import java.util.* class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int amount = sc.nextInt(); int num = sc.nextInt(); System.out.println((amount % 500) <= num); } }
Main.java:1: error: ';' expected import java.util.* ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u378248278|p03433|0
u378248278|p03433|0
codenet
Compile Error
245
v2_s219535231
s219535231
s219535231
p03433
p03433
u381661312
u381661312
1,519,067,017
2018-02-19T19:03:37
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(); if(a%500 == 0) { System.out.println("Yes"); } if(a%500-b <= 0) { System.out.println("Yes"); } if(a%500-b > 0) { System.out.println("No"); } } }
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
u381661312|p03433|0
u381661312|p03433|0
codenet
Compile Error
320
v2_s658102585
s658102585
s658102585
p03433
p03433
u401605763
u401605763
1,519,015,659
2018-02-19T04:47:39
Main.java
public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int N = in.nextInt(); int A = in.nextInt(); if(N%500>A) { System.out.println("No"); } else { System.out.println("Yes"); } in.close(); } }
Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner in = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u401605763|p03433|0
u401605763|p03433|0
codenet
Compile Error
259
v2_s387246282
s387246282
s387246282
p03433
p03433
u588688339
u588688339
1,574,388,975
2019-11-22T02:16:15
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N, A, b; N = sc.nextInt(); A = sc.nextInt(); b = N % A; if (b <= A){ System.out.println("Yes") }else{ System.out.println("No") } } }
Main.java:13: error: ';' expected System.out.println("Yes") ^ Main.java:15: error: ';' expected System.out.println("No") ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u588688339|p03433|0
u588688339|p03433|0
codenet
Compile Error
320
v2_s054054344
s054054344
s054054344
p03433
p03433
u626353997
u626353997
1,557,684,288
2019-05-12T18:04:48
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scannersc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); while(N > 500){ N -= 500; } if(N <= A){ System.out.println("Yes"); }else{ ...
Main.java:5: error: cannot find symbol Scannersc = new Scanner(System.in); ^ symbol: variable Scannersc location: class Main Main.java:6: error: cannot find symbol int N = sc.nextInt(); ^ symbol: variable sc location: class Main Main.java:7: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u626353997|p03433|0
u626353997|p03433|0
codenet
Compile Error
367
v2_s236597644
s236597644
s236597644
p03433
p03433
u633463117
u633463117
1,531,170,418
2018-07-09T21:06:58
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.nextLine(); int a = sc.nextInt(); for(int i = 0;i<20;i++){ n -= 500; if(n <0){ break; n+= 500; } } if(n>a){ ...
Main.java:19: error: unclosed string literal System.out.println("Yes); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u633463117|p03433|0
u633463117|p03433|0
codenet
Compile Error
400
v2_s144055410
s144055410
s144055410
p03433
p03433
u640800420
u640800420
1,520,224,666
2018-03-05T04:37:46
Main.java
import java.io.*; public class Main{ public static void main(String[] args) { try { String line; int n, a; BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in)); line = reader.readLine(); n = Integer.parseInt(line); line = reader.readLine(); a = In...
Main.java:8: error: cannot find symbol BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in)); ^ symbol: class Bufferedreader location: class Main Main.java:8: error: cannot find symbol BufferedReader reader = new Bufferedreader(new InputStreamre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u640800420|p03433|0
u640800420|p03433|0
codenet
Compile Error
499
v2_s978791072
s978791072
s978791072
p03433
p03433
u640800420
u640800420
1,520,224,786
2018-03-05T04:39:46
Main.java
import java.io.*; public class Main{ public static void main(String[] args) { try { String line; int n, a; BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in)); line = reader.readLine(); n = Integer.parseInt(line); line = reader.readLine(); a = In...
Main.java:8: error: cannot find symbol BufferedReader reader = new Bufferedreader(new InputStreamreader(System.in)); ^ symbol: class Bufferedreader location: class Main Main.java:8: error: cannot find symbol BufferedReader reader = new Bufferedreader(new InputStreamre...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u640800420|p03433|0
u640800420|p03433|0
codenet
Compile Error
499
v2_s590926938
s590926938
s590926938
p03433
p03433
u648824183
u648824183
1,519,455,076
2018-02-24T06:51:16
CodeForces.java
public class CodeForces { public static void main(String[] args){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int a = s.nextInt(); int res = n%500; if(res<=a) System.out.println("Yes"); else System.out.println("No"); s.close(); } }
CodeForces.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class CodeForces CodeForces.java:5: error: cannot find symbol Scanner s = new Scanner(System.in); ^ symbol: class Scanner location: class CodeForces 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u648824183|p03433|0
u648824183|p03433|0
codenet
Compile Error
298
v2_s034333843
s034333843
s034333843
p03433
p03433
u662852612
u662852612
1,559,667,035
2019-06-04T16:50:35
Main.java
#include <stdio.h> #include <iostream> using namespace std; int main() { int n, a, cnt; cin >> n >> a; if (n < 500) { cnt = n; } else { cnt += n % 500; } cout << cnt << endl; if (cnt <= a) { cout << "Yes" << endl; } else { cout << ...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:8: error: not a statement cin >> n >> a; ^ Main.java:17: error: not a s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u662852612|p03433|1
u662852612|p03433|1
codenet
Compile Error
342
v2_s567721646
s567721646
s567721646
p03433
p03433
u662852612
u662852612
1,559,667,079
2019-06-04T16:51:19
Main.java
#include<stdio.h> #include<iostream> using namespace std; int main() { int n, a, cnt; cin >> n >> a; if (n < 500) { cnt = n; } else { cnt += n % 500; } if (cnt <= a) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
Main.java:1: error: illegal character: '#' #include<stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include<stdio.h> ^ Main.java:2: error: illegal character: '#' #include<iostream> ^ Main.java:8: error: not a statement cin >> n >> a; ^ Main.java:19: error: not a state...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u662852612|p03433|1
u662852612|p03433|1
codenet
Compile Error
315
v2_s724930347
s724930347
s724930347
p03433
p03433
u662852612
u662852612
1,559,667,118
2019-06-04T16:51:58
Main.java
#include <stdio.h> #include <iostream> using namespace std; int main() { int n, a, cnt; cin >> n >> a; if (n < 500) { cnt = n; } else { cnt += n % 500; } if (cnt <= a) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:2: error: illegal character: '#' #include <iostream> ^ Main.java:8: error: not a statement cin >> n >> a; ^ Main.java:19: error: not a s...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u662852612|p03433|1
u662852612|p03433|1
codenet
Compile Error
317
v2_s806676883
s806676883
s806676883
p03433
p03433
u702582248
u702582248
1,520,127,916
2018-03-04T01:45:16
Main.java
n = int(input()) a = int(input()) print('Yes' if n % 500 <= a else 'No')
Main.java:1: error: class, interface, enum, or record expected n = int(input()) ^ Main.java:3: error: unclosed character literal print('Yes' if n % 500 <= a else 'No') ^ Main.java:3: error: unclosed character literal print('Yes' if n % 500 <= a else 'No') ^ Main.java:3: error: unclosed character literal...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u702582248|p03433|0
u702582248|p03433|0
codenet
Compile Error
72
v2_s745467913
s745467913
s745467913
p03433
p03433
u738265085
u738265085
1,581,396,338
2020-02-11T04:45:38
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); } Arrays.sort(a,Comparator.reverseOrder()); int Alice = 0; int Bob = 0; f...
Main.java:11: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(a,Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int upper bound...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p03433|0
u738265085|p03433|0
codenet
Compile Error
466
v2_s753559009
s753559009
s753559009
p03433
p03433
u738265085
u738265085
1,581,396,534
2020-02-11T04:48:54
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Interger a[] = new Interger[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); } Array.sort(a,Compa...
Main.java:9: error: cannot find symbol Interger a[] = new Interger[N]; ^ symbol: class Interger location: class Main Main.java:9: error: cannot find symbol Interger a[] = new Interger[N]; ^ symbol: class Interger location: class Main Main.java:13: error: cannot find symbol...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p03433|0
u738265085|p03433|0
codenet
Compile Error
535
v2_s619490579
s619490579
s619490579
p03433
p03433
u751338626
u751338626
1,597,069,261
2020-08-10T14:21:01
Main.java
public static void main(String args[]){ int N; int A; if (N % 500 =< A) { System.out.println("Yes"); } else { System.out.println("No"); } }
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) Main.java:4: error: > or ',' expected if (N % 500 =< A) ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u751338626|p03433|0
u751338626|p03433|0
codenet
Compile Error
157
v2_s012990158
s012990158
s012990158
p03433
p03433
u861406994
u861406994
1,591,809,599
2020-06-10T17:19:59
Main.java
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); int gohyakuen = N / 500 - 1; int haraeru = N - gohyakuen * 500 - A; if (haraeru < 0) { Sys...
Main.java:18: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861406994|p03433|0
u861406994|p03433|0
codenet
Compile Error
414
v2_s976289247
s976289247
s976289247
p03433
p03433
u862282448
u862282448
1,519,006,032
2018-02-19T02:07:12
Main.java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int A = sc.nextInt(); if (N % 500 == 0) { System.out.println("yes"); } else if (N % 500 <= A) { System.out.println("yes"); } else { System.out.println("No"); } } }
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
u862282448|p03433|0
u862282448|p03433|0
codenet
Compile Error
308
v2_s587408656
s587408656
s587408656
p03433
p03433
u874525170
u874525170
1,519,043,286
2018-02-19T12:28:06
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(); // 出力 If(a%500<b) System.out.println( "yes"); else System.out.println( "no"); } }
Main.java:12: error: ';' expected If(a%500<b) ^ Main.java:14: error: 'else' without 'if' else ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u874525170|p03433|0
u874525170|p03433|0
codenet
Compile Error
347
v2_s319029295
s319029295
s319029295
p03433
p03433
u910195283
u910195283
1,558,721,125
2019-05-24T18:05:25
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 d =0; int flag =0; for(int i=0;i<b+1;i++) { d=a-i; if(d%500==0){ flag=1; } } if(flag=...
Main.java:27: error: class, interface, enum, or record expected }import java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u910195283|p03433|0
u910195283|p03433|0
codenet
Compile Error
824
v2_s768955448
s768955448
s768955448
p03433
p03433
u992675902
u992675902
1,561,242,414
2019-06-22T22:26:54
Main.java
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual soluti...
Main.java:68: error: class, interface, enum, or record expected import java.io.OutputStream; ^ Main.java:69: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:70: error: class, interface, enum, or record expected import java.io.InputStream; ^ Main.java:71: error: class, interface...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u992675902|p03433|0
u992675902|p03433|0
codenet
Compile Error
3,696
v2_s475858256
s475858256
s475858256
p03434
p03434
u024824950
u024824950
1,556,477,967
2019-04-28T18: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(); Integer a[] = new int[n]; for(int i=0; i<n; i++){ a[i] = sc.nextInt(); } Arrays.sort(a, Comparator.reverseOrder()); ...
Main.java:6: error: incompatible types: int[] cannot be converted to Integer[] Integer a[] = new int[n]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u024824950|p03434|1
u024824950|p03434|1
codenet
Compile Error
559
v2_s665520398
s665520398
s665520398
p03434
p03434
u062736195
u062736195
1,581,784,231
2020-02-15T16:30:31
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); int[] cardList = new int[number]; int scoreA = 0; int scoreB = 0; for(int i =0; i < number; i++){ cardList[i] = sc.nextInt(); //カード情報の格納 ...
Main.java:16: error: not a statement for(int j = 1; j < number; j){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03434|0
u062736195|p03434|0
codenet
Compile Error
831
v2_s157739921
s157739921
s157739921
p03434
p03434
u062736195
u062736195
1,581,784,252
2020-02-15T16:30:52
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int number = sc.nextInt(); int[] cardList = new int[number]; int scoreA = 0; int scoreB = 0; for(int i =0; i < number; i++){ cardList[i] = sc.nextInt(); //カード情報の格納 ...
Main.java:14: error: cannot find symbol int maxCard = card[0]; ^ symbol: variable card location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u062736195|p03434|0
u062736195|p03434|0
codenet
Compile Error
833
v2_s973883435
s973883435
s973883435
p03434
p03434
u074401989
u074401989
1,554,611,394
2019-04-07T04:29:54
Main.java
import java.util.*; public class Main{ public static main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] a; a = new int[num]; for(int i = 0;i < num;i ++){ a[i] = ac.nextInt; } int[] soat; soat = new int[num]; for(int j = 0;j < num;j ++){ ...
Main.java:4: error: invalid method declaration; return type required public static main(String[] args){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074401989|p03434|0
u074401989|p03434|0
codenet
Compile Error
598
v2_s424712476
s424712476
s424712476
p03434
p03434
u074401989
u074401989
1,554,611,484
2019-04-07T04:31:24
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] a; a = new int[num]; for(int i = 0;i < num;i ++){ a[i] = ac.nextInt; } int[] soat; soat = new int[num]; for(int j = 0;j < num;j +...
Main.java:10: error: cannot find symbol a[i] = ac.nextInt; ^ symbol: variable ac location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074401989|p03434|0
u074401989|p03434|0
codenet
Compile Error
603
v2_s887408369
s887408369
s887408369
p03434
p03434
u074401989
u074401989
1,554,611,512
2019-04-07T04:31:52
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); int[] a; a = new int[num]; for(int i = 0;i < num;i ++){ a[i] = sc.nextInt; } int[] soat; soat = new int[num]; for(int j = 0;j < num;j +...
Main.java:10: error: cannot find symbol a[i] = sc.nextInt; ^ symbol: variable nextInt location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u074401989|p03434|0
u074401989|p03434|0
codenet
Compile Error
603
v2_s187557169
s187557169
s187557169
p03434
p03434
u097444693
u097444693
1,525,438,950
2018-05-04T13:02:30
Main.java
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int number = Integer.parseInt(sc.next()); List<Integer> list = new ArrayList<>(); for(int i = 0; i < number;...
Main.java:22: error: incompatible types: unexpected return value return sum; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u097444693|p03434|0
u097444693|p03434|0
codenet
Compile Error
647
v2_s886916253
s886916253
s886916253
p03434
p03434
u109843456
u109843456
1,586,797,361
2020-04-13T17:02:41
Main.java
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0;i<N;i++){ a[i] = sc.nextint(); } Arrays.sort(a,Comparator.reverseOrder()); int Alice = 0; int Bob = 0; for(int i=0; i<N; ...
Main.java:9: error: cannot find symbol a[i] = sc.nextint(); ^ symbol: method nextint() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u109843456|p03434|0
u109843456|p03434|0
codenet
Compile Error
433
v2_s795453581
s795453581
s795453581
p03434
p03434
u124094680
u124094680
1,519,152,684
2018-02-20T18:51:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = Integer.parseInt(s.next()); int[] cards = new int[n]; for (int i=0; i<n; i++) { cards[i] = Integer.parseInt(s.next()); } Arrays.sort(cards); int[] total = {0, 0} for (int...
Main.java:16: error: ';' expected int[] total = {0, 0} ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124094680|p03434|0
u124094680|p03434|0
codenet
Compile Error
397
v2_s920197045
s920197045
s920197045
p03434
p03434
u124094680
u124094680
1,519,153,104
2018-02-20T18:58:24
Main.java
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = Integer.parseInt(s.next()); int[] cards = new int[n]; for (int i=0; i<n; i++) { cards[i] = Integer.parseInt(s.next()); } Arrays.sort(cards); int[] total = {0, 0}; for (in...
Main.java:21: error: cannot find symbol System.out.println(a[0]-a[1]); ^ symbol: variable a location: class Main Main.java:21: error: cannot find symbol System.out.println(a[0]-a[1]); ^ symbol: variable a location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u124094680|p03434|0
u124094680|p03434|0
codenet
Compile Error
398
v2_s794196258
s794196258
s794196258
p03434
p03434
u157348006
u157348006
1,600,209,369
2020-09-15T22:36:09
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = 4; List<Integer> split = new ArrayList<>(); for (int i = 0; i < n; i++) { int buf = sc.nextInt(); split.add(buf); } ...
Main.java:9: 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
u157348006|p03434|0
u157348006|p03434|0
codenet
Compile Error
1,179
v2_s409863211
s409863211
s409863211
p03434
p03434
u182146192
u182146192
1,588,886,775
2020-05-07T21:26:15
Main.java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int n = sc.nextInt(); List<Integer> list = new ArrayList<>(); for (int i = 0; i <= n; i++) { list.add(sc.nextInt()); } Collections.sort(list); ...
Main.java:22: error: ')' or ',' expected System.out.println((a-b); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u182146192|p03434|0
u182146192|p03434|0
codenet
Compile Error
587
v2_s293669190
s293669190
s293669190
p03434
p03434
u190395363
u190395363
1,596,262,520
2020-08-01T06:15:20
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for (int i=0; i<N; i++) { a[i] = sc.nextInt(); } Arrays.sort(a, Comparator.reverseOrder()); ...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u190395363|p03434|0
u190395363|p03434|0
codenet
Compile Error
555
v2_s378486777
s378486777
s378486777
p03434
p03434
u190395363
u190395363
1,596,262,550
2020-08-01T06:15:50
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for (int i=0; i<N; i++) { a[i] = sc.nextInt(); } Arrays.sort(a, Comparator.reverseOrder()); ...
Main.java:22: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u190395363|p03434|0
u190395363|p03434|0
codenet
Compile Error
555
v2_s948401863
s948401863
s948401863
p03434
p03434
u356726575
u356726575
1,551,968,046
2019-03-07T14:14:06
Hello.java
public class Hello{ public static void Main(){ int N = int.Parse(System.Console.ReadLine()); string[] str = System.Console.ReadLine().Split(' '); int[] a = new int[N]; for(int i = 0; i < N; i++){ a[i] = int.Parse(str[i]); } System.Array.Sort(a); ...
Hello.java:4: error: class expected int N = int.Parse(System.Console.ReadLine()); ^ Hello.java:4: error: ';' expected int N = int.Parse(System.Console.ReadLine()); ^ Hello.java:4: error: ';' expected int N = int.Parse(System.Console.ReadLine()); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u356726575|p03434|0
u356726575|p03434|0
codenet
Compile Error
588
v2_s446398120
s446398120
s446398120
p03434
p03434
u440899334
u440899334
1,601,098,318
2020-09-26T05:31:58
Main.java
// inputに入力データ全体が入る function Main(input) { // 1行目がinput[0], 2行目がinput[1], …に入る input = input.split("\n"); tmp = input[1].split(" "); //配列(ソートで比較する用の宣言) var cards = []; //文字列から10進数に変換するときはparseIntを使います var totalNum = parseInt(input[0], 10); for (i = 0; i <= totalNum - 1; i++) { cards[i] = parseInt(tmp[i]...
Main.java:17: error: not a statement if (cards[j] > cards[j 1]) { ^ Main.java:2: error: unnamed classes are a preview feature and are disabled by default. function Main(input) { ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: <identifier> expected function M...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u440899334|p03434|0
u440899334|p03434|0
codenet
Compile Error
920
v2_s028064964
s028064964
s028064964
p03434
p03434
u555577504
u555577504
1,519,157,553
2018-02-20T20:12:33
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N =scan.nextInt(); int[] a = IntStream.range(0,N).map(i->scan.nextInt()).toArray(); Arrays.sort(a); int ans =0; for(int i...
Main.java:8: error: cannot find symbol int[] a = IntStream.range(0,N).map(i->scan.nextInt()).toArray(); ^ symbol: variable IntStream location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u555577504|p03434|0
u555577504|p03434|0
codenet
Compile Error
443
v2_s719120167
s719120167
s719120167
p03434
p03434
u571582644
u571582644
1,598,124,305
2020-08-22T19:25:05
Main.java
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] a = new int[n]; int ans = 0; int sumAlice = 0; int sumBob = 0; for (int cnt = 0; cnt < n; cnt++) { a[cnt]...
Main.java:16: error: cannot find symbol Arrays.sort(a,Comparator.reverseOder()); ^ symbol: variable Comparator location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u571582644|p03434|0
u571582644|p03434|0
codenet
Compile Error
638
v2_s339216539
s339216539
s339216539
p03434
p03434
u587842109
u587842109
1,543,896,184
2018-12-04T04:03: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[] numlist = new Integer[N]; for(int i=0; i<N;i++){ numlist[i] = sc.nextInt(); } Arrays.sort(numlist, Collections.reverseOrder...
Main.java:9: error: incompatible types: Integer[] cannot be converted to int[] int[] numlist = new Integer[N]; ^ Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(numlist, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(T#1[],Co...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
594
v2_s978992358
s978992358
s978992358
p03434
p03434
u587842109
u587842109
1,543,896,327
2018-12-04T04:05: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[] numlist = Integer[N]; for(int i=0; i<N;i++){ numlist[i] = sc.nextInt(); } Arrays.sort(numlist, Collections.reverseOrder());...
Main.java:9: error: cannot find symbol int[] numlist = Integer[N]; ^ symbol: variable Integer location: class Main Main.java:15: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(numlist, Collections.reverseOrder()); ^ method Arrays.<T#1>sort(...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
595
v2_s510267144
s510267144
s510267144
p03434
p03434
u587842109
u587842109
1,543,896,489
2018-12-04T04:08:09
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[] numlist = new int[N]; for(int i=0; i<N;i++){ numlist[i] = sc.nextInt(); } Arrays.sort(numlist, Comparator.reverseOrder()); ...
Main.java:15: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(numlist, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int uppe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
594
v2_s097320403
s097320403
s097320403
p03434
p03434
u587842109
u587842109
1,543,898,244
2018-12-04T04:37:24
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[] numlist = new int[N]; for(int i=0; i<N;i++){ numlist[i] = sc.nextInt(); } Arrays.sort(numlist, Comparator.naturalOrder());...
Main.java:15: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(numlist, Comparator.naturalOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int uppe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
615
v2_s980104472
s980104472
s980104472
p03434
p03434
u587842109
u587842109
1,543,898,287
2018-12-04T04:38:07
Main.java
import java.util.*; import java.util.Comparator; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] numlist = new int[N]; for(int i=0; i<N;i++){ numlist[i] = sc.nextInt(); } Arrays.sort(numlist...
Main.java:16: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(numlist, Comparator.naturalOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int uppe...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
644
v2_s102451593
s102451593
s102451593
p03434
p03434
u587842109
u587842109
1,543,898,558
2018-12-04T04:42:38
Main.java
import java.util.*; import java.util.Comparator; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); List<Integer> list = new ArrayList<Integer>(); for(int i=0; i<N;i++){ list.add(sc.nextInt()); } li...
Main.java:23: error: array required, but List<Integer> found alice_sum += list[i]; ^ Main.java:27: error: array required, but List<Integer> found bob_sum += list[i]; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u587842109|p03434|0
u587842109|p03434|0
codenet
Compile Error
644
v2_s547571248
s547571248
s547571248
p03434
p03434
u670073063
u670073063
1,600,226,892
2020-09-16T03:28:12
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[100]; for(int i = 0 ; i < n ; i ++){ array[i] = sc.nextInt(); } Arrays.sort(array, Collections.reverseO...
Main.java:11: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(array, 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 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u670073063|p03434|0
u670073063|p03434|0
codenet
Compile Error
578
v2_s164026683
s164026683
s164026683
p03434
p03434
u670073063
u670073063
1,600,226,923
2020-09-16T03:28:43
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[100]; for(int i = 0 ; i < n ; i ++){ array[i] = sc.nextInt(); } Arrays.sort(array, Collections.reverseO...
Main.java:11: error: no suitable method found for sort(int[],Comparator<Object>) Arrays.sort(array, 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 ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u670073063|p03434|0
u670073063|p03434|0
codenet
Compile Error
579
v2_s690986240
s690986240
s690986240
p03434
p03434
u670073063
u670073063
1,600,227,238
2020-09-16T03:33:58
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int[] array = new int[100]; for(int i = 0 ; i < n ; i ++){ array[i] = sc.nextInt(); } Arrays.sort(array, Comparator.reverseOr...
Main.java:11: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(array, Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u670073063|p03434|0
u670073063|p03434|0
codenet
Compile Error
578
v2_s980608130
s980608130
s980608130
p03434
p03434
u717372388
u717372388
1,579,204,086
2020-01-16T19:48:06
Main.java
class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); } Array.sort(a,Comparater.reverseOder()); int Alice = 0; int Bob = 0; ...
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 Main.java:11: error: cannot find ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717372388|p03434|0
u717372388|p03434|0
codenet
Compile Error
478
v2_s384736431
s384736431
s384736431
p03434
p03434
u717372388
u717372388
1,579,204,204
2020-01-16T19:50:04
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); } Array.sort(a,Comparater.reverseOder()); int Alice = 0; ...
Main.java:13: error: cannot find symbol Array.sort(a,Comparater.reverseOder()); ^ symbol: variable Array location: class Main Main.java:13: error: cannot find symbol Array.sort(a,Comparater.reverseOder()); ^ symbol: variable Comparater location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717372388|p03434|0
u717372388|p03434|0
codenet
Compile Error
499
v2_s131700198
s131700198
s131700198
p03434
p03434
u717372388
u717372388
1,579,204,259
2020-01-16T19:50:59
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); } Arrays.sort(a,Comparater.reverseOder()); int Alice = 0; ...
Main.java:13: error: cannot find symbol Arrays.sort(a,Comparater.reverseOder()); ^ symbol: variable Comparater location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717372388|p03434|0
u717372388|p03434|0
codenet
Compile Error
501
v2_s250276173
s250276173
s250276173
p03434
p03434
u717372388
u717372388
1,579,204,297
2020-01-16T19:51:37
Main.java
mport java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); } Arrays.sort(a,Comparator.reverseOder()); int Alice = 0; ...
Main.java:1: error: class, interface, enum, or record expected mport java.util.*; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717372388|p03434|0
u717372388|p03434|0
codenet
Compile Error
500
v2_s343324857
s343324857
s343324857
p03434
p03434
u717372388
u717372388
1,579,204,335
2020-01-16T19:52:15
Main.java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); Integer a[] = new Integer[N]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); } Arrays.sort(a,Comparator.reverseOder()); int Alice = 0; ...
Main.java:13: error: cannot find symbol Arrays.sort(a,Comparator.reverseOder()); ^ symbol: method reverseOder() location: interface Comparator 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u717372388|p03434|0
u717372388|p03434|0
codenet
Compile Error
501
v2_s036145500
s036145500
s036145500
p03434
p03434
u738265085
u738265085
1,581,396,231
2020-02-11T04:43:51
Main.java
import java.util.Scanner; import java.util.Array; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); } Array.sort(a,Comparator.reverseOrder()); int Alice...
Main.java:2: error: cannot find symbol import java.util.Array; ^ symbol: class Array location: package java.util Main.java:12: error: cannot find symbol Array.sort(a,Comparator.reverseOrder()); ^ symbol: variable Array location: class Main Main.java:12: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p03434|0
u738265085|p03434|0
codenet
Compile Error
494
v2_s544919046
s544919046
s544919046
p03434
p03434
u738265085
u738265085
1,581,396,280
2020-02-11T04:44:40
Main.java
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); } Array.sort(a,Comparator.reverseOrder()); int Ali...
Main.java:12: error: cannot find symbol Array.sort(a,Comparator.reverseOrder()); ^ symbol: variable Array location: class Main Main.java:12: error: cannot find symbol Array.sort(a,Comparator.reverseOrder()); ^ symbol: variable Comparator location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p03434|0
u738265085|p03434|0
codenet
Compile Error
496
v2_s666573254
s666573254
s666573254
p03434
p03434
u738265085
u738265085
1,581,396,412
2020-02-11T04:46:52
Main.java
import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i=0;i<N;i++){ a[i] = sc.nextInt(); } Arrays.sort(a,Comparator.rev...
Main.java:13: error: no suitable method found for sort(int[],Comparator<T#1>) Arrays.sort(a,Comparator.reverseOrder()); ^ method Arrays.<T#2>sort(T#2[],Comparator<? super T#2>) is not applicable (inference variable T#2 has incompatible bounds equality constraints: int upper bound...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u738265085|p03434|0
u738265085|p03434|0
codenet
Compile Error
526
v2_s932307632
s932307632
s932307632
p03434
p03434
u784448849
u784448849
1,546,054,620
2018-12-29T03:37:00
Main.java
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in);) { new Main().solve(sc); } } void solve(Scanner sc) { int n = sc.nextInt(); int alice = 0; int bob =...
Main.java:16: error: cannot find symbol for (int i = 0; i < max; i++) { ^ symbol: variable max location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u784448849|p03434|0
u784448849|p03434|0
codenet
Compile Error
762
v2_s538956695
s538956695
s538956695
p03434
p03434
u827568390
u827568390
1,522,493,417
2018-03-31T10:50:17
Main.java
public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int a[] = new int[n]; for(int i = 0; i < n; i++) { a[i] = scan.nextInt(); } int work, idx; for(int i = 0; i < n; i++) { idx = i; for(i...
Main.java:5: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:5: 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
u827568390|p03434|0
u827568390|p03434|0
codenet
Compile Error
628
v2_s542189755
s542189755
s542189755
p03434
p03434
u861857310
u861857310
1,524,863,934
2018-04-27T21:18:54
Main.java
import java.io.*; import java.util.Scanner; import java.util.Arrays; import java.util.Comparator; public static void main(String args[]){ Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); Integer a[] = new Integer [n]; int sum = 0; int flag = 1; ...
Main.java:7: 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:24: error: reached end of file while parsing System.out.println(sum); ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u861857310|p03434|0
u861857310|p03434|0
codenet
Compile Error
581
v2_s109057321
s109057321
s109057321
p03434
p03434
u891161439
u891161439
1,521,494,274
2018-03-19T21:17:54
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[N]; for(int i = 0;i < N;i++){ a[i] = sc.nextInt(); } Arrays.sort(a); int sumA = 0; int sumB = 0; for(i = 0;i < N;i = i+2){int sumA += i;} for(i = 1;i < N;i = i+2){...
Main.java:13: error: ';' expected for(i = 0;i < N;i = i+2){int sumA += i;} ^ Main.java:13: error: not a statement for(i = 0;i < N;i = i+2){int sumA += i;} ^ Main.java:14: error: ';' expected for(i = 1;i < N;i = i+2){int sumB += i;} ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u891161439|p03434|0
u891161439|p03434|0
codenet
Compile Error
372