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_36262872_2002.cpp:5:15: error: expected initializer before numeric constant
 const int MAX 1e3+10;
               ^
0_0_36262872_2002.cpp:6:15: error: expected initializer before numeric constant
 const int INF 0x3f3f3f3f;
               ^
0_0_36262872_2002.cpp:12:10: error: 'MAX' was not declared in this scope
 int head[MAX], top;
          ^
0_0_36262872_2002.cpp:13:10: error: 'MAX' was not declared in this scope
 int dist[MAX];
          ^
0_0_36262872_2002.cpp:14:10: error: 'MAX' was not declared in this scope
 int used[MAX];
          ^
0_0_36262872_2002.cpp:15:10: error: 'MAX' was not declared in this scope
 bool vis[MAX];
          ^
0_0_36262872_2002.cpp:16:10: error: 'MAX' was not declared in this scope
 int time[MAX];
          ^
0_0_36262872_2002.cpp: In function 'void init()':
0_0_36262872_2002.cpp:20:9: error: 'head' was not declared in this scope
  memset(head, -1, sizeof(head));
         ^
0_0_36262872_2002.cpp: In function 'void addEdge(int, int, int)':
0_0_36262872_2002.cpp:24:21: error: 'head' was not declared in this scope
  Edge E = {u, v, w, head[u]};
                     ^
0_0_36262872_2002.cpp: In function 'void getMap()':
0_0_36262872_2002.cpp:30:22: error: 'n' was not declared in this scope
  for(int i = 1; i <= n; i++)
                      ^
0_0_36262872_2002.cpp:40:19: error: 'time' was not declared in this scope
    addEdge(b, a, -time[a]);
                   ^
0_0_36262872_2002.cpp:42:18: error: 'time' was not declared in this scope
    addEdge(b, a, time[b]-time[a]);
                  ^
0_0_36262872_2002.cpp:47:18: error: 'time' was not declared in this scope
    addEdge(b, a, time[b]); 
                  ^
0_0_36262872_2002.cpp: In function 'bool SPFA()':
0_0_36262872_2002.cpp:56:22: error: 'n' was not declared in this scope
  for(int i = 0; i <= n; i++)
                      ^
0_0_36262872_2002.cpp:58:3: error: 'dist' was not declared in this scope
   dist[i] = i==0 ? 0 : -INF;
   ^
0_0_36262872_2002.cpp:58:25: error: 'INF' was not declared in this scope
   dist[i] = i==0 ? 0 : -INF;
                         ^
0_0_36262872_2002.cpp:59:3: error: 'used' was not declared in this scope
   used[i] = 0;
   ^
0_0_36262872_2002.cpp:60:3: error: 'vis' was not declared in this scope
   vis[i] = false; 
   ^
0_0_36262872_2002.cpp:62:2: error: 'vis' was not declared in this scope
  vis[0] = true;
  ^
0_0_36262872_2002.cpp:63:2: error: 'used' was not declared in this scope
  used[0]++;
  ^
0_0_36262872_2002.cpp:70:15: error: 'head' was not declared in this scope
   for(int i = head[u]; i != -1; i = edge[i].next)
               ^
0_0_36262872_2002.cpp:73:7: error: 'dist' was not declared in this scope
    if(dist[E.to] < dist[u] + E.val)
       ^
0_0_36262872_2002.cpp:80:23: error: 'n' was not declared in this scope
      if(used[E.to] >= n) 
                       ^
0_0_36262872_2002.cpp: In function 'int main()':
0_0_36262872_2002.cpp:92:21: error: 'n' was not declared in this scope
  while(scanf("%d", &n), n)
                     ^
0_0_36262872_2002.cpp:95:16: error: 'time' was not declared in this scope
   scanf("%d", &time[i]);
                ^
0_0_36262872_2002.cpp:102:31: error: 'dist' was not declared in this scope
          printf("%d %d\n", i, dist[i]);
                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 11:55:21, Gzip enabled