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_35933463_4172.cpp:6:22: error: expected ',' or ';' before 'M'
 const int N = 100010 M = 2000010, INF = 0x3f3f3f3f;
                      ^
0_0_35933463_4172.cpp:8:13: error: 'M' was not declared in this scope
 int h[N], e[M], ne[M], f[M], idx;
             ^
0_0_35933463_4172.cpp:8:20: error: 'M' was not declared in this scope
 int h[N], e[M], ne[M], f[M], idx;
                    ^
0_0_35933463_4172.cpp:8:26: error: 'M' was not declared in this scope
 int h[N], e[M], ne[M], f[M], idx;
                          ^
0_0_35933463_4172.cpp: In function 'void add(int, int, int)':
0_0_35933463_4172.cpp:16:2: error: 'e' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
  ^
0_0_35933463_4172.cpp:16:14: error: 'ne' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
              ^
0_0_35933463_4172.cpp:16:30: error: 'f' was not declared in this scope
  e[idx] = b, ne[idx] = h[a], f[idx] = c, h[a] = idx ++;
                              ^
0_0_35933463_4172.cpp: In function 'bool bfs()':
0_0_35933463_4172.cpp:28:29: error: 'ne' was not declared in this scope
   for(int i = h[t]; ~i; i = ne[i])
                             ^
0_0_35933463_4172.cpp:30:12: error: 'e' was not declared in this scope
    int j = e[i];
            ^
0_0_35933463_4172.cpp:31:21: error: 'f' was not declared in this scope
    if(d[j] == -1 && f[i])
                     ^
0_0_35933463_4172.cpp: In function 'int find(int, int)':
0_0_35933463_4172.cpp:47:46: error: 'ne' was not declared in this scope
  for(int i = cur[u]; ~i && flow < limit; i = ne[i])
                                              ^
0_0_35933463_4172.cpp:49:11: error: 'e' was not declared in this scope
   int j = e[i];
           ^
0_0_35933463_4172.cpp:51:26: error: 'f' was not declared in this scope
   if(d[j] == d[u] + 1 && f[i])
                          ^
0_0_35933463_4172.cpp: In function 'int dinic()':
0_0_35933463_4172.cpp:64:30: error: 'INF' was not declared in this scope
  while(bfs()) res += find(S, INF);
                              ^
0_0_35933463_4172.cpp: In function 'int main()':
0_0_35933463_4172.cpp:82:23: error: 'INF' was not declared in this scope
    else add(i, i + n, INF);
                       ^
0_0_35933463_4172.cpp:84:14: error: 'INF' was not declared in this scope
   add(S, st, INF);
              ^


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-22 13:22:43, Gzip enabled