F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 16:38:37, Gzip enabled