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_37846907_11592.cpp:14:1: error: expected ',' or ';' before 'int'
 int w[M], ne[M], h[N], dis[12][N], total, e[M];
 ^
0_0_37846907_11592.cpp: In function 'void add(int, int, int)':
0_0_37846907_11592.cpp:24:5: error: 'w' was not declared in this scope
     w[total] = z;
     ^
0_0_37846907_11592.cpp:24:7: error: 'total' was not declared in this scope
     w[total] = z;
       ^
0_0_37846907_11592.cpp:25:5: error: 'e' was not declared in this scope
     e[total] = y;
     ^
0_0_37846907_11592.cpp:26:5: error: 'ne' was not declared in this scope
     ne[total] = h[x];
     ^
0_0_37846907_11592.cpp:26:17: error: 'h' was not declared in this scope
     ne[total] = h[x];
                 ^
0_0_37846907_11592.cpp: In function 'void spfa(int)':
0_0_37846907_11592.cpp:33:6: error: 'dis' was not declared in this scope
      dis[startidx][i] = INF;
      ^
0_0_37846907_11592.cpp:35:2: error: 'dis' was not declared in this scope
  dis[startidx][shoplist[startidx]] = 0;
  ^
0_0_37846907_11592.cpp:45:19: error: 'h' was not declared in this scope
         for(int i=h[t]; i!=-1; i = ne[i]){
                   ^
0_0_37846907_11592.cpp:45:36: error: 'ne' was not declared in this scope
         for(int i=h[t]; i!=-1; i = ne[i]){
                                    ^
0_0_37846907_11592.cpp:46:21: error: 'e' was not declared in this scope
             int j = e[i];
                     ^
0_0_37846907_11592.cpp:47:54: error: 'w' was not declared in this scope
             if(dis[startidx][j] > dis[startidx][t] + w[i]){
                                                      ^
0_0_37846907_11592.cpp: In function 'void dfs(int, int, int, int)':
0_0_37846907_11592.cpp:75:13: error: 'dis' was not declared in this scope
        d += dis[now][0];
             ^
0_0_37846907_11592.cpp:87:32: error: 'dis' was not declared in this scope
                 dfs(cur+1, i , dis[now][shoplist[i]] + d, shopnum);
                                ^
0_0_37846907_11592.cpp: In function 'int main()':
0_0_37846907_11592.cpp:104:16: error: 'h' was not declared in this scope
         memset(h, -1, sizeof h);
                ^
0_0_37846907_11592.cpp:137:16: error: 'w' was not declared in this scope
         memset(w, 0, sizeof w);
                ^
0_0_37846907_11592.cpp:138:16: error: 'e' was not declared in this scope
         memset(e, 0, sizeof e);
                ^
0_0_37846907_11592.cpp:139:16: error: 'ne' was not declared in this scope
         memset(ne, 0, sizeof ne);
                ^
0_0_37846907_11592.cpp:142:9: error: 'total' was not declared in this scope
         total = 0;
         ^


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-26 11:25:41, Gzip enabled