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_22129875_12356.cpp:7:9: error: 'M' was not declared in this scope
 int gap[M],dis[M],pre[M],cur[M];
         ^
0_0_22129875_12356.cpp:7:16: error: 'M' was not declared in this scope
 int gap[M],dis[M],pre[M],cur[M];
                ^
0_0_22129875_12356.cpp:7:23: error: 'M' was not declared in this scope
 int gap[M],dis[M],pre[M],cur[M];
                       ^
0_0_22129875_12356.cpp:7:30: error: 'M' was not declared in this scope
 int gap[M],dis[M],pre[M],cur[M];
                              ^
0_0_22129875_12356.cpp:9:10: error: 'M' was not declared in this scope
 int head[M];
          ^
0_0_22129875_12356.cpp: In function 'long long int sap(int, int)':
0_0_22129875_12356.cpp:24:12: error: 'dis' was not declared in this scope
     memset(dis,0,sizeof(int)*(NV+1));
            ^
0_0_22129875_12356.cpp:24:36: error: 'memset' was not declared in this scope
     memset(dis,0,sizeof(int)*(NV+1));
                                    ^
0_0_22129875_12356.cpp:25:12: error: 'gap' was not declared in this scope
     memset(gap,0,sizeof(int)*(NV+1));
            ^
0_0_22129875_12356.cpp:26:8: error: 'i' was not declared in this scope
     FF(i,NV) cur[i] = head[i];
        ^
0_0_22129875_12356.cpp:26:12: error: 'FF' was not declared in this scope
     FF(i,NV) cur[i] = head[i];
            ^
0_0_22129875_12356.cpp:27:13: error: 'pre' was not declared in this scope
     int u = pre[s] = s;
             ^
0_0_22129875_12356.cpp:31:35: error: 'cur' was not declared in this scope
         loop:        for(int &i = cur[u]; i != -1; i = E[i].next) {
                                   ^
0_0_22129875_12356.cpp:49:21: error: 'head' was not declared in this scope
         for(int i = head[u]; i != -1 ; i = E[i].next) {
                     ^
0_0_22129875_12356.cpp:52:17: error: 'cur' was not declared in this scope
                 cur[u] = i;
                 ^
0_0_22129875_12356.cpp: In function 'void Insert(int, int, long long int, int)':
0_0_22129875_12356.cpp:64:18: error: 'head' was not declared in this scope
     E[NE].next = head[u];    head[u] = NE++;
                  ^
0_0_22129875_12356.cpp: In function 'int main()':
0_0_22129875_12356.cpp:84:16: error: 'head' was not declared in this scope
         memset(head , -1 , sizeof(head));
                ^
0_0_22129875_12356.cpp:84:40: error: 'memset' was not declared in this scope
         memset(head , -1 , sizeof(head));
                                        ^


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 19:38:18, Gzip enabled