0_0_30377928_15398.cpp:1:1: error: 'import' does not name a type
import java.util.ArrayList;
^
0_0_30377928_15398.cpp:2:1: error: 'import' does not name a type
import java.util.*;
^
0_0_30377928_15398.cpp:4:12: error: expected unqualified-id before '[' token
static int[][] graph = new int[101][101];
^
0_0_30377928_15398.cpp:5:12: error: expected unqualified-id before '[' token
static int[] dist= new int[101];
^
0_0_30377928_15398.cpp:6:12: error: expected unqualified-id before '[' token
static int[] visited = new int[101];
^
0_0_30377928_15398.cpp:7:10: error: expected ':' before 'static'
private static void djikstraPath(int start, int nv) {
^
0_0_30377928_15398.cpp:29:9: error: expected ':' before 'static'
public static void main(String args[]) {
^
0_0_30377928_15398.cpp:29:26: error: 'String' has not been declared
public static void main(String args[]) {
^
0_0_30377928_15398.cpp:54:1: error: expected ';' after class definition
}
^
0_0_30377928_15398.cpp: In static member function 'static void Main::djikstraPath(int, int)':
0_0_30377928_15398.cpp:9:4: error: 'dist' was not declared in this scope
dist[i] = Integer.MAX_VALUE;
^
0_0_30377928_15398.cpp:9:14: error: 'Integer' was not declared in this scope
dist[i] = Integer.MAX_VALUE;
^
0_0_30377928_15398.cpp:10:4: error: 'visited' was not declared in this scope
visited[i]= 0;
^
0_0_30377928_15398.cpp:12:3: error: 'dist' was not declared in this scope
dist[start]=0;
^
0_0_30377928_15398.cpp:14:18: error: 'Integer' was not declared in this scope
int closest = Integer.MAX_VALUE;
^
0_0_30377928_15398.cpp:17:8: error: 'visited' was not declared in this scope
if(visited[j]==0 && dist[j]<closest) {
^
0_0_30377928_15398.cpp:22:4: error: 'visited' was not declared in this scope
visited[cv] = 1;
^
0_0_30377928_15398.cpp:24:8: error: 'graph' was not declared in this scope
if(graph[cv][j]<Integer.MAX_VALUE && visited[j]==0 && dist[j]>graph[cv][j]+closest)
^
0_0_30377928_15398.cpp: In static member function 'static void Main::main(int*)':
0_0_30377928_15398.cpp:31:3: error: 'Scanner' was not declared in this scope
Scanner scan = new Scanner(System.in);
^
0_0_30377928_15398.cpp:32:7: error: 'scan' was not declared in this scope
n = scan.nextInt();
^
0_0_30377928_15398.cpp:38:6: error: 'graph' was not declared in this scope
graph[i][j]=Integer.MAX_VALUE;
^
0_0_30377928_15398.cpp:38:18: error: 'Integer' was not declared in this scope
graph[i][j]=Integer.MAX_VALUE;
^
0_0_30377928_15398.cpp:45:5: error: 'graph' was not declared in this scope
graph[u][v]=d;
^
0_0_30377928_15398.cpp:48:4: error: 'System' was not declared in this scope
System.out.println(dist[n]);
^
0_0_30377928_15398.cpp:48:23: error: 'dist' was not declared in this scope
System.out.println(dist[n]);
^
|