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_s619073589
s619073589
s619073589
p00189
p00189
u814815126
u814815126
1,497,520,147
2017-06-15T09:49:07
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; ?? import static java.lang.Integer.parseInt; ?? /** ??* Convenient Location ??*/ public class Main { ?? ????????static final int MAX_LOC = 10; ?? ????????public static void main(String[] args) throws IOException { ?????????????...
Main.java:4: error: class, interface, enum, or record expected ?? ^ Main.java:6: error: class, interface, enum, or record expected ?? ^ Main.java:11: error: illegal start of type ?? ^ Main.java:13: error: illegal start of type ?? ^ Main.java:15: error: illegal start of expression ????????????????BufferedReader br = new...
compile_error
4
OpenJDK 21.0.12.1
unlabelled
2.1
u814815126|p00189|0
u814815126|p00189|0
codenet
Compile Error
2,632
v2_s466723157
s466723157
s466723157
p00193
p00193
u213849509
u213849509
1,425,456,023
2015-03-04T08:00:23
Main.java
6 6 6 1 1 6 1 3 2 3 5 1 6 5 6 2 1 3 5 3 6 6 6 3 2 3 5 6 1 1 1 1 6 5 6 2 2 3 5 3 0 0
Main.java:1: error: class, interface, enum, or record expected 6 6 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00193|0
u213849509|p00193|0
codenet
Compile Error
85
v2_s482208400
s482208400
s482208400
p00196
p00196
u336000501
u336000501
1,329,562,853
2012-02-18T11:00:53
Main.java
import java.util.*; /* 19:08 ~ &#160;*/ public class Main { static class Team{ String name; int win , lose , other; public Team(String n , int[] result) { this.name = n; this.win = result[0]; this.lose = result[1]; this.other = result[2]; } } static void sort( ArrayList<Team> list , int left , in...
Main.java:20: error: illegal start of expression &#160; &#160; &#160; &#160; if (left <= right) { ^ Main.java:20: error: illegal character: '#' &#160; &#160; &#160; &#160; if (left <= right) { ^ Main.java:20: error: illegal start of expression &#160; &#160; &#160; &#160; if (left <= right) { ^ Main.java:20: err...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u336000501|p00196|0
u336000501|p00196|0
codenet
Compile Error
2,259
v2_s515457108
s515457108
s515457108
p00197
p00197
u606460153
u606460153
1,530,621,644
2018-07-03T12:40:44
Main.java
#include<iostream> #include<climits> #include<math.h> #include<vector> #include<algorithm> #include<cstdio> #include <string> #include <complex> #include <functional> using namespace std; typedef pair<int,int> P; double dat[100][100]; double dp[200][100];//動的計画法 int main(){ int a,b,cnt,tmp; while(cin>>a>>b,a){ ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<climits> ^ Main.java:3: error: illegal character: '#' #include<math.h> ^ Main.java:4: error: illegal character: '#' #include<vector> ^ Main.java:5: error: illegal character: '#' #include<algorithm> ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u606460153|p00197|0
u606460153|p00197|0
codenet
Compile Error
506
v2_s047217984
s047217984
s047217984
p00200
p00200
u213849509
u213849509
1,425,467,461
2015-03-04T11:11:01
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; import lombok.Data; public class Main { public static void main(String[] args) throws IOException { new Main().run(); } private void run() throws IO...
Main.java:9: error: package lombok does not exist import lombok.Data; ^ Main.java:84: error: cannot find symbol @Data ^ symbol: class Data location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00200|0
u213849509|p00200|0
codenet
Compile Error
2,100
v2_s490434652
s490434652
s490434652
p00200
p00200
u452192427
u452192427
1,339,172,098
2012-06-08T16:14:58
Main.java
import java.util.Comparator; import java.util.PriorityQueue; import java.util.Scanner; public class Main{ int num1; int state1; int price1; public TravelingAlone(int num, int state, int price){ num1 = num; state1 = state; price1 = price; } public void changecost(int cost){ num1 = cost; } publi...
Main.java:12: error: invalid method declaration; return type required public TravelingAlone(int num, int state, int price){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452192427|p00200|0
u452192427|p00200|0
codenet
Compile Error
3,789
v2_s958047409
s958047409
s958047409
p00200
p00200
u452192427
u452192427
1,339,172,179
2012-06-08T16:16:19
Main.java
import java.util.Comparator; import java.util.PriorityQueue; import java.util.Scanner; public class Main{ int num1; int state1; int price1; public TravelingAlone(int num, int state, int price){ num1 = num; state1 = state; price1 = price; } public void changecost(int cost){ num1 = cost; } publi...
Main.java:12: error: invalid method declaration; return type required public TravelingAlone(int num, int state, int price){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452192427|p00200|0
u452192427|p00200|0
codenet
Compile Error
3,789
v2_s996032553
s996032553
s996032553
p00200
p00200
u452192427
u452192427
1,339,174,197
2012-06-08T16:49:57
Main.java
import java.util.Comparator; import java.util.PriorityQueue; import java.util.Scanner; public class Main{ int num1; int state1; int price1; public Main(int num, int state, int price){ num1 = num; state1 = state; price1 = price; } public void changecost(int cost){ num1 = cost; } public void cha...
Main.java:42: error: cannot find symbol TravelingAlone[] stationcost = new TravelingAlone[stationNum + 1]; ^ symbol: class TravelingAlone location: class Main Main.java:42: error: cannot find symbol TravelingAlone[] stationcost = new TravelingAlone[stationNum + 1]; ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u452192427|p00200|0
u452192427|p00200|0
codenet
Compile Error
3,779
v2_s525921546
s525921546
s525921546
p00200
p00200
u953546817
u953546817
1,473,938,037
2016-09-15T11:13:57
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.LinkedList; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; line = br.readLine();...
Main.java:39: error: variable p is already defined in method main(String[]) int p = Integer.valueOf(nums[0]); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u953546817|p00200|0
u953546817|p00200|0
codenet
Compile Error
3,236
v2_s718454424
s718454424
s718454424
p00200
p00200
u990888799
u990888799
1,373,261,432
2013-07-08T05:30:32
TravelingAlone.java
import java.util.LinkedList; import java.util.Scanner; public class TravelingAlone { class Main { int from, to, cost, time; public Edge(int from, int to, int cost, int time) { // TODO 自動生成されたコンストラクター・スタブ this.from = from; this.to = to; this.cost = cost; this.time = time; } } int n, m; Linked...
TravelingAlone.java:8: error: invalid method declaration; return type required public Edge(int from, int to, int cost, int time) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u990888799|p00200|1
u990888799|p00200|1
codenet
Compile Error
2,199
v2_s490026003
s490026003
s490026003
p00201
p00201
u021233305
u021233305
1,423,050,068
2015-02-04T11:41:08
Main.java
class Main{ public static void main(String args[]) { Scanner sc = new Scanner(System.in); while (true) { HashMap<String, Integer> data = new HashMap<String, Integer>(); int items = sc.nextInt(); if (items == 0) { break; } for (int i = 0; i < items; i++) { data.put(sc.next(), sc.nextInt()); ...
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:5: error: cannot find symbol ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u021233305|p00201|0
u021233305|p00201|0
codenet
Compile Error
732
v2_s291445153
s291445153
s291445153
p00201
p00201
u213849509
u213849509
1,425,472,336
2015-03-04T12:32:16
Main.java
8 wood 3000 string 800 rice 36 water 0 racket 5000 microphone 9800 onigiri 140 guitar 98000 3 racket 2 wood string onigiri 2 rice water guitar 3 racket microphone onigiri guitar 1 computer 300000 0 computer 0
Main.java:1: error: class, interface, enum, or record expected 8 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00201|0
u213849509|p00201|0
codenet
Compile Error
208
v2_s869927393
s869927393
s869927393
p00201
p00201
u358879127
u358879127
1,305,958,358
2011-05-21T06:12:38
Main.java
import java.util.*; class Main { Scanner sc; HashMap<String, Integer> itemList; HashMap<String, LinkedList<String>> itemComb; long solve(String item, long min) { long sum = 0; if ( !itemList.contains(item) )return min; if (itemComb.get(item).isEmpty()) { return it...
Main.java:12: error: cannot find symbol if ( !itemList.contains(item) )return min; ^ symbol: method contains(String) location: variable itemList of type HashMap<String,Integer> 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358879127|p00201|1
u358879127|p00201|1
codenet
Compile Error
1,633
v2_s743112185
s743112185
s743112185
p00202
p00202
u050004141
u050004141
1,372,408,967
2013-06-28T08:42:47
Main.java
import java.util.Scanner; public static void main(String[] args) { Scanner sc = new Scanner(System.in); //素数のメモ作成 int size = 1000001; boolean[] prime = new boolean[size]; for(int i=2; i<size; i++){ prime[i] = true; } for(int i=2; i*i<size; i++){ if(prime[i]){ for(int j=i*i; j<size; j+=i){ ...
Main.java:3: 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
u050004141|p00202|0
u050004141|p00202|0
codenet
Compile Error
1,581
v2_s983273773
s983273773
s983273773
p00202
p00202
u213849509
u213849509
1,425,481,270
2015-03-04T15:01:10
Main.java
public class Main { public static void main(String[] args) throws IOException { new Main().run(); } private void run() throws IOException { Scanner scanner = new Scanner(System.in); int MAX = 1000000; boolean[] prime = new boolean[MAX + 1]; for (int i = 2; i <= MAX; i++) { if (!prime[i]) { for (i...
Main.java:4: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:8: error: cannot find symbol private void run() throws IOException { ^ symbol:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00202|0
u213849509|p00202|0
codenet
Compile Error
1,090
v2_s656565644
s656565644
s656565644
p00203
p00203
u213849509
u213849509
1,425,517,350
2015-03-05T01:02:30
Main.java
import java.io.IOException; import java.util.Arrays; import java.util.Scanner; import scala.inline; import scala.noinline; public class Main { public static void main(String[] args) throws IOException { new Main().run(); } private void run() throws IOException { Scanner scanner = new Scanner(System.in); w...
Main.java:6: error: package scala does not exist import scala.inline; ^ Main.java:7: error: package scala does not exist import scala.noinline; ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00203|0
u213849509|p00203|0
codenet
Compile Error
1,080
v2_s581467308
s581467308
s581467308
p00203
p00203
u358879127
u358879127
1,309,254,321
2011-06-28T09:45:21
Main.java
import java.util.*; public class Main { Scanner sc; int w,h; int[][] map; int[][] route; void printMap(){ for(int i=0;i<h+2;i++) { for(int j =0;j<w+2;j++) { System.out.print(route[i][j] + " "); } System.out.print(" "); for(int j =0;j<w+2;j++) { System.out.print(map[i][j] + " "); } Sy...
Main.java:54: error: cannot find symbol new Main.run(); ^ symbol: class run location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358879127|p00203|0
u358879127|p00203|0
codenet
Compile Error
1,442
v2_s320207554
s320207554
s320207554
p00203
p00203
u759934006
u759934006
1,465,946,434
2016-06-14T23:20:34
Main.java
mport java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.Integer.parseInt; /** * A New Plan of Aizu Ski Resort * PCK2009 ??????9 */ public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(n...
Main.java:1: error: class, interface, enum, or record expected mport java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:5: error: class, interf...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u759934006|p00203|2
u759934006|p00203|2
codenet
Compile Error
2,021
v2_s598994318
s598994318
s598994318
p00206
p00206
u770686467
u770686467
1,348,806,986
2012-09-28T04:36:26
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; for(int i=1;i<=12;i++){ if(i==12){ System.out.println("NA"); break; } savingMoney += stdIn.nextI...
Main.java:14: error: cannot find symbol savingMoney += stdIn.nextInt() - stdIn.nextInt(); ^ symbol: variable savingMoney location: class Main Main.java:15: error: cannot find symbol if(savingMoney >= tripCost){ ^ symbol: variable savingMoney location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|0
u770686467|p00206|0
codenet
Compile Error
436
v2_s079966513
s079966513
s079966513
p00206
p00206
u770686467
u770686467
1,348,807,057
2012-09-28T04:37:37
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; for(int i=1;i<=12;i++){ if(i==12){ System.out.println("NA"); break; } savingMoney += (stdIn.next...
Main.java:14: error: cannot find symbol savingMoney += (stdIn.nextInt() - stdIn.nextInt()); ^ symbol: variable savingMoney location: class Main Main.java:15: error: cannot find symbol if(savingMoney >= tripCost){ ^ symbol: variable savingMoney location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|0
u770686467|p00206|0
codenet
Compile Error
438
v2_s400345653
s400345653
s400345653
p00206
p00206
u770686467
u770686467
1,348,807,544
2012-09-28T04:45:44
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; for(int i=1;i<=12;i++){ if(i==12){ System.out.println("NA"); break; } savingMoney = savingMoney ...
Main.java:14: error: cannot find symbol savingMoney = savingMoney + stdIn.nextInt() - stdIn.nextInt(); ^ symbol: variable savingMoney location: class Main Main.java:14: error: cannot find symbol savingMoney = savingMoney + stdIn.nextInt() - stdIn.nextInt(); ^ symbol: variable sav...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|0
u770686467|p00206|0
codenet
Compile Error
449
v2_s319824162
s319824162
s319824162
p00206
p00206
u770686467
u770686467
1,348,807,813
2012-09-28T04:50:13
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; for(int i=1;i<=12;i++){ if(i==12){ System.out.println("NA"); break; } int income = stdIn.nextInt...
Main.java:16: error: cannot find symbol savingMoney = savingMoney + income - payOut; ^ symbol: variable savingMoney location: class Main Main.java:16: error: cannot find symbol savingMoney = savingMoney + income - payOut; ^ symbol: variable savingMoney location: class Main Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|0
u770686467|p00206|0
codenet
Compile Error
499
v2_s812425371
s812425371
s812425371
p00206
p00206
u770686467
u770686467
1,348,817,371
2012-09-28T07:29:31
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; int i = 1; while(true){ else{ int income = stdIn.nextInt(); int payOut = stdIn.nextInt(); in...
Main.java:12: error: 'else' without 'if' else{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|1
u770686467|p00206|0
codenet
Compile Error
537
v2_s186746060
s186746060
s186746060
p00206
p00206
u770686467
u770686467
1,348,817,563
2012-09-28T07:32:43
Main.java
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); while(true){ int tripCost = stdIn.nextInt(); if(tripCost == 0)break; int i = 1; while(true){ int income = stdIn.nextInt(); int payOut = stdIn.nextInt(); int savingMoney...
Main.java:14: error: variable savingMoney might not have been initialized int savingMoney = savingMoney + income - payOut; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u770686467|p00206|1
u770686467|p00206|0
codenet
Compile Error
519
v2_s761646526
s761646526
s761646526
p00206
p00206
u984847173
u984847173
1,488,675,101
2017-03-05T00:51:41
Main.java
import java.util.Scanner; class Main { public static void main(String[] args){ //declare ArrayList<String> answer = new ArrayList<>(); ArrayList<Integer> month = new ArrayList<>(); Scanner in = new Scanner(System.in); int L,M,N,total; //inmput while(true){ total=0; L = Integer...
Main.java:6: error: cannot find symbol ArrayList<String> answer = new ArrayList<>(); ^ symbol: class ArrayList location: class Main Main.java:6: error: cannot find symbol ArrayList<String> answer = new ArrayList<>(); ^ symbol: class ArrayList location: class Ma...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u984847173|p00206|2
u984847173|p00206|1
codenet
Compile Error
814
v2_s470302525
s470302525
s470302525
p00207
p00207
u307310888
u307310888
1,383,817,444
2013-11-07T09:44:04
Main.java
import java.util.ArrayDeque; import java.util.Queue; import java.util.Scanner; public class Main { public static final int[] blockW = {4,2}; public static final int[] blockH = {2,4}; public static final int INF = 100000000; public static final int[] vx = {1,0,-1,0}; public static final int[] vy = {0,-1,0,1}; publ...
Main.java:20: error: cannot find symbol Pos2d start = new Pos2d(sc.nextInt()-1,sc.nextInt()-1); ^ symbol: class Pos2d location: class Main Main.java:20: error: cannot find symbol Pos2d start = new Pos2d(sc.nextInt()-1,sc.nextInt()-1); ^ symbol: class Pos2d location: class Main ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u307310888|p00207|0
u307310888|p00207|0
codenet
Compile Error
1,566
v2_s122903730
s122903730
s122903730
p00207
p00207
u660879425
u660879425
1,335,665,748
2012-04-29T02:15:48
Main.java
20 20 1 1 9 9 7 2 0 1 1 5 1 1 3 2 1 3 3 1 1 5 2 5 1 7 3 2 0 2 7 2 0 6 8 20 20 9 9 1 1 6 2 0 1 1 1 0 5 1 2 1 1 3 5 0 1 7 3 1 5 5 4 1 8 5 0 0
Main.java:1: error: class, interface, enum, or record expected 20 20 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660879425|p00207|0
u660879425|p00207|0
codenet
Compile Error
140
v2_s169174446
s169174446
s169174446
p00207
p00207
u660879425
u660879425
1,335,666,513
2012-04-29T02:28:33
Main.java
import java.util.*; public class Main { int [][] field; int goalx; int goaly; int moveColor; private boolean move(int x, int y){ if(field[y][x] != moveColor){ return false; } if(x == goalx && y == goaly){ return true; } field[y][x] = -1; if(move(x+1,y) || move(x,y+1) || move(x-1,y) || move(x,...
Main.java:100: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660879425|p00207|0
u660879425|p00207|0
codenet
Compile Error
1,742
v2_s230021623
s230021623
s230021623
p00207
p00207
u724424933
u724424933
1,395,359,629
2014-03-20T23:53:49
Main.java
import java.lang.annotation.Retention; import java.util.*; import org.omg.CORBA.Principal; public class Main { Scanner in = new Scanner(System.in); public static void main(String[] args) { new Main(); } public Main() { new AOJ0207(); } class AOJ0207{ int w,h; int sx,sy,gx,gy; int[][] map; void m...
Main.java:4: error: package org.omg.CORBA does not exist import org.omg.CORBA.Principal; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u724424933|p00207|0
u724424933|p00207|0
codenet
Compile Error
1,760
v2_s090674318
s090674318
s090674318
p00208
p00208
u494428560
u494428560
1,297,248,380
2011-02-09T10:46:20
Main.java
15 100 1000000000 3 0
Main.java:1: error: class, interface, enum, or record expected 15 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u494428560|p00208|0
u494428560|p00208|0
codenet
Compile Error
21
v2_s257586199
s257586199
s257586199
p00209
p00209
u163346020
u163346020
1,424,910,998
2015-02-26T00:36:38
Main.java
import java.util.*; class Main { static int[][] map; static int[][] cx; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while (true) { int n = stdIn.nextInt(); int m = stdIn.nextInt(); if (n == 0 && m == 0){ break; } map = new int[n][n]; for (int i = 0; i ...
Main.java:48: error: unnamed classes are a preview feature and are disabled by default. static void rotate(int[][] a) { ^ (use --enable-preview to enable unnamed classes) Main.java:93: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u163346020|p00209|0
u163346020|p00209|0
codenet
Compile Error
1,832
v2_s070406467
s070406467
s070406467
p00213
p00213
u213849509
u213849509
1,425,615,653
2015-03-06T04:20:53
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; import scala.languageFeature.postfixOps; import sun.tools.jar.resources.jar; import lombok.Data; public class Main { public static void main(String[] arg...
Main.java:9: error: package scala.languageFeature does not exist import scala.languageFeature.postfixOps; ^ Main.java:10: error: package sun.tools.jar.resources is not visible import sun.tools.jar.resources.jar; ^ (package sun.tools.jar.resources is declared in module j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00213|0
u213849509|p00213|0
codenet
Compile Error
2,599
v2_s423564856
s423564856
s423564856
p00213
p00213
u213849509
u213849509
1,425,615,679
2015-03-06T04:21:19
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; import scala.languageFeature.postfixOps; import sun.tools.jar.resources.jar; import lombok.Data; public class Main { public static void main(String[] arg...
Main.java:9: error: package scala.languageFeature does not exist import scala.languageFeature.postfixOps; ^ Main.java:10: error: package sun.tools.jar.resources is not visible import sun.tools.jar.resources.jar; ^ (package sun.tools.jar.resources is declared in module j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00213|0
u213849509|p00213|0
codenet
Compile Error
2,599
v2_s518085112
s518085112
s518085112
p00213
p00213
u213849509
u213849509
1,425,615,679
2015-03-06T04:21:19
Main.java
import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.PriorityQueue; import java.util.Scanner; import scala.languageFeature.postfixOps; import sun.tools.jar.resources.jar; import lombok.Data; public class Main { public static void main(String[] arg...
Main.java:9: error: package scala.languageFeature does not exist import scala.languageFeature.postfixOps; ^ Main.java:10: error: package sun.tools.jar.resources is not visible import sun.tools.jar.resources.jar; ^ (package sun.tools.jar.resources is declared in module j...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00213|0
u213849509|p00213|0
codenet
Compile Error
2,599
v2_s535141613
s535141613
s535141613
p00214
p00214
u137027976
u137027976
1,404,128,977
2014-06-30T11:49:37
Main.java
### subroutines def o_prod(p, v0, v1) # (p - v0) x (v1 - v0) (p[0] - v0[0]) * (v1[1] - v0[1]) - (v1[0] - v0[0]) * (p[1] - v0[1]) end def inside?(p, vs) nump = numm = 0 (0..3).map{|i| [vs[i], vs[(i + 1) % 4]]}.each do |v0, v1| op = o_prod(p, v0, v1) if op > 0 nump += 1 elsif op < 0 num...
Main.java:1: error: illegal character: '#' ### subroutines ^ Main.java:1: error: illegal character: '#' ### subroutines ^ Main.java:1: error: illegal character: '#' ### subroutines ^ Main.java:3: error: illegal character: '#' def o_prod(p, v0, v1) # (p - v0) x (v1 - v0) ^ Main.java:10: erro...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137027976|p00214|1
u137027976|p00214|1
codenet
Compile Error
1,658
v2_s728939543
s728939543
s728939543
p00214
p00214
u760351030
u760351030
1,371,180,251
2013-06-14T03:24:11
Main.java
import java.util.*; public class Main { static boolean used[]; static Point rec[][]; static double EPS=1e-5; public static void main(String[] args) { Scanner in=new Scanner(System.in); for(;;) { int N=in.nextInt(); if(N==0) return; ...
Main.java:63: error: cannot find symbol for(int k=0;k<n;k++) ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760351030|p00214|3
u760351030|p00214|1
codenet
Compile Error
4,601
v2_s755218166
s755218166
s755218166
p00214
p00214
u760351030
u760351030
1,371,180,852
2013-06-14T03:34:12
Main.java
import java.util.*; public class Main { static boolean used[]; static Point rec[][]; static double EPS=1e-5; public static void main(String[] args) { Scanner in=new Scanner(System.in); for(;;) { int N=in.nextInt(); if(N==0) return; ...
Main.java:63: error: cannot find symbol for(int k=0;k<n;k++) ^ symbol: variable n location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u760351030|p00214|3
u760351030|p00214|1
codenet
Compile Error
4,580
v2_s315339681
s315339681
s315339681
p00215
p00215
u067299340
u067299340
1,427,814,121
2015-03-31T15:02:01
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.PriorityQueue; import java.util.Comparator; class Point{ public static int nextId = 0; public int id; public int x; ...
Main.java:236: error: cannot find symbol List<Point> nextPointList = pointListByType.get((type + 1) % 5); ^ symbol: variable type location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00215|2
u067299340|p00215|1
codenet
Compile Error
9,371
v2_s301067533
s301067533
s301067533
p00215
p00215
u067299340
u067299340
1,429,012,811
2015-04-14T12:00:11
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.ArrayList; import java.util.PriorityQueue; import java.util.Comparator; class Point{ public static int nextId = 0; public int id; public int x; ...
Main.java:60: error: cannot find symbol return p1.distanceToGoal - p1.distanceToGoal; ^ symbol: variable distanceToGoal location: variable p1 of type Point Main.java:60: error: cannot find symbol return p1.dis...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00215|9
u067299340|p00215|8
codenet
Compile Error
6,230
v2_s216370736
s216370736
s216370736
p00215
p00215
u067299340
u067299340
1,429,160,604
2015-04-16T05:03:24
Main.java
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.PriorityQueue; import java.util.Comparator; public class Main { public static final BufferedReader br = new BufferedReader(new InputStreamRead...
Main.java:19: error: List is abstract; cannot be instantiated new List<List<Point> >(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00215|13
u067299340|p00215|10
codenet
Compile Error
6,051
v2_s878266724
s878266724
s878266724
p00215
p00215
u067299340
u067299340
1,429,197,044
2015-04-16T15:10:44
Main.java
+import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.PriorityQueue; import java.util.Comparator; class Point implements Comparable<Point>{ public static int nextId = 0; public int id; public int ...
Main.java:1: error: class, interface, enum, or record expected +import java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:4: error: class, inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00215|14
u067299340|p00215|10
codenet
Compile Error
5,658
v2_s976153179
s976153179
s976153179
p00215
p00215
u067299340
u067299340
1,429,197,078
2015-04-16T15:11:18
Main.java
+import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.util.List; import java.util.ArrayList; import java.util.PriorityQueue; import java.util.Comparator; class Point implements Comparable<Point>{ public static int nextId = 0; public int id; public int ...
Main.java:1: error: class, interface, enum, or record expected +import java.io.BufferedReader; ^ Main.java:2: error: class, interface, enum, or record expected import java.io.InputStreamReader; ^ Main.java:3: error: class, interface, enum, or record expected import java.io.IOException; ^ Main.java:4: error: class, inte...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u067299340|p00215|14
u067299340|p00215|10
codenet
Compile Error
5,657
v2_s804569283
s804569283
s804569283
p00215
p00215
u129766044
u129766044
1,431,269,546
2015-05-10T14:52:26
Main.java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Main { /** ゲームごとのマップのリスト */ private static List<String[][]> mapList = new ArrayList<String[][]>(); /** スタート地...
Main.java:161: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u129766044|p00215|0
u129766044|p00215|0
codenet
Compile Error
4,388
v2_s552551662
s552551662
s552551662
p00215
p00215
u137027976
u137027976
1,404,190,163
2014-07-01T04:49:23
Main.java
### constant MAX_INT = (1 << 31) - 1 ### subroutines def dist(nd0, nd1) (nd0[0] - nd1[0]).abs + (nd0[1] - nd1[1]).abs end ### main while true w, h = gets.strip.split(' ').map{|s| s.to_i} break if w == 0 && h == 0 nodes = 7.times.map{[]} start = nil goal = nil for y in (0...h) hl = gets.strip.sp...
Main.java:1: error: illegal character: '#' ### constant ^ Main.java:1: error: illegal character: '#' ### constant ^ Main.java:1: error: illegal character: '#' ### constant ^ Main.java:3: error: class, interface, enum, or record expected MAX_INT = (1 << 31) - 1 ^ Main.java:5: error: illegal character: '#' ### subrout...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u137027976|p00215|1
u137027976|p00215|0
codenet
Compile Error
1,289
v2_s382524440
s382524440
s382524440
p00215
p00215
u170030319
u170030319
1,430,900,852
2015-05-06T08:27:32
Main.java
import java.awt.Point; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { /** ????§??????? */ static final String WHITE_SPACE = " "; /** ??????????????????_X */ static int mapSizeX = 0; /** ????????????????...
Main.java:131: error: class, interface, enum, or record expected import java.awt.Point; ^ Main.java:132: error: class, interface, enum, or record expected import java.util.ArrayList; ^ Main.java:133: error: class, interface, enum, or record expected import java.util.Collections; ^ Main.java:134: error: class, interface...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170030319|p00215|0
u170030319|p00215|0
codenet
Compile Error
6,471
v2_s195404337
s195404337
s195404337
p00215
p00215
u170030319
u170030319
1,430,903,107
2015-05-06T09:05:07
Main.java
import java.awt.Point; import java.util.Scanner; public class Main { /** ????§??????? */ static final String WHITE_SPACE = " "; /** ??????????????????_X */ static int mapSizeX = 0; /** ??????????????????_Y */ static int mapSizeY = 0; /** ??????????????° */ static int maxNode = 0; /** ????????? */ // sta...
Main.java:48: error: method main(String[]) is already defined in class Main public static void main(String[] args) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170030319|p00215|0
u170030319|p00215|0
codenet
Compile Error
3,231
v2_s433961692
s433961692
s433961692
p00215
p00215
u170030319
u170030319
1,430,904,065
2015-05-06T09:21:05
Main.java
import java.awt.Point; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { /** ????§??????? */ static final String WHITE_SPACE = " "; /** ??????????????????_X */ static int mapSizeX...
Main.java:60: error: cannot find symbol if (output.y == Integer.MAX_VALUE) { ^ symbol: variable output location: class Main Main.java:63: error: cannot find symbol System.out.println(output.x + WHITE_SPACE + output.y); ^ symbol: variable output location: class Main Main....
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170030319|p00215|0
u170030319|p00215|0
codenet
Compile Error
9,056
v2_s584698996
s584698996
s584698996
p00215
p00215
u170030319
u170030319
1,430,905,765
2015-05-06T09:49:25
Main.java
import java.awt.Point; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Scanner; public class Main { /** ????§??????? */ static final String WHIT...
Main.java:43: error: cannot find symbol String input = br.readLine(); ^ symbol: variable br location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u170030319|p00215|0
u170030319|p00215|0
codenet
Compile Error
9,096
v2_s627047537
s627047537
s627047537
p00215
p00215
u231443221
u231443221
1,431,266,332
2015-05-10T13:58:52
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String... args) { for (List<String> mapStrings : getMapStri...
Main.java:273: error: package PachimonCreature does not exist return new ArrayList<PachimonCreature.PachimonType>() {{ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u231443221|p00215|0
u231443221|p00215|0
codenet
Compile Error
10,169
v2_s728109220
s728109220
s728109220
p00215
p00215
u340523328
u340523328
1,429,067,660
2015-04-15T03:14:20
Main.java
function main(){ var i = 0; while(true){ var fieldInfo = input[i].split(' '); var width = fieldInfo[0] - 0;//toInt var height = fieldInfo[1] - 0;//toInt // 0 0が入力された if(width == 0 && height == 0){ break; } var start; var goal; var elem = [[],[],[],[],[]]; for(var ...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. function main(){ ^ (use --enable-preview to enable unnamed classes) Main.java:15: error: illegal start of expression var elem = [[],[],[],[],[]]; ^ Main.java:48: error: illegal start of expression var dp = ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340523328|p00215|4
u340523328|p00215|4
codenet
Compile Error
3,458
v2_s837360121
s837360121
s837360121
p00215
p00215
u340523328
u340523328
1,429,098,343
2015-04-15T11:45:43
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { // 読み込んでフィールドを作る Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = ...
Main.java:166: error: cannot find symbol int mask = a >> 31; ^ symbol: variable a location: class Pachimon 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340523328|p00215|5
u340523328|p00215|5
codenet
Compile Error
4,864
v2_s102095548
s102095548
s102095548
p00215
p00215
u340523328
u340523328
1,429,098,548
2015-04-15T11:49:08
Main.java
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { // 読み込んでフィールドを作る Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = ...
Main.java:166: error: cannot find symbol int mask = a >> 31; ^ symbol: variable a location: class Pachimon 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u340523328|p00215|5
u340523328|p00215|5
codenet
Compile Error
4,852
v2_s263924732
s263924732
s263924732
p00216
p00216
u195434603
u195434603
1,466,312,661
2016-06-19T05:04:21
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u195434603|p00216|0
u195434603|p00216|0
codenet
Compile Error
498
v2_s544411742
s544411742
s544411742
p00216
p00216
u389964936
u389964936
1,466,312,579
2016-06-19T05:02:59
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; else if ( 30 < i ) cost += 160...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u389964936|p00216|0
u389964936|p00216|0
codenet
Compile Error
426
v2_s641472447
s641472447
s641472447
p00216
p00216
u669006075
u669006075
1,466,312,697
2016-06-19T05:04:57
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669006075|p00216|0
u669006075|p00216|0
codenet
Compile Error
498
v2_s394147235
s394147235
s394147235
p00216
p00216
u669006075
u669006075
1,466,312,751
2016-06-19T05:05:51
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u669006075|p00216|0
u669006075|p00216|0
codenet
Compile Error
498
v2_s659511033
s659511033
s659511033
p00216
p00216
u934026612
u934026612
1,466,312,462
2016-06-19T05:01:02
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934026612|p00216|0
u934026612|p00216|0
codenet
Compile Error
498
v2_s628277966
s628277966
s628277966
p00216
p00216
u934026612
u934026612
1,466,312,482
2016-06-19T05:01:22
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934026612|p00216|0
u934026612|p00216|0
codenet
Compile Error
498
v2_s407955935
s407955935
s407955935
p00216
p00216
u934026612
u934026612
1,466,312,848
2016-06-19T05:07:28
P01.java
import java.util.Scanner; public class P01{ public P01(){ Scanner scan = new Scanner(System.in) for(int w; scan.hasNextInt() && w >= 0;){ System.out.println( 4280-getCost(w)); } } public int getCost(int w){ int cost = 1150; // ?¬¬????????? for (int i = 11; i <= w; i++ ){ if ( i <= 20 ) cost += 125; // ?¬¬?????????...
P01.java:5: error: ';' expected Scanner scan = new Scanner(System.in) ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u934026612|p00216|0
u934026612|p00216|0
codenet
Compile Error
498
v2_s739368191
s739368191
s739368191
p00217
p00217
u088290348
u088290348
1,387,125,393
2013-12-15T16:36:33
Main.java
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n,p,d1,d2,maxp,maxv; while(stdIn.hasNextInt()){ n = stdIn.nextInt(); if(n == 0) break; maxp = maxv = 0; for(int i = 0;i < n;i++){ p = stdIn.nextInt(); d1 = std...
Main.java:20: error: no suitable method found for printf(int,int) System.out.printf(maxp,maxv); ^ method PrintStream.printf(String,Object...) is not applicable (argument mismatch; int cannot be converted to String) method PrintStream.printf(Locale,String,Object...) is not applicable ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00217|0
u088290348|p00217|0
codenet
Compile Error
472
v2_s775117649
s775117649
s775117649
p00217
p00217
u579833671
u579833671
1,353,218,722
2012-11-18T06:05:22
Main.java
class Pair { int num; int walk; Pair(int num, int walk) { this.num = num; this.walk = walk; } } public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(stdIn.hasNext()) { int n = stdIn.nextInt(); if(n == 0) { break; } List<Pair> ...
Main.java:16: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:16: error: cannot find symbol Scanner stdIn = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:24: error: cannot fi...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u579833671|p00217|0
u579833671|p00217|0
codenet
Compile Error
778
v2_s752065994
s752065994
s752065994
p00218
p00218
u088290348
u088290348
1,385,306,651
2013-11-24T15:24:11
Main.java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); int n,pm,pe,pj; while(stdIn.hasNextInt()){ n = stdIn.nextInt(); for(int i = 0;i < n;i++){ pm = stdIn.nextInt(); pe = stdIn.nextInt(); pj = stdIn.nextInt(); if(pm == 100 || pe =...
Main.java:25: error: reached end of file while parsing } ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u088290348|p00218|0
u088290348|p00218|0
codenet
Compile Error
717
v2_s582807279
s582807279
s582807279
p00218
p00218
u138527652
u138527652
1,410,506,579
2014-09-12T07:22:59
Main.java
package aizu; import java.util.Scanner; public static void main(String[] args) { public class ao { Scanner sc = new Scanner(System.in); int pm,pe,pj; double avg1,avg2; int nin; public void sei(){ nin = sc.nextInt(); while(!(nin==0)){ for(int i = 1;i<=nin;i++){ pm = sc.nextInt(); pe = sc.nextInt(); p...
Main.java:3: 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: illegal start of expression public class ao { ^ Main.java:1: error: unnamed class should not have package...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u138527652|p00218|0
u138527652|p00218|0
codenet
Compile Error
946
v2_s047690924
s047690924
s047690924
p00219
p00219
u413313314
u413313314
1,444,832,233
2015-10-14T14:17:13
Main.java
#include <stdio.h> int main(void) { int n,i,j,k[10],buy; while (1) { scanf("%d",&n); if (n==0) break; for (i=0;i<10;i++) k[i] = 0; for (i=0;i<n;i++) { scanf("%d",&buy); k[buy]++; } for (i=0;i<10;i++) { if (k[i]==0) puts("-"); else { for (j=0;j<k[i];j++) { putchar('*'); } put...
Main.java:1: error: illegal character: '#' #include <stdio.h> ^ Main.java:1: error: class, interface, enum, or record expected #include <stdio.h> ^ Main.java:5: error: class, interface, enum, or record expected while (1) { ^ Main.java:7: error: class, interface, enum, or record expected if (n==0) break; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413313314|p00219|0
u413313314|p00219|0
codenet
Compile Error
357
v2_s561910804
s561910804
s561910804
p00219
p00219
u875408758
u875408758
1,490,694,034
2017-03-28T09:40:34
Main.java
import java.io.*; class Main { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[] iceCount = new int[10]; int total; while (total != 0) { total = Integer.parseInt(br.readLin...
Main.java:9: error: variable total might not have been initialized while (total != 0) { ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u875408758|p00219|0
u875408758|p00219|0
codenet
Compile Error
927
v2_s932107846
s932107846
s932107846
p00222
p00222
u014050391
u014050391
1,357,914,459
2013-01-11T14:27:39
Main.java
//配列に入れたらTime Limit Exceededでした. //直しても直してもTime Limit Exceededですよー! import java.util.*; public class Main{ static Scanner kbd = new Scanner(System.in); static boolean[] prime = new boolean[10000001]; public static void main(String[] args){ prepare(); while(true){ int n = kbd.nextInt(); if(n...
Main.java:31: error: cannot find symbol while(!(prime[m] && prime[m-2] && prime[m-6] && prime[m-8])){ ^ symbol: variable m location: class Main Main.java:31: error: cannot find symbol while(!(prime[m] && prime[m-2] && prime[m-6] && prime[m-8])){ ^ symbol: variable m...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u014050391|p00222|0
u014050391|p00222|0
codenet
Compile Error
816
v2_s799171942
s799171942
s799171942
p00223
p00223
u213849509
u213849509
1,425,717,268
2015-03-07T08:34:28
Main.java
import java.io.IOException; import java.util.Arrays; import java.util.NavigableSet; import java.util.PriorityQueue; import java.util.Scanner; import java.util.TreeSet; import lombok.Data; import scala.inline; import scala.collection.parallel.immutable.ParIterable; public class Main { public static void main(String...
Main.java:9: error: package lombok does not exist import lombok.Data; ^ Main.java:10: error: package scala does not exist import scala.inline; ^ Main.java:11: error: package scala.collection.parallel.immutable does not exist import scala.collection.parallel.immutable.ParIterable; ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00223|0
u213849509|p00223|0
codenet
Compile Error
3,090
v2_s602206230
s602206230
s602206230
p00223
p00223
u660498157
u660498157
1,301,044,298
2011-03-25T09:11:38
Main.java
import java.util.*; import java.lang.*; import java.math.*; import java.io.*; import static java.lang.Math.*; import static java.util.Arrays.*; public class Main{ Scanner sc=new Scanner(System.in); int INF=1<<28; double EPS=1e-9; int m, n; R r0; int[][] a; void run(){ /* byte[][][][] d=new byte[50][50]...
Main.java:82: error: incompatible types: possible lossy conversion from int to byte d[ty2][tx2][ky2][kx2]=d[r.ty][r.tx][r.ky][r.kx]+1; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u660498157|p00223|0
u660498157|p00223|0
codenet
Compile Error
2,230
v2_s268480631
s268480631
s268480631
p00224
p00224
u116766943
u116766943
1,346,220,027
2012-08-29T06:00:27
Main.java
ツ鳴セツ禿コツ閉淞督?づ可帰ツづィツづ慊つキツ?卍(ツゝツε鳴・ツ)vツキツャテ凝? ツづ?づ債づ?づ催可シ
Main.java:154: error: class, interface, enum, or record expected ??????????????????????????????????v??????? ^ Main.java:154: error: illegal character: '\uff08' ??????????????????????????????????v??????? ^ Main.java:154: error: illegal character: '\u30fb' ??????????????????????????????????v?????...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u116766943|p00224|0
u116766943|p00224|0
codenet
Compile Error
300
v2_s468352108
s468352108
s468352108
p00225
p00225
u441981269
u441981269
1,319,028,216
2011-10-19T12:43:36
Main.java
import java.io.*; import java.util.*; // 2011/10/19 //@0225 ‚±‚Ô‚½‚Ê‚«‚‚˂± public class Main { // æ“ª•¶Žš‚Æ––”ö•¶Žš‚̐”‚ªˆê’v // ‚·‚ׂĂª‚‚Ȃª‚Á‚Ä‚¢‚é‚ÅOK // ƒƒCƒ“ return false‚Å‚¨‚µ‚Ü‚¢ boolean main() throws IOException { int N = readIntArray()[0]; if (N == 0) return false; // ‚¨‚µ‚Ü‚¢ L...
Main.java:76: error: cannot find symbol System.out.printf("%s\n", dame ? "NG" : "OK"); ^ symbol: variable dame location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u441981269|p00225|0
u441981269|p00225|0
codenet
Compile Error
3,177
v2_s018603621
s018603621
s018603621
p00225
p00225
u524272704
u524272704
1,445,522,968
2015-10-22T14:09:28
Main.java
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { void run() { Scanner in = new Scanner(System.in); while(true) { int N = Integer.parseInt(in.next()); if (N == 0) break; List<String> wordList = new ArrayList<String>...
Main.java:54: error: cannot find symbol new Main.run(); ^ symbol: class run location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u524272704|p00225|1
u524272704|p00225|1
codenet
Compile Error
1,059
v2_s634983733
s634983733
s634983733
p00228
p00228
u953546817
u953546817
1,471,536,760
2016-08-18T16:12:40
Main.java
public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; Digital digital; while(true){ line = br.readLine(); int num = Integer.valueOf(line); if(num == -1){ break; } digital = Di...
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:4: error: cannot find symbol BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ^...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u953546817|p00228|0
u953546817|p00228|0
codenet
Compile Error
2,985
v2_s331073675
s331073675
s331073675
p00234
p00234
u413996626
u413996626
1,311,426,488
2011-07-23T13:08:08
Main.java
import java.util.Scanner; //Aizu Buried Treasure public class Main{ int w, h, f, m, o; long[][] a; long[][][][] dp; long get(int i, int j, int s, int rest){ if(i==h)return 0; if(rest<1)return dp[i][j][s][rest] = 1L<<30; if(dp[i][j][s][rest]!=-1)return dp[i][j][s][rest]; long x = 0; int nr = rest; ...
Main.java:53: error: cannot find symbol new AOJ0234().run(); ^ symbol: class AOJ0234 location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u413996626|p00234|0
u413996626|p00234|0
codenet
Compile Error
1,349
v2_s053927042
s053927042
s053927042
p00235
p00235
u050004141
u050004141
1,373,123,424
2013-07-06T15:10:24
Main.java
int n; int t[22][22]; int solve(int idx){ int res = 0; rep(i,n){ if(t[idx][i] > 0){ t[i][idx] = 0; res = max(res,t[idx][i]+solve(i)); } } return res; } int main(void){ while(cin>>n,n){ memset(t,0,sizeof(t)); int sum = 0; rep(i,n-1){ int a,b,cost; cin>>a>>b>>cost;...
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. int n; ^ (use --enable-preview to enable unnamed classes) Main.java:2: error: class, interface, enum, or record expected int t[22][22]; ^ Main.java:6: error: ';' expected rep(i,n){ ^ Main.java:16: error: not a statement...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u050004141|p00235|0
u050004141|p00235|0
codenet
Compile Error
697
v2_s917117485
s917117485
s917117485
p00236
p00236
u213849509
u213849509
1,426,078,989
2015-03-11T13:03:09
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { Scanner scanner = new Scanner(System.in); loop: while (true) { w = scanner.nextInt(); h = scanner.nextInt(); if ((w | h) == 0) break; count = 0; visited = new ...
Main.java:66: error: unnamed classes are a preview feature and are disabled by default. private boolean dfs(int x, int y, int deep) { ^ (use --enable-preview to enable unnamed classes) Main.java:126: error: class, interface, enum, or record expected int count, w, h, sx, sy; ^ Main.java:129: error: class, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00236|1
u213849509|p00236|0
codenet
Compile Error
2,471
v2_s769797853
s769797853
s769797853
p00236
p00236
u213849509
u213849509
1,426,079,022
2015-03-11T13:03:42
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { Scanner scanner = new Scanner(System.in); loop: while (true) { w = scanner.nextInt(); h = scanner.nextInt(); if ((w | h) == 0) break; count = 0; visited = new ...
Main.java:66: error: unnamed classes are a preview feature and are disabled by default. private boolean dfs(int x, int y, int deep) { ^ (use --enable-preview to enable unnamed classes) Main.java:126: error: class, interface, enum, or record expected int count, w, h, sx, sy; ^ Main.java:129: error: class, ...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u213849509|p00236|1
u213849509|p00236|0
codenet
Compile Error
2,471
v2_s767316890
s767316890
s767316890
p00238
p00238
u138527652
u138527652
1,406,992,588
2014-08-02T15:16:28
main.java
import java.util.Scanner; public class main { Scanner sc = new Scanner(System.in); int m,k,s,t; int kei; public void kei(){ m = sc.nextInt(); while(m!=0){ k = sc.nextInt(); for(int i=0;i<=k-1;i++){ s = sc.nextInt(); t = sc.nextInt(); k...
main.java:29: error: reached end of file while parsing t.kei(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u138527652|p00238|0
u138527652|p00238|0
codenet
Compile Error
613
v2_s194887353
s194887353
s194887353
p00241
p00241
u700120734
u700120734
1,452,873,931
2016-01-15T16:05:31
Main.java
import java.util.*; class Main{ public static void main(String args[]){ Solve s = new Solve(); s.solve(); } } class Solve{ Scanner in = new Scanner(System.in); void solve(){ int[][] s = {{1,2,3,4},{2,-1,4,-3},{3,-4,-1,2},{4,3,-2,-1}}; int n = in.nextInt(); for(int k = 0; k < n; k++){ int[] a = new i...
Main.java:19: error: incompatible types: int[] cannot be converted to long[] long[] ans = new int[4]; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u700120734|p00241|0
u700120734|p00241|0
codenet
Compile Error
825
v2_s553726799
s553726799
s553726799
p00243
p00243
u358879127
u358879127
1,341,785,424
2012-07-08T22:10:24
Main.java
import java.util.*; import static java.lang.Math.*; import static java.util.Arrays.*; public class Main { int INF = 1 << 28; int w, h; int min; // char[][] p; void run() { Scanner sc = new Scanner(System.in); for(;;) { w = sc.nextInt(); h = sc.nextInt(); if( (w|h) == 0 ) break; p = new cha...
Main.java:20: error: cannot find symbol p = new char[h+2][w+2]; ^ symbol: variable p location: class Main 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u358879127|p00243|0
u358879127|p00243|0
codenet
Compile Error
1,645
v2_s366819344
s366819344
s366819344
p00244
p00244
u621997536
u621997536
1,408,458,530
2014-08-19T14:28:50
Main.java
#include<iostream> #include<queue> #include<vector> #include<utility> #include<functional> using namespace std; typedef pair<int, int> P; struct Edge { int cost, to, f; Edge(int c, int t){cost = c, to = t;} }; int E, V, d[10000]; vector<Edge> edge[10000]; priority_queue<P, vector<P>, greater<P>> q; int main() { ...
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<queue> ^ Main.java:3: error: illegal character: '#' #include<vector> ^ Main.java:4: error: illegal character: '#' #include<utility> ^ Main.java:5: error: illegal character: '#' #include<functional> ^ Main...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u621997536|p00244|0
u621997536|p00244|0
codenet
Compile Error
1,307
v2_s648253092
s648253092
s648253092
p00251
p00251
u453728254
u453728254
1,377,608,774
2013-08-27T13:06:14
HelloWorld.java
package hoge.hoge.com; import java.util.Scanner; public class HelloWorld { public static void main(String[] args) throws java.io.IOException{ // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int i=0,a; for(a=0;a<10;a++){ String str = scan.next(); i += Integer.parseInt(str); } System.out.prin...
HelloWorld.java:21: error: illegal character: '\' System.out.println(+i\n); ^ HelloWorld.java:21: error: not a statement System.out.println(+i\n); ^ HelloWorld.java:21: error: ';' expected System.out.println(+i\n); ^ 3 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453728254|p00251|0
u453728254|p00251|0
codenet
Compile Error
366
v2_s855194191
s855194191
s855194191
p00251
p00251
u453728254
u453728254
1,377,612,511
2013-08-27T14:08:31
HelloWorld.java
public class HelloWorld { public static void main (String[] args) { System.out.println("Hello World !!"); int i=0,a; Scanner scan = new Scanner(System.in); for(a=0;a<10;a++){ String str = scan.next(); i += Integer.parseInt(str); } System.out.printfln(+i); } }
HelloWorld.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class HelloWorld HelloWorld.java:6: error: cannot find symbol Scanner scan = new Scanner(System.in); ^ symbol: class Scanner location: class HelloWorld HelloWorld.java:11:...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453728254|p00251|0
u453728254|p00251|0
codenet
Compile Error
272
v2_s144652955
s144652955
s144652955
p00251
p00251
u453728254
u453728254
1,377,692,379
2013-08-28T12:19:39
sample.java
public class sample{ public static void main(String[] args){ int i,a,g=0; for(i=0;i<10;i++){ a=System.in.read(); g+=a; } System.out.println(g); } }
sample.java:5: error: unreported exception IOException; must be caught or declared to be thrown a=System.in.read(); ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453728254|p00251|1
u453728254|p00251|1
codenet
Compile Error
147
v2_s200106481
s200106481
s200106481
p00251
p00251
u722076734
u722076734
1,411,604,138
2014-09-25T00:15:38
Main.java
4 4 8 8 8 10 10 12 16 20
Main.java:1: error: class, interface, enum, or record expected 4 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u722076734|p00251|0
u722076734|p00251|0
codenet
Compile Error
24
v2_s359015837
s359015837
s359015837
p00251
p00251
u741089308
u741089308
1,406,872,270
2014-08-01T05:51:10
Main.java
import java.util.*; class Main{ private void compute(){ Scanner sc = new Scanner(System.in); int sum = 0; for( int i = 0; i < 10; i++){ int x = sc.nextInt(); sum += x; } System.out.println(sum); } } public static void main(String args[]){ new Main().compute(); } }
Main.java:14: 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:18: error: class, interface, enum, or record expected } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u741089308|p00251|0
u741089308|p00251|0
codenet
Compile Error
292
v2_s566569135
s566569135
s566569135
p00251
p00251
u814387366
u814387366
1,398,695,167
2014-04-28T14:26:07
Main.java
import java.util.Scanner; class exe0256 { public static void main(String args[]) { Scanner scan=new Scanner(System.in); sum=0; for(int i=0;i<10;i++) { int s=scan.nextInt(); sum+=s; } System.out.println(sum); } }
Main.java:7: error: cannot find symbol sum=0; ^ symbol: variable sum location: class exe0256 Main.java:11: error: cannot find symbol sum+=s; ^ symbol: variable sum location: class exe0256 Main.java:13: error: cannot find symbol System.out.println(sum); ^ symbol: variable sum locatio...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u814387366|p00251|0
u814387366|p00251|0
codenet
Compile Error
211
v2_s440160055
s440160055
s440160055
p00252
p00252
u113796319
u113796319
1,471,761,361
2016-08-21T06:36:01
Main.java
import java.util.*; class Main{ Scanner sc=new Scanner(System.in); void main(){ int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); if(a==b&&a!=c)System.out.println("Open"); else System.out.println("Close") } public static void main(String[]ag){ new Main().main(); } }
Main.java:9: error: ';' expected else System.out.println("Close") ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u113796319|p00252|0
u113796319|p00252|0
codenet
Compile Error
302
v2_s231464161
s231464161
s231464161
p00255
p00255
u791924778
u791924778
1,378,447,024
2013-09-06T05:57:04
pasocon.java
import java.util.Scanner; public class pasocon{ public void output(){ int[] p = new int[65000]; int[] j = new int[65000]; int[] k = new int[65000]; Scanner scan = new Scanner(System.in); while(true){ int w = 0; int z = 0; int s = 0; System.out.println("パイプの本数"); int n = scan.nextInt(); if(n...
pasocon.java:42: error: cannot find symbol pasocon p = new pasocon().run(); ^ symbol: method run() location: class pasocon 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u791924778|p00255|0
u791924778|p00255|0
codenet
Compile Error
963
v2_s810716488
s810716488
s810716488
p00257
p00257
u197786702
u197786702
1,360,574,176
2013-02-11T09:16:16
Main.java
import java.io.BufferedReader; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); while(true){ final int max =sc.nextInt(); if(max == 0){ break; } final int n = sc.nextInt(); final int size = n + 2; int[] map ...
Main.java:5: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:6: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u197786702|p00257|0
u197786702|p00257|0
codenet
Compile Error
1,370
v2_s363902184
s363902184
s363902184
p00265
p00265
u017525488
u017525488
1,378,468,024
2013-09-06T11:47:04
Main.java
import java.util.*; import java.io.*; import static java.lang.Math.*; class Main { public static void main( final String[] args ) { final Scanner stdin = new Scanner( System.in ); final String[] param = stdin.nextLine().split( " " ); final int N = Integer.parseInt( param[ 0 ] ); final int Q = Integer.parseI...
Main.java:27: error: variable i is already defined in method main(String[]) for ( int i : cs ) { ^ Main.java:30: error: package Systme does not exist Systme.out.println( maxMod ); ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u017525488|p00265|0
u017525488|p00265|0
codenet
Compile Error
1,354
v2_s015218070
s015218070
s015218070
p00271
p00271
u198681498
u198681498
1,406,868,679
2014-08-01T04:51:19
Main.java
public class Main { Scanner sc =new Scanner(System.in); int x; int nissu = sc.nextInt(); int[] goukei = new int[nissu]; double gnyuryo,gpuryo;; public void ryoukin(){ for(x=0;x<=nissu-1;x++){ int nyuryo = sc.nextInt(); int puryo = sc.nextInt(); int nyumai = sc.nextInt(); int pumai = sc.nextInt(); ...
Main.java:2: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol Scanner sc =new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u198681498|p00271|0
u198681498|p00271|0
codenet
Compile Error
907
v2_s740048926
s740048926
s740048926
p00271
p00271
u198681498
u198681498
1,406,869,272
2014-08-01T05:01:12
Main.java
public class Main { Scanner sc = new Scanner(System.in); int x; int[] kionsa = {1,2,3,4,5,6,7}; public void nyuryoku(){ for(x=0;x<=6;x++){ int saiko = sc.nextInt(); int saitei = sc.nextInt(); kionsa[x] = saiko-saitei; } } public void nyuuryoku2(){ for(x=0;x<=6;x++){ System.out.println(kionsa[x...
Main.java:2: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:2: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u198681498|p00271|0
u198681498|p00271|0
codenet
Compile Error
529
v2_s792338460
s792338460
s792338460
p00271
p00271
u202237805
u202237805
1,383,642,717
2013-11-05T09:11:57
Main.java
#include<iostream> #include<cstdio> using namespace std; int main(){ int a[10]; int n[10],k[10]; for(int i=0;i<7;i++){ cin>>n[i]>>k[i]; } for(int i=0;i<7;i++){ a[i]=n[i]-k[i]; } for(int i=0;i<7;i++){ cout<<a[i]<<endl; } return 0; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:2: error: illegal character: '#' #include<cstdio> ^ Main.java:6: error: not a statement int n[10],k[10]; ^ Main.java:8: error: not a statement cin>>n[i]>>k[i]; ^ Main.java:14: error: not a statement cout<<a[i]<...
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u202237805|p00271|0
u202237805|p00271|0
codenet
Compile Error
261
v2_s524115369
s524115369
s524115369
p00271
p00271
u260466747
u260466747
1,406,869,128
2014-08-01T04:58:48
Main.java
package ; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); int a,b,c; c = 1; do{ a = sc.nextInt(); b = sc.nextInt(); System.out.println(a - b); c++; }while(c > 7); } }
Main.java:1: error: <identifier> expected package ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u260466747|p00271|0
u260466747|p00271|0
codenet
Compile Error
327
v2_s801377507
s801377507
s801377507
p00271
p00271
u297228070
u297228070
1,422,844,852
2015-02-02T02:40:52
Main.java
import java.util.Scanner; public class Main{ int a; int b; int sa; public void solve(){ Scanner sc=new Scanner(System.in); for(int i=0;i<;i++){ a=sc.nextInt(); b=sc.nextInt(); sa=a-b; System.out.println(sa); } } public static void main(String[]a...
Main.java:10: error: illegal start of expression for(int i=0;i<;i++){ ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u297228070|p00271|0
u297228070|p00271|0
codenet
Compile Error
377
v2_s266655560
s266655560
s266655560
p00271
p00271
u297228070
u297228070
1,423,146,647
2015-02-05T14:30:47
Main.java
//問題1 2704 上石彩花 imoort java.util.Scanner; public class Main{ public void solve(){ Scanner sc=new Scanner(System.in); int a,b,sa; for(int i=0;i<7;i++){ a=sc.nextInt(); b=sc.nextInt(); sa=a-(b); System.out.println(sa); } } public static void main(String[]arges){ Main obj=new Main(); obj.sol...
Main.java:2: error: class, interface, enum, or record expected imoort java.util.Scanner; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u297228070|p00271|1
u297228070|p00271|1
codenet
Compile Error
346
v2_s732012529
s732012529
s732012529
p00271
p00271
u297228070
u297228070
1,423,146,764
2015-02-05T14:32:44
Main.java
//問題1 2704 上石彩花 imoort java.util.Scanner; public class Main{ public void solve(){ Scanner sc=new Scanner(System.in); int a,b,sa; for(int i=0;i<7;i++){ a=sc.nextInt(); b=sc.nextInt(); System.out.println(a-b); } } public static void main(String[]arges){ Main obj=new Main(); obj.solve(); }
Main.java:2: error: class, interface, enum, or record expected imoort java.util.Scanner; ^ Main.java:18: error: reached end of file while parsing } ^ 2 errors
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u297228070|p00271|1
u297228070|p00271|1
codenet
Compile Error
332
v2_s011646976
s011646976
s011646976
p00271
p00271
u357958570
u357958570
1,406,870,322
2014-08-01T05:18:42
Main.java
package ; import java.util.Scanner; public class Main { public Main(){ Scanner sc = new Scanner(System.in); int a,b,k; int sa[]=new int[7]; for(k=0;k<7;k++){ a = sc.nextInt(); b = sc.nextInt(); System.out.print(a - b); } } /** * @param args */ public static void main(String[] args) { // TODO 自動...
Main.java:1: error: <identifier> expected package ; ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u357958570|p00271|0
u357958570|p00271|0
codenet
Compile Error
400
v2_s276966908
s276966908
s276966908
p00271
p00271
u453728254
u453728254
1,385,131,098
2013-11-22T14:38:18
Main.java
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int sum = 0; int sum2=0; for(int i = 0; i < 7; i++){ sum = sc.nextInt(); sum2=sc.nexIn...
Main.java:2: error: class, interface, enum, or record expected 2 ^ 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453728254|p00271|0
u453728254|p00271|0
codenet
Compile Error
423
v2_s324963093
s324963093
s324963093
p00271
p00271
u453728254
u453728254
1,385,131,175
2013-11-22T14:39:35
Main.java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int sum = 0; int sum2=0; for(int i = 0; i < 7; i++){ sum = sc.nextInt(); sum2=sc.nexInt(); S...
Main.java:14: error: cannot find symbol sum2=sc.nexInt(); ^ symbol: method nexInt() location: variable sc of type Scanner 1 error
compile_error
1
OpenJDK 21.0.12.1
unlabelled
2.1
u453728254|p00271|0
u453728254|p00271|0
codenet
Compile Error
390