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_30453261_28033.cpp: In function 'bool bfs(int)':
0_0_30453261_28033.cpp:11:8: error: 'dx' was not declared in this scope
     ms(dx,0);ms(dy,0);
        ^
0_0_30453261_28033.cpp:4:24: note: in definition of macro 'ms'
 #define ms(a,b) memset(a,b,sizeof a)
                        ^
0_0_30453261_28033.cpp:11:17: error: 'dy' was not declared in this scope
     ms(dx,0);ms(dy,0);
                 ^
0_0_30453261_28033.cpp:4:24: note: in definition of macro 'ms'
 #define ms(a,b) memset(a,b,sizeof a)
                        ^
0_0_30453261_28033.cpp:12:12: error: 'n' was not declared in this scope
     go(i,1,n)if(!mx[i])q.push(i),dx[i]=1;
            ^
0_0_30453261_28033.cpp:7:37: note: in definition of macro 'go'
 #define go(i,a,b) for(int i=(a);i<=(b);i++)
                                     ^
0_0_30453261_28033.cpp:12:18: error: 'mx' was not declared in this scope
     go(i,1,n)if(!mx[i])q.push(i),dx[i]=1;
                  ^
0_0_30453261_28033.cpp:15:19: error: 'h' was not declared in this scope
         for(int i=h[i];i;i=eg[i].n){
                   ^
0_0_30453261_28033.cpp:15:28: error: 'eg' was not declared in this scope
         for(int i=h[i];i;i=eg[i].n){
                            ^
0_0_30453261_28033.cpp:19:16: error: 'match' was not declared in this scope
             if(match[to]==-1)flag=1;
                ^
0_0_30453261_28033.cpp: In function 'bool dfs(int)':
0_0_30453261_28033.cpp:26:15: error: 'f' was not declared in this scope
     for(int i=f[u];i;i=eg[i].n){
               ^
0_0_30453261_28033.cpp:26:24: error: 'eg' was not declared in this scope
     for(int i=f[u];i;i=eg[i].n){
                        ^
0_0_30453261_28033.cpp:28:12: error: 'dep' was not declared in this scope
         if(dep[to]!=dep[u]+1)continue;
            ^
0_0_30453261_28033.cpp:29:9: error: 'dep' was not declared in this scope
         dep[to]=0;
         ^
0_0_30453261_28033.cpp:30:13: error: 'con' was not declared in this scope
         if(!con[i]||dfs(con[to])){
             ^
0_0_30453261_28033.cpp: In function 'int sol(int)':
0_0_30453261_28033.cpp:36:24: error: 'n' was not declared in this scope
     while(bfs())go(i,1,n)if(!con[i]&&dfs(i))res++;
                        ^
0_0_30453261_28033.cpp:7:37: note: in definition of macro 'go'
 #define go(i,a,b) for(int i=(a);i<=(b);i++)
                                     ^
0_0_30453261_28033.cpp:36:30: error: 'con' was not declared in this scope
     while(bfs())go(i,1,n)if(!con[i]&&dfs(i))res++;
                              ^
0_0_30453261_28033.cpp: In function 'int main()':
0_0_30453261_28033.cpp:41:25: error: 'n' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF){ ms(f,0);ans=1e7;
                         ^
0_0_30453261_28033.cpp:41:28: error: 'm' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF){ ms(f,0);ans=1e7;
                            ^
0_0_30453261_28033.cpp:41:41: error: 'f' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF){ ms(f,0);ans=1e7;
                                         ^
0_0_30453261_28033.cpp:4:24: note: in definition of macro 'ms'
 #define ms(a,b) memset(a,b,sizeof a)
                        ^
0_0_30453261_28033.cpp:41:46: error: 'ans' was not declared in this scope
     while(scanf("%d%d",&n,&m)!=EOF){ ms(f,0);ans=1e7;
                                              ^
0_0_30453261_28033.cpp:42:32: error: 'u' was not declared in this scope
         go(i,1,m)scanf("%d%d",&u,&to),f[u][to]=1;
                                ^
0_0_30453261_28033.cpp:42:35: error: 'to' was not declared in this scope
         go(i,1,m)scanf("%d%d",&u,&to),f[u][to]=1;
                                   ^
0_0_30453261_28033.cpp:44:26: error: 'p' was not declared in this scope
         else { go(i,1,n) p[i]=i+1; 
                          ^
0_0_30453261_28033.cpp:45:20: error: 'h' was not declared in this scope
             do{ ms(h,0);tot=0;
                    ^
0_0_30453261_28033.cpp:4:24: note: in definition of macro 'ms'
 #define ms(a,b) memset(a,b,sizeof a)
                        ^
0_0_30453261_28033.cpp:45:25: error: 'tot' was not declared in this scope
             do{ ms(h,0);tot=0;
                         ^
0_0_30453261_28033.cpp:46:41: error: 'p' was not declared in this scope
                 go(i,1,n)go(j,1,n)if(!f[p[i]][j]&&!f[p[i%n+1]][j])add(i,j);
                                         ^
0_0_30453261_28033.cpp:48:37: error: 'p' was not declared in this scope
             }while(next_permutation(p+1,p+n));
                                     ^


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-12-01 17:52:46, Gzip enabled