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_s425062130 | s425062130 | s425062130 | p02361 | p02361 | u211138527 | u211138527 | 1,438,970,815 | 2015-08-07T18:06:55 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void main(String[] a... | Main.java:29: error: variable values is already defined in method main(String[])
String[] values=br.readLine().split(" ");
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|0 | u211138527|p02361|0 | codenet | Compile Error | 1,214 | |
v2_s915736614 | s915736614 | s915736614 | p02361 | p02361 | u211138527 | u211138527 | 1,438,970,850 | 2015-08-07T18:07:30 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void main(String[] a... | Main.java:23: error: cannot find symbol
int v=Integer.parseInt(values[0]);
^
symbol: variable values
location: class Main
Main.java:24: error: cannot find symbol
int e=Integer.parseInt(values[1]);
^
symbol: variable values
location: class Main
Main.java:25: erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|0 | u211138527|p02361|0 | codenet | Compile Error | 1,216 | |
v2_s241707350 | s241707350 | s241707350 | p02361 | p02361 | u211138527 | u211138527 | 1,438,981,488 | 2015-08-07T21:04:48 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x; this.y=y;
}
}
static class... | Main.java:53: error: ')' or ',' expected
dic.put(s,dic.get(s).add(new Edge(t,c));
^
Main.java:74: error: ')' or ',' expected
pque.offer(new Pair(d[e.to],e.to]);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,822 | |
v2_s365187351 | s365187351 | s365187351 | p02361 | p02361 | u211138527 | u211138527 | 1,438,981,553 | 2015-08-07T21:05:53 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x; this.y=y;
}
}
static class... | Main.java:61: error: cannot find symbol
private static void djkstra(int r,int[] d,HashMap<Integer,ArrayList<Edge>> dic){
^
symbol: class HashMap
location: class Main
Main.java:61: error: cannot find symbol
private static void djkstra(int r,int[] d,HashMap<Integer,ArrayLis... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,823 | |
v2_s682588915 | s682588915 | s682588915 | p02361 | p02361 | u211138527 | u211138527 | 1,438,982,339 | 2015-08-07T21:18:59 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pa... | Main.java:80: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,975 | |
v2_s252764389 | s252764389 | s252764389 | p02361 | p02361 | u211138527 | u211138527 | 1,438,982,423 | 2015-08-07T21:20:23 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pa... | Main.java:49: error: cannot find symbol
if(!containsKey(s)){
^
symbol: method containsKey(int)
location: class Main
Main.java:55: error: incompatible types: boolean cannot be converted to ArrayList<Edge>
dic.put(s,dic.get(s).add(new Edge(t,c)));
^
Note: Some messages have been simplifi... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,977 | |
v2_s873880135 | s873880135 | s873880135 | p02361 | p02361 | u211138527 | u211138527 | 1,438,982,694 | 2015-08-07T21:24:54 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pa... | Main.java:50: error: cannot find symbol
if(!containsKey(s)){
^
symbol: method containsKey(int)
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 2,004 | |
v2_s185274873 | s185274873 | s185274873 | p02361 | p02361 | u211138527 | u211138527 | 1,438,984,261 | 2015-08-07T21:51:01 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pa... | Main.java:83: error: ';' expected
int cost=e.cost
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 2,095 | |
v2_s782789887 | s782789887 | s782789887 | p02361 | p02361 | u211138527 | u211138527 | 1,438,985,649 | 2015-08-07T22:14:09 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x;... | Main.java:50: error: int cannot be dereferenced
s.add(new Edge(t,c));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,971 | |
v2_s869139715 | s869139715 | s869139715 | p02361 | p02361 | u211138527 | u211138527 | 1,438,988,795 | 2015-08-07T23:06:35 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x;... | Main.java:45: error: type Main.MyArrayList does not take parameters
for(int i=0;i<v;i++) array[i]=new MyArrayList<Edge>();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,944 | |
v2_s596396351 | s596396351 | s596396351 | p02361 | p02361 | u211138527 | u211138527 | 1,438,988,860 | 2015-08-07T23:07:40 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x;... | Main.java:45: error: '(' or '[' expected
for(int i=0;i<v;i++) array[i]=new MyArrayList;
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,936 | |
v2_s517619731 | s517619731 | s517619731 | p02361 | p02361 | u211138527 | u211138527 | 1,438,988,893 | 2015-08-07T23:08:13 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x;... | Main.java:45: error: non-static variable this cannot be referenced from a static context
for(int i=0;i<v;i++) array[i]=new MyArrayList();
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,938 | |
v2_s240515403 | s240515403 | s240515403 | p02361 | p02361 | u211138527 | u211138527 | 1,438,989,121 | 2015-08-07T23:12:01 | Main.java | import java.io.*;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.PriorityQueue;
import java.util.Comparator;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Pair{
int x;
int y;
Pair(int x,int y){
this.x=x;... | Main.java:34: error: <identifier> expected
ststic class MyArrayList extends ArrayList<Edge>{}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02361|1 | u211138527|p02361|0 | codenet | Compile Error | 1,945 | |
v2_s537969702 | s537969702 | s537969702 | p02361 | p02361 | u287271396 | u287271396 | 1,513,819,927 | 2017-12-21T01:32:07 | Main.java | import java.util.*;
import java.io.*;
public class Main {
static int vertex;
static int edges;
static boolean[] visited;
static int[] cost;
static int[] parent;
static ArrayList<Edge>[] graph;
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static... | Main.java:109: error: ';' expected
if(cost[i]==Integer.MAX_VALUE){System.out.println("INF")}else{System.out.println(cost[i]);}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02361|0 | u287271396|p02361|0 | codenet | Compile Error | 2,987 | |
v2_s326873318 | s326873318 | s326873318 | p02361 | p02361 | u517313267 | u517313267 | 1,418,385,843 | 2014-12-12T12:04:03 | Main.java |
import java.util.*;
class Main {
static final int INF = Integer.Max_VALUE/2;
public static final Comparator<Node> COMPARATOR = new Comp();
private static class Comp implements Comparator<Node>{
public int compare(Node x,Node y){
if(x.d>y.d){
return 1;
}
else if(x.d<y.d){
return -1;
}
retur... | Main.java:5: error: cannot find symbol
static final int INF = Integer.Max_VALUE/2;
^
symbol: variable Max_VALUE
location: class Integer
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u517313267|p02361|0 | u517313267|p02361|0 | codenet | Compile Error | 1,708 | |
v2_s520984772 | s520984772 | s520984772 | p02361 | p02361 | u758239510 | u758239510 | 1,559,384,711 | 2019-06-01T10:25:11 | Main.java | import PQ.PQEntry;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.math.BigDecimal;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import... | Main.java:1: error: package PQ does not exist
import PQ.PQEntry;
^
Main.java:545: error: cannot find symbol
PQEntry[] qEs = new PQEntry[n];
^
symbol: class PQEntry
location: class G<V,E>
where V,E are type-variables:
V extends Object declared in class G
E extends Object declared in class G
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u758239510|p02361|4 | u758239510|p02361|3 | codenet | Compile Error | 24,405 | |
v2_s982904671 | s982904671 | s982904671 | p02361 | p02361 | u774414083 | u774414083 | 1,501,683,113 | 2017-08-02T14:11:53 | graph.java | public class graph{
public static void main(String[] args) throws Exception{
Scanner s = new Scanner(System.in);
int V = s.nextInt();
int E = s.nextInt();
int src = s.nextInt();
HashMap<Integer, List<int[]>> graph = new HashMap<>(V);
for(int i = 0; i < V; ++i){
graph.put(i, new LinkedList<int[]>());
... | graph.java:3: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class graph
graph.java:3: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class graph
graph.java:8: error: cannot find symbol
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02361|0 | u774414083|p02361|0 | codenet | Compile Error | 1,017 | |
v2_s106403516 | s106403516 | s106403516 | p02361 | p02361 | u875331313 | u875331313 | 1,523,760,840 | 2018-04-15T02:54:00 | Main.java | import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.PriorityQueue;
import java.util.Scanner;
class Main{
class Edge{
int to,cost;
Edge(int to,int cost){this.to=to;this.cost=cost;}
}
class Node{
int v,dis;
Node(int v,int dis){this.v=... | Main.java:23: error: invalid method declaration; return type required
Dijkstra(int N){
^
Main.java:28: error: invalid method declaration; return type required
Dijkstra(int N,int[] from, int[] to,int[] cost){
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u875331313|p02361|0 | u875331313|p02361|0 | codenet | Compile Error | 2,127 | |
v2_s850682872 | s850682872 | s850682872 | p02361 | p02361 | u960937651 | u960937651 | 1,523,634,676 | 2018-04-13T15:51:16 | Main.java | import java.util.*;
class Main {
final static int INF = 99999999;
static int[][] adjArr;
static int v;
static int[] dist;
static boolean[] visited;
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
v = scan.nextInt();
int e = scan.nextInt();
int s = scan.nextIn... | Main.java:48: error: cannot find symbol
System.out.pritln("INF");
^
symbol: method pritln(String)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u960937651|p02361|2 | u960937651|p02361|1 | codenet | Compile Error | 1,722 | |
v2_s868294144 | s868294144 | s868294144 | p02362 | p02362 | u211138527 | u211138527 | 1,438,974,296 | 2015-08-07T19:04:56 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:35: error: cannot find symbol
BellmanFord(v,e,r,neg,es,d);
^
symbol: variable neg
location: class Main
Main.java:36: error: cannot find symbol
if(neg){
^
symbol: variable neg
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,386 | |
v2_s703701662 | s703701662 | s703701662 | p02362 | p02362 | u211138527 | u211138527 | 1,438,975,272 | 2015-08-07T19:21:12 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:71: error: missing return statement
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,371 | |
v2_s582976029 | s582976029 | s582976029 | p02362 | p02362 | u211138527 | u211138527 | 1,438,975,885 | 2015-08-07T19:31:25 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:71: error: missing return statement
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,371 | |
v2_s014490843 | s014490843 | s014490843 | p02362 | p02362 | u211138527 | u211138527 | 1,438,976,171 | 2015-08-07T19:36:11 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:71: error: missing return statement
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,371 | |
v2_s215787236 | s215787236 | s215787236 | p02362 | p02362 | u211138527 | u211138527 | 1,438,976,282 | 2015-08-07T19:38:02 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:69: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,365 | |
v2_s643036899 | s643036899 | s643036899 | p02362 | p02362 | u211138527 | u211138527 | 1,438,976,358 | 2015-08-07T19:39:18 | Main.java | import java.io.*;
import java.util.Arrays;
class Main{
static final int INF=Integer.MAX_VALUE/2;
static final PrintWriter out=new PrintWriter(System.out);
static class Edge{
int from;
int to;
int cost;
Edge(int from,int to,int cost){
this.from=from; this.to=to; this.cost=cost;
}
}
public static void... | Main.java:69: error: missing return statement
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02362|0 | u211138527|p02362|0 | codenet | Compile Error | 1,367 | |
v2_s494822910 | s494822910 | s494822910 | p02362 | p02362 | u774414083 | u774414083 | 1,501,729,513 | 2017-08-03T03:05:13 | Main.java | import java.util.*;
class Main {
//Bellman-Ford's Algorithm
private static final int MAX = 99999;
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int V = scanner.nextInt();
int E = scanner.nextInt();
int src = scanner.nextI... | Main.java:57: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02362|0 | u774414083|p02362|0 | codenet | Compile Error | 1,580 | |
v2_s592180443 | s592180443 | s592180443 | p02362 | p02362 | u774414083 | u774414083 | 1,501,729,557 | 2017-08-03T03:05:57 | Main.java | import java.util.*;
class Main {
//Bellman-Ford's Algorithm
private static final int MAX = 99999;
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int V = scanner.nextInt();
int E = scanner.nextInt();
int src = scanner.nextI... | Main.java:57: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02362|0 | u774414083|p02362|0 | codenet | Compile Error | 1,580 | |
v2_s519765129 | s519765129 | s519765129 | p02362 | p02362 | u774414083 | u774414083 | 1,501,729,574 | 2017-08-03T03:06:14 | Main.java | import java.util.*;
class Main {
//Bellman-Ford's Algorithm
private static final int MAX = 99999;
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int V = scanner.nextInt();
int E = scanner.nextInt();
int src = scanner.nextI... | Main.java:57: error: reached end of file while parsing
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02362|0 | u774414083|p02362|0 | codenet | Compile Error | 1,580 | |
v2_s914557948 | s914557948 | s914557948 | p02362 | p02362 | u871901071 | u871901071 | 1,404,812,139 | 2014-07-08T09:35:39 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
S... | Main.java:14: error: generic array creation
ArrayList<Edge>[] list = new ArrayList<Edge>[V];
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u871901071|p02362|0 | u871901071|p02362|0 | codenet | Compile Error | 2,229 | |
v2_s987712878 | s987712878 | s987712878 | p02362 | p02362 | u871901071 | u871901071 | 1,404,812,188 | 2014-07-08T09:36:28 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
S... | Main.java:14: error: generic array creation
List<Edge>[] list = new ArrayList<Edge>[V];
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u871901071|p02362|0 | u871901071|p02362|0 | codenet | Compile Error | 2,224 | |
v2_s264321654 | s264321654 | s264321654 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,602 | 2017-12-20T07:23:22 | LazyPrimsAdjacencyList.java | import java.util.*;
public class LazyPrimsAdjacencyList {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int from, to, cost;
public Edge(int from, int to, int cost) {
this.from = from;
this.to = to;
this... | LazyPrimsAdjacencyList.java:6: error: cannot find symbol
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class LazyPrimsAdjacencyList
LazyPrimsAdjacencyList.java:6: error: cannot find symbol
static BufferedReader br = new BufferedRea... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,631 | |
v2_s196263348 | s196263348 | s196263348 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,644 | 2017-12-20T07:24:04 | Main.java | import java.util.*;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int from, to, cost;
public Edge(int from, int to, int cost) {
this.from = from;
this.to = to;
this.cost = cost;
... | Main.java:6: error: cannot find symbol
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,691 | |
v2_s574713295 | s574713295 | s574713295 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,695 | 2017-12-20T07:24:55 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int fro... | Main.java:79: error: cannot find symbol
graph[a][b] = c-1;
^
symbol: variable graph
location: class Main
Main.java:94: error: variable edge is already defined in method main(String[])
Edge edge = new Edge(from, to, cost);
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,818 | |
v2_s397157268 | s397157268 | s397157268 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,786 | 2017-12-20T07:26:26 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int... | Main.java:94: error: variable edge is already defined in method main(String[])
Edge edge = new Edge(from, to, cost);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,845 | |
v2_s677891849 | s677891849 | s677891849 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,856 | 2017-12-20T07:27:36 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int... | Main.java:94: error: variable edge is already defined in method main(String[])
Edge edge = new Edge(from, to, cost);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,845 | |
v2_s944829945 | s944829945 | s944829945 | p02364 | p02364 | u287271396 | u287271396 | 1,513,754,918 | 2017-12-20T07:28:38 | Main.java | import java.util.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static class Edge implements Comparable <Edge> {
int... | Main.java:72: error: cannot find symbol
int[][] edges= new int[edge][edge];
^
symbol: variable edge
location: class Main
Main.java:72: error: cannot find symbol
int[][] edges= new int[edge][edge];
^
symbol: variable edge
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u287271396|p02364|0 | u287271396|p02364|0 | codenet | Compile Error | 2,839 | |
v2_s704898508 | s704898508 | s704898508 | p02364 | p02364 | u647529925 | u647529925 | 1,492,002,076 | 2017-04-12T13:01:16 | Main.java |
import java.util.*;
/**
* Created by shoya on 2017/04/12.
*/
public class Main {
public static void main(String... args){
Scanner sc = new Scanner(System.in);
int V = sc.nextInt();
int E = sc.nextInt();
KruskalClass krus = new KruskalClass(V, E);
//System.out.printf("%d ... | Main.java:53: error: package UnionFindTree does not exist
UnionFindTree.UFT uft = new UnionFindTree.UFT(V);
^
Main.java:53: error: package UnionFindTree does not exist
UnionFindTree.UFT uft = new UnionFindTree.UFT(V);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u647529925|p02364|0 | u647529925|p02364|0 | codenet | Compile Error | 3,227 | |
v2_s317235285 | s317235285 | s317235285 | p02364 | p02364 | u647529925 | u647529925 | 1,492,002,867 | 2017-04-12T13:14:27 | Kruskal.java |
import java.util.*;
/**
* Created by shoya on 2017/04/12.
*/
public class Kruskal {
public static void main(String... args){
Scanner sc = new Scanner(System.in);
int V = sc.nextInt();
int E = sc.nextInt();
KruskalClass krus = new KruskalClass(V, E);
//System.out.printf("... | Kruskal.java:49: error: package UnionFindTree does not exist
UnionFindTree.UFT uft = new UnionFindTree.UFT(V);
^
Kruskal.java:49: error: package UnionFindTree does not exist
UnionFindTree.UFT uft = new UnionFindTree.UFT(V);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u647529925|p02364|0 | u647529925|p02364|0 | codenet | Compile Error | 3,124 | |
v2_s665427511 | s665427511 | s665427511 | p02368 | p02368 | u323357326 | u323357326 | 1,466,042,618 | 2016-06-16T02:03:38 | Main.java |
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main implements Runnable{
@Override
public void run(){
new Main().solver();
}
// Template
public static void main(String[] args) {
new Thread(null, new scc(), "", 16 * 1024 * 1024).start... | Main.java:16: error: cannot find symbol
new Thread(null, new scc(), "", 16 * 1024 * 1024).start();
^
symbol: class scc
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02368|1 | u323357326|p02368|1 | codenet | Compile Error | 1,875 | |
v2_s449148290 | s449148290 | s449148290 | p02368 | p02368 | u323357326 | u323357326 | 1,466,042,655 | 2016-06-16T02:04:15 | Main.java |
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main implements Runnable{
@Override
public void run(){
new Main().solver();
}
// Template
public static void main(String[] args) {
new Thread(null, new scc(), "", 16 * 1024 * 1024).sta... | Main.java:18: error: cannot find symbol
new Thread(null, new scc(), "", 16 * 1024 * 1024).start();
^
symbol: class scc
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02368|1 | u323357326|p02368|1 | codenet | Compile Error | 1,877 | |
v2_s083440012 | s083440012 | s083440012 | p02368 | p02368 | u811434779 | u811434779 | 1,449,920,473 | 2015-12-12T11:41:13 | Main.java | import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
// ?????£?????????????§£O(|V| + |E|)
public class StronglyConnectedComponent {
int V;
List<List<Integer>> G; // ??°???????????£??\???????????¨???
List<List<Integer>> rG; // ?????????????????????????????°??????
... | Main.java:6: error: class StronglyConnectedComponent is public, should be declared in a file named StronglyConnectedComponent.java
public class StronglyConnectedComponent {
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u811434779|p02368|0 | u811434779|p02368|0 | codenet | Compile Error | 3,131 | |
v2_s605824224 | s605824224 | s605824224 | p02368 | p02368 | u811434779 | u811434779 | 1,449,927,201 | 2015-12-12T13:33:21 | Main.java | import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Scanner;
public class Main implements Runnable {
public static void main(String[] args) {
new Thread(null, new Main(), "", 16 * 1024 * 1024).start();
}
public void run() {
static int V;
static List<List<Integ... | Main.java:11: error: illegal start of expression
static int V;
^
Main.java:20: error: <identifier> expected
V = n;
^
Main.java:21: error: <identifier> expected
G = new ArrayList<List<Integer>>(n);
^
Main.java:22: error: <identifier> expected
rG = new ArrayList<List<Integer>>(n);
^
Ma... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u811434779|p02368|0 | u811434779|p02368|0 | codenet | Compile Error | 2,034 | |
v2_s954323330 | s954323330 | s954323330 | p02369 | p02369 | u470525455 | u470525455 | 1,509,822,722 | 2017-11-04T19:12:02 | Main.java | public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int v = scan.nextInt();
int e = scan.nextInt();
Map<Integer, List<Integer>> adj_list = new HashMap<Integer, List<Integer>>();
while ( v-- > 0 ){
int x = scan.nextInt();
int y = scan.nextInt();
if ( !ad... | Main.java:19: error: cannot find symbol
public boolean graph_iscycle(Map<Integer, List<Integer>> adj_list){
^
symbol: class Map
location: class Main
Main.java:19: error: cannot find symbol
public boolean graph_iscycle(Map<Integer, List<Integer>> adj_list){
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u470525455|p02369|0 | u470525455|p02369|0 | codenet | Compile Error | 1,380 | |
v2_s832014893 | s832014893 | s832014893 | p02369 | p02369 | u774414083 | u774414083 | 1,501,920,973 | 2017-08-05T08:16:13 | Main.java | import java.util.*;
public class Main {
private static HashMap<Integer, List<Integer>> graph;
public static void main(String[] args) throws Exception{
Scanner scanner = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int V = scanner.nextInt();
int E = scanner.nextInt(... | Main.java:6: error: cannot find symbol
Scanner scanner = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
^
symbol: class BufferedReader
location: class Main
Main.java:6: error: cannot find symbol
Scanner scanner = new Scanner(new Buffere... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02369|0 | u774414083|p02369|0 | codenet | Compile Error | 1,402 | |
v2_s213876657 | s213876657 | s213876657 | p02370 | p02370 | u211138527 | u211138527 | 1,453,897,502 | 2016-01-27T12:25:02 | Main.java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigInteger;
public class Main{
static PrintWriter out... | Main.java:79: error: cannot find symbol
private void ts(int now,booelan[] vis,ArrayList<Integer> ord){
^
symbol: class booelan
location: class G
Main.java:20: error: method addEdge in class G cannot be applied to given types;
for(int i=0;i<E;i++) g.addEdge(ir.nextInt(),ir.nextInt());
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02370|0 | u211138527|p02370|0 | codenet | Compile Error | 4,453 | |
v2_s563605897 | s563605897 | s563605897 | p02370 | p02370 | u211138527 | u211138527 | 1,453,897,616 | 2016-01-27T12:26:56 | Main.java | import java.io.InputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
import java.math.BigInteger;
public class Main{
static PrintWriter out... | Main.java:20: error: method addEdge in class G cannot be applied to given types;
for(int i=0;i<E;i++) g.addEdge(ir.nextInt(),ir.nextInt());
^
required: int,int,int
found: int,int
reason: actual and formal argument lists differ in length
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u211138527|p02370|0 | u211138527|p02370|0 | codenet | Compile Error | 4,441 | |
v2_s572739823 | s572739823 | s572739823 | p02371 | p02371 | u532229833 | u532229833 | 1,515,263,879 | 2018-01-06T18:37:59 | Main.java | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
static long x = 0;
public static void main(String[] args) {
try {
Scanner sc = new Scanner(System.in);
int n= sc.nextInt();
// cin >> n;
ArrayList<node> tree = new ArrayList<>();... | Main.java:31: error: cannot find symbol
} catch (StackOverFlowError e) {
^
symbol: class StackOverFlowError
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532229833|p02371|0 | u532229833|p02371|0 | codenet | Compile Error | 2,705 | |
v2_s339723296 | s339723296 | s339723296 | p02371 | p02371 | u532229833 | u532229833 | 1,515,264,178 | 2018-01-06T18:42:58 | Main.java | import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.Arrays; import java.util.ArrayList; import java.util.HashMap; import java.util.Comparator; import java.util.Queue; import java.util.PriorityQueue; public class Main { public static class Node { int n; int c... | Main.java:1: error: reached end of file while parsing
import java.io.IOException; import java.io.InputStream; import java.util.NoSuchElementException; import java.util.Arrays; import java.util.ArrayList; import java.util.HashMap; import java.util.Comparator; import java.util.Queue; import java.util.PriorityQueue; publi... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532229833|p02371|0 | u532229833|p02371|0 | codenet | Compile Error | 4,450 | |
v2_s169212537 | s169212537 | s169212537 | p02371 | p02371 | u532229833 | u532229833 | 1,515,264,231 | 2018-01-06T18:43:51 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Comparator;
import java.util.Queue;
import java.util.PriorityQueue;
public class Main {
public static class Node {
int n;
... | Main.java:116: error: reached end of file while parsing
} // int[] cost = dijkstra(v, maxIndex(dijkstra(v, 0, matrix)), matrix); int[] cost = dijkstraImprove(v, maxIndex(dijkstraImprove(v, 0, matrix)), matrix); System.out.println(cost[maxIndex(cost)]); } // Read Class static class FS { private final InputStream in =... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532229833|p02371|0 | u532229833|p02371|0 | codenet | Compile Error | 4,840 | |
v2_s473978976 | s473978976 | s473978976 | p02371 | p02371 | u532229833 | u532229833 | 1,515,264,299 | 2018-01-06T18:44:59 | Main.java | import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Comparator;
import java.util.Queue;
import java.util.PriorityQueue;
public class Main {
public static class Node {
int n;
... | Main.java:104: error: cannot find symbol
FS r = new FS();
^
symbol: class FS
location: class Main
Main.java:104: error: cannot find symbol
FS r = new FS();
^
symbol: class FS
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u532229833|p02371|0 | u532229833|p02371|0 | codenet | Compile Error | 3,244 | |
v2_s547086213 | s547086213 | s547086213 | p02374 | p02374 | u210794057 | u210794057 | 1,559,302,702 | 2019-05-31T11:38:22 | Main.java | import sys
sys.setrecursionlimit(int(1e6))
class BIT:
def __init__(self, n):
self.n = n
self.data = [0] * (n + 1)
def get_sum(self, i):
ret = 0
while i > 0:
ret += self.data[i]
i -= (i & -i)
return ret
def add(self, i, w):
if ... | Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:4: error: illegal character: '\u00a0'
?
^
Main.java:5: error: illegal character: '\u00a0'
?
^
Main.java:6: error: '{' expected
class BIT:
^
Main.java:7: error: illegal character: '\u00a0'
????def __init__(self, n):
^
Main.java:7: error: illegal char... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u210794057|p02374|0 | u210794057|p02374|0 | codenet | Compile Error | 1,132 | |
v2_s996145761 | s996145761 | s996145761 | p02376 | p02376 | u323357326 | u323357326 | 1,471,675,311 | 2016-08-20T06:41:51 | Main.java | package ??°??????;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.Scanner;
//suppose that every capacity is in th... | Main.java:1: error: <identifier> expected
package ?????????;
^
Main.java:1: error: illegal character: '\u00b0'
package ?????????;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02376|0 | u323357326|p02376|0 | codenet | Compile Error | 6,149 | |
v2_s540446768 | s540446768 | s540446768 | p02376 | p02376 | u323357326 | u323357326 | 1,471,675,876 | 2016-08-20T06:51:16 | Main.java | package ??°??????;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.Scanner;
//suppose that every capacity is in th... | Main.java:1: error: <identifier> expected
package ?????????;
^
Main.java:1: error: illegal character: '\u00b0'
package ?????????;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02376|0 | u323357326|p02376|0 | codenet | Compile Error | 6,253 | |
v2_s524767181 | s524767181 | s524767181 | p02376 | p02376 | u323357326 | u323357326 | 1,471,677,590 | 2016-08-20T07:19:50 | Main.java | package ??°??????;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
//suppose that every capacity is in the domaion of integer.
public cla... | Main.java:1: error: <identifier> expected
package ?????????;
^
Main.java:1: error: illegal character: '\u00b0'
package ?????????;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02376|0 | u323357326|p02376|0 | codenet | Compile Error | 6,287 | |
v2_s869877288 | s869877288 | s869877288 | p02376 | p02376 | u323357326 | u323357326 | 1,471,677,921 | 2016-08-20T07:25:21 | Main.java | package ??°??????;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
//suppose that every capacity is in the domaion of integer.
public cla... | Main.java:1: error: <identifier> expected
package ?????????;
^
Main.java:1: error: illegal character: '\u00b0'
package ?????????;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02376|0 | u323357326|p02376|0 | codenet | Compile Error | 6,461 | |
v2_s750077467 | s750077467 | s750077467 | p02376 | p02376 | u323357326 | u323357326 | 1,471,681,022 | 2016-08-20T08:17:02 | Main.java | package ??°??????;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
//suppose that every capacity is in the domaion of integer.
public cla... | Main.java:1: error: <identifier> expected
package ?????????;
^
Main.java:1: error: illegal character: '\u00b0'
package ?????????;
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u323357326|p02376|0 | u323357326|p02376|0 | codenet | Compile Error | 6,302 | |
v2_s195322543 | s195322543 | s195322543 | p02376 | p02376 | u345663362 | u345663362 | 1,532,089,380 | 2018-07-20T12:23:00 | Main.java | import java.io.*;
import java.util.*;
//import java.util.stream.Stream;
/**
* @author baito
*/
public class Main
{
@SuppressWarnings("unchecked")
//static List<Edge>[] edges;
static boolean[] used;
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int... | Main.java:43: error: cannot find symbol
for (int i = 0; i < edges[now].size(); i++)
^
symbol: variable edges
location: class Main
Main.java:45: error: cannot find symbol
Edge e = edges[now].get(i);
^
symbol: variable edges
location: class ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u345663362|p02376|0 | u345663362|p02376|0 | codenet | Compile Error | 2,092 | |
v2_s160469312 | s160469312 | s160469312 | p02376 | p02376 | u774414083 | u774414083 | 1,505,622,382 | 2017-09-17T04:26:22 | Main.java | import java.io.*;
import java.util.*;
public class Main implements Runnable{
private ArrayList<ArrayList<Integer>> graph;
private Edge[] edges;
public static void main(String[] args) throws Exception {
new Thread(null, new Main(), "bridge", 16 * 1024 * 1024).start();
}
@Override
public... | Main.java:75: error: cannot find symbol
Edge edge = edges.get(edgeIndex);
^
symbol: method get(int)
location: variable edges of type Edge[]
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u774414083|p02376|4 | u774414083|p02376|4 | codenet | Compile Error | 5,007 | |
v2_s317844453 | s317844453 | s317844453 | p02376 | p02376 | u875331313 | u875331313 | 1,518,188,537 | 2018-02-09T15:02:17 | Main.java | import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;
@SuppressWarning("unchecked")
class MaxFlow{
class Edge{
int to,cap,revIndex;
Edge(int to,int cap,int rev){
this.to = to;
... | Main.java:8: error: cannot find symbol
@SuppressWarning("unchecked")
^
symbol: class SuppressWarning
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u875331313|p02376|1 | u875331313|p02376|1 | codenet | Compile Error | 2,539 | |
v2_s960425050 | s960425050 | s960425050 | p02376 | p02376 | u875331313 | u875331313 | 1,518,188,560 | 2018-02-09T15:02:40 | Main.java | import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;
class MaxFlow{
class Edge{
int to,cap,revIndex;
Edge(int to,int cap,int rev){
this.to = to;
this.cap = cap;
... | Main.java:18: error: cannot find symbol
@SuppressWarning("unchecked")
^
symbol: class SuppressWarning
location: class MaxFlow
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u875331313|p02376|1 | u875331313|p02376|1 | codenet | Compile Error | 2,539 | |
v2_s001454623 | s001454623 | s001454623 | p02379 | p02379 | u019517886 | u019517886 | 1,418,272,588 | 2014-12-11T04:36:28 | Main.java | /
//スキャナつかうため
import java.util.Scanner;
public class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
// 入力ストリームの生成
Scanner sc = new Scanner(System.in);
// 4つの数字を受け取る
double dbX1 = sc.nextDouble();
double dbX2 = sc.nextDouble();
double dbY1 = sc.nextDouble();
double dbY2 = sc.nextDo... | Main.java:1: error: class, interface, enum, or record expected
/
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u019517886|p02379|0 | u019517886|p02379|0 | codenet | Compile Error | 535 | |
v2_s362317531 | s362317531 | s362317531 | p02379 | p02379 | u065787019 | u065787019 | 1,396,935,130 | 2014-04-08T05:32:10 | Math.java |
import java.util.Scanner;
public class Math {
public static void main(String[] args){
//
Scanner sc = new Scanner(System.in);
//最初の座標
int firstX = sc.nextInt();
int firstY = sc.nextInt();
//二つ目の座標
int secondX = sc.nextInt();
int secondY = sc.nextInt();
//二つの座標の距離
double answer;
answe... | Math.java:21: error: cannot find symbol
answer = Math.sqrt(((secondX-firstX)*(secondX-firstX))+((secondY-firstY)*(secondY-firstY)));
^
symbol: method sqrt(int)
location: class Math
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u065787019|p02379|0 | u065787019|p02379|0 | codenet | Compile Error | 481 | |
v2_s673269676 | s673269676 | s673269676 | p02379 | p02379 | u065787019 | u065787019 | 1,398,070,996 | 2014-04-21T09:03:16 | Main.java | package Rental_DVD_Shop;
import java.util.ArrayList;
public class Main {
public static void main(String[] args){
}
}
//ビデオクラス
class Video{
//新作値段
int newVideoPrice = 0;
//新作本数
int newVideoNumber = 0;
//準新作値段
int normalVideoPrice = 0;
//準新作本数
int normalVideoNumber = 0;
//旧作
int oldVideoPrice = 0;
//旧... | Main.java:56: error: '(' expected
if
^
Main.java:58: error: illegal start of expression
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u065787019|p02379|2 | u065787019|p02379|2 | codenet | Compile Error | 1,215 | |
v2_s900611919 | s900611919 | s900611919 | p02379 | p02379 | u144193947 | u144193947 | 1,494,337,382 | 2017-05-09T13:43:02 | Main.java | import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] line = br.readLine().split(" ");
double x1 = Integer.parseInt(line[0]);
double y1 = Integer.parseInt(l... | Main.java:13: error: cannot find symbol
System.out.printlf("%.5f", dis);
^
symbol: method printlf(String,double)
location: variable out of type PrintStream
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u144193947|p02379|0 | u144193947|p02379|0 | codenet | Compile Error | 539 | |
v2_s332245464 | s332245464 | s332245464 | p02379 | p02379 | u203382477 | u203382477 | 1,525,768,990 | 2018-05-08T08:43:10 | Main.java | import java.util.Scanner;
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
double x1=scan.nextInt();
double y1=scan.nextInt();
double x2=scan.nextInt();
double y2=scan.nextInt();
double a=x1-x2;
double b=y1-y2;
double c=0;
... | Main.java:2: 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:19: error: class, interface, enum, or record expected
}
^
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u203382477|p02379|0 | u203382477|p02379|0 | codenet | Compile Error | 530 | |
v2_s770989633 | s770989633 | s770989633 | p02379 | p02379 | u233376535 | u233376535 | 1,491,472,907 | 2017-04-06T10:01:47 | Main.java |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] xy = br.readLine().split(" ");
double distance = Math.p... | Main.java:23: error: class, interface, enum, or record expected
}
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u233376535|p02379|0 | u233376535|p02379|0 | codenet | Compile Error | 519 | |
v2_s618867990 | s618867990 | s618867990 | p02379 | p02379 | u389610071 | u389610071 | 1,492,724,485 | 2017-04-20T21:41:25 | Main.java | import static java.lang.System.out;
import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
float x = scan.nextInt();
float y = scan.nextInt();
float x2 = scan.nextInt();
float y2 = scan.nextInt();
float a... | Main.java:11: error: incompatible types: possible lossy conversion from double to float
float ans = Math.sqrt((x2 - x) * (x2 - x) + (y2 - y) * (y2 - y));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u389610071|p02379|1 | u389610071|p02379|1 | codenet | Compile Error | 458 | |
v2_s059935244 | s059935244 | s059935244 | p02379 | p02379 | u418625354 | u418625354 | 1,498,102,215 | 2017-06-22T03:30:15 | Main.java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.Math.pow;
import java.Math.sqrt;
import java.text.Format;
/*Question
/?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°????????????????????????
*/
/*Input
/x1, y1, x2, y2 ????????°???????????????????????§?????????????????????
*/
... | Main.java:26: error: ')' or ',' expected
System.out.pritnln(Math.sqrt(Math.pow(z[0]-z[2], 2) + Math.pow(z[1]-z[3], 2));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u418625354|p02379|0 | u418625354|p02379|0 | codenet | Compile Error | 871 | |
v2_s318652735 | s318652735 | s318652735 | p02379 | p02379 | u473115569 | u473115569 | 1,526,817,502 | 2018-05-20T11:58:22 | Main.java | package icpc;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double x1 = sc.nextInt();
double y1 = sc.nextInt();
double x2 = sc.nextInt();
double y2 = sc.nextInt();
double a = x1-x2;
double b = y1-y2;
System.out.printf(Mat... | Main.java:14: error: no suitable method found for printf(double)
System.out.printf(Math.sqrt(a*a + b*b));
^
method PrintStream.printf(String,Object...) is not applicable
(argument mismatch; double cannot be converted to String)
method PrintStream.printf(Locale,String,Object...) is not applic... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u473115569|p02379|0 | u473115569|p02379|0 | codenet | Compile Error | 346 | |
v2_s283685342 | s283685342 | s283685342 | p02379 | p02379 | u574420836 | u574420836 | 1,404,196,000 | 2014-07-01T06:26:40 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double x1 = sc.nextDouble();
double y1 = sc.nextDouble();
double x2 = sc.nextDouble();
double y2 = sc.nextDouble();
System.out.println(Math.sqrt((x1-y1)*(x1-y1)+(x2-y2)*(x2-y2));
}... | Main.java:10: error: ')' or ',' expected
System.out.println(Math.sqrt((x1-y1)*(x1-y1)+(x2-y2)*(x2-y2));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u574420836|p02379|1 | u574420836|p02379|1 | codenet | Compile Error | 322 | |
v2_s310390294 | s310390294 | s310390294 | p02379 | p02379 | u594816808 | u594816808 | 1,525,839,982 | 2018-05-09T04:26:22 | Main.java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double[] pt = new double[4];
for (int i = 0; i < 4; i++) {
pt[i] = sc.nextDouble();
}
double distance = Math.pow(pt[2] - pt[0], 2) + Math.pow(pt[3] - pt[1], 2);
distance = Math.sqrt(distance);
System.... | Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:4: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u594816808|p02379|0 | u594816808|p02379|0 | codenet | Compile Error | 366 | |
v2_s501762666 | s501762666 | s501762666 | p02379 | p02379 | u644653061 | u644653061 | 1,393,466,271 | 2014-02-27T01:57:51 | Math.java | import java.util.Scanner;
public class Math {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x1=scan.nextInt();
int y1=scan.nextInt();
int x2=scan.nextInt();
int y2=scan.nextInt();
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
System.out.printf("%.8f\n",Math.sqrt(d))... | Math.java:9: error: cannot find symbol
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
^
symbol: method pow(int,int)
location: class Math
Math.java:9: error: cannot find symbol
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
^
symbol: method pow(int,in... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u644653061|p02379|0 | u644653061|p02379|0 | codenet | Compile Error | 342 | |
v2_s701112032 | s701112032 | s701112032 | p02379 | p02379 | u644653061 | u644653061 | 1,393,466,287 | 2014-02-27T01:58:07 | Math.java | import java.util.Scanner;
public class Math {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int x1=scan.nextInt();
int y1=scan.nextInt();
int x2=scan.nextInt();
int y2=scan.nextInt();
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
System.out.printf("%.8f\n",Math.sqrt(d))... | Math.java:9: error: cannot find symbol
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
^
symbol: method pow(int,int)
location: class Math
Math.java:9: error: cannot find symbol
double d=Math.pow((x1-x2),2)+Math.pow((y1-y2),2);
^
symbol: method pow(int,in... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u644653061|p02379|0 | u644653061|p02379|0 | codenet | Compile Error | 342 | |
v2_s571090568 | s571090568 | s571090568 | p02379 | p02379 | u699160354 | u699160354 | 1,514,443,643 | 2017-12-28T06:47:23 | Main.java | import java.util.*;
calss Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
System.... | Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
^
(use --enable-preview to enable unnamed classes)
Main.java:14: error: class, interface, enum, or... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 375 | |
v2_s778095288 | s778095288 | s778095288 | p02379 | p02379 | u699160354 | u699160354 | 1,514,443,679 | 2017-12-28T06:47:59 | Main.java | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
System.... | Main.java:10: error: cannot find symbol
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
^
symbol: method sprt(double)
location: class Math
Main.java:12: error: cannot find symbol
System.out.pritnln();
^
symbol: method pritnln()
location: variable out of type... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 375 | |
v2_s777184207 | s777184207 | s777184207 | p02379 | p02379 | u699160354 | u699160354 | 1,514,443,814 | 2017-12-28T06:50:14 | Main.java | import java.util.*;
import java.Math.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)... | Main.java:2: error: package java.Math does not exist
import java.Math.*;
^
Main.java:11: error: cannot find symbol
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
^
symbol: method sprt(double)
location: class Math
Main.java:13: error: cannot find symbol
System.out.... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 395 | |
v2_s568498397 | s568498397 | s568498397 | p02379 | p02379 | u699160354 | u699160354 | 1,514,443,915 | 2017-12-28T06:51:55 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-... | Main.java:11: error: cannot find symbol
double answer = Math.sprt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
^
symbol: method sprt(double)
location: class Math
Main.java:13: error: cannot find symbol
System.out.pritnln();
^
symbol: method pritnln()
location: variable out of type... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 398 | |
v2_s660045951 | s660045951 | s660045951 | p02379 | p02379 | u699160354 | u699160354 | 1,514,444,049 | 2017-12-28T06:54:09 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double n=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
dou... | Main.java:11: error: ';' expected
double n=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 413 | |
v2_s678441765 | s678441765 | s678441765 | p02379 | p02379 | u699160354 | u699160354 | 1,514,444,084 | 2017-12-28T06:54:44 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1=(double)sc.nextInt();
double y1=(double)sc.nextInt();
double x2=(double)sc.nextInt();
double y2=(double)sc.nextInt();
double n=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
do... | Main.java:12: error: cannot find symbol
double answer = Math.sprt(n);
^
symbol: method sprt(double)
location: class Math
Main.java:14: error: cannot find symbol
System.out.pritnln("");
^
symbol: method pritnln(String)
location: variable out of type PrintStream
2 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 414 | |
v2_s831596297 | s831596297 | s831596297 | p02379 | p02379 | u699160354 | u699160354 | 1,514,444,647 | 2017-12-28T07:04:07 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine.().split("");
double x1=double.parseDouble(line[0]);
double y1=double.parseDouble(line[1]);
double x2=double.parseDouble(line[2]);
double y2=doubl... | Main.java:7: error: <identifier> expected
String[] line = sc.nextLine.().split("");
^
Main.java:8: error: class expected
double x1=double.parseDouble(line[0]);
^
Main.java:8: error: ';' expected
double x1=double.parseDouble(line[0]);
^... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 484 | |
v2_s175566082 | s175566082 | s175566082 | p02379 | p02379 | u699160354 | u699160354 | 1,514,445,069 | 2017-12-28T07:11:09 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine.().split(" ");
double x1= double.parseDouble(line[0]);
double y1= double.parseDouble(line[1]);
double x2= double.parseDouble(line[2]);
double y2= ... | Main.java:7: error: <identifier> expected
String[] line = sc.nextLine.().split(" ");
^
Main.java:8: error: class expected
double x1= double.parseDouble(line[0]);
^
Main.java:8: error: ';' expected
double x1= double.parseDouble(line[0]);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 489 | |
v2_s862850460 | s862850460 | s862850460 | p02379 | p02379 | u699160354 | u699160354 | 1,514,445,107 | 2017-12-28T07:11:47 | Main.java | import java.util.*;
import java.lang.Math;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
double x1= double.parseDouble(line[0]);
double y1= double.parseDouble(line[1]);
double x2= double.parseDouble(line[2]);
double y2= d... | Main.java:8: error: class expected
double x1= double.parseDouble(line[0]);
^
Main.java:8: error: ';' expected
double x1= double.parseDouble(line[0]);
^
Main.java:8: error: not a statement
double x1= double.parseDouble(line[0]);
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u699160354|p02379|0 | u699160354|p02379|0 | codenet | Compile Error | 488 | |
v2_s334645068 | s334645068 | s334645068 | p02379 | p02379 | u768801062 | u768801062 | 1,527,563,366 | 2018-05-29T03:09:26 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import javafx.geometry.Point2D;
public class Main {
public static void main(String[] args) throws IOException {
try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String[] line ... | Main.java:5: error: package javafx.geometry does not exist
import javafx.geometry.Point2D;
^
Main.java:14: error: cannot find symbol
Point2D p1 = new Point2D(Double.parseDouble(line[0]), Double.parseDouble(line[1]));
^
symbol: class Point2D
location: class Main
Main.java:14: erro... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u768801062|p02379|0 | u768801062|p02379|0 | codenet | Compile Error | 590 | |
v2_s508157856 | s508157856 | s508157856 | p02379 | p02379 | u895275311 | u895275311 | 1,491,550,848 | 2017-04-07T07:40:48 | Main.java | import java.io.IOException;
import java.util.Scanner;
class Main{
public static void main(String[] args)throws NumberFormatException, IOException{
//System.out.println(" ");
Scanner scan = new Scanner(System.in);
double x1 =scan.nextInt();
double y1 =scan.nextInt();
double x2 =scan.nextInt();
double y2 =sc... | Main.java:13: error: cannot find symbol
System.out.println(keisan);
^
symbol: variable keisan
location: class Main
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u895275311|p02379|0 | u895275311|p02379|0 | codenet | Compile Error | 451 | |
v2_s444630505 | s444630505 | s444630505 | p02379 | p02379 | u910402677 | u910402677 | 1,479,886,662 | 2016-11-23T07:37:42 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
double x1 = scan.nextDouble();
double y1 = scan.nextDouble();
double x2 = scan.nextDouble();
double y2 = scan.nextDouble();
double dis = sqrt(pow((x2 - x1), 2) + pow((... | Main.java:11: error: cannot find symbol
double dis = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
^
symbol: method pow(double,int)
location: class Main
Main.java:11: error: cannot find symbol
double dis = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02379|1 | u910402677|p02379|1 | codenet | Compile Error | 373 | |
v2_s566748657 | s566748657 | s566748657 | p02379 | p02379 | u910402677 | u910402677 | 1,479,886,754 | 2016-11-23T07:39:14 | Main.java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
double x1 = scan.nextDouble();
double y1 = scan.nextDouble();
double x2 = scan.nextDouble();
double y2 = scan.nextDouble();
double dis = sqrt(pow(x2 - x1, 2) + pow(y2 ... | Main.java:11: error: cannot find symbol
double dis = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
^
symbol: method pow(double,int)
location: class Main
Main.java:11: error: cannot find symbol
double dis = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
^
symbol... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u910402677|p02379|1 | u910402677|p02379|1 | codenet | Compile Error | 369 | |
v2_s569406552 | s569406552 | s569406552 | p02379 | p02379 | u927626415 | u927626415 | 1,468,973,801 | 2016-07-20T00:16:41 | Main.java | import java.util.*;
public class Main {
public static void main(String[] args) {
try(Scanner scn = new Scanner()) {
double x1 = scn.nextDouble();
double y1 = scn.nextDouble();
double x2 = scn.nextDouble();
double y2 = scn.nextDouble();
double ans ... | Main.java:5: error: no suitable constructor found for Scanner(no arguments)
try(Scanner scn = new Scanner()) {
^
constructor Scanner.Scanner(Readable,Pattern) is not applicable
(actual and formal argument lists differ in length)
constructor Scanner.Scanner(Readable) is no... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u927626415|p02379|1 | u927626415|p02379|1 | codenet | Compile Error | 432 | |
v2_s078377558 | s078377558 | s078377558 | p02379 | p02379 | u928579315 | u928579315 | 1,515,079,883 | 2018-01-04T15:31:23 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int x1 = sc.nextInt();
int y1 = sc.nextInt();
int x2 = sc.nextInt();
int y2 = sc.nextInt();
System.out.println(Math.sqrt((x2 - x1)(x2 - x1) + (y2... | Main.java:10: error: ')' or ',' expected
System.out.println(Math.sqrt((x2 - x1)(x2 - x1) + (y2 - y1)(y2 - y1)));
^
Main.java:10: error: not a statement
System.out.println(Math.sqrt((x2 - x1)(x2 - x1) + (y2 - y1)(y2 - y1)));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u928579315|p02379|0 | u928579315|p02379|0 | codenet | Compile Error | 347 | |
v2_s717000989 | s717000989 | s717000989 | p02379 | p02379 | u928579315 | u928579315 | 1,515,079,961 | 2018-01-04T15:32:41 | Main.java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x1 = sc.nextDouble();
double y1 = sc.nextDouble();
double x2 = sc.nextDouble();
double y2 = sc.nextDouble();
System.out.println(Math.sqrt(... | Main.java:10: error: ')' or ',' expected
System.out.println(Math.sqrt((x2 - x1)(x2 - x1) + (y2 - y1)(y2 - y1)));
^
Main.java:10: error: not a statement
System.out.println(Math.sqrt((x2 - x1)(x2 - x1) + (y2 - y1)(y2 - y1)));
... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u928579315|p02379|0 | u928579315|p02379|0 | codenet | Compile Error | 371 | |
v2_s824088075 | s824088075 | s824088075 | p02379 | p02379 | u938767283 | u938767283 | 1,477,460,627 | 2016-10-26T05:43:47 | Main.java | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner scan = new java.util.Scanner(System.in);
long x1 = scan.nextLong();
long y1 = scan.nextLng();
long x2 = scan.nextLong();
long y2 = scan.nextLong();
long kyoriX2 = (x1 -... | Main.java:8: error: cannot find symbol
long y1 = scan.nextLng();
^
symbol: method nextLng()
location: variable scan of type Scanner
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u938767283|p02379|0 | u938767283|p02379|0 | codenet | Compile Error | 436 | |
v2_s838001580 | s838001580 | s838001580 | p02379 | p02379 | u967961232 | u967961232 | 1,523,004,046 | 2018-04-06T08:40:46 | Main.java | import math
def main():
p = map(float, raw_input().split())
print "%.8f" % math.sqrt((p[2] - p[0]) ** 2.0 + (p[3] - p[1]) ** 2.0)
if __name__ == '__main__':
main()
| Main.java:1: error: '.' expected
import math
^
Main.java:2: error: ';' expected
def main():
^
Main.java:6: error: unclosed character literal
if __name__ == '__main__':
^
Main.java:6: error: unclosed character literal
if __name__ == '__main__':
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u967961232|p02379|0 | u967961232|p02379|0 | codenet | Compile Error | 177 | |
v2_s173565270 | s173565270 | s173565270 | p02379 | p02379 | u967961232 | u967961232 | 1,523,082,280 | 2018-04-07T06:24:40 | Main.java | import math
def main():
(a, b, c) = map(int, raw_input().split())
print "%.8f" % (a * b * math.sin(math.radians(c)) / 2.0)
print "%.8f" % (a + b + math.sqrt(a ** 2.0 + b ** 2.0 - (2.0 * a * b * math.cos(math.radians(c)))))
print "%.8f" % (b * math.sin(math.radians(c)))
if __name__ == '__main__':
ma... | Main.java:1: error: '.' expected
import math
^
Main.java:2: error: ';' expected
def main():
^
Main.java:8: error: unclosed character literal
if __name__ == '__main__':
^
Main.java:8: error: unclosed character literal
if __name__ == '__main__':
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u967961232|p02379|1 | u967961232|p02379|1 | codenet | Compile Error | 325 | |
v2_s426574746 | s426574746 | s426574746 | p02379 | p02379 | u967961232 | u967961232 | 1,523,082,413 | 2018-04-07T06:26:53 | Main.java | import math
def main():
while True:
n = float(raw_input().strip())
if n == 0.0:
break
s = [float(x) for x in raw_input().split()]
mean = float(sum(s) / n)
print "%.8f" % (math.sqrt(sum([(x -mean) * (x - mean) for x in s]) / n))
if __name__ == '__main__':
main... | Main.java:1: error: '.' expected
import math
^
Main.java:2: error: ';' expected
def main():
^
Main.java:11: error: unclosed character literal
if __name__ == '__main__':
^
Main.java:11: error: unclosed character literal
if __name__ == '__main__':
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u967961232|p02379|1 | u967961232|p02379|1 | codenet | Compile Error | 323 | |
v2_s494340403 | s494340403 | s494340403 | p02379 | p02379 | u967961232 | u967961232 | 1,523,082,888 | 2018-04-07T06:34:48 | Main.java | import math
def main():
p = map(float, raw_input().split())
print "%.8f" % math.sqrt((p[2] - p[0]) ** 2.0 + (p[3] - p[1]) ** 2.0)
if __name__ == '__main__':
main()
| Main.java:1: error: '.' expected
import math
^
Main.java:2: error: ';' expected
def main():
^
Main.java:6: error: unclosed character literal
if __name__ == '__main__':
^
Main.java:6: error: unclosed character literal
if __name__ == '__main__':
^
4 errors
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u967961232|p02379|1 | u967961232|p02379|1 | codenet | Compile Error | 177 | |
v2_s568845449 | s568845449 | s568845449 | p02380 | p02380 | u162151793 | u162151793 | 1,508,588,655 | 2017-10-21T12:24:15 | Main.java | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
double s = String.format("%.5f", a * b * Math.sin(Math.toRadians(c)) / 2);
doubl... | Main.java:12: error: ';' expected
double h = b * Math.sin(Math.toRadians(c))
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02380|0 | u162151793|p02380|0 | codenet | Compile Error | 512 | |
v2_s197169707 | s197169707 | s197169707 | p02380 | p02380 | u162151793 | u162151793 | 1,508,588,676 | 2017-10-21T12:24:36 | Main.java | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
double s = String.format("%.5f", a * b * Math.sin(Math.toRadians(c)) / 2);
doubl... | Main.java:10: error: incompatible types: String cannot be converted to double
double s = String.format("%.5f", a * b * Math.sin(Math.toRadians(c)) / 2);
^
Main.java:11: error: incompatible types: String cannot be converted to double
double l = String.format("%.5f", a + b + Math.sqrt(a*a + ... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02380|0 | u162151793|p02380|0 | codenet | Compile Error | 513 | |
v2_s833545904 | s833545904 | s833545904 | p02380 | p02380 | u162151793 | u162151793 | 1,508,588,718 | 2017-10-21T12:25:18 | Main.java | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
String s = String.format("%.5f", a * b * Math.sin(Math.toRadians(c)) / 2);
Strin... | Main.java:12: error: incompatible types: double cannot be converted to String
String h = b * Math.sin(Math.toRadians(c));
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02380|0 | u162151793|p02380|0 | codenet | Compile Error | 513 | |
v2_s200636744 | s200636744 | s200636744 | p02380 | p02380 | u162151793 | u162151793 | 1,508,588,748 | 2017-10-21T12:25:48 | Main.java | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
String s = String.format("%.5f", a * b * Math.sin(Math.toRadians(c)) / 2);
Strin... | Main.java:12: error: no suitable method found for format(double)
String h = String.format(b * Math.sin(Math.toRadians(c)));
^
method String.format(String,Object...) is not applicable
(argument mismatch; double cannot be converted to String)
method String.format(Locale,String,Object...... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u162151793|p02380|0 | u162151793|p02380|0 | codenet | Compile Error | 528 | |
v2_s366349150 | s366349150 | s366349150 | p02380 | p02380 | u222807116 | u222807116 | 1,416,829,960 | 2014-11-24T11:52:40 | Main.java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String[] dat=br.readLine().split(" ");
int a,b,c;
double S,L,h;
a... | Main.java:18: error: reached end of file while parsing
System.out.printf("%.8f\n",h);
^
1 error
| compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u222807116|p02380|0 | u222807116|p02380|0 | codenet | Compile Error | 645 | |
v2_s874046267 | s874046267 | s874046267 | p02380 | p02380 | u226888928 | u226888928 | 1,441,716,343 | 2015-09-08T12:45:43 | Main.java | import java.util.*;
import java.text.*;
class Main {
public static void main(String[]args)throws Exception {
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double C = sc.nextDouble();
double S = a * b * sin(C/180.*Math.PI) / 2;
... | Main.java:11: error: cannot find symbol
double S = a * b * sin(C/180.*Math.PI) / 2;
^
symbol: method sin(double)
location: class Main
Main.java:13: error: cannot find symbol
double h = b * sin(C/180.*Math.PI);
^
symbol: method sin(double)
loc... | compile_error | 1 | OpenJDK 21.0.12.1 | unlabelled | 2.1 | u226888928|p02380|0 | u226888928|p02380|0 | codenet | Compile Error | 839 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.