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_37257836_4701.cpp:5:1: error: expected ',' or ';' before 'int'
 int h[N], e[N], ne[N], idx;
 ^
0_0_37257836_4701.cpp: In function 'void add(int, int, double)':
0_0_37257836_4701.cpp:15:2: error: 'e' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
  ^
0_0_37257836_4701.cpp:15:4: error: 'idx' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
    ^
0_0_37257836_4701.cpp:15:14: error: 'ne' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
              ^
0_0_37257836_4701.cpp:15:24: error: 'h' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], w[idx] = c, h[a] = idx++;
                        ^
0_0_37257836_4701.cpp: In function 'bool spfa()':
0_0_37257836_4701.cpp:34:15: error: 'h' was not declared in this scope
   for(int i = h[t]; ~i; i = ne[i])
               ^
0_0_37257836_4701.cpp:34:29: error: 'ne' was not declared in this scope
   for(int i = h[t]; ~i; i = ne[i])
                             ^
0_0_37257836_4701.cpp:36:12: error: 'e' was not declared in this scope
    int j = e[i];
            ^
0_0_37257836_4701.cpp: In function 'int main()':
0_0_37257836_4701.cpp:58:11: error: 'h' was not declared in this scope
    memset(h, -1, sizeof h);
           ^
0_0_37257836_4701.cpp:59:4: error: 'idx' was not declared in this scope
    idx = 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 22:12:54, Gzip enabled